Controlling a Common Anode 7-segment LED display using a Stamp?
concept
Posts: 12
Is it possible to control a Common Anode 7-segment LED display using a Stamp? I guess more specifically, how would I go about doing this? Would sending LOW signals to each pin that is connected to a corresponding LED mimic the effect of grounding that specific LED?
Curious about this, thanks.
Curious about this, thanks.
Comments
Take a look in the StampWorks Manuel. Pg. 60 Experiment #8. Its on the Parallax web site, Store page, And then StampWorks.
I'll go and find the link and post here. This new found love for the 7seg display has become quiet a topic.
http://www.parallax.com/Portals/0/Downloads/docs/books/sw/Web-SW-v2.1.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA
Post Edited ($WMc%) : 2/13/2010 2:50:16 AM GMT
Post Edited (concept) : 2/13/2010 6:49:32 PM GMT
You need to invert the DATA statments for common anode.
"Digit0 DATA %11000000" instead of "Digit0 DATA %00111111"
don't forget to invert the commons as well.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA
This does not work for me.
Like I've said, I've tried this already with no effect. I'm a bit stumped.
What all of us have described does work. Without a schematic and a source file, we can't tell where what you have differs from what we've described.
When the Stamp pin goes high, it gets set to roughly 4.7V. Depending on the Vin voltage, that won't turn off the LED. When the Stamp pin goes low, it gets set to roughly 0.3V and that will turn on the LED brighter than when it's high. That's the behavior you're describing.
For a discussion of the use of switching transistors, go to the main Parallax webpage and click on the Resources tab. You'll see a link to the Nuts and Volts Columns index. Go there and select column #6.
Use the Vdd PIN.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA
Take a look at ohms law. If you parallel 2 - 1K resisters You Will have 500 ohms, close enough to 470 ohms for this project.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA
Disconnect the display from the stamp. Next connect the common anode to Vdd. Now through the 500 ohm resister connect the Vss to A,B,C,D,E,F,G,and DP pins on the display one at a time.
Buy this I mean apply power to "A" on the display with a 500ohm resister to limit current. Does it light. If so try pin "B" on the display.
If some light and some don't ,You have some burnt-out leds. If none will light You may have a 7seg.display with built-in resisters. These displays are rare but their out there.
Can You find a part#on the displays?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA
Through VIN it works, but any 5v supply to the anodes it does not want to light.
Part # is a Lumex LDS - AD16RI. Good luck finding the Datasheet, I forgot how I found it.
I also tested a regular LED through the 5v on my homework board with a resistor.. works perfectly, so I don't think it is an issue of a bad voltage regulator on the board or connection to VDD.
The datasheet circuitry does not show any inboard resistors, there are apparently 4 LED's to each segment though.
Post Edited (concept) : 2/14/2010 12:28:05 AM GMT
If things light when you connect the display to Vin (assuming Vin is 6V or higher ... you didn't say), then you don't have a standard common anode 7-segment LED display. Without a datasheet, I don't know what you have and there's no way to advise you how to make it work.
I think You have a odd-ball display. I'll run down the part number and see what I can find.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA
I realize this, but I wanted to give it a shot anyway because I did not understand why it wouldn't light up under 5 volts with a resistor.
VIN is 6-9 by the way.
Post Edited (concept) : 2/14/2010 12:54:58 AM GMT
·Heres the spec sheet (below). Its not very helpful.
It says 5volt and not 4.7 to drive the leds
I think the level shifting transistors are needed for Your project like Mr. Green spoke of earlier to make your display work.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA
The data sheet is as clear as Mud. Not very helpful
Try running My test above but connected to Vin.
Use a 1Kohm resister to limit current.
Use a volt meter to read the voltages at the led display.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA
Again, it's another case of "I'm doing everything right and nothing wrong and it doesn't work" --·and then we get the details, the rest of the story.