1/8/2024 0 Comments Deepsleep esp8266![]() ![]() Once attached be careful not to tug on the wire as you may rip pin 16 off the PCBīut fortune favours the brave.Don’t get excess solder on the pin next to pin 8.Thankfully I’ve modded ten modules and not broken any yet. I was initially worried but decided that the modules are so cheap I could take the risk. If you are sceptical about how successful you might be I would recommend practising on a scrap PCB. But if you are doing that you don’t need to worry about this hardware mod. The module will remain in deep sleep until it sees a rising edge (Low to High) on the reset pin. If you call deepSleep with a zero like this : ESP.deepSleep(0) The maximum value you can pass to the deepSleep function is 4294967295. If you want to specify the sleep time in seconds you can use a variable and do this : ESP.deepSleep(sleepSecs * 1000000) In this example the module will sleep for 60 seconds (60 million microseconds). Once your hardware is ready you can use deep sleep by adding a single line of code at the end of your Arduino IDE Sketch : ESP.deepSleep(60 * 1000000) This video is a photo slide show but gives a few useful tips : This video shows the soldering process although I didn’t use any flux : Everyone has their own style and technique but I found watching a few of these useful before trying it myself. There are a number of videos on YouTube that show other people performing this mod. Being normal insulated wire it’s easier to avoid touching other pins :Ī jumper (shunt) completes the circuit and can be removed if necessary. The other end of this wire is soldered to the reset pin. The thin copper wire is soldered to one pin :Īn additional piece of wire is soldered to the other pin : In order to allow me to disconnect this mod I routed the connection via a 2-pin header which I super-glued to the rear of the module. The connection will be fragile so you may want to secure the wire with a blob of hot glue.Īt this point some people then solder the wire to the reset Pin, being careful not to touch any other metal parts. You don’t need to attempt to solder directly to the pin. This is enough to melt the solder which then sticks it to the pin. Then a few millimetres away from the pin I touched the wire with the soldering iron. I touched the end to the pin on the 8266. I used a strand of thin copper wire and applied a thin layer of solder to one end. Holding the module in a magnifying glass “helping hand” allows you to see the pin. The modification looks a bit scary but becomes easier with practice. The diagram below shows the location of pin 8 on the module : By programming your ESP32 board with the code above, the board goes into Deep Sleep mode and wakes up every 5 seconds by the Timer. When the onboard clock decides it is time to wake-up it pulls the XPD_DCDC pin Low briefly which causes the ESP8266 to reset. To put ESP32 into Deep Sleep and wake it up with Timer, upload the following code on your ESP32. The modification connects pin 8 (XPD_DCDC) on the ESP8266 chip to the module’s reset pin. This article will explain how to enable deep sleep. However to wake up after a set amount of time it requires a hardware modification. It can be put into a deep sleep state where its power consumption is measured in micro-amps. The ESP-01 is a small, cheap ESP8266 based module with WiFi support. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |