Skip to content

Smart home ESP8266 driver. It controls power sockets basing on settings from database. Additionally it checks parameters and send through API into database(humidity, pressure, temperature).

Notifications You must be signed in to change notification settings

pwojtaszko/MicrocontrollerHome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP8266 microcontroller driver

Smart home ESP8266 driver. It controls power sockets basing on settings from database. Additionally it checks parameters and send through API into database(humidity, room temperature, water temperature).

This project is working with

Required modules:

  • ESP8266 NodeMCU
  • Real time clock (DS1302)
  • hdc1080 sensor (humidity, temperature)
  • 4 relays module (for my project I created power sockets controllable with relays)
  • Hermetic temperature sensor (DS1820)

API:

  • getSockets.php - fetch database values about power sockets settings
  • setSensor.php - send sensor value to database

Driver ESP1

  • Fetching time from web and save value to real time clock module (stores time when no internet connection between restarts)
  • Fetching sockets settings (enabled, lightModes) and save to EEPROM (stores settings when no internnet connection between restarts)
  • Reading sensors values (hdc1080, DS1820) and sending to database
  • Switching power sockets basing on current time from web/clock module and settings from database/eeprom.
  • Access point functionality to provide host and WiFi information
  • Support for Aquael day and night LED light modes switching (3 light modes: night, day, evening)

Driver ESP2

  • Reading sensors values (hdc1080, bme280) and sending to database

Driver ESP3

  • Reading sensors values (hdc1080) and sending to database

For my purpose I created additional project Smart home (https://github.com/wojtaszek171/SmartHome) which display all values and settings. It contains also administration panel for changing sockets settings.

Built prototype:

Prototype Prototype Prototype Prototype Prototype Prototype Prototype Prototype

About

Smart home ESP8266 driver. It controls power sockets basing on settings from database. Additionally it checks parameters and send through API into database(humidity, pressure, temperature).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published