Good morning,
I have been working on an Arduino Nano project with someone for a while and are trying to get a basic OLED screen with an arduino nano to work. I can safely say the test example code works, however, we are trying to have the device stay on and continue running the code even when not plugged into the computer as when it is plugged it works fine but taking it out of the USB and have an appropriate external power to the Nano, the screen merely freezes where it last left off.
Reconnecting the device to the computer simply restarts the code from the beginning.
https://pastebin.com/RJ6LNU3Q
This is just the example code, my goal is to try and have it run without USB connection. I am unsure as to what I need to do in order to make this possible and any help would be very welcome.
Thank you,
-E
What is your idea of "appropriate external power" and where exactly is it connected to the Nano.
If you want anyone to look at your code post it here as described in How to use this forum Most people won't bother to go off to another website to see it.
Steve
The code is rather long, I do not believe I can post it within the cost brackets due to word limit. As for the pin connections I have set it up according to this schematic. The battery itself is two AA batteries with a remaining total of around 8-9 Volts:
Hey there!
Ok let's check this out.
I don't understand how you are getting 5-10V from two AA batteries. Unless you are using some type of voltage booster, two AA batteries in series should be 3V, which is lower than what your OLED screen needs.
Looks like your display needs 3.3V.
-Englishscone
How many AA batteries? 2 x AAs into Vin will not do anything...and despite your picture 5V would also be too low. You need at least 7V for reliable power.
Steve
Oh shit you may be right. I may or may not have confused with the AA voltages. Later today I will go back and get a 9V battery to test instead. Thank you!