Try commenting out anything having to do with printing to the serial monitor. It could be that the code is waiting for the serial port to become available and without being plugged into USB, it’s never available.
Thanks YellowDog. Unfortunately not appearing to be the issue. All 3 occurrences of Serial are commented.
Intermittently I will get output to the OLED - at least initially for an iteration or two. Then it stops. When connected to the computer via UBS I get consistent output to the OLED. Lat and Long are usually Zero as I am indoors.
Check your voltage; 9v batteries have very low current capacity so the voltage may droop too low with the load of the display and gps on it. If so, you would need a different battery.
dauva:
So. Would it be good to run two 9v batteries in parallel to provide longer time or is there a better way ?
In general, batteries shouldn’t be installed in parallel. One will always be a bit higher in voltage than the other and it will attempt to charge the lower voltage battery. This imbalance leads to both discharging early. It might work for short periods of time but you’re probably better off finding a better power source.