Newbie looking for some advice
billiam
Posts: 12
Hey all, this is my first post here. At least 7 years ago I picked up a Basic Stamp 2 intending to make something with it but never ended up even opening the package. Now I have a project in mind and figured the Stamp would be perfect for the job. I'm somewhat of a beginner to stuff like this though (I'm more of a software guy).
Here's my project. I would like to build a circut to control 10 or so RGB LEDs, to be controlled by software on my computer. My vision is that these LEDs can serve as status indicators for different things on my computer (for instance, say, based on how much email I have in my inbox, the color of one LED will go from green to red, or an LED that changes color based on processor utilization.)
I have a few questions as to how to do this:
First, I'm not sure how old this chip is. It appears to look the same as everything on this site and has a part number of BS2SX-IC, along with a Super Carrier board. The interface to the computer is a Parallel cable. Will this chip be able to be connected to my computer and recieve commands for the lights?
Will the BS2SX-IC be able to drive 10 RGB LEDs?
Finally, how exactly should I go about doing this? What kind of hardware will I need? Are there any similar projects or tutorials that I could be pointed to?
Thanks in advance,
Billiam
Here's my project. I would like to build a circut to control 10 or so RGB LEDs, to be controlled by software on my computer. My vision is that these LEDs can serve as status indicators for different things on my computer (for instance, say, based on how much email I have in my inbox, the color of one LED will go from green to red, or an LED that changes color based on processor utilization.)
I have a few questions as to how to do this:
First, I'm not sure how old this chip is. It appears to look the same as everything on this site and has a part number of BS2SX-IC, along with a Super Carrier board. The interface to the computer is a Parallel cable. Will this chip be able to be connected to my computer and recieve commands for the lights?
Will the BS2SX-IC be able to drive 10 RGB LEDs?
Finally, how exactly should I go about doing this? What kind of hardware will I need? Are there any similar projects or tutorials that I could be pointed to?
Thanks in advance,
Billiam
Comments
As for your project, the easiest way would be to talk back and forth via a serial (or usb) connection. You have to write an application on the computer to gather the data you need then send it to the stamp.
Limit the LED current to 10 mA or so and the Stamp will be happy.
Cheers,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
As for the software, as long as I know that I can communicate with the Stamp through the serial interface, I should be good to go.
Again, I am defintiely a bit of a newbie when it comes to building things like this. Are there any tutorials or examples that I could be pointed to?
Thanks!
First, obviously I won't be able to control 10 or more RGB leds (which is really 30+ individual leds) from the stamp's IO pins without some help from another IC from what I've read. Also, powering more than one of them will draw far too much current for the stamp to source.
So, I've read about the 4051 multiplexer which controls 8 IO devices 4 stamp pins. Would this be a good choice? I've also read about Darlington transistors. If I used a couple 4051s to control my RGB leds, would I still need the Darlington's to provide the necessary current?
Secondly, as you might have seen before, the individual leds in an RGB led are rarely all the same brightness. The particular led that I am using is something like 1200mcd red, 3600mcd green, 700mcd blue. What can I do to make sure that I am producing the correct color that I want? Currently I am limiting the brightness of the red and green counterparts by their ratio to blue's brightness, as in:
PWM RED, INTENSITY/2, CYCLES
PWM GREEN, INTENSITY/5, CYCLES
PWM BLUE, INTENSITY, CYCLES
Any thoughts?
2) The eye has different sensitivities to different colors, so a red, green, and blue LED with the same mcd rating would look different in brightness. One way to adjust this is to use different amounts of current for each color to balance the apparent brightness.
The Stamp I/O pins are rated for about 20mA of current (25mA under some circumstances). The two groups of 8 pins (P0-P7 and P8-P15) can each handle a maximum of 50mA of current. The whole Stamp is rated for 100mA current through the Vdd pin and 150mA through the Vss pin. Allow more than that and something will melt eventually. These are instantaneous values!
You may multiplex LEDs so that only one is on at a time, but the average current will be quite low (20mA / 15 LEDs = 1.3mA) and the visual intensity is related to the average current.
i'm newbie...
is there anybody can help me??
i was in a progress build a robot.. i had a prblem wih ultrasonic sensor parallax ping))) that i used..
is there any one that had been used it??
can you tell my the source code for ranging in C language...
please help me ASAP
There is some sample code in C for the Arduino that people have mentioned. It's on one of the Arduino sites.
So, I'm sold on the fact that I require an LED driver chip for my project. Here's my requirements: I'd like the possibility for my project to scale to more than 16 rgb leds at some point. I want the chip to be able to do PWM as well. So, my stamp would be able to send the driver chip a command, to say, turn on led 0 (say, a red channel) to a specific pwm intensity, and stay on until I send another command. Also, the chip would need to be able to power each led with 20ma (i am using common cathode rgb leds.. would common anode be better?)
I've seen so many LED driver chips and most of them seem to do what I'm looking for.. is there a specific chip that anyone would reccommend that does what I would like it to do? (and would be moderately simple to operate with the stamp)