![]() | ![]() | ![]() |
| | |||||||
| 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? |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| 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? | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| 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 | |
| |
| | (permalink) | ||
| Quote:
| |||
| |
| | (permalink) |
| 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. | |
| |
| | (permalink) |
| 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 | |
| |
| | (permalink) |
| 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? | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| 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: | |
| |
| | (permalink) |
| 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) | |
| |
| | (permalink) |
| 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... | |
| |
| | (permalink) | |
| Quote:
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 | ||
| |
| | (permalink) |
| 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 ? | |
| |
| | (permalink) | |
| Quote:
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. | ||
| |
| | (permalink) | ||
| Quote:
IT MUST GO ACROSS THE COIL. | |||
| |