Go Down

Topic: Trouble shooting of project Single-Cell Battery Tester (Read 1 time) previous topic - next topic

pad788

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)?

Chagrin

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.

MrsD

Even though this is quite old, I thought I'd give it a bump -- I'm doing the same project and having the exact same problem. Did you ever figure it out? I tried making some changes to the sketch, switched out the 3 LEDs for one RGB LED (added a "setColor" function)... nothing seems to be doing the trick.

KenF

Are you ABSOLUTELY sure you have used A0 This is on the opposite side of the board to the digital pins.

Having looked over the code, I believe it should work OK. 

MrsD

Yup, the +  test wire is plugged into A0.  Here's a picture of the wiring. Maybe you'll see something I don't (I'm very new to this).


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy