Batteries and analog input problem

Hi all!!!
I'm not an arduino newbie but I know nothing about forums so be kind if I do something wrong. Now the problem:

I've made a little machine that use an analog input from solar cell to light up a LED when the analog value is under X. Well, it's easy to design and I did it. But problems began when I decided to power my arduino board with batteries. So when I plug my board to 4AA batteries my LED light up constantly.(that's the problem). When I test my work on a power supply, it work great.

Note that my machine is more complex than just lighting up a LED in relation with an analog input. If I precise this fact it's to show you that whatever the situation(plug in a power supply OR batteries) every thing work but not what I've describe .

Is there a relation between batteries and analog input/output?

Thank in advance!
:slight_smile:

I believe the Arduino's voltage regulator requires around 7 V due to its rather large dropout. Try using 6 AA batteries.

  • Ben

Wow!!!

That was simple!!!! Thanks Ben!

You solve my problem!