You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When periodically waking the chip from deep sleep in order to read the ADC pin, I measure a different behaviour depending on whether the WAKE_RF_DISABLED flag is passed to the ESP.deepSleep() command.
The voltage is applied to the ADC pin using an external bench top power supply (to ensure low output impedance), and its value is checked using a floating precision multimeter. Below is the ADC response depending on whether the WAKE_RF_DISABLED flag is passed or not (red and blue lines, respectively):
In addition to this, when the WAKE_RF_DISABLED flag is passed, the value read on the first boot up after power on is actually the same as the case when the WAKE_RF_DISABLED flag is not passed. But then all susequent wakes from deep sleep give a different value. These two values are marked on the graph above as green cross and purple circle, respectively.
Hardware connections:
GPIO15 --> pulled to GND with 5k resistor
GPIO2 --> pulled to VCC with 5k resistor
RST connected to GPIO16 (for deep sleep)
CHIP_EN --> pulled to VCC with 5k resistor
Stable 3.3V VCC is provided by MCP1700 linear regulator.
The only reference I could find to a similar problem is in this comment.
Problem Description (basic info below)
When periodically waking the chip from deep sleep in order to read the ADC pin, I measure a different behaviour depending on whether the
WAKE_RF_DISABLED
flag is passed to theESP.deepSleep()
command.The voltage is applied to the ADC pin using an external bench top power supply (to ensure low output impedance), and its value is checked using a floating precision multimeter. Below is the ADC response depending on whether the

WAKE_RF_DISABLED
flag is passed or not (red and blue lines, respectively):In addition to this, when the
WAKE_RF_DISABLED
flag is passed, the value read on the first boot up after power on is actually the same as the case when theWAKE_RF_DISABLED
flag is not passed. But then all susequent wakes from deep sleep give a different value. These two values are marked on the graph above as green cross and purple circle, respectively.Hardware connections:
GPIO15 --> pulled to GND with 5k resistor
GPIO2 --> pulled to VCC with 5k resistor
RST connected to GPIO16 (for deep sleep)
CHIP_EN --> pulled to VCC with 5k resistor
Stable 3.3V VCC is provided by MCP1700 linear regulator.
The only reference I could find to a similar problem is in this comment.
MCVE Sketch
Debug Messages
Below is the output of the very first ADC read after power on, and the second read after waking from deep sleep with the
WAKE_RF_DISABLED
flag :Basic Infos
Platform
Settings in IDE
The text was updated successfully, but these errors were encountered: