Pages: [1]   Go Down
Author Topic: Car RGB LED Lights controlled with Arduino  (Read 938 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 31
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is this okay? I was wondering is it okay for one: to power my arduino from the car battery? Will it be too many amps? I'm just confused I the car battery part.. Will my arduino use the whole amp from the battery(along with the other things in the car)? I'm just afraid of the car battery frying my arduino.


My arduino will be controlling 3 TIP120 transistors.. 1 for each color. The amps o the LED bars ten selfs will be under 1Amp for sure..

Can I just get some advice on this?

Thanks
Macke
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 480
Posts: 18722
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Your Arduino won't use too much power, any more than your washing machine will suck in all the power generated by the power station and explode.
Logged


Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8821
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, you can use a car battery to power the Arduino.  The Arduino will only draw the power it needs.  The fact that the car battery can supply hundreds of Amps makes not difference.

The TIP120 should do a fine job of turning your light bars on and off.  They can handle 5A and 60V so they have plenty of safety margin.  

With a PWM pin you can fade a light on and off so the Arduino UNO can fade up to 6 lights.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 533
Posts: 26944
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, you can power arduino from 12V. It will only draw the current it needs.
Many car sources are really dirty tho - I'd power the arduino from something like this to give yourself some protection.
http://www.cellphoneshop.net/minicar.html?cagpspn=pla&gclid=CKv2mrjQqrUCFQTe4Aodr0UA9g
Lots of versions exist, google "car usb charger"
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Faraday Member
**
Karma: 66
Posts: 2626
The last thing you did is where you should start looking.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
power my arduino from the car battery?
Yes
Quote
Will it be too many amps?
Place a 1/2 amp fuse between the battery and the Arduino.
Quote
Will my arduino use the whole amp from the battery
No
Quote
My arduino will be controlling 3 TIP120 transistors.. 1 for each color. The amps o the LED bars ten selfs will be under 1Amp for sure..
Use a 1 amp fuse for these.
Logged

The way you have it in your schematic isn't the same as how you have it wired up!

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

Thanks a lot everyone! This forum is great.

So it sounds like the solution is fuses? If I need a total of say 2A for my LED bars I use a 2A fuse? And 1/2 Amp for arduino?

Also I forgot about wire gauge. My LED bars will be 20-22 Gauge wire. As long as I have the fuse, this won't matter will it?
Logged

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

Oh, also do i use the place with the circular jack and solder the wires from the battery to the jack connector for my power? Or do I put the car battery wires in Vnn? I'm always confused what Vnn is..

I'm not too much of a noob, but I'm still learning a lot, seeing is im 14. These are going in my brothers car, and I came up with the design

Also if anyone is interested, im building a box with switches, 5 of them, one for red, green, and blue, and then one for white(lighten) and one for black(darken) so I'm writing my sketch to say that if for ex. Red and white were on it would make pink, and blue and white would make cyan, etc. also, if all switches are on it will do a RGB fade through.

I'm having some trouble with the sketch, so I might be on here again..

But anyways, thanks a lot everyone, those were some of the best answers I've had on this forum, some people are just smart-alecs.

Thanks!
Macke
Logged

NE PA
Offline Offline
Full Member
***
Karma: 5
Posts: 156
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, VIN is where you input your power source, you can also put it in the power jack as well. Both will be regulated to 5V through the onboard regulator.
Logged


Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8821
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh, also do i use the place with the circular jack and solder the wires from the battery to the jack connector for my power? Or do I put the car battery wires in Vnn? I'm always confused what Vnn is..

The Vin pin connects directly to the input to the 5V regulator.  The center pin of the power jack goes through a protection diode to the input to the 5V regulator.  Either one will work if you get the polarity right (Vin is +, Gnd is -).   The advantage of the power jack is that nothing gets fried if you hook the power up backwards (because of the protection diode).
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

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

Haha yeah I understand now. That's what I thought Vin was..

Thanks a lot again for everything!

One more clarification, so with the 1/2A Fuse, I just connect the 12V from the battery to either the power jack or vin?

Thanks
Macke
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8821
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

One more clarification, so with the 1/2A Fuse, I just connect the 12V from the battery to either the power jack or vin?

Yes.  And connect the negative side of the battery to Gnd (either a Gnd pin or the barrel of he power jack).
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

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

Once again, thanks alot, everything is clearified for me now..

This forum is great!

Thanks!
Macke
Logged

Pages: [1]   Go Up
Jump to: