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 […]
Category: Arduino
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 […]
Intrusion Alert
Arduino Intrusion Detection / Honeypot I decided to make a small intrusion detection system for my network. It works like this: When powered up it displays it’s address (can be obtained via DHCP or set statically in the code) After 20 seconds it blanks the display and listens for incomming traffic to the device. If […]
Home Environment – Part 4
Server side Here I will try to roughtly explain the server side of the story. This is not a complete guide in setting up Home Assistant, Mosquitto and Grafana. That is way to extensive to cover here. But there is a lot of good guides out there. Homie The first time you start up […]
Home Environment – Part 3
ESP8266 master All communication via MQTT is handled by the brilliant library/framework called Homie. I am using version 2 which is extremely well documented. I let the ESP wake up, take it’s readings and then go to sleep for 2 minutes before the next reading. I have simplified the main sketch by making a generic […]
Home Environment – Part 2
Components used Most of my components were found cheap on AliExpress or on Ebay. It’s amazing what you can get for a few dollars, if you are ready to wait for 1-2 month for delivery 🙂 ESP8266 12E Module: Find at AliExpress Arduino pro mini: Find at AliExpress PPD42 Dust sensor: Find at AliExpress CCS811 […]