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.

Problem with current when 8051 is driving a relay

Status
Not open for further replies.

chardbiggie

Junior Member level 1
Joined
Dec 19, 2004
Messages
15
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
206
i am using a ds89c420 Ucontroller, using the ports as output to drive a relay. I know the Ucontroller has low current output so i use 2n3904 transistor but the problem is when the relay is connected the output of the ports, goes down from 5v to 0v.
 

darlington pair to operate 12 relay

Are you using a resistor from your IC to the base of the transistor? You should size this resistor for the current drive capacity of the chip. Try 1 mA as a first guess if you have no other information. The transistor beta should be about 100 so it can draw 100 mA with the collector.
 

bc517 relay

I use 4.7k resistor between 8051 port and base of transistor and also 4.7k pullup from port pin to Vcc. I generally use BC547. Even 2N3904 will work.
 

8051 relay

Try to use a uln2803 chip. It includes a EMI diode.
If the relay requires more than 5 VDC you will require a separate power supply

Added after 33 seconds:

Try to use a uln2803 chip. It includes a EMI diode.
If the relay requires more than 5 VDC you will require a separate power supply
 

uln2003 bistable relay driver maxim

as klystron said , using the relay driver chip (uln2003) is a very good solution but if you want to use transistors to drive your relay you should put diode as a reverse connection in parallel with the relay coil to avoid the effect of coil charging in the transition time when driving the relay ..
BR, Vonn
 

driving multiple latching relays

Another solution would be to use a fet off the port pin on to the fet`s gate then you will only need the drain connected to your realy with a diode to remove the back emf as the relay coil energises/deenegises.

Barrybear
 

bjt+relay+driver

Hi, compute your base current that is enough to generate the proper collector current for your relay current.

On this basis you will decide what base resistor you will be using.
 
8051 drive relay

as far as I remember the 8051 has a weak pull-up current source of about 100uA at his ports. It is not able to drive a ULN2803! You will need an external pull-up resistor. The current consumption is to high for more channels.
An external FET is only a solution if it is a logic-level FET ! You need a flyback diode.
The best way is to use a intelligent switch (HITFET) like BTS117 or smaller.
Or look for a driver like ULN2803 with CMOS inputs.
 

br-500 relay schematic

thanks for the replies, it work already but i just used 2 2n3904 in a darlington pair, thanks anyways
 

connections of 8051 and relay using uln2803

if you will drive multiple relay use uln2x03 they sources 500 ma per collector
 

uln2803a latch relay

you must take into consideration the base current of the 2n3904..if still the relay doesn't trigger,try to use darlington pair instead..
 
driving a relay using 8051

chardbiggie said:
thanks for the replies, it work already but i just used 2 2n3904 in a darlington pair, thanks anyways

I usually use one BC517 npn darlinton transistor for driving relays. I noticed that if i change this to a single normal BJT, the relay won't work. Same like yours :p.
 

8051 how to drive a relay

And what about driving single coil bistable relay? Bistable relay is wery good in power saving application. But single coil bistable relay is driving (switching On an OFF) by reverse polarity pulse. Any good schematic solution to this driver?
 

8051 and port relays

what do you mean by this "reverse polarity pulse"
 

bistable relay schematic pulse

At the single coil latch relay coil is usually deenergized. Only for switching some short pulse is applied to coil. One polarity pulse is switch relay to On state and reverse polarity pulse is switch to Off state. Good appnote from Maxim for driving this relays is here
**broken link removed**
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top