I have two esp32 devices that are causing me trouble. One is a NodeMCU-32s and the other is the wemos Lolin32. They are both experiencing the same problem. I chose this board for it’s relatively stable OTA performance. I have a couple of those unit working well with the same code that I got from the RNT esp32 course. On these two units I can upload the code from the Win10 computer using the standard IDE 1.8.13. My code is used to run a string of leds. The OTA feature is used to vary the sequence of these light features. The problem starts after I run the devices for a few minutes with the usb cable connected to verify correct operation and then switch to the external power unit. The lights run for several cycles then stop at whatever point they were. If I disconnect the external power and then reconnect, it starts right back where it was but not running. If I connect the usb cable, the whole thing starts running normally. This same operation is occurring with both devices. I have tried a different power supply. It just appears that the usb cable is supplying something that the external power is not.
Any and all ideas appreciated
After powering up the ESP with the external power supply, press the on-board RST button. This will restart the board and the code will run. Tell me if this fixes your issue.
Sara, that’s fine except for the fact that I plan to have this feature located at a place not easy to reach. I have one now that is at the top of forty foot flag pole. This one has been running for more than a year but now it will not respond to the wifi. It still turns on and runs when the power is commanded from a sonoff switch. But I am unable to change the code via OTA. I have come across some other data seems to say that there are a large number of esp32 devices with internal circuitry errors. Hopefully, I can find some good ones.