Pages: [1]   Go Down
Author Topic: Trouble shooting of project Single-Cell Battery Tester  (Read 985 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello!

I have found a project which looks quite simple:
http://nostarch.s3.amazonaws.com/arduino_project6.pdf

I have setup everything according to the text and schematics on an Arduino Uno R3. When I uploaded the code on the board the LEDs just flicker randomly one at a time (while the USB is connected). It is supposed that a LED flashes at a certain voltage when a battery is connected (in this case I want to try on an AA-type 1.5V).
Can somebody explain why it doesn't measure anything from the battery? Maybe I should connect the +-side of the battery to the v_in pin (but how should the code then be)?
Logged

Dubuque, Iowa, USA
Offline Offline
Faraday Member
**
Karma: 47
Posts: 2512
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The battery should be connected between the analog port (battery +) and GND (battery -).

Do not connect the battery to Vin. That would attempt to power the Arduino with the battery, but you're getting your power from the USB port.
Logged

Pages: [1]   Go Up
Jump to: