Skip to content

Home Automation firmware for IoT devices based on esp8266.

Notifications You must be signed in to change notification settings

snackk/esp8266-home-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP8266 Home Automation

Overview

This repository contains several IoT firmwares for esp8266 based hardware.

Wake on Lan

IoT device to remotly power up a computer. This is particular useful for wireless connected computers, whose wireless card don't support the wol magic packet. Esp8266 acts as a MQTT client that consumes wake up events from a given topic, in this case 'wol/push', and shorts the power switch circuit for a brief amount of time, emulating the button switch, switching on/off the computer.

In the figure bellow:

  • J1 represent the input pins where the power switch cables from the computer case must be connected to.
  • J2 represent the output pins to connect with the motherboard power switch.

wol

Led Stripe

Led Stripe RGB activated by an IoT device. Esp8266 acts as a MQTT client that consumes light events from a given topic, in this case 'lights/push' lightning the led stripe to match the chosen color.

In the figure bellow:

  • R1 should be connected to the Red pin on the led stripe.
  • R2 should be connected to the Green pin on the led stripe.
  • R3 should be connected to the Blue pin on the led stripe.

led

Prerequisites

Documentation

This projects might be composed on several other modules, namely WIFI, OTA, SPIFFS, WebSocket, mDNS. Most of these modules were implemented based on this guide.

Any issues flashing the esp8266 should refer to the problems section.

WIFI

The wifi setup creates a single AP and tries to connect to several pre-defined stations.

OTA

It's possible to do OTA (Over The Air updates), instead of flashing the code locally on the Arduino IDE.

SPIFFS

A File System capable of storing several files. This is used to serve HTML pages, files can be stored in a compressed to save some space.

WebSocket

WebSocket

mDNS

mDNS

Problems

Most of the problems I faced while flashing the esp8266 nodemcu was due to wrong configuration for my specific esp8266 board on the Arduino IDE, that or I haven't set the esp8266 to flash mode.

Written by @snackk

Releases

No releases published

Packages

No packages published

Languages