Skip to main content

Cron Blog – My personal findings

Category: Arduino

ESP8266 on batteries for years – part 5

October 31, 2017November 1, 2017 Alex Jensen 20 Comments

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 […]

Read More

ESP8266 on batteries for years – part 4

October 31, 2017October 31, 2017 Alex Jensen Leave a comment

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. […]

Read More

ESP8266 on batteries for years – part 3

October 30, 2017November 1, 2017 Alex Jensen 5 Comments

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 […]

Read More

ESP8266 on batteries for years – part 2

October 30, 2017November 6, 2017 Alex Jensen 13 Comments

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 […]

Read More

ESP8266 on batteries for years – part 1

October 30, 2017November 2, 2017 Alex Jensen 32 Comments

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. […]

Read More

Wifi Current/Voltage Datalogger

October 10, 2017October 10, 2017 Alex Jensen 6 Comments

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 […]

Read More

Intrusion Alert

September 19, 2017September 20, 2017 Alex Jensen Leave a comment

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 […]

Read More

Home Environment – Part 4

September 8, 2017October 12, 2017 Alex Jensen 4 Comments

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 […]

Read More

Home Environment – Part 3

September 8, 2017October 12, 2017 Alex Jensen Leave a comment

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 […]

Read More

Home Environment – Part 2

September 8, 2017October 12, 2017 Alex Jensen Leave a comment

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 […]

Read More

Posts navigation

1 2 Older posts

Recent Posts

  • From Owntrack to QGIS – part 2
  • From Owntrack to QGIS – part 1
  • Ture og steder fra udinaturen.dk i QGIS
  • Grabbing Media with MITMPROXY
  • Evil Maid – Encrypt your harddrive
  • Under the radar remote shell
  • Poor mans Bash Bunny
  • ESP8266 on batteries for years – part 5
  • ESP8266 on batteries for years – part 4
  • ESP8266 on batteries for years – part 3

Recent Comments

  • Juki on Grabbing Media with MITMPROXY
  • David on ESP8266 on batteries for years – part 1
  • Brandon Garner on Poor mans Bash Bunny
  • Ric Mart on Playing with EXIF in Powershell
  • Tobias on Poor mans Bash Bunny

Archives

  • April 2020
  • July 2018
  • June 2018
  • May 2018
  • October 2017
  • September 2017
  • July 2017
  • May 2017
  • March 2017
  • February 2017
  • January 2017
  • October 2016
  • September 2016

Categories

  • Arduino
  • Docker
  • GPG
  • Hacking
  • Home Assistant
  • Linux
  • OpenNMS
  • Powershell
  • Ubiquiti
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Theme by Colorlib Powered by WordPress