![]() Serial.println("Wakeup without WiFi next time") ĮSP.deepSleep(5000000, WAKE_RF_DISABLED) // radio disabled after wakeupĪny idea what's wrong? I really need this project to go fast and I'm blocked here. Serial.println("Deep sleeping for 5 seconds.") Serial.println("WiFi connection failed") WiFi.forceSleepWake() // wakeup WiFi modem PinMode(2, OUTPUT) // GPIO02 on ESP-12 module is linked to on-board LED Actually, I used a simple sketch I found on the web which just blink the led on the esp, and even with this one, I had 10mA in deep sleep mode : #include ![]() It is pretty long and I don't want to bother you with that. My sketch is basically getting values from different sensors, connecting to wifi to send data to a server via ftp (based on the SurferTim's FTP code ( Arduino Playground - FTP)). But I read a few articles where people also had 10mA in deep sleep mode. Serial.print("\n\r \n\rWorking to connect") ĬonnectToClient((int)temp_c, (int)humidity) ĮSP.It is possible that the NodeMCU has not been deep-sleeped correctly. Version 1.0 Version 1.0 Mike Barela for Adafruit IndustriesĭHT dht(DHTPIN, DHTTYPE, 11) // 11 works fine for ESP8266 Tim figured out a simple hardware hack to get the ESP-01 to go to deep sleep, effectively reducing its current draw to 78uA low enough to allow battery powered deployment. RST -> to a button, and a 10k pull-up to VCCĬode: Select all /* DHTServer - ESP8266 Webserver with a DHT sensor as an inputīased on ESP8266Webserver, DHTexample, and BlinkWithoutDelay (thank you) ![]() GPIO2 -> DHT22 Datapin and a 10k pull-up to VCC TXD -> RX on TTL converter (TTL connected to computer USB) No lights are dimming on the ESP before, after or during the deep sleep function.Ĭan anyone offer a solution for this issue? The battery is the only thing powering my circuit. I have my ESP01 connected to a 3,7 LiPo Battery, and a DHT22 module. I have one 10k pull-op resistor connected to VCC and Data of DHT and one 10k pull-up connected to the reset. 3 posts of 1 ESP01 + DHT22 not able to wake from deep sleep, some times 44536 By Torjus - Wed 8:44 pm Hello I have been searching around the forums, but can't seem to find anything matching my problem. If I was stuck using the ESP-01 I would use the alarm switch contact to bring the ESP out of a reset state. That has all the pins available and can go into, and come out of, deep sleep. Most people would use a ESP-12 series module. good shape can give you the peace of mind you need to sleep soundly at night. You dont have access to the required pins. However after the fourth or fifth time, it will not wake from sleep. If you do smoke inside, be sure to use a deep ashtray and properly dispose. All the data i need is being sent back to my MQTT server. Its based on an ESP-01 and uses a BME280 and a BH1750. ![]() The module starts, gets temperature and humidity and goes to sleep, then wakes up does it's thing and goes to sleep. ESP-01 Deep Sleep Settings 1 door trevorjdaniel », 14:10 Hi, I have built my first project, a weather station, and I want to convert it to battery power. The module goes to deep sleep and wakes up again multiple times.Īs soon as i connect the DHT datapin to GPIO2, the problems start. When everything in my circuit is connected, except the DHT22 -> GPIO2 on the ESP, everything works fine. I have soldered a wire between Reset and GPIO16 to enable the deep sleep function. ![]() I have been searching around the forums, but can't seem to find anything matching my problem. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |