Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 28th June 2004, 01:51 AM   (permalink)
Default Pic to Transistor to Relay, Amperage handeling question

I want to use my pic to turn on a 12V relay in a car. The way the relay is wired up now, the vehicles computer ground the relay control wire and the relay kicks on (ie: the relay has supply always connected and triggeed by grounding the control pin)


My original plan was to use the pic and ground the control wire with a pic pin. However, I did some reasing and found out that as much as 1amp can be drawn when the relay switches on... I dont think the pic will be happy with 1amp sinking into it. (am i wrong?)

So I decided a transistor would be a good idea. I asked somthing about the problem and someone told me an N-Channel Transistor would allow me to use 12V through it but be triggered by the 5V output of a pic.

But I figured that now, I'm not sending 12V throught the transistor, I'm using it to connect 2 grounds. (see diagram)

Can I still do this?
Attached Images
File Type: gif question_88.gif (4.6 KB, 530 views)
iso9001 is offline  
Old 28th June 2004, 07:17 AM   (permalink)
Default Re: Pic to Transistor to Relay, Amperage handeling question

Quote:
Originally Posted by iso9001
So I decided a transistor would be a good idea. I asked somthing about the problem and someone told me an N-Channel Transistor would allow me to use 12V through it but be triggered by the 5V output of a pic.

But I figured that now, I'm not sending 12V throught the transistor, I'm using it to connect 2 grounds. (see diagram)

Can I still do this?
You don't need an FET, you can use a normal transistor, simply feed the base from the PIC via a current limiting resistor. It's also ESSENTIAL! that you fit a diode across the relay coil, cathode to 12V supply, this absorbs the back EMF as the relay turns off, otherwise it will destroy your transistor or FET.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 28th June 2004, 10:57 AM   (permalink)
Default

Already posted a circuit on how to do this long ago in this post.

Just connect the relay contacts any other way you like (on this scematic its used to switch the 12V). But the way to drive the relay coil stays the same...

Also use a more powerfull transistor then the BC547... BC547 can only handle 100mA
Exo is offline  
Old 28th June 2004, 12:49 PM   (permalink)
Default Re: Pic to Transistor to Relay, Amperage handeling question

Quote:
Originally Posted by Nigel Goodwin
Quote:
Originally Posted by iso9001
So I decided a transistor would be a good idea. I asked somthing about the problem and someone told me an N-Channel Transistor would allow me to use 12V through it but be triggered by the 5V output of a pic.

But I figured that now, I'm not sending 12V throught the transistor, I'm using it to connect 2 grounds. (see diagram)

Can I still do this?
You don't need an FET, you can use a normal transistor, simply feed the base from the PIC via a current limiting resistor. It's also ESSENTIAL! that you fit a diode across the relay coil, cathode to 12V supply, this absorbs the back EMF as the relay turns off, otherwise it will destroy your transistor or FET.
I wouldn't say "absorbs" the backEMF. The diode provides a free-wheel path for the current to flow during turn-off. If that diode wasn't there then yep a BackEMF to re-establish current-flow would be generated. But as is stands the backEMF is clamped at forward conduction of the freewheel diode
Styx is offline  
Old 28th June 2004, 07:21 PM   (permalink)
Default

Um... fit a diode where now ?

The relay is a stock car part, sealed, 12V, 30amp max, 4/5 pin relay. There is no fitting a diode anywhere in there unless it already has it.

Also, the transistor to use.... PNP, NPN, FET ? (I dont know the difference between NPN and PNP, I guess or FET for that matter)

So, this connecting two ground idea will work huh ? Thats good to hear, I'll have to test this whole deal out later today.
iso9001 is offline  
Old 28th June 2004, 07:33 PM   (permalink)
Default

I posted a link to a scematic, including the diode, 2 posts up...

the diode is only needed if you use a transistor or fet to drive the relay. Normally relais in cars are not controlled by semiconductors so no protection diode is needed.
It need an NPN transistor wich can handle the amount of current required by the relay's coil
Exo is offline  
Old 28th June 2004, 08:11 PM   (permalink)
Default

I saw the link, but it appears that that diode is INSIDE the relay. (Not going to work as I am using big black sealed units)

The diagram of the relays I'm looking at have a resistor where your diode is.

One guy I talked to said that 1amp is common to active those relays, I'm guessing what he said is right, its a pretty high amp device thats being driven.

