logo elektroda
logo elektroda
X
logo elektroda

[Solved] ESP8266 does not enter DeepSleep with temperature sensors

pier 801 3
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17755106
    pier
    Level 24  
    Welcome.

    I've used DeepSleep on the ESP8266 more than once and it worked as expected and today I don't know what has gone wrong.

    I wanted to run a simple program on my board with two temperature sensors and in order to save battery deepsleep and wake up every minute.
    Code: C / C++
    Log in, to see the code
    .

    When gpio16 is connected to reset esp resets continuously every few milliseconds.
    When running the esp with the Wake-up jumper removed it works fine until the first reset and again the situation as above.
    I have another circuit with esp and there deepsleep works as expected only different time interval. With this system, no matter what time interval I type in, esp always goes stupid.
    What is the problem?
  • ADVERTISEMENT
  • #2 17755609
    kaczakat
    Level 34  
    For a start, add some capacitor at VCC, just don't write that it worked before without OK. Also, I have two ESP12 modules (without E) and they won't sleep/wake up at all, but I had no problems with 07. You can also try powering directly from the battery (mine survived 4.3V, tests at your risk), the advantage is that there is no voltage conversion, once 3V is reached I go to sleep for ages.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 17757218
    pier
    Level 24  
    kaczakat wrote:
    For a start, add some capacitor at VCC, just don't write that it worked without OK before. Also, I have two ESP12 modules (without E) and they won't sleep/wake up at all, but I had no problems with 07. You can also try powering directly from the battery (mine survived 4.3V, tests at your risk), the advantage is that there is no voltage conversion, once 3V is reached I go to sleep for ages.


    The capacitor did not help. I have the circuit powered from a Li-ion cell via an MCP1700 stabiliser.
    I have a twin chip with an identical power supply and there deepsleep works without a problem.
  • #4 17757274
    pier
    Level 24  
    kaczakat wrote:
    For a start, add some capacitor at VCC, just don't write that it worked without OK before. Also, I have two ESP12 modules (without E) and they won't sleep/wake up at all, but I had no problems with 07. You can also try powering directly from the battery (mine survived 4.3V, tests at your risk), the advantage is that there is no voltage conversion, once 3V is reached I go to sleep for ages.


    The capacitor did not help. I have the circuit powered from a Li-ion cell via an MCP1700 stabiliser.
    I have a twin chip with an identical power supply and there deepsleep works without a problem.

    Added after 17 [minutes]: .

    Works.
    Some strange wording relating to the display was causing such circuses.
    Code: C / C++
    Log in, to see the code
    .
    Changed to:
    Code: C / C++
    Log in, to see the code
    .
    and it helped.
ADVERTISEMENT