Author Topic: 12v Automotive relay trigger  (Read 831 times)

0 Members and 1 Guest are viewing this topic.

Offline andrewlaphamTopic starter

  • Contributor
  • Posts: 48
12v Automotive relay trigger
« on: July 01, 2019, 09:28:59 am »
hey,

I drew up a diagram of what I think would work but need some input. Basically, I need to trigger a 12v relay from an Arduino pin. I'm just not sure if the 2N222 is going to feel the pain and let the magic smoke out or not.
« Last Edit: July 01, 2019, 09:31:29 am by andrewlapham »
 

Offline digsys

  • Supporter
  • ****
  • Posts: 2209
  • Country: au
    • DIGSYS
Re: 12v Automotive relay trigger
« Reply #1 on: July 01, 2019, 10:35:43 am »
The 2N2222 has a current gain of ~ 100-150X, so if the relay coil is 100mA, all you need is ~2mA. Even if you said 5mA for certainty. Assuming 3V3 op / .005 = 660R
I'd just increase your resistor to say 560R and put a 10K from Base to Emitter. You can tweak values depending on coil current.
Hello <tap> <tap> .. is this thing on?
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12977
Re: 12v Automotive relay trigger
« Reply #2 on: July 01, 2019, 12:25:16 pm »
Please ignore this if you are just using a car battery as convenient portable power for some gadget in a field somewhere!

However if your gadget is going to be fitted to or used in a vehicle, I'd be very wary of transient ground potential differences in an automotive environment.  If the transistor emitter, Arduino Ground and buck regulator ground aren't all connected to the same point by relatively short wires, you are likely to have trouble.

Also, is the buck regulator rated for automotive use?  The transients it  may be subjected to are absolutely vicious, and even on a modern well maintained vehicle  are not nice and well outside the abs. max. ratings of most commodity switching and linear regulators.  Google: "ISO 16750-2" or the superseded standard "ISO 7637" which may be easier to find the full text of as ISO charge for access to their standards.
 

Offline andrewlaphamTopic starter

  • Contributor
  • Posts: 48
Re: 12v Automotive relay trigger
« Reply #3 on: July 01, 2019, 11:42:23 pm »
One thing I'm not so sure about now is the ground connections, Should they all be common?  Can the 12v and 5v lines share the same ground?
 

Offline ptricks

  • Frequent Contributor
  • **
  • Posts: 671
  • Country: us
Re: 12v Automotive relay trigger
« Reply #4 on: July 02, 2019, 12:19:48 am »
One thing I'm not so sure about now is the ground connections, Should they all be common?  Can the 12v and 5v lines share the same ground?

Yes and they have to be for the circuit to work correctly.
 

Offline digsys

  • Supporter
  • ****
  • Posts: 2209
  • Country: au
    • DIGSYS
Re: 12v Automotive relay trigger
« Reply #5 on: July 02, 2019, 07:27:07 am »
As good practice, keep all grounds referenced at one point, preferably nearest the power source or inlet. This is especially important if you are using it in a vehicle.
At the very least make sure the highest current devices are closest to power source 0V.
Hello <tap> <tap> .. is this thing on?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf