Need help powering relays from microcontroller!!
KrappenSchitz
Posts: 6
Just finished writing the code for my car's push to start system. I'm using a BS2 Rev. J from a Boe Bot kit I had lying around. I have everything working on a breadboard using LED's to simulate the components but now I have no idea how to make it work inside the car.
I'll be powering 2 ignition relays (IG1 & IG2), a starter relay and an ACC relay. I can't find a data sheet for my specific relays but most 12V 30A relays I saw draw 130mA to switch them. The IG1, IG2 and ACC circuit will all be continuous while the car is on and the starter won't be powered for more than 1-2 seconds. I need to find a way to amplify the current from the microcontroller to be able to power the relays.
I looked into MOSFET's but from my super limited understanding it looks like they are controlled by the voltage difference between the gate and the source and when that happens, the source connects to the drain. I saw a lot of 'hey use this transistor' etc. but not too much on how to wire them up. I do have 2 car amplifiers for parts so I'm sure I have all kinds of transistors to toy around with.
Any help would be greatly appreciated!
I'll be powering 2 ignition relays (IG1 & IG2), a starter relay and an ACC relay. I can't find a data sheet for my specific relays but most 12V 30A relays I saw draw 130mA to switch them. The IG1, IG2 and ACC circuit will all be continuous while the car is on and the starter won't be powered for more than 1-2 seconds. I need to find a way to amplify the current from the microcontroller to be able to power the relays.
I looked into MOSFET's but from my super limited understanding it looks like they are controlled by the voltage difference between the gate and the source and when that happens, the source connects to the drain. I saw a lot of 'hey use this transistor' etc. but not too much on how to wire them up. I do have 2 car amplifiers for parts so I'm sure I have all kinds of transistors to toy around with.
Any help would be greatly appreciated!
Comments
Just have it wired correctly and you are good to go.
They also have some MOSFET power control kits too, but the ULN2803 sounds like it'll be plenty for your needs.
The ground is ground obviously but does the "com" pin have to be a particular power source? Or can I just give it any +12V source? Is it just a turn on signal or is it something that needs a substantial amount of current?
The way the ignition works is there are basically 2 live wires (AM1 and AM2) when the ignition is moved to a certain position those wires connect to the IG1, IG2, ACC and starter wires. So I'm just making sure that the "com" pin doesn't have to be the same wire as the 12v source going to the relays I'll be powering since 3 of the 4 relays have different power sources.
Is it really as simple as power and ground to the unl2803 then input and amplified output?
I'm just having a hard time understanding where the extra current is coming from.....
You can though run it elsewhere or not at all even, as long as you use a diode across the coil which is easier to do this way sometimes.
Sigh, another seniors moment. Thank you Peter for catching that.