This project uses ESP8266 and software made using wifi-iot.com. The project is also part of a smart home, which will be written about later. For home-made devices, it is not easy to find a case that does not spoil the design of the house. A good option is to use an old wall clock as a case.
We complement our wall clock with a microcontroller, a display and sensors for carbon dioxide, pressure, temperature, humidity and lighting. Information from sensors is very useful to us and our smart home.
- NodeMcu development board based ESP8266 – $2.5
- MH-Z19B – Infrared CO2 Sensor – $18
- BME280 – Digital Sensor Temperature Humidity Barometric Pressure Sensor – $2.25
- 0.56 inch 4-Digit 7 Segments Digital LED Display TM1637 – $0.89
- IRLU024N – 3 pcs – $0.15
- 5V RGB LED Strip – $2.29
- TSL2561 Luminosity Sensor – $1.15
- Power Adapter 5V 2A – $3.73
Register on wifi-iot.com. Open the web page https://wifi-iot.com/p/esp8266/ mark the sensors and functions you need. Remember that you can add or remove later. For convenience, select the “default settings” section and click the gear icon. Edit the “access point name” and “access point password” fields. The firmware will be compiled immediately for your wifi network. Click “save changes” and “download”.
Using the Flasher program, load the firmware into the module. We go to the web interface of the module. To activate many functions, you need to buy a license, it costs $1.5 . A license is purchased for a module, while the number of compilations of firmware is not limited.
It is important that the sensor readings can be obtained by get request and received in json format. The answer looks like this: