Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

push buttons + led interface to avr pins

Status
Not open for further replies.

sherazi

Banned
Joined
Feb 15, 2010
Messages
388
Helped
61
Reputation
126
Reaction score
61
Trophy points
1,318
Location
Muscat, Oman, Oman
Activity points
0
i am interfacing push buttons and leds to avr in such a way that when the button is pressed the led also glows.. now the point is that i want it to glow by itself and not by mcu ... check the circuit ...attached..
84_1286179499.png


when i used the same circuit during testing using 5mm LEDs the system worked.. a valid zero was avaible on pin of mcu, but hwen i made some prototype boards using SMD LEDs the PIN doesnt get valid zero, i checked the Voltage across the LED when it was on and that was 2.1 V ... what i can i do to make it valid one...
 

hi
you should solve this problem with connect avr pin in below led & turn on pull up resistor in avr
if turn on led with low light must be reduce R1
 
  • Like
Reactions: sherazi

    sherazi

    Points: 2
    Helpful Answer Positive Rating
thanks alot... i know LED isnt bright with 4.7K but its the level i want...
but 1 querry ? why to turn on internal reisistor if external pull ups are uesd?
 

Hi,
When the LED is ON, it will have typically 2.0V across its terminals. That's why you are getting invalid "Zero".
As mohammad hassanzade said, you need to connect your AVR to the LED's cathode pin so you can get a valid "Zero" when the button is pressed.

Hope this helps.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top