Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. ESP8266 - 07: What are the correct connections for deepsleep? (SOLVED)

ESP8266 - 07: What are the correct connections for deepsleep? (SOLVED)

Scheduled Pinned Locked Moved Hardware
2 Posts 1 Posters 7.9k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zed
    wrote on last edited by Zed
    #1

    This is mostly an ESP8266 related question. However, since my goal is to adapt this sensor for uses with the MySensors library I thought I could try finding some support here also.

    Long story short, I am building an ESP8266 based mailbox sensor, loosely following the post found here. The concept idea is to have the MCU in deep sleep forever until it is reset by the reed switch. Then the MCU wakes up, connects to the Internet and sends a message.

    0_1487099147550_circuit_updated.png

    Above you can see my circuit schematic. Based on my previous ESP8266-01 experience I have:

    • VCC and CH_PD pulled up with 4k6 or 10k resistors
    • GPIO0 and GPIO2 pulled up with 4k6 or 10k resistors
    • tact buttons in order to be able to flash the mcu with the same board
    • GPIO16 connected to RST in order to wakeup from deep sleep.

    I realized that it is impossible to wake from ESP.deepSleep(0) using the magnetic reed switch, except if I disconnect GPIO16 from RST. I suppose that the GPIO LOW is not low enough to reset the mcu, because RST is pulled up to VCC. Correct?

    Of course after disconnecting GPIO16 from RST, it is not possible any more to wake up from a predefined period deep sleep (in case that this is needed), e.g. ESP.deepSleep(1000).

    So I am wondering... Is it necessary for ESP8266-07 (or 12) to connect GPIO16 to RST (like we do for esp-01) in order to be able to use the deep sleep function for a predefined time period? Could someone propose how the ESP07 should be connected correctly? There is a lot of contradicting info on the Internet.

    *SOLUTION: The trick is to add a (schottky) diode between the RST and GPIO16 (see updated circuit). With this configuration it is possible to wake up the mcu from esp.deepsleep(0) by either pressing the tact button or by opening the magnetic switch. It is also possible to wake up from predefined sleep time esp.deepsleep(time). The 470 Ohm (or 1K) resistor also works, but it depends on the neighboring component values. The diode is more well defined.

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      Zed
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      26

      Online

      11.7k

      Users

      11.2k

      Topics

      113.1k

      Posts


      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • MySensors
      • OpenHardware.io
      • Categories
      • Recent
      • Tags
      • Popular