https://github.com/jorgen-vikinggod/esp8266-wifi-relay-bahtinov-masks
simple sketch for ESP8266 of using ESP8266WebServer to switch relays on GPIO pins, control servos to open and close masks, serves a simple website with toggle buttons for each relay and mask servo.
https://github.com/jorgen-vikinggod/esp8266-wifi-relay-bahtinov-masks
bootstrap3 esp8266 esp8266-arduino esp8266-webserver javascript jquery json relay servo spiffs webserver wifi
Last synced: 9 days ago
JSON representation
simple sketch for ESP8266 of using ESP8266WebServer to switch relays on GPIO pins, control servos to open and close masks, serves a simple website with toggle buttons for each relay and mask servo.
- Host: GitHub
- URL: https://github.com/jorgen-vikinggod/esp8266-wifi-relay-bahtinov-masks
- Owner: Jorgen-VikingGod
- License: mit
- Created: 2017-09-29T12:18:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-04T14:23:18.000Z (over 7 years ago)
- Last Synced: 2025-03-16T22:21:16.435Z (7 months ago)
- Topics: bootstrap3, esp8266, esp8266-arduino, esp8266-webserver, javascript, jquery, json, relay, servo, spiffs, webserver, wifi
- Language: HTML
- Size: 951 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ESP8266-WiFi-Relay-Bahtinov-Masks
simple sketch for ESP8266 of using ESP8266WebServer to switch relays on GPIO pins, control servos to open and close masks, serves a simple website with toggle buttons for each relay and mask servo.## Features
* Data is encoded as JSON object
* get and set relay states also by simple GET requests
* Bootstrap and jQuery for beautiful Web Pages for both Mobile and Desktop Screens
* ArduinoOTA updates
* MDNS support### What You Will Need
### Hardware
* An ESP8266 module or development board like WeMos or NodeMcu with at least 32Mbit Flash (equals to 4MBytes)
* 4 Relay Modules### Software
#### Building From Source
Please install Arduino IDE if you didn't already, then add ESP8266 Core (Beware! Install Git Version) on top of it. Additional Library download links are listed below:
* [Arduino IDE](http://www.arduino.cc) - The development IDE (tested with 1.8.3)
* [ESP8266 Core for Arduino IDE](https://github.com/esp8266/Arduino) - ESP8266 Core
* [ArduinoJson](https://github.com/bblanchon/ArduinoJson) - JSON Library for Arduino IDEYou also need to upload web files to your ESP with ESP8266FS Uploader.
* [ESP8266FS Uploader](https://github.com/esp8266/arduino-esp8266fs-plugin) - Arduino ESP8266 filesystem uploaderUnlisted libraries are part of ESP8266 Core for Arduino IDE, so you don't need to download them.
### Steps
* First, flash firmware by Arduino IDE or with your favourite flash tool
* Flash website data to SPIFFS either using ESP8266FS Uploader tool or with your favourite flash tool
* (optional) Fire up your serial monitor to get informed
* Power on your ESP8266
* Check your new IP address from serial monitor or DHCP network settings and connect to your ESP8299. (You can also use "http://wifi-relay.local").
* Toggle relay 1, relay 2, relay 3, relay 4 and relay 5 buttons on or off and enjoy your WiFi relay device.
* Toggle mask 1, mask 2 and mask 3 buttons open or close and see how your servo motors moving.
* Congratulations, everything went well, if you encounter any issue feel free to ask help on GitHub.