ESP8266 WiFi outages and resilient [Sorted]

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

ESP8266 WiFi outages and resilient [Sorted]

Post by davef » Sun Dec 06, 2020 7:23 am

Before I launch into a resilient WiFi implementation I would
like to understand what is happening in my current setup.

I am running a simple socket server on a ESP8266. It appears
that when the link drops-out is that the ESP8266 re-boots
automagically. Nothing in the code does a machine.reset().

So, the unit is waiting and ready for a command to be sent again
from the client.

If this behaviour is reliable I could send the command from the client
every minute. As this ESP8266 can be fed into another uP I think I can
devise a way to store the state and to only respond to a change.

Am I seeing expected behaviour?

Thanks,
Dave
Last edited by davef on Sun Dec 06, 2020 10:19 pm, edited 1 time in total.

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: ESP8266 WiFi outages and resilient

Post by davef » Sun Dec 06, 2020 7:14 pm

Finally got the oscilloscope on the job. On the "faulty" unit the supply voltage dips from 3.0V to close to 2.5V every 80ms. I guess one of these dips gets close to the point where the ESP8266 re-boots.

I am using a LM317N off a 5V supply with 470uF on the output. If the ESP8266 draws more than 100mA on pulses then I can see that the output could drop below ... 5V minus the drop-out voltage at 100mA (~2V) = 3V

Are these 80ms pulses expected?

Thanks,
Dave

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: ESP8266 WiFi outages and resilient

Post by davef » Sun Dec 06, 2020 8:28 pm

Changing to a 13v5 to 3V3 1A SMPS has sorted the re-boot issues.

Putting another 470uF on the output of the LM317N only slightly reduced the 80ms dips. There must be a high peak current draw somewhere.

Now I can see how long the link stays up.

Post Reply