Building Your Own Glowing Cyber-Balls? 453
krezel asks: "So I've been drooling over the Ambient Orb, a cool little gadget 'glowing ball' that you changes colors based the 'health' of things you specify. It can do stuff like fade from red to yellow to green as your stock portfolio improves. However, being a poor college student I can't afford its $200 price tag. I've found lots of sources for super bright multi-color LED's. Cast a couple of them in some translucent resin, hook them up to a power source, and you've got yourself a cheap glowing ball. But I've yet to find any good information on how to build hardware that will let me control relays for devices like this through my serial or parallel port. Basically I'm looking for a cheap way to build a board that will let me control 4-8 relays (for each color) over my serial port, and some info on how to write the software for it. This could be a very cool project, and I plan on making the plans available, and the code Open Source, when I'm done with it. Any ideas?"
...Glowing balls? (Score:2, Funny)
Re:...Glowing balls? (Score:2)
Too late... if only I'd gotten my comment [slashdot.org] in before yours...
Re:...Glowing balls? (Score:5, Funny)
Hmmm... (Score:5, Funny)
You know you need to get laid if "Hey baby, wanna cyber?" gets your balls glowing...
parallel vs. serial (Score:3, Insightful)
Depending on how many LED's per color and whether you are using transistors or relays to drive the circuit, you may want to use an external power source and use op amps to convert your parallel control to a stronger signal for the LEDs.
Anyway, just my idea.
Sure, I could probably design the circuit now (Since I am learning so I can build my own 160-6m SSB/CW rig), but I don't want to. Sorry.
Re:parallel vs. serial (Score:2)
Re:parallel vs. serial (Score:4, Insightful)
1) USB interface. Add a microcontroller, learn to program microcontroller (maybe 2-3 months to learn, if you're a competent coder already), get the programming hardware ($20 if you make it yourself, $100 if you buy it), connect LEDs and resistors to microcontroller.
2) Parallel port interface. Use a wall-wart power supply, connect LEDs and resistors directly to parallel power, all set up in a day at most.
What would you rather pick?
Grab.
Re:parallel vs. serial (Score:3, Insightful)
You might want to have a look at this page [ftdichip.com]. In particular, you might find the FT245BM interesting...it supports a "bit-bang" mode that allows you to read/write bits on an 8-bit parallel port. I've designed it into a pan/tilt interface for s
Re:parallel vs. serial (Score:3, Insightful)
Since the original post mentioned "relays," it is likely to assume that this person is not extremely experienced in do-it-yourself electronics.
USB is NOT for the faint of heart. While the hardware for USB is easy with some processors from Cypress, the software for USB is quite complex. Using an old-fashioned RS-232 port is easy compared to USB stuff. Definately not for beginners. I have a master's degree in ele
Re:parallel vs. serial (Score:3, Informative)
Considering the simplicity of the circuit to make an LED glow, and the ease of parallel port programming, plus the relative ease of finding information on how to do it I'd have to concur with you.
Plus the low power consumption would probably mean you could forgo any external power source unless you either wanted it brighter or wanted to light up a bunch of LEDs
Re:parallel vs. serial (Score:5, Informative)
Google for "Beyond Logic" and you'll find a site that lays out more info on the legacy ports and on making peripherals for them (and for USB) than you could read in a day.
(Mind, it's pretty easy to make a serial one too. There's a UART called the CDP6402 that's specifically designed to run without a master uC; just add an osc to get 4x the desired baud rate and use an octal latch to maintain the output with an RC circuit to generate the rcv ack pulse, and you're set.)
Re:parallel vs. serial (Score:3, Informative)
That's an amazing site by the way, it's right here [beyondlogic.org] since you didn't supply the link.
Re:parallel vs. serial (Score:5, Informative)
Re:parallel vs. serial (Score:5, Informative)
In this case, the LEDs have their anodes connected together, and brought back to the 5v rail, and their cathodes connected to the parallel port pins through 220 ohm resistors. You then bring the appropriate pin low to turn the LED on. There's a good reason for doing it "backwards" - the gates driving the parallel port can sink more current than they can source. That is to say, the transistor pulling the pin to ground is "stronger" than the one pulling it to +5v, so it's more suitable for turning on an LED. You could use two resistors and a small transistor per pin, too. If you like.
Re:parallel vs. serial (Score:3, Informative)
16 line decoders [national.com]and that will give you control of 16 relays. add a second chip to the next 4 pins, and control 32. Once you have it set up, just write the value you want represented (ie, to turn on the first device, write out a 1, second device 2, third device 4, etc etc) out to the port.
Re:parallel vs. serial (Score:5, Informative)
I use the parallel port to drive three stepper motors. Pretty easy to do, and your circuit would be just as easy. You could actually use the same circuit, but simply change the +12V input to the correct voltage, and hook the LED's in where the motor phases would be.
See my crude circuit diagram here:
www.lenticularshareware.com/downloads/stepper_cir
FYI, you can also get 4 "input" channels from the parallel port at the same time, I use them for limit switches to set the position of the steppers to "home". (see diagram)
MadCow.
Re:parallel vs. serial (Score:4, Interesting)
Wanna see? (Score:2, Funny)
Nice headline... (Score:5, Funny)
Do Not Taunt The Happy Fun Ball (Score:3, Funny)
It's Happy! It's Fun! It's Happy Fun Ball!
Yes, Happy Fun Ball, the toy sensation that's sweeping the nation. Only $14.95 at particpating stores!
Get one Today!
Warning: Pregnant women, the elderly and children under 10 should avoid prolonged exposure to Happy Fun Ball.
Caution: Happy Fun Ball may suddenly accelerate to dangerous speeds.
Happy Fun Ball contains a liquid core, which, if exposed due to rupture, should not be touched, inhaled, or looked at.
Do not use Happy Fun Ball on concrete.
Discontinue use of Happy Fun Ball if any of the following occurs:
* Itching
* Vertigo
* Dizziness
* Tingling in extremities
* Loss of balance or coordination
* Slurred speech
* Temporary Blindness
* Profuse sweating
* Heart Palpitations
If Happy Fun Ball begins to smoke, get away immediately. Seek shelter and cover head.
Happy Fun Ball may stick to certain types of skin.
When not in use, Happy Fun Ball should be returned to its special container and kept under refrigeration...
Failure to do so relieves the makers of Happy Fun Ball, Wacky Products Incorporated, and its parent company Global Chemical Unlimited, of any and all liability.
Ingredients of Happy Fun Ball include an unknown glowing substance which fell to Earth, presumably from outer space.
Happy Fun Ball has been shipped to our troops in Saudi Arabia and is also being dropped by our warplanes on Iraq.
Do not taunt Happy Fun Ball.
Happy Fun Ball comes with a lifetime guarantee.
Happy Fun Ball: ACCEPT NO SUBSTITUTES!
You don't want relays (Score:3, Insightful)
Google knows all [google.com]. Click on the first link. Or any of the others.
Re:You don't want relays (Score:4, Informative)
Fine, you don't want SOLID STATE relays (Score:3, Insightful)
Who brings up solid state relays when talking about hooking to a parallel port? You've never done this, have you? Solid state relays are too expensive, have high hold currents and forward voltage drops, burn quiescent power, and are very large in comparison. In other words, they are simply wrong for this application.
But, you're right, they are not mechanical switches.
Transistorphobia (Score:3, Insightful)
When working with a +-5V logic signal like the parport, just put some 1K input resistors on some 2N2222 or BC547's, and hook the LED with a 220 ohm resistor into the collector path.
If the LED's require more current (like a blue LED does) recalculate the 220 ohm by using ohms law of (5V - 0.7V [transistor drop] - (whatever the LED forward volt
More than 8 colors? (Score:5, Informative)
Re:More than 8 colors? (Score:3, Interesting)
Re:More than 8 colors? (Score:5, Informative)
dot-array LED signs are generally built using some form of scanning setup - you enable a row, then shift-on the bits. Then, next row, shift on the bits, etc. Not all the LEDs are on at any given time.
So you can get away with pulsing them with higher current than they're rated at. Which is a bit of a bugger - if you hit the 'stop' button or the sign crashed, any on LEDs would burn out. I used to work making LED signs for a little while - we had a set of damaged signs to test code on.
(Which got real expensive when Blue LEDs came out so I _think_ the guys implemented some 'no clock? no driving power!' circuitry in case the testing code crashed..
(A cute tidbit: our signs had 4-LED RGB elements - one blue, one green, two red. the red leds weren't as bright to the eye, so we needed two of em..)
Re:More than 8 colors? (Score:3, Funny)
Yeah, i've seen it, AND ITS FUCKING CREEPY!! God, if i had one, i'd have to cut the light out.
Better Investment (Score:4, Funny)
Cliff, give me $200 dollars. You can call me whenever you want. Sometimes I'll hum. Sometimes I'll hum louder.
Re:Better Investment (Score:3, Insightful)
Instead he wants to spend a few dollars on LEDs and a few more on resin and cables. I'd imagine this costing somewhere less than $30.
Now if you were offering to be a hummer for $29.99, that would be a different story . . .
Re:Better Investment (Score:4, Funny)
Jeez, and I thought that the glowing balls would be the near-irresistable straight line.
Re:Better Investment (Score:2)
"If you read the post, you'll see the whole point of this was to avoid spending the $200.
No, I actually read the whole thing, first. In fact the reason I read the whole thing is because I was fully expecting the joke to be exposed at any moment with a "just kidding" someplace.
It never came.
It's a dumb idea, period. If you handed me one it would be circular-filed the second you got out of earshot. Why you'd want to spend $5 to obtain one -- much less $200 -- is beyond me.
Re:Better Investment (Score:5, Insightful)
Note that people happily pay $30-50 for a little blinking light that tells them when they have voicemail. They'll pay a lot more than that for extra gauges on a car dash. And companies have paid millions for fancy "war room" conference rooms that continuously display important business data.
The basic prinicple is that people have to deal with a lot of invisible data, and if you can make it visible, it's easier for people to manage. Take a look, for example, at the many designs for in-house power meters [sustainer.org]. The idea is that if people have a better idea of how much electricity they're using, they'll waste less of it.
Personally, I would be tempted to hook it up so that it went slowly from green to red whenever I got behind on my email, a visible reminder of the people I'm ignoring when I get absorbed in a project. Or since I'm a freelancer, it'd be interesting to hook it up to a moving average of billable hours, so that I have a quick objective reference to check when I wonder whether a sunny day is better spent biking than coding.
Or at a company, I'd love to set it up so that it got redder and redder when people put in too much overtime on a project. Or you could hook it up so that it responded to an anonymous web poll on morale. And then perhaps another one tied to the number of open bugs. Or perhaps percentage of code covered by test suites.
I'd agree that $200 is too steep. But for $50, I could find a lot of uses for these!
Re:Better Investment (Score:5, Interesting)
Beyond Logic [beyondlogic.org]
Parallel Port Central [lvr.com]
Both the above have a bunch of useful stuff.
Also don't forget that you'll need to learn how to drive LEDs. I'm admin on an electronics board, so here's a blatant plug:-
BasicElectronics board, LED FAQ [ezboard.com]
(and kudos to David Bridgen and MacGregor who put that info together
Grab.
The point (Score:3, Interesting)
I could see using locally-connected glowing globes this for all sorts of monitoring; stock market tracking isn't really near the top of the list. I can see having a row of stuff like this visible in or near a server room for example,
IDS Comms (Score:2)
Re:The point (Score:3, Funny)
Quit wasting water you masturbating whale.
Re:Better Investment (Score:2)
It's a ball. That glows. The glow shifts, for example, on the rise or fall of the stock market.
A recent Firesign Theatre [firesigntheatre.com] album, Boom Dot Bust, has a great bit about a "smart home" whose interior decoration and furnishings change to match the value of the owner's stock portfolio. As the stock bubble comes crashing down (this is a 1999 album, BTW), the house rapidly transforms, with hilarious consequences.
Now that's glowing cyber-balls.
Do not Taunt the Ambient Orb (Score:3, Funny)
At the very least Cliff is a barometer. If people still has the leisure to actually care about this we're doing fairly well. Look man, we're about to topple a regime. We have "Ambient Orbs" to fill the commercial breaks.
Anyhow, when I hit the term "Ambient Orb", I immediately recalled "Happy Fun Ball", from SNL. Does anyone else remember hyperventilati
I have no good ideas (Score:4, Informative)
When I was looking for computer->analog control chips a few years ago, the best methods I could find were:
Build (or buy) a serial->I2C or parallel->I2C converter; you can get D/A chips with I2C interfaces pretty cheaply.
Use a PIC microcontroller, which gives you serial and analog I/O built in.
That's missing a key point... (Score:5, Informative)
Now, assuming you don't want to muck about with that (and who does), your best bet would be to not use relays in the first place - they're loud, slow, and not gradual. Use a Basic Stamp from Parallax [parallax.com] and write some code to output a PWM (Pulse Width Modulated) voltage to three different pins - one for each color. (Chances are you'll be using either one 4-pin, 3 color LED or 3 leds (red, green, blue). Infrared or UV leds could be interesting, but aren't recommended...) Then you can either leave the BASIC stamp connected to your serial port and controlled via DEBUG or SERIN (IIRC) commands from your host computer (and write some corresponding code for the host), or you can leave it standing alone and interface to it using any one of the who-knows-how-many add-on boards Parallax sells. (you might want to check out the Communications [parallax.com] page - that modem looks like a good thing to try)
Re:That's missing a key point... (Score:5, Informative)
Note: some assembly required, batteries not included.
AVRs rock (Score:3, Informative)
Parallel port - Eats his parallel port, and needs lots of wires to be run.
AVR - More complex to design, but easier overall.
I don't see why you reccommended an oscilliscope - For most uC development one isn't needed. (Can be nice to have though!)
Parallel-port AVR programs are simple and easy to build. Atmel did a good job as far as AVR programmability. You can program most AVRs in C with good results, either using GCC, or one of a few other compilers. (As much as I
Re:That's missing a key point... (Score:5, Informative)
Really, you can get a small PIC (since that's where most of the hobbyist development resources are right now) in a 16-or so pin package you can toss on a Rat Shack breadboard. Get one with an onboard UART and life gets even simpler. The next step is to write code to take a string of values, and PWM a few pins according the the values. After that, everything depends on the computer side.
My room at school had indicator LEDs (one mounted in the door peephole - go figure) for new email, and a robotic webcam running off a 486 webserver.
If you want to get fancy, use USB.
I have a PIC board (way overspecced for this application, of course) and two USB boards on my desk right now, that could do the task with an hour of coding and soldering a few LEDs.
Amen to the PIC chip! Here's some code... (Score:5, Informative)
In terms of hardware, you'd need the jack for the port, the power cord, a PIC chip, a transistor for each color, and a bunch of LEDs/resistors of each color. Easy stuff really. Let me know what you come up with. If you use USB, I'd be especially interested, as I have a Mac (no serial port). Good luck!
Re:That's missing a key point... (Score:3, Informative)
Re:That's missing a key point... (Score:3, Insightful)
I'd like to stay on the cheaper side.
Re:That's missing a key point... (Score:2, Informative)
This chip has 3 ports of 8-bit and by writing a combn of bits, you could control the output. I also remember one of the ports supported a bit-set-reset capability. This simple chip (should cost about $5, no more) would be more than enough for the project at hand.
The chip is a part of Standard Microprocessor kits (about $30 I gu
Re:That's missing a key point... (Score:2)
-Bill
Re:That's missing a key point... (Score:3, Insightful)
If you already have a computer, the wireless network aspect of this seems completely pointless. The damn thing already needs to be plugged into the wall, so is it really that big a deal if it also has to be plugged into the ethernet/serial/par
xmms plugins as a start (Score:2, Informative)
I need one... (Score:5, Funny)
Re:I need one... (Score:2)
(No, I'm not kidding. The pentagon wants to raise the threat level to 'red' but financial advisers say that'll spook the stock market. So, prepare for new terrorism-threat-o-meter levels in the spirit of 'market corrections' and 'negative growth'. Euphamitastic.)
Re:I need one... (Score:2)
now it's glowing REDDER...
REDDER again....
somehow even MORE RED...
*president addresses nation*
so GODDAMN RED that it can only be viewed with eclipse-style pin-hole camera
Terrorst Threat Level (Score:2, Interesting)
I got one! (Score:2)
It does look like a fun toy, but not for two bills. For that amount, it should come with a cyber wiener that glows when chicks that are into linux are near.
Hotcakes, I tell ya!
Simple stuff here (Score:4, Informative)
BTW, this is rudimentary circuit design in almost any college course. If you want to seroiusly get into building cicuits like this check out "The Art of Electronics" by Horowitz and Hill. Might be a little expensive but will give you a solid foundation in circuit design.
Casting resin ain't that simple either... (Score:5, Informative)
Re:Casting resin ain't that simple either... (Score:3, Interesting)
Ah, glowing balls... (Score:5, Interesting)
But seriously, I've always wanted something like this for work. A simple status indicator whether the cluster of machines I'm responsible for is Working Fine (green), Having Issues (yellow), or Completely B0rked (red).
Currently, I keep a persistent browser window open to a simple web-based script that checks on the status of everything and sets its background to one of those colors based on what it finds (it's quite a bit more verbose than just that should something be wrong, but that's not the point). This is fine and dandy for my use, but for the sake of being interupted during an emergency...
It'd be really cool (and actually useful) to have a separate orb that glows the same color... so the next time my PHB runs in to tell me I forgot my TPS report cover sheet.. er.. to tell me that he's noticed a problem with the site, he'll first see the big red glow and realize I'm already aware of it.
(that, and when I'm deep into a Quake match, and can't see the little window...)
Seems you want a Basic-Stamp computer (Score:2)
Now, if you want it cheap, just go out and get an 8055 microcontroller, and use its serial port to tie to your computer.
But the problem is that it is expensive to program the thing. The programmers for any chip can be $100-$200 -- a microcost for business production runs, but a serious expense if every person who's going to do this needs to get one.
I suppose you could buy 10k preprogrammed 8055s once you h
Materials (Score:2)
I would use hollow frosted plastic or glass globes over a solid encasing, but that's mostly personal choice.
This would be a pretty cool project. If your interface is capable of handling multiple balls, you could make add-ons for software like Nagios [nagios.org] to show the status of various servers in simple colors.
For no good reason, I came up with this, too:
You could make your indicator a Ping-Pong b
Look at this XMMS plugin (Score:2, Interesting)
For xmms-syncing=lights via a parallel port - I've been considering doing this for a while, and the guys has great instructions
Just imagine what you could do with one of these! (Score:4, Funny)
Why, you could set it to blink green to notify you when ThinkGeek gets these things back in stock [thinkgeek.com]!!!
Use parallel port or microcontroller (Score:5, Insightful)
Of course controlling 8 relays or LEDs with the parallel port is much simpler.
Since the parallel port output is basically just TTL levels, just buffer it through a 74LS244 or something similar and use that to drive the LEDs directly. You can directly control each of the 8 data pins on a parallel port by writing directly to the base I/O port (i.e. port 0x378 is the default for LPT1). It's easiest to use inverting output with TTL driving LEDs.
Something like the following circuit:
D0 ---|>---/\/\/\---| D0 = parallel port data pin 0
/\/\/\ is resistor
|> is a buffer (i.e. 74LS244)
| (+5) is a 5 volt power source separate from the parallel port.
Make sure that the ground pin of the parallel port is connected to the ground of your circuit. For the 5 volts, a 7805 is a simple solution when using a separate DC power supply.
All of the above listed parts should be available at your local Radio Crap.
When D0 is 0 (low) current will flow from the 5 volt supply, through the LED and resistor and from the buffer to ground. When D0 is 1 (high), no current will flow.
When choosing a resistor, take into account the voltage drop across the LED. Blue LED's typically have a higher voltage drop than red or green. Red LEDs are typically around 0.7 volts whereas blue can be upwards of 3v.
Also make sure that whatever buffer you use can sink the appropriate amount of current. Most LEDs typically will take up to 15-20ma of current. It might also make sense to use an inverter instead of a buffer since the above circuit will cause a LED to light when the data bit is 0. a 74LS04 is a cheap easy-to-use inverter chip that is readily available.
With 20ma of current, choose a resistor based on the voltage.
Use the basic equation, V = I*R, where V is voltage in volts, I is current (in amps) and R is resistance in Ohms.
For example, for a red LED with 20 ma with a 5 volt source use:
R = (5 - 0.7) / 0.020 = 215 ohms. Since resistors come in standard values, choose the next highest value, i.e. 220 Ohms.
For blue, with a 3.6 volt drop you would use
R = (5 - 3.6) / 0.020 = 70 ohms. The closest match is 68 ohms, but it's usually best to error on the side of caution so choose the next larger value.
One thing you do not want to do is use the parallel port to drive LEDs or relays directly as you could possibly damage it. TTL outputs typically are not designed to output much current and are typically better at sinking current than sourcing it.
Note that I'm no expert on this and I'm sure you'll see better solutions listed here.
-Aaron
Cool Glowing Cyber-Balls feature request (Score:2)
Lots of solutions... (Score:5, Insightful)
There are lots of these serial relay drivers
But, you probablly want an actual A/D converter [maxim-ic.com] (preferably with a current output) or a digital potentiometer. [maxim-ic.com] There are lots of mfgs of these products, but Maxim is pretty liberal with samples (plus they have some neat innovative products!)
Go USB (quick! Easy!) (Score:3, Informative)
The engineering staff has been good to work with as well.
Also, they seem to sell a product almost exactly like what you describe, with bright LEDs in a diffraction grating, based on the same chipset. I don't know if it has quite the diffiusion you're looking for. (But it does have a buzzer!)
Otherwise, my advice would be to use the parallel port (very easy to program, unless you're a mac user and you don't have one ;-) and don't use relays. In order to drive a relay, you'll need a transistor to switch the coils, and if you've already got the transistor, well, you can see where thats going!
Re:Go USB (quick! Easy!) (Score:2)
That said, I highly recommend the MC68HC908JB8 for a hobbyist USB development platform. You can get the package in surface-mount or a small DIP, it's easy to wire and code for, and the tools are good and free. It's a low-speed device, but for control applications like this it's more than adequate. Turn the ball into a funky keyboard too.
two similar DIY projects with software (Score:3, Insightful)
- two LEDs and a switch [linuxfocus.org]
- TTY control [sourceforge.net]: 7 buttons and 3 leds.
I built a simpler version of #2 last week, and it was a lot of fun and very easy!Sounds easy enough (Score:3, Interesting)
You can just steal or buy some testing / teaching equipment from the local EE department... I think things that can hook up to a PC and drive simple signals are common and cheap and allow software to interface with them trivially. My local EE department has hundreds lieing around, though I've never used one, and don't know what they're called.
Or, if you want to build everything yourself, that shouldn't be too hard either. Get a cheap programmable chip (unless you know more than I do about a serial port... it might be possible to do with a simple non-programmable chip that just latches values from the pins at the right time). I used a PIC16F876 at one point... it's basically a miniature computer on a chip, with IO designed for interfacing with things in a programable manner... it worked well, and is cheap ~ $4 or $5 (and you can get them for free if you ask... they give away lots of samples to students). I think it had some built-in module for interfacing with a serial port, but if not that should still be possibly manually, with some assembly coding. The chip didn't have any digital-to-analog converters on it that I can recall, but with LEDs I think switching them on and off really fast for varying periods of time is better than driving them with an variable signal anyway. It also was not capable of driving as much current as I suspect you want, so you'll need external amplifiers, but a handful of discrete transistors works fine for that purpose (and is dirt cheap). The only thing I can think of that you might actually have to pay for is the power supply for the whole thing. And maybe a board to soder on.
Hm... come to think of it, I don't know how to write out to the serial port on any OS more modern than DOS. But you can probably figure that out with a tiny bit of googling.
Maxim Onewire tech makes this easy (Score:2, Informative)
Another source for the balls... (Score:2)
I've seen clear/white/translucent ones... it should keep a spherical shape if nothing presses on it once you punch a hole through it for the LEDs. If not, just use a glue-gun to seal it up.
It'd look cool hanging in the window or over your computer.
Others have suggested parallel ports, and I agree completely.... all you have to do is toggle a bit to turn on an LED.
1 wire each to 3 LEDs gives you 3 bits or 8 colors (if you count "off" as a color).
Instead, use resistors to y
Already done, partly... (Score:2)
I'm going to update it soon to fix a few odd conditions with WinXP data sources and revamp it to allow use of other peripherals and other data sources, and allow you to wri
Portable? (Score:4, Insightful)
This thing this where cool tech should be going. Make it small and wireless and you have a killer app.
A *great* source of information on this is... (Score:4, Informative)
While you're reading it, also pay attention to PIC Chips [piclist.com] and Basic Stamps [parallax.com], which would be a great way to control your orbs without needing a PC (especially the cheaper PIC chips from someone like Microchip Technology [microchip.com])
If you're married to the PC concept, you'll also find advertisements for devices which are controllable via USB. Kinda nice for furure serial-less PCs.
Lastly, though it's a bit out of date at this point, take a look at "Controlling the World With Yor PC" by Paul Bergsmann (ISBN: 1878707159). Great stuff about parallel port interfacing.
Good luck!
Building Your Own Glowing Cyber-Balls? (Score:2)
But seriously (if it's possible after a comment like that), I've always thought that visual cues are the best way to convey information without you having to mindfully seek that information. It's easy for the brain to see a whole room full of things, but only notice the difference when a moth starts flying around.
Likewise, you could be monitoring all kinds of things without much conscious thought, but be on top of it wh
Actually rather easy with the parallel port. (Score:5, Interesting)
1) 25 PIN MALE DB Connector (like would plug into the parallel port) - OR, probably easier, grab like a 6' or longer 25pin Parallel Printer or extension cable and chomp the end which doesn't plug into the computer off.
2) 8 superbright leds.
3) 8 10K resistors.
4) 8 2N2222 or other NPN transistors (Just go to radio shack and get a bulk package of "NPN switchint ransistors")
5) 8 "smaller" resistors. Like roughly 500 ohm, but be prepared to experiment with the value. Lower value=brighter, but if you go too low you will burn out the LED. There *IS* a formula for the smallest permitted value. I won't go into that here.
6) Perfboard to put it all on
7) 9 or 12V DC wall-mount supply (or similar).
A little background:
The parallel port on the PC has 8 outputs, on pins 2-9 of the 25 pin connector. The ground for these are on pins 18-25.
You can technically get away with just wiring the led directly to an output port, then to a resistor which then connects to the ground. Google for "parallel port led"
However, it is likely that you will need more current than the parallel port will provide. For this you can use a transistor to act as a solid state switch.
Here's a description of the schematic:
For each output pin:
1) Wire the output pin on the parallel port to one side of a 10K resistor.
2) Wire the other side of the 10K resistor to the base pin on the transistor.
3) Wire the emitter pin on the transistor to circuit ground.
4) Wire from the collector pin on the tranmitter to the pin closest to the "flat edge" on the LED.
5) Connect the other LED pin to the "smaller value" resistor.
6) Connect the remaining pin on the "smaller" value resistor to the + wire of the power supply.
ALSO, do the following:
1) Connect the ground pins (18-25) of the parallel port connector to the "circuit ground" mentioned above.
2) Connect the "-" wire of the power supply to the "circuit ground".
You can test this before plugging into the computer by plugging the DC adapter in and then jumpering between the + wire of the power supply and each output pin on the cable you are going to plug into the computer. The corresponding LED should light.
I'd recommend just doing the first led first to make sure everything works.
NOTE: YOU CAN BLOW OUT THE COMPUTER PORT IF YOU DO THIS WRONG. I HAVE NOT CHECKED THE ABOVE DESCRIPTION SO IT MIGHT BE WRONG AND MAY CAUSE THIS EVEN IF YOU FOLLOW THE INSTRUCTIONS EXACTLY.
If you need more LEDS on a given output (like 2 or 3 to get enough light), you can just connect a LED/resistor pair in parallel with the existing one (all of the LEDS are connected to the transistor, all of the resistors are connected to the + power supply connection, and each led is connected to it's own resistor).
You basically drive this by outputting data to the parallel port. You output a single byte at a time - the most recent byte is what the leds are set to on or off.
If you want to vary the brightness of the LED's you can actually do it by turning them on and off quickly in software. A simple timing loop which have the leds on 50% of the time would result in the leds being 50% dimmer than if they were just left on. Of course you have to do this fast enough so they don't "flicker" or blink.
Interesting Project (Score:2, Insightful)
Take one of these balls in a smaller form and place it within your computer. Have it's color be entirely temperature based.
As the heat rises, it shifts from an electric blue to a horrifying shade of red.
The basic option (Score:3, Interesting)
Color-Reactiveness? (Score:3, Interesting)
Now wait just a darn minute here..
Using color to reflect the state of an object?
Color-reactiveness? [linuxjournal.com]
Oh wait, thats only for insane people!
Use Atmel microcontrollers (Score:5, Informative)
First of all, the 2002 Burning Man project [sowbug.com] I did that involved a couple hundred RGB LEDs spinning in a persistence-of-vision-based nighttime animated display. Here [burningman.com] is the best picture of it. This [sowbug.com] is the page about the development details.
The LEDs I used were manufactured by Kingbright [kingbright-led.com]. The model I used, the LF819EMBGMBC, is big (10mm) and relatively bright for an RGB LED. I couldn't find any U.S. retailers that actually told the truth about whether they stocked them, so I ended up buying 400 directly from Kingbright for I think a little more than $2.50 each. I still have a few left.
Atmel AVR microcontrollers [atmel.com] are just a few bucks each, easily programmable with the STK-500 [digikey.com] programmer, also cheap at around $80. I used the ATMega8, which was more than sufficient for my needs. I imagine the original Slashdotter could use one of the ATTiny MCUs, since it really needs only 3 or 4 I/O lines (fewer depending on how many helper circuits you decide to use).
The boards were manufactured by PCBExpress [pcbexpress.com] and I was very happy with them. The CAD/CAM software was Eagle [cadsoft.de], which except for some crashing/redrawing bugs was really amazing. The version I used was free. I tried to buy it but CadSoft has (had?) a fairly crazy pricing scheme that actually left you worse off in terms of acceptable usage if you paid them money than if you used the free version.
The best part of using the Atmel MCU was that GCC can cross-compile [avrfreaks.net] for it. So you're basically writing regular old C code but it runs on a little tiny piece of silicon. You'll want to subscribe to the quite active avr-gcc [avr1.org] mailing list. Save every message from Marek Michalkiewicz; in my opinion he's the god of GCC-for-AVR development.
PREMIUM content?! WTF... (Score:2)
They want me to pay $1 a week to make this thing to glow/pulse to a particular set of data?! There isn't anything I can think of that I couldn't get for 'free' with a script written in [favorite-language].
(Unless the DMCA applies somehow...)
Re:PREMIUM content?! WTF... (Score:2)
"The Ambient Orb is simply plugged into any standard 110V power outlet and it is up and running on a nationwide wireless network - no internet connection required. The Orb does not attach to a PC."
I'm probably right about the DMCA part, though!
Found what you want... (Score:3, Informative)
1) These are available from Brookstone [brookstone.com] for $150...
2) Delcom Engineering [delcom-eng.com] has a "USB Visual Signal Indicator". This includes RED, GREEN, and BLUE LEDs, Piezo buzzer, 2 meter USB cable and USB powered circuit. The cost? $69.00 each... All you need to add is a globe...
If you want to play around with this stuff, Delcom Engineering [delcom-eng.com] also makes USB chips, cables, etc. and they make USB development board for $49.00 that you could you could use to build what ever you wish...
A few hardware links ... (Score:3, Interesting)
Okay, maybe a few basic hardware References, HI-LED, Breadboard, and Chip Products links would help.
Reference - AtariArchives Electronic Computer Projects [atariarchives.org]
Reference - Electronic Circuit Guidebook Sensors [halljava.com]
Reference - Robot Building For Beginners [robotbooks.com]
Global Specialties Breadboards [tequipment.net]
Eductional Kits USA including LED kits [kitsusa.us]
High Intensity (HI) LED Source Discrete LEDs, LED Panel Mount Lamps, Based LED Lamps, SMT LEDs, PCB LEDs [ledtronics.com]
RF Digital Corporation HI-LED White Red Yellow Blue Green [rfdigital.com]
National Semiconductor Chip Products Catalog National Semiconductor Products [national.com]
PMC-Sierra Chip Products Product Directory [pmc-sierra.com]
R.T.Nollet, Chip Products, Australia [nollet.com.au]
There you go; it should be enough to get you started on the hardware. Others that are far better at software can help with some of the required programming resources. If you can afford an old logic analyzer (maybe 8/16-pin, at surplus stores) for the I/O buses they can help you optimize your code. Years ago, (when I did) I would have used, an appropriate Hex/Machine code to do a small project like this. If you and a couple colleagues/friends succeed at this level ... the lessons you teach yourselves and experience obtained will be significant ... not many universities teach at this "wide-concept" "Master-O-None, Jack-O-All" level anymore. Very few Geeks under 40 years old (I believe) would be able to do what you are thinking about even less if they have a college degree that pushed them into a "high pay/viz" specialty at a young fragile age.
OldHawk777
Reality is a self-induced hallucination.
An Animal Book 4 u (Score:3, Informative)
I highly recommend it.
Robot Builder's Bonanza (Score:3, Informative)
Hack this: prebuilt color-changing LED balls (Score:3, Insightful)
-Mark
To make lots of colors, blend using duty cycling (Score:3, Informative)
Give 1-wire network hardware a try . . . (Score:3, Informative)
Use for old chips? (Score:3, Informative)
Think anyone would be interested?
Then again, do I really want to deal with the support emails from people who can't hold the right end of a soldering iron...
Linux source (Score:3, Informative)
Re:this looks familiar... (Score:2)
I couldn't help it.. :)
Re:this looks familiar... (Score:2)
Poor soul.
Re:this looks familiar... (Score:2)
a cookie to who figures it out.
Re:Mr T. (Score:5, Funny)
Re:Some simple accessible plans (Score:3, Informative)
I agree with hotair's use of the ULN2803 chip; however, I think you need a 74HC373 octal latch. Basically when you send a byte to the printer, you need the latch to "catch" the byte and hold it after the signal goes away. The latch is controlled by 1 of the printer control lines that goes low when the data on the bus is valid (I think it is the STROBE pin).
If you want more than 8 leds, you
Re:Microcontrollers (Score:2)
Which in this case, he absolutely does not need. AVR is horrible overkill for this. I'd be looking for a 16 or even 8-pin PIC or Motorola HC08.
Re:The shape may be the hardest part (Score:3, Interesting)
Yeah, like it's that easy. Have you ever tried to work with acrylic and hardener? It's a MESS. It's the consistency of motor oil and after some air exposure it starts to get sticky. Worse, it smells like paint * 100. Finally, I can guarantee that you WILL NOT be able to 'cast' a sphere. The inside of a small toy ball might be your best bet, but I have my doubts about how the mechanics of the casting process would play out.
Those discouraging words said.... D