- Sat Jan 07, 2017 3:07 pm
#60612
Hi !
I work on same things : ESP03, ESP12 or Wemos D1 Mini sending datas (temperature from DS18B20, voltage and session lengh) to ThingSpeak each hour.
Just like you direct power comes from a 1500 mAh 3,2V LiFepo4 battery.
I reach 6 months logging with ESP03 (no led) variant.
-full session are now under 2s (average = 1,77s) for a Wemos D1 Mini device 10m far from router a wall between them
-full session are now about 1s (average = 1,19s) for a, ESP12 device 3m from router and no wall between them.
To reach that I combine several tricks :
1) DS18B20 is a slow device so I reduce resolution to 10bits (faster acquisition)
2)I reduce Tx radio power :
Code: Select allWiFi.setOutputPower(16.0); // 16 dBm , max 20.5 dBm
3)I set fixed IP and DNS 'hardcoded' :
Code: Select allWiFi.config(IPAddress(192, 168, 1, 100), IPAddress(192, 168, 1, 254), IPAddress(255, 255, 255, 0), IPAddress(192, 168, 1, 254));
4) No ThingSpeak library used (to slow), just some simple HTTP GET request
5) 'timeout' added in router and server connection loops : if connection doesn't occur within 8s : 'go to sleep and try later'
6) When battery is low (3,1V to 3.0V ) internal resistance grows and produce brownout voltage during strong Tx radio current pulses.
470µF or 1000µF (selected for low leakage current and low ESR) help power and give some more weeks
You do not have the required permissions to view the files attached to this post.