Playing with the ESP-32

I am now working with the IDF (rather than arduino IDE). See the project here.

I use gpio17 to mark progress by toggling it at points of interest. It is labeled OUT (pink trace).
I found that GPIO5 is a good marker for the wakeup time so it is used as the DSO trigger. It is the blue trace.

Here is what a common loop of the program looks like:

Clearly this is very much slower than what I get with the esp8266. The whole run takes just under 1.6s.
OUT rises as the app starts, about 250ms after wakeup. The following toggle (~350ms) is when the wifi is started, and much later (at ~1480ms) we see a toggle when we reach STA_CONNECTED. It is followed by a toggle as we senda few 10s of ms later just before we enter deep sleep.

I need to include a current trace to confirm when deep sleep starts and ends.
[later] Got it, the green BAT trace is the current consumed from a 5v battery. GPIO5 looks like a good proxy for “awake”.

It wakes at 60-70mA, rising to around 140mA once wifi is turned on, with short spikes to over 350mA.
Total usage is 204mAs, the esp8266 uses around 50mAs (maybe less, I forget the latest results).

1 Like