Hi everyone. I am creating my project on asset tracing using wifi modules. The projects include the wifi module and the power supply only. Right now I am using 2- 18650 batteries and a battery shield. So, I power the module directly using a cable. The program uploaded to the wifi module, just collects Access Points nearby and then send it to a server. 1 Wifi module has delay of 30 mins, while another one is in deep sleep mode for 30 minutes
I already tried running down the ESP8266 module. But there are no differences on the voltage drop and run time of the two modules. Actually, the normal mode run for about 58 hours while the one in deep sleep mode run for only 53 hours.
I just want to get idea on what battery will provide me longer run time for my ESP8266 wifi module.
Your suggestions will be of great help. Thank you!
Hey @kayamoyanself!
A five hour difference is a good start. Can you post a schematic? What exact modules are you using? Why does it need to run longer than 2 1/2 days? Can you post your code (in code tags as per the forum rules)?
Hey there! Honestly, I do not have any circuit. Simply, the ESP8266 module connected to the battery shield using a cable. I am using ESP8266 NodeMCU v3 module (the generic one).
I need to at least lengthen the battery life up to 7 days or more. I have been reading posts and other projects in the net and some of those went up to 3 months to 1 year battery life. The code I used is just a copy paste from the internet. The link below is my reference.
You may be able to get it to a maximum of 18 days. What milliamps are each battery that you have?
How frequently must it connect to the WiFi, or must it be on 24/7?
Does the ESP have a LED that is on all the time (a power LED)?
The maximum you can make it run for is 2 years and nine months, providing you have high powered 18650 batteries, an the ESP is in deep sleep.
The current program is looped continuously with 30minutes delay for each loop (scan neraby wifi, connect to the wifi and send data to the server over wifi). There are no LEDs.
I already tried deep sleep, but it discharged my battery same as the one with no deep sleep. How can I make it work like it saves my battery charge?
The one with NO deep sleep lasted longer than the one with deep sleep. I don't know what's happening with the battery when connected to wifi module with deep sleep, but deep sleep is working fine. I'll post my code. Let me just get it from my other pc
If you really want to get good battery life then you would be much better off with a plain esp8266 module that doesn't have all the other stuff on the board that also uses power, like the FTDI chip, LEDs, voltage regulator, etc.