Actual power consumption measurements The power beast – ESP8266 One of the very first and most important measurements is how much the ESP consumes when its waken up. I used my voltage/current logger to measure this. This is the result: It shows that the ESP is awake for about 0.7 seconds and on average […]
Month: October 2017
ESP8266 on batteries for years – part 4
Python Server The python source code can be found on github here. The program starts up a TCP listener on a defined port. Whenever there is an incoming connection it spawns a thread that handles the incoming data. The data packet is parsed and each measurement is stored in Influx-db with name, value and timestamp. […]
ESP8266 on batteries for years – part 3
AtTiny85 Firmware The arduino source code can be found on github here. The main loop is a state machine that keeps track of if the AtTiny is sleeping, measuring, waking up ESP, or sending its data. When a measurement is taken it’s stored in RAM. If it doesn’t fit in RAM, the oldest measurements are […]
ESP8266 on batteries for years – part 2
Build materials ESP8266 12E Modules: 2$ at aliexpress TSL2561 Breakout board: 1$ at aliexpress SI7021 Breakout board: 2$ at aliexpress AtTiny85 DIP mcu: 1.3$ at aliexpress Here you can find the main components for my device. I only link to the search and show the picture of my device, because products/companies comes and goes. If […]
ESP8266 on batteries for years – part 1
The ultra low power weather station For some time I have been fascinated by the possibilities of the ESP8266, but I never really considered it good for a life on batteries. I got an idea of making an outdoor weather station that would send measured light level, temperature and humidity to my home automation server. […]
Wifi Current/Voltage Datalogger
Problem to solve I have made a small ESP8266 based outdoor sensor that runs on batteries. I wanted to see how much power it uses when it powers up from sleep to help me do some calculations on battery lifetime. In my toolbox i found an INA219 breakout board that would help me do my […]