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.

how to use relay to drive LED by using micro-controller.

Status
Not open for further replies.

saba.asif

Newbie level 2
Joined
May 15, 2014
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
47
plz tell me that how to use relay. i want to drive led by using relay. input to relay is given by micro-controller.
 

yassin.kraouch

Advanced Member level 2
Joined
Jul 5, 2009
Messages
631
Helped
40
Reputation
80
Reaction score
40
Trophy points
1,308
Activity points
5,094
why you want to use relay ? what is the power of the LED that you want to use ?
 

jiripolivka

Advanced Member level 5
Joined
May 21, 2010
Messages
2,832
Helped
832
Reputation
1,662
Reaction score
802
Trophy points
1,393
Location
Santa Barbara
Activity points
22,012
If you need to drive a LED or a relay from a microcontroller, you need a driver circuit.
One of such circuits use a "logic MOSFET" which s controlled by uC logic output, and can switch a larger current (10A) under a higher voltage (up to 60V). I use IRF 540 in such circuits.
Google IRF540 for a data sheet and application circuits. It is simple and you need only a small heat sink for currents >2 A.
 

hemnath

Advanced Member level 3
Joined
Jun 24, 2012
Messages
700
Helped
61
Reputation
120
Reaction score
57
Trophy points
1,308
Location
Chennai
Activity points
6,566
Please check the attachment. It may help you.

I'm not sure why you need a relay to glow an led.
There are very easy methods to glow the led.
1. You can connect the led to uC pin through a resistor.
2. else, Using the transistor or mosfet.
 

Attachments

  • Sheet1.pdf
    51.9 KB · Views: 3

yassin.kraouch

Advanced Member level 2
Joined
Jul 5, 2009
Messages
631
Helped
40
Reputation
80
Reaction score
40
Trophy points
1,308
Activity points
5,094
Please check the attachment. It may help you.

I'm not sure why you need a relay to glow an led.
There are very easy methods to glow the led.
1. You can connect the led to uC pin through a resistor.
2. else, Using the transistor or mosfet.
it is not evident that he can connect the LED to the pin of the microcontroller, it can be that the microcontroller cannot sink the current required by the LED
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top