Weird power on behaviour

lormaccone
Posts: 3
Joined: Thu May 20, 2021 5:27 am

Weird power on behaviour

Postby lormaccone » Thu May 20, 2021 5:41 am

I have the esp32 devkit board connected to a ws2812b led array, an audio amplifier connected to a dac input io, and a rotary encoder.

When I give power (5V) to the circuit the FIRST time, nothing happens. If I remove power and apply it again, everything works properly. All successive times I switch on and off, everything works fine. BUT if I leave it off for many (>8?) hours, then again, the FIRST time I switch it on it fails, the second and successive ones, everything works properly.

It's NOT the power supply, I've tried many different ones (including a 30 amps one!). Indeed if I use one power supply at the first switching on, and then change power supply before switching on the second time, everything works the second time. Even if the first time I connect it to the PC with a usb cable, the first time I connect it it doesn't work, the second it does.

It's very difficult to debug, as I have to wait hours to reproduce it, and I cannot use the serial monitor as I need to connect it to a PC (i.e.power it on) to do it.

WHAT ON EARTH CAN KEEP MEMORY OF THE LAST POWER ON in this circuit, which can be reset only after hours of power off?!? There are no (large) capacitors or anything in the whole circuit...

Thanks for any hints! I'm really lost here,
Lorenzo

ESP_Sprite
Posts: 9594
Joined: Thu Nov 26, 2015 4:08 am

Re: Weird power on behaviour

Postby ESP_Sprite » Thu May 20, 2021 5:52 am

Possibly a power supply rails that for some reason rises too slowly. You could try adding e.g. a 4.7uF capacitor beteen EN (reset) and GND, see if that fixes it.

lormaccone
Posts: 3
Joined: Thu May 20, 2021 5:27 am

Re: Weird power on behaviour

Postby lormaccone » Thu May 20, 2021 7:08 am

I'll try that, but I'm not optimistic: if that was the problem, it would depend on the power supply, which it doesn't. Thanks!

lormaccone
Posts: 3
Joined: Thu May 20, 2021 5:27 am

Re: Weird power on behaviour

Postby lormaccone » Fri May 21, 2021 5:50 pm

It worked!!!! Thank you thank you thank you thank you!! You rock, thanks!
Lorenzo

Who is online

Users browsing this forum: Majestic-12 [Bot] and 206 guests