Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/02/12 16:20
Read: times


 
#185266 - Processor can be used
Responding to: ???'s previous message
For most LED, you should get enough light with 1mA current.

Let's assume that your LED needs 2V. The actual voltage depends on color and model but around 2V is close enough for your green LED.

If you power your processor with 5V, then you have 3V of "overvoltage" you need to burn over the resistor.

U = R * I so R = U / I.

R = (5V-2V) / 0.001A = 3/0.001 ohm = 3kohm. So a 3.3kohm resistor should work well. And connect LED in series with resistor between VCC and the processor pin. Draw pin low to turn on the LED, i.e. you get inverted logic. But it is easy for the processor to sink current.

List of 32 messages in thread
TopicAuthorDate
AT89S52 and ISP problem            01/01/70 00:00      
   Quick Schematic Obversation            01/01/70 00:00      
      hmm            01/01/70 00:00      
         Your Reset Input            01/01/70 00:00      
            Thanks!!            01/01/70 00:00      
   Your schematic is wrong            01/01/70 00:00      
   The AT89S52 needs a reset chip!            01/01/70 00:00      
      The AVRISP-2 is a USB device            01/01/70 00:00      
   what an AWFUL design            01/01/70 00:00      
      Isn't mine!            01/01/70 00:00      
         Compare several schematics            01/01/70 00:00      
            Thanks!!            01/01/70 00:00      
               Sink or source? Does matter a lot!            01/01/70 00:00      
                  Not granted            01/01/70 00:00      
                     Processor can be used            01/01/70 00:00      
                        Yeah..            01/01/70 00:00      
                     cure for ignorance            01/01/70 00:00      
         you forgot the quotes            01/01/70 00:00      
         well            01/01/70 00:00      
            Funny            01/01/70 00:00      
               RC resets are evul            01/01/70 00:00      
                  So?            01/01/70 00:00      
                     Not necessarily,,,            01/01/70 00:00      
                     I guess you are a student / hobbyist            01/01/70 00:00      
                        Oh..            01/01/70 00:00      
                        Even or better just then...            01/01/70 00:00      
                           Where to apply 100nF?            01/01/70 00:00      
                              Shortest possible distance            01/01/70 00:00      
                        especially not for a hobbyist            01/01/70 00:00      
                  RC RESET worked fine for years ,,, but ...            01/01/70 00:00      
               no, not "will" but "is likely to"            01/01/70 00:00      
                  an added IMPORTANT comment            01/01/70 00:00      

Back to Subject List