Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

Problem with relay driver as the LEDs of relay are always on

Status
Not open for further replies.

auto_mitch

Full Member level 3
Joined
Oct 14, 2004
Messages
172
Helped
16
Reputation
32
Reaction score
3
Trophy points
1,298
Activity points
1,240
i have built a pcb with an atmel tiny2313 which drives a few relays. the mcu drives the relays through the 2N3904 transistor. parallel with the relay's coil a 1N4148 diode and a 1k resistor with a led are connected. the power supply of my circuit is 24V. The problem is that, without the mcu on board the leds of each relay are always on. what is going wrong?
 

IanP

Advanced Member level 5
Joined
Oct 5, 2004
Messages
7,942
Helped
2,308
Reputation
4,618
Reaction score
531
Trophy points
1,393
Location
West Coast
Activity points
66,459
Re: relay driver problem

Bases of transistors are floating and can pick-up 'something' ..
Try to add 10-100kΩ between the Bases and GND (Emitters) ..

Regards,
IanP
 

Slayerza

Full Member level 5
Joined
Oct 22, 2005
Messages
296
Helped
27
Reputation
54
Reaction score
5
Trophy points
1,298
Location
South Africa
Activity points
3,462
Re: relay driver problem

I agree, the base of the transistor is not completely off when the MCU is not applying power.
 

dsPIC24F

Member level 3
Joined
Oct 4, 2007
Messages
64
Helped
12
Reputation
24
Reaction score
0
Trophy points
1,286
Activity points
1,533
relay driver problem

or use some relay driver chipset.
 

madhan

Newbie level 5
Joined
Feb 3, 2007
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
CHENNAI,INDIA
Activity points
1,315
Re: relay driver problem

you can drive relay by ULN2003 , cost is also very low and easy to interface with microcontroller
 

xorcise

Full Member level 2
Joined
Sep 27, 2007
Messages
124
Helped
20
Reputation
40
Reaction score
1
Trophy points
1,298
Location
NYC
Activity points
2,169
Re: relay driver problem

If your relay load requirements are not too heavy (over 1/2 Amp on the contacts) I can recommend the Fairchild HSR312 which I use in several projects. Opto-isolated, up to 400V for the load, super-low "contact" resistance, and bi-directional (AC capable) on the output.

http://www.fairchildsemi.com/ds/HS/HSR312.pdf

 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top