ESP8266 - WiFiManager and EEPROM
My next addition to previous projects Battery Powered Wifi IoT - Temperature, Humidity & Soil Moisture Sensors and Battery Powered ESP8266 IoT & Temperature Sensor is to make wifi configuration smooth and fast.
My next addition to previous projects Battery Powered Wifi IoT - Temperature, Humidity & Soil Moisture Sensors and Battery Powered ESP8266 IoT & Temperature Sensor is to make wifi configuration smooth and fast.
I have just made a prototype of ESP8266 (ESP-01) IoT temperature & humidity SI7021 sensor and also 2x three pin soil moisture sensors with only 0.006mA (6µA) current drain during the sleep.
I successfully run DHT22 battery ESP8266 temperature/humidity IoT sensor so my next project is a simple IoT Door Sensor. It is up and running and sending a simple event to my HTTP server via wifi chip ESP8266 (ESP-01 in my case). HTTP server is serving simple php script, that stores the data locally and also sending events to DWEET.IO and also sending email via Amazon SNS (AWS CLI api).
I have read several posts to reduce the power consumption of micro-controllers and learned that the althought you can minimize the power consuption of arduino, usually you have other sensors/chips that cosume more power then customized low power arduino.
The idea now is to use ATtyni13A – Atmel picoPower 8-bit AVR RISC-based microcontroller as a timer switch for the all other circuits especially for projects, when you want your circuit run once an hour or less for only some seconds (data loggers,..). In this case the ATtyni13A is up and running 24/7 and everything else is without the power, so the consumption of the rest of the circuit is 0A. ATtyni13A consumption is only 0.005mA (5µA) in a sleep mode.
Programming ATtiny micro-controller is quite easy if you have all the needed information in one place. That is the reason to put all needed files, hints in one post so next time I will need it, there is no need to google it again from various sources. At the same time I hope, this post will be useful also to someone else trying to program ATtiny13A.
There is quite uses full post describing the wiring of arduino UNO with ATtiny13A. LED with resistor is added to test the basic blink test from Arduino IDE.