So my project based on ESP8266 module , TC1262 LDO , US 100 Ultrasonic Sensor .
The main activity of the device is to wake up each x minutes take sensor record, transmit go sleep while in night hours the device should sleep .
data :
Batteries supply : 14Ah / 4.5V
Power Consumptions (voltage and current draw ) :
ESP 3.3V / Transmit 0.075A / DeepSleep 0.000000035A
Sensor 3.3V / 0.002A
LDO 4.5V / 0.00007A
Time :
ESP Sending UDP (wake+connect+send+sleep ) = 0.3 S
ESP Deep Sleep : 2M
ESP work 12 Hours in day , sleep 12 Hours at night
Sensor work 24 Hours
Ldo work 24 Hours
Calculations :
ESP:
Total seconds in day is : 86400
Esp total wake time in day: (60/2) * 12 * 0.3 = 108 Seconds
Esp total sleep time in day: 86400-108 = 86292 Seconds
Duty Cycle = 108/86400 = 0.00125
AVG current draw esp : (0.00125 * 0.075 ) + (1-0.00125 )*0.000000035 = 9.3785^-5
Total hours : (14*4.5)/(3.3*9.3785^-5) = 203560.4627H = 23 Years
Sensor :
(14*4.5)/(3.3*0.002) = 9545H = 1.089 Years
LDO :
14/0.00007 = 22 Years
Questions :
1. Is it possible for batteries to hold so much time (23 years ) what have i missed and how to include it in
calculations ?
2. As you can see the life time of the sensor due to fact he works 24/7 is very low compared to the esp
My idea is to use maybe some external timer+supply + relay or transistor to turn on and off all the system
each x time will this work ?
Another thing i thought is maybe i can power on the sensor only when the esp
wakes ups using relay or transistor. please advice in this issue ?
Thanks you very much for support and help !