问题复现
在物联实验当中,由于希望设备小型化,并能够持久使用,选用了WeMos 18650电池盾版。
这个版本在Arduino IDE当中对应 WeMos D1 R2 & mini型号。
在调用ESP.deepSleep()并经过了指定时间之后,在唤醒时会卡住无法继续执行,电源指示灯常亮。
解决办法
将下图红标处的两个引脚连接即可,原因是ESP8266要求GPIO16也就是D0管脚和WakeUp相连,这样才能从深度睡眠模式下正常唤醒。
注意:引脚图并不准确。 请查看ESP-WROOM-02 引脚说明:
https://randomnerdtutorials.com/esp8266-pinout-reference-gpios/
参考资料:
引脚图(Pinout):
焊接位置:
https://compacttool.ru/wemos-d1-wroom-02-18650-platforma-razrabotki-iot-na-esp8266-wifi
ESP8266 引脚图:
https://randomnerdtutorials.com/esp8266-pinout-reference-gpios/
解决方案:
https://amp.reddit.com/r/esp8266/comments/crt6li/makerfocus_espwroom02_with_18650_sheld/