Hello,
I did the example of the humidity sensor and the thermometer displaying information on an LCD screen and it works perfectly when connected via USB to the PC however when I remove the USB cable from the PC and plug it into a USB adapter for cell phones connected directly to the power line then the program doesn't run and I cannot see anything on the screen.
It is like if there was no program saved nor anything on the memory of the Arduino.
Do I have to write some flash memory or something in order for the Arduino program to run on batteries?
Welcome to the forum
The Arduino will run perfectly well on batteries if they are the right type and connected to the Arduino correctly
What type of Arduino do you have ?
What type of batteries ?
How are they connected to the Arduino ?
Post your code, or a small example that does the same thing.
I have never had to worry about just letting serial output go nowhere (no one knows, no one cares) when ppwering from a wall wart or juice pack over the USB gazinta. Or batteries.
So with all of @UKHeliBob's questions, throw us the code, too.
a7
does the power LED come on?
Thank you all for your support.
I realized that when I moved the board and the protoboard to plug the USB adapter to the power line, the CLK and Data pins also moved slightly and there was a bad contact between the LCD screen and the board. Sorry for the trouble.
Lesson learned: Always check your connections again before powering the board!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.