Can I place that diode somewhere else?
iso9001 is offline  
Old 28th June 2004, 10:14 PM   (permalink)
Default

Quote:
Originally Posted by iso9001
I saw the link, but it appears that that diode is INSIDE the relay. (Not going to work as I am using big black sealed units)

The diagram of the relays I'm looking at have a resistor where your diode is.

One guy I talked to said that 1amp is common to active those relays, I'm guessing what he said is right, its a pretty high amp device thats being driven.

Can I place that diode somewhere else?
The diode simply fits outside the relay, it's exactly the same electrically as it being inside the relay - however, I've never seen a relay with an internal diode.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 28th June 2004, 10:25 PM   (permalink)
Default

Hello Everybody

This is my first post and Im still a complete N00b in Electronics so please feel free to correct me if Im wrong.

Hi Iso9001.It may look like the Diode is inside the relay but it is actually connected between the 0V coil input and the +V coil input.The diode is connected as shown so as to only allow current to flow from 0V to +V.

When current to the coil in the relay is switched off a very large electric force is induced in the coil.This force could be several amps wich would surge through the transistor and burn it out.
Thats why a diode is connected as shown so as to conduct the excess current safely away.

Hope it helps and i hope im correct :roll:
elfvenlord is offline  
Old 28th June 2004, 10:30 PM   (permalink)
Default

Okie Dokie,

Is there any chance I can put this on the transistor side ? (between the trans and the relay)

I want any parts I add to be on my board and not wired and placed throughout the vehicle.

Also, what kind of diode ? (I have to get parts from radio shack, so if I go in and see zener, bla bla bla I get confused... any then I ask some one... and THEN i get angry from the stupid blank stare)
iso9001 is offline  
Old 28th June 2004, 11:41 PM   (permalink)
Default

Many relays do have diode integrated right inside the housing.
We buy them all the time because it saves time and it looks neater.
Type of diode depends on application. I usually just put 1N4007
or for smaller relays 1N4148...
panic mode is offline  
Old 29th June 2004, 08:18 AM   (permalink)
Default

Quote:
Originally Posted by iso9001
Okie Dokie,

Is there any chance I can put this on the transistor side ? (between the trans and the relay)

I want any parts I add to be on my board and not wired and placed throughout the vehicle.

Also, what kind of diode ? (I have to get parts from radio shack, so if I go in and see zener, bla bla bla I get confused... any then I ask some one... and THEN i get angry from the stupid blank stare)
No it MUST be across the relay. if you put it between the TRansistor and the relay all you will do is either not allow any current to flow or juect provide a 0.6V drop to the transistor (depending on diode orientaiton).

The diode MUST be across the relay (which in effect is an inductor) with the cathode at the relays +ve terminal and the anode at the rely-transistor terminal
Styx is offline  
Old 30th June 2004, 06:46 AM   (permalink)
Default

Well.... 1. Its a sealed unit 2. If I can avoid modifying the stock relay/wiring i will

Is emf really going to kill a larger transistor ? (any type)

Any other diode/placment options ?
iso9001 is offline  
Old 30th June 2004, 07:04 AM   (permalink)
Default

Quote:
Originally Posted by iso9001
Well.... 1. Its a sealed unit 2. If I can avoid modifying the stock relay/wiring i will

Is emf really going to kill a larger transistor ? (any type)
YES!!!.

Presumably the two wires from the relay coil go back to your board?, simply fit the diode across the relay connections on the board!. Or you 'could' fit the diode across the transistor, from collector to emitter, which would protect the transistor - but it would send nasty spikes into your cars electrical system.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 30th June 2004, 08:18 AM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
Quote:
Originally Posted by iso9001
Well.... 1. Its a sealed unit 2. If I can avoid modifying the stock relay/wiring i will

Is emf really going to kill a larger transistor ? (any type)
YES!!!.

Presumably the two wires from the relay coil go back to your board?, simply fit the diode across the relay connections on the board!. Or you 'could' fit the diode across the transistor, from collector to emitter, which would protect the transistor - but it would send nasty spikes into your cars electrical system.
A diode across the trasistor will do squat to protect the trasistor let alone the voltage buildup associated with open-ciruiting a charged inductor.

IT MUST GO ACROSS THE COIL.
Styx is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 11:46 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker