are resistors needed for 3v signals?
pico
Posts: 29
in Propeller 1
Hey guys,
I'm going to use a 7-segment LED for this project that involves the Propeller chip.
I've seen a few people who drive LED at 3V signals without any resistors, saying that it's safe to do so.
Is that true? Can you guys show me de wey?
Thanks.
I'm going to use a 7-segment LED for this project that involves the Propeller chip.
I've seen a few people who drive LED at 3V signals without any resistors, saying that it's safe to do so.
Is that true? Can you guys show me de wey?
Thanks.
Comments
-Phil
just one. so 7 leds.
Two 4-terminal SMD resistor networks take up hardly any board space and cost only a few cents and can handle all 8 segments continuously without being stressed.
-Phil
TL;DR while it is probably safe to hook up one or even two or three discrete LED's without series resistors, hooking up an entire 7-segment display (especially if more than 1 digit) is likely to exceed the power dissipation limit of the entire chip. Also, while discrete LED's tend to be fine with 20 or more milliamps of drive, 7-segment displays are meant for a bit less, and you might be overdriving the display too.
If you ensure only some maximum number of the 7 segment LEDs are ever lit at the same time so you don't overload the Propeller's total pin current you might be able to somewhat "safely" drive your LED display without resistors. However if you are ever exceeding the LED segment current limits temporarily you want to make sure your program doesn't hang and keep too many outputs on when they shouldn't be or you could degrade the LED life or burn it out. With an AVR micro I would also use a watchdog interrupt and turn off the LEDs if it triggered (just to be sure). Prop doesn't have that capability so be sure to debug your LED loop code first so you know it won't hang and wreck your display.
The TDM method can be used effectively to dim the LEDs and the brightness then depends on the duty cycle you use. Just keep the frequency high enough to stop flicker. Like a few hundred Hz or more.
https://www.digikey.com/product-detail/en/bourns-inc/4608X-102-221LF/4608X-2-221LF-ND/1089124
They're both tidy and easy to solder.
-Phil
You do realize that the reason you have little experience is due to your own attitude. You had no experience with the Prop chip before you gained experience, it is the same with everything and so you shouldn't hold back for that reason excuse.
There's nothing super messy about smd resnets and they are so easy to solder, even manually with an iron as long as you have flux available, the whole process is nice and clean and smooth. I don't know why you would need vias if the top track goes from the Prop to the resnet and then to the display.
A word of warning about the use of TDM/PWM to limit the average current to LEDs in general, it is all very good and well when the software is running, but if there is a glitch and the outputs are left on at 100% especially when multiple outputs are driven, this can lead to something far more messy.
I haven't used 7-segment LEDs in a long time but here's the track layout of a resnet that is driving LEDS. As you can see, it is straight and clean.
btw, the trick to achieving a clean layout is sometimes due to being in control of the software. For instance you many find that to drive the 7 segments in proper order that you need to crossover and use vias. However the 7-segment decode is usually done by table lookup. By rearranging the bits in each character you can run the tracks directly to a segment and simply remap that in software.
Well, sounds right. I'll go with the SMD resistors. I've tried soldering a TQFP package AVR and that was a scary experience, since I am a student and PCB manufacturing in low quantities can go up to 40-ish dollars.
-Phil
You could drive the common line to the display from a IO line as well,and tie it to reset through with resistor and a capacitor. The capacitor,discharges when low and charges when high. The cog is responsible for making sure that the duty cycle is such that it is not active long enough to trip the reset. If it is, then the cog resets,all the lines go low and the propeller restarts. Simple watchdog timer.
I haven't tried it because I don't want to cross the streams, or burn out a propeller. But I am curious.
Are you trying to stop all life as you know it instantaneously, and explode every molecule in your body at the speed of light?
Back to the topic at hand. For the seven segment display, its not really worth the potential trouble to leave it out,as you can put the resistor on the common lead if your not trying to save pins. If you ARE trying to save pins then there are tricks where you can reduce the needed pins. There was a post on it a few months ago. Do a search for "Charlieplexing"
Electromigration
Absolute Maximum Rating
Sorry if that was unclear...it was actually easier to program than to explain.
thanks,
Jonathan
-Phil
-Phil
+1, and the higher peak currents, power dissipation, and more complex scan timing required to get near equal brightness from the leds make this approach more trouble than the few pennies saved are worth.