Pages: [1] 2 3   Go Down
Author Topic: How to connect Arduino to car electric system (12V) ?  (Read 3377 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't want to connect it through lighter connector, I want to throw a dedicated wire and make it hidden.

I heard that voltage regulator is needed for this.

Will this work:
http://www.dfrobot.com/index.php?route=product/product&filter_name=voltage%20regulator&product_id=584#.UfD8U6zpzto

What will happen if car voltage will be lower than 12V?

And if not this , what else do I need to connect arduino to car system?
Logged

The Netherlands
Offline Offline
Edison Member
*
Karma: 50
Posts: 1657
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No, that thing is used to power 12 volts devices in 24 volts systems like trucks (lorry's, big rigs)  use.

You can use 12 volts as a power supply to your Arduino.
It depends on what you're going to do with it.
But in your car the power fluctuates an can get up to 14 volts, which might be too steep for the power supply on your Arduino (what type is your Arduino ?).
If you're uncomfortable with 12 volts powering your Arduino, you could use one of these real cheap USB chargers.
They often offer 1A current at 5 volts.
You'd have to hack it a bit if you don't want to use it in the lighter socket.
Logged

Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

Offline Offline
Newbie
*
Karma: 0
Posts: 30
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Get an lm7812 and heat sink to keep the voltage below 12vdc because I've read the arduino acts slightly funky after 12vdc...  You can get both at radioshack, they are in the voltage regulator drawer and they cost like $3. Attach the positve to the vcc pin and the negative to ground. Or use the power connector, but make sure you get the polarity right.

if you are wiring directly to the battery throw an inline fuse close to the battery connection to protect the wire that you use. 

Hope that helps

Logged

The Netherlands
Offline Offline
Edison Member
*
Karma: 50
Posts: 1657
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A 78xx needs an input voltage that is 2.0 volts over the output voltage.
Else the output will be unstable.

So if you go for this, try a 7810 or a 7809 (last will probably be better available).
And just the regulator doesn't do the job well.
Also use some capacitors: 100 nF at the input and at the output, and 100µF at the output.
The 100 µF (micro Farad)is not calculated by any means, but is often used.
If you know the total current of your setup, you can calculate this one.
Logged

Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

Texas
Offline Offline
Edison Member
*
Karma: 25
Posts: 1298
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Will the arduino be running while the auto is off, or just while engine is running?
While running voltage will get as high as 14.8volts.
How many current hungry devices will be drawing from the arduino (relays, etc)?

14.8 volts is a bit high to send into Vin with any current usage. If you are not using much current it may be OK. Otherwise, I would put a voltage regulator to drop the 14.8 down to about 7 volts, to feed to the arduino. Makes for a much happier baby.

What boards are you driving from the arduino?

good luck
Jack
Logged

Good luck, Jack

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Will the arduino be running while the auto is off, or just while engine is running?
While running voltage will get as high as 14.8volts.
How many current hungry devices will be drawing from the arduino (relays, etc)?

14.8 volts is a bit high to send into Vin with any current usage. If you are not using much current it may be OK. Otherwise, I would put a voltage regulator to drop the 14.8 down to about 7 volts, to feed to the arduino. Makes for a much happier baby.

What boards are you driving from the arduino?

good luck
Jack

There'll be gps / gprs shield from dfrobot, they recommend 9V external power supply.

Where can I get this voltage regulator, that can input 12-15V from car (both engine running and not running, and maybe less than 12V when battery is low) and give stable output of 9V ?
Logged

The Netherlands
Offline Offline
Edison Member
*
Karma: 50
Posts: 1657
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Anywhere electronics are sold.
Because 15 volts to 9 volts means quite a lot of the energy has to be "burned", you also need to mount the device on a heat sink.

If you like to get a finished product instead of making one, dfrobot which you already found have suitable power supplies too and the price of that seems reasonable.
They also have a "power shield", which can be controlled and monitored by your Arduino (i'm not sure this unit will power the Arduino itself however).
Its price is a bit higher.
Logged

Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

Global Moderator
Netherlands
Online Online
Shannon Member
*****
Karma: 217
Posts: 13705
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


have a look at this - http://ruggedcircuits.com/html/ruggeduino.html -
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

dfrobot which you already found have suitable power supplies too and the price of that seems reasonable.

Yeah, I'm quite new to this electonics world, so I'm avoiding soldering.

But I can't see heat sink on this converter?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Very interesting option, I'll consider it, thanks!
Logged

The Netherlands
Offline Offline
Edison Member
*
Karma: 50
Posts: 1657
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote from: Sly_G link
But I can't see heat sink on this converter?

That's because this converter has an other mode of operation.

The 78xx burns power so the device you are powering it with has just enough left it needs.
Burning means it gets hot, and you have to put the heat somewhere.
So that's where the heat sink comes in.

The other converter essentially switches the power supply on and off again in a high rate, and filters it so that a dc power can be output.
It doesn't burn the excess power so it will not get that hot.
It will also be much more efficient because of that.
Logged

Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

Offline Offline
Newbie
*
Karma: 0
Posts: 30
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I wouldn't use the Ruggeduino if you are new to the arduino game.  It is great, but has limitations that you need to overcome with electronic skills. I had issues using real time clocks with the ruggeduino.  I tried a couple fixes before I decided to put the ruggeduino on the back burner... I love the idea, I just don't have the time to figure out the nuances of a different device, and I'd hate to send a beginner down the same path.

Go to radioshack, find the voltage regulators, and teach yourself to solder... It's easy.  Make sure you grab the heat sink as well.  They are usually with the blank circuit boards...

As for the 7812 needing atleast 2 volts over its specified output to work properly, I've never had a problem with that... Even if it only outputs 9vdc because of a low input voltage, the arduino works fine...I guess I just use it because radio shack always has it, and it's right down the road.  Although you make a good point, and if there are 7809s around, I suppose it's a better solution, except it might get a little hotter than the 7812... right?

I'm soldering these up as we speak for temperature data loggers that work of 12vdc solar... (it's usally hang around 14vdc).
 
Logged

Lacey, Washington, USA
Offline Offline
Edison Member
*
Karma: 155
Posts: 2358
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Better that a 7809 gets warmer than the voltage regulator on the Arduino.

I had a ZX-81, one common fix for the overheating problem (caused entirely by the 7805 inside the case) was to replace the badly filtered 12V with a well-filtered and solidly regulated 8V supply.
Logged

Steve Greenfield AE7HD
CET Consumer Electronics and Computer
Please don't read your attitudes into my messages

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No radioshacks in Moscow, Russia. I can try online stores.

Is this 7809 thingy something like this
http://ru.mouser.com/ProductDetail/Fairchild-Semiconductor/LM7809CT/?qs=sGAEpiMZZMtUqDgmOWBjgC5jv%252bsRCBsGpR4JL8812Nc%3d

This tiny box really can regulate output voltage when input is jumping around? Wow. Kind of magic.
Logged

Lacey, Washington, USA
Offline Offline
Edison Member
*
Karma: 155
Posts: 2358
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, that is it, and yes, it is the magic smoke inside that does it. Don't let it out! ;')

The circuit inside is something like this:



It is a good idea to connect a diode across the regulator like this, so that when power is shut off, a reverse voltage is not applied across the voltage regulator:



C2 in that circuit should be a tantalum or low ESR aluminum electrolytic capacitor of between 1uF and 10uF. C1 should probably be two capacitors, a 0.1uF ceramic and a 1000uF aluminum electrolytic. Cars are very noisy, electrically.
Logged

Steve Greenfield AE7HD
CET Consumer Electronics and Computer
Please don't read your attitudes into my messages

Pages: [1] 2 3   Go Up
Jump to: