Code Monkey home page Code Monkey logo

jorgen-vikinggod / esp8266-wifi-relay-bahtinov-masks Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 974 KB

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.

License: MIT License

Arduino 15.20% HTML 66.70% JavaScript 7.01% C++ 2.08% C 9.00%
esp8266 esp8266-arduino esp8266-webserver javascript bootstrap3 jquery spiffs json relay webserver wifi servo

esp8266-wifi-relay-bahtinov-masks's Introduction

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:

You also need to upload web files to your ESP with ESP8266FS Uploader.

Unlisted 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.

esp8266-wifi-relay-bahtinov-masks's People

Contributors

jorgen-vikinggod avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

xilione

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.