connecting a led
Robot Freak
Posts: 168
WATCH OUT!
Not the normal way!
Because my numeric led bar (or how you call such thing) has only 2 connectors for the Vdd.
So the normal way (one of the eight pins to propeller, the Vss connector to the ground) will not work.
So my question is, how do I interface this with the Propeller.
Maybe this is an easy question after all, but we will see.
Kind regards,
Robot Freak
Not the normal way!
Because my numeric led bar (or how you call such thing) has only 2 connectors for the Vdd.
So the normal way (one of the eight pins to propeller, the Vss connector to the ground) will not work.
LED BAR ----------------------------------- | 1 2 3 4 5 | | LED1 LED2 Vss LED3 LED4 | | | | | | LED5 Led6 Vss LED7 LED8 | | 6 7 8 9 10 | ----------------------------------- | | -------------------------o Vss
So my question is, how do I interface this with the Propeller.
Maybe this is an easy question after all, but we will see.
Kind regards,
Robot Freak
Comments
If it's common-cathode, you connect the common lead to ground. If it's common-anode, you connect the common lead to +3.3V. You need current limiting resistors on all the other leads and those get connected to the Propeller I/O pins. On a common-cathode display, you make the I/O pin high to light the LED. On a common-anode display, you make the I/O pin low to light the LED.
See the attachment.
Post Edited (Robot Freak) : 3/10/2008 5:43:59 PM GMT
I suggest you read the Wikipedia article on diodes (Google "wiki diode") if you're still confused.
Post Edited (Mike Green) : 3/10/2008 5:44:02 PM GMT
Is it also possible to connect the common ground by resistor, to use less resistors?
Thanks,
Robot Freak
As a side comment to Mike's 'You can do anything you want....",
I have a design which uses 6 '7-segment' LEDs (actually 8 segments, with the DP). They are common cathode type driven by FETs. The anodes are driven via resistors (100 Ohm) from a PIC running on 5v. Green LEDs, quite visible in this configuration, even though they are multiplexed about 80 Hz rate.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
Multiplexing also the segments will give an excellent brightness distributen, but also make it even dimmer.
I never succeeded in an acceptable brightness as well as brghtness distribution without "true" drivers....
I think I'll stay with the 6 resistors, to keep it easy,
and error free.
Kind regards,
Robot Freak
This is a schematic from an atomic clock I created a while back with an SX chip.· The circuitry may give you some ideas.
RWC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Russell Crow
Project Manager
Cohesive Automation Inc.