This repository contains several IoT firmwares for esp8266 based hardware.
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.
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.
- esp8266 nodemcu
- esp8266 boards for Arduino IDE esp8266
- WebSocket library for Arduino arduinoWebSockets
- esp8266 file system uploader arduino-esp8266fs-plugin
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.
The wifi setup creates a single AP and tries to connect to several pre-defined stations.
It's possible to do OTA (Over The Air updates), instead of flashing the code locally on the Arduino IDE.
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
mDNS
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