Hello, I'm trying to power both a stripe of led and an arduino UNO with a 12 V battery.
I did this circuit (plus a button) and it works perfectly as long as arduino is powered by usb. As soon as I add vin and ground connection in arduino at the end of the circuit (where I put the purple sign in the drawing) everything stop working.
What am I missing? Arduino turns on correctly but the stripe of led doesn't turn on.
It is too easy to misunderstand a Fritzing diagram. Please just make a simple pencil drawing showing all the connections clearly labelled and post a photo of the drawing. Also show clearly (on a separate diagram if needed) the connections for the non-working version.
Note: Some prototyping boards have power rails that are split in the middle. Usually the split is marked by a gap in the colored lines (red and blue) that run along the power rails.
can the problem be that the 12 V battery doesn't have enough ampere to power both arduino and the leds?
I tried connecting arduino with usb and adding a servo to the same battery as the leds and both led and servo worked pretty badly.
I don't have anything to measure it right now and I can't find much informations from the sellers either.
If I add another separate battery for arduino and servo, without changing anything else everything works fine.
it works fine as long as I don't add the last vin and gnd connections
johnwasser:
Note: Some prototyping boards have power rails that are split in the middle. Usually the split is marked by a gap in the colored lines (red and blue) that run along the power rails.
No there are no gaps and arduino does turn on, it's the led that stops working
RavenX23:
can the problem be that the 12 V battery doesn't have enough ampere to power both arduino and the leds?
That seems unlikely but you need to give full details of the battery and of the LED strip.
If I add another separate battery for arduino and servo, without changing anything else everything works fine.
A diagram showing how that is connected would be useful. Especially as there is no servo in the diagram in Reply #4. What else is connected to the Arduino that you have not told us about?
Also you have not told us what transistor you are using - or indeed, which legs of the transistor things are connected to.
the servo isn't included, it was just a test. there isn't anything else in the original problem. Arduino, led strip and battery.
I'm using this battery battery
I never used battery before with arduino, i always used usb connections so I'm having a bit of a problem understanding but it seem to be 23 A.
and one of this led led
which don't have indications about amperes, just Volt. It needs 12 volt and I'm using a 12 V battery
The transistor is a irf520, it is connected gate to the pin, drain and source to the - of the led, and to gnd of arduino and the - of battery
Do you think it could be the problem? I ruled it out because it worked fine as long as I alimented arduino with usb and it had nothing to do with arduino's power
it also works if I attach just arduino at the second battery same way as last pic just without the servo
it doesn't work when I attach the servo at the first battery like this and power arduino via usb
the battery is a Duracell MN21, 12 V, A23 / 23A / V23Ga / LRv08 / 8LR932
the servo was a test to see if I attached something else to that battery beside arduino it would work and it doesn't. I attached a servo because it was the easiest thing I had.
My multimeter broke, I'm waiting for the new one, that's why I was trying other ways to check the amperes.
If I connect the battery to the led they work fine.
If the connections are correct I'll try to change the pieces and I'll wait for the multimeter.