An IoT-Device based on NodeMCU-ESP8266, MAX7219 and DHT11
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
3d-printing
ESP_clock
images
.gitignore
README.md
esp8266_smartclock.fzz
sensor.php
style.css

README.md

esp8266-smartclock

We started designing and building a small clock that is connected to your local Wifi and controls your home using cheap 433Mhz power outlets. The ESP8266 operates as a relay to communicate with your power outlets.

Hardware

The total costs are around 25€:

  • NodeMCU board with the ESP8266 and an USB programmer
  • DHT11 or DHT22 (optional)
  • 433Mhz transmitter (XD-RF-5V)
  • 4x MAX7219 based 8x8 led matrix
  • 433mhz Wireless Remote Control Electrical Outlet Switch (example)
  • some wires

Schematic

Fritzing File

Features

  • opens an access point to enter your local Wifi SSID and password
  • customisable slots for your power outlets
  • custom brightness settings for the LED matrix
  • Read Data from a DHT11 temperature and humidity sensor and send it to a remote Host (for saving the data see: sensor.php)
  • NTP Time support
  • supports multiple Wireless Remote Control protocols (we are using the rc-switch library)
  • dyndns (using a get request on a given url every 10 minutes)
  • password-authentication for user from the internet (no https 😞)
  • OverTheAir Update

Development

Dependencies

Compile

arduino ./ESP_clock/ESP_clock.ino --verify --preserve-temp-files

Update via OTA

curl -u admin:admin -F "image=@$(find /tmp/arduino* -name 'ESP_clock.ino.bin')" esp8266/update

or via webinterface at http://esp8266/update