Hey guys.
I'm trying to port a working program from an Arduino Nano to an ESP32 Wroom, but it just keeps rebooting.
Since I'm all new to the ESP32, I'm not used to it but it keeps printing out this in the serial monitor:
Can anyone help point me in the right direction to what this all means, and what may indicate a problem, so I can figure out why it's rebooting?
Thanks!
Yeah I wanted to try to solve any program specific issues myself first, so this initial question is more related to what the serial printout means. So I can interpret those printouts in the future
Understood guys. Can't see something specific that might be the cause though, with my inexperience
My code is attached below, but haven't changed all pin settings in the beginning in case that might be the problem?
That's a lot of code and a lot of libraries. Did you build it up block-by-block on the ESP32 and get each module working before moving to the next? If so, the problem would likely be the last thing you added.
BTW, if your project will be connected to WiFi, you can drop the RTC hardware and library altogether and use the ESP32's internal RTC with NTP updates happening automatically, in the background.
I didn't. It worked on the Arduino Nano, and before trying to use it on the ESP32 I added has_display and has_rtc condition settings, so that I could try this without having to setup everything with display and rtc in the beginning.
That would be fantastic Not sure it will always be connected though, but it would be perfect for when it can be! You wouldn't have a good tutorial link I can check out to see how I could add that to this project further on?
The problem is I am too inexperienced in programming for microcontrollers to know how that works and what that would really mean for my program..
But as far as I've read, I shouldn't use delay() since it stops all activity during the set time and OTA updates won't work in the mean time.
Which is why I made the nap() function that essentially does the same thing but allows for the OTA updates at the same time.
But you're saying there's a way to pause the program that's better?
Or are you saying I shouldn't pause anything at all anytime, and just do things at a millisecond distance from each other?