But again, I do not know how much current all that would take to achieve all this? Now the even bigger question is – how would I be able to send a command to the esp32 to let it know if it needs to alarm when it detects the reed switch connection or if I simply want to open the window to get some fresh air without it tripping the alarm? That can be done with every 2 minutes it wakes and send data – I could just send json string back letting it know to not worry if the reed switch is tripped or not. The big question I have though is this – How much does waking every 2 minutes, turning on the Wi-Fi and RX/TX a json string take in mA? Each time I am wanting it to send via WIFI a json string to my home server API to let update my dashboard so it knows that esp32 status (open or closed window/door) and battery level (10-100%). ![]() So, I will only wake it up using the external source which would be the reed switch (ext0/vp) and use the Timer function to send and receive data every 2 minutes and then go back to sleep for another 2 minutes I’ve seen that its around 150 ♚ (0.15 mA) and replacing that value with the one provided above (0.02 mA) with the calculator gives me an even lower amount of days. I plan on utilizing the deep sleep function that the esp32 has. This puts it just shy of 1 year (323.7 days) on the LIPO only. Number of wakeups per hour = 120 (every 2 minutes) For my math I came up with the following:Ĭurrent consumption of device during sleep = 0.02 mAĬurrent consumption of device during wake = 5 mA I found the website that allows me to input the specs of my esp32 and see how long the battery would last depending on the size of the battery. I have 20 of these to use with a reed switch and a custom 3D printed enclose for it. ![]() The version I have has the JST connector to hook up a LIPO battery to. I am wanting to place window and door sensors (reed switch) and hook it up to my ESP32 wroom-32 (wemos) microprocessor. I’m looking to create a project for my home.
0 Comments
Leave a Reply. |