All Projects → biohazardxxx → Esp_wifiswitch

biohazardxxx / Esp_wifiswitch

Licence: gpl-3.0
WiFi power switch using the ESP8266

Labels

Projects that are alternatives of or similar to Esp wifiswitch

Iso Port
Isolated USB Serial Interface
Stars: ✭ 16 (-70.91%)
Mutual labels:  kicad
Kicad Symbols Gost
KiCad schematic symbol GOST libraries. Mirror:
Stars: ✭ 20 (-63.64%)
Mutual labels:  kicad
Iotuz Esp32 Hardware
Project for the InternetOfTuz (LCA2017 Open Hardware Mini-Conference)
Stars: ✭ 34 (-38.18%)
Mutual labels:  kicad
6502 Kicad Library
Kicad Schematic Library for the 6502 microprocessor and associated ecosystem (MOS, CSG, etc)
Stars: ✭ 23 (-58.18%)
Mutual labels:  kicad
Uc3moy
UC3Music-e version of the CMoy pocket headphone amplifier (originally designed by Chu Moy )
Stars: ✭ 13 (-76.36%)
Mutual labels:  kicad
Preamp Two
An digitally controlled hi fi preamplifier 🔈🎵
Stars: ✭ 21 (-61.82%)
Mutual labels:  kicad
M2 Electronics
Stars: ✭ 6 (-89.09%)
Mutual labels:  kicad
Kicad Tools
Tools for making it easy to work with Kicad
Stars: ✭ 47 (-14.55%)
Mutual labels:  kicad
Kicad Libs
Libraries and tools for KiCAD EDA suite
Stars: ✭ 15 (-72.73%)
Mutual labels:  kicad
Panelize Plugin
Automatic KiCad panelization plugin
Stars: ✭ 33 (-40%)
Mutual labels:  kicad
Esp8266 link test
Test link between an ESP8266 and a base station or another ESP8266 easily.
Stars: ✭ 24 (-56.36%)
Mutual labels:  kicad
Wt Rpm
Wt Remote Power Manager - This project acts as a web front end to a piece of hardware capable of electronically switching the power supply of one or multiple computers.
Stars: ✭ 7 (-87.27%)
Mutual labels:  kicad
Voyager65 Keyplus
65% keyboard PCB for Keyplus firmware. Simplified variants available.
Stars: ✭ 29 (-47.27%)
Mutual labels:  kicad
Altair8800
Stars: ✭ 19 (-65.45%)
Mutual labels:  kicad
Cdm324 backpack
CDM324 Amplification Backpack, With Case and Simulations
Stars: ✭ 39 (-29.09%)
Mutual labels:  kicad
Arduino scale
An Arduino bathroom scale with auto power-off using a 4-digit 7-segment display and the HX711 and MAX7219 chips.
Stars: ✭ 7 (-87.27%)
Mutual labels:  kicad
Bumps
BeagleBone Universal Multi Pololu Steppers
Stars: ✭ 20 (-63.64%)
Mutual labels:  kicad
Electron
A mixed signal netlist language (pre-alpha)
Stars: ✭ 52 (-5.45%)
Mutual labels:  kicad
Magspoofpi
MagSpoof for Raspberry PI GPIO
Stars: ✭ 47 (-14.55%)
Mutual labels:  kicad
Cmio
Custom Raspberry Pi Compute Module IO Board
Stars: ✭ 29 (-47.27%)
Mutual labels:  kicad

ESP WiFiSwitch

General info

This sketch is for a WiFi enabled wall light switch with focus to reliable pushbutton switch. In the beginning or (if no WiFi connection) it is running a web server to configure WiFI (and MQTT if desired). Each second start up switch will load into OTA mode. By this you can upload a new firmware (compiled *.bin file) via web browser. The OTA mode will end after set timeout and restart into desired mode. The operation mode can be web server or MQTT to change the state of the light. The push button have to switch to ground.

Button functions

  • Normal press less than 1 sec but more than 50ms-> Switch light.
  • Restart press: 3 sec -> Restart the module.
  • Reset press: 20 sec -> Clear the settings in EEPROM

URL adresses

  • While a WiFi config is not set or can't connect:

    • http://server_ip *-> Gives a WiFi config page
  • While a WiFi config is set and in Web control mode (iotMode==0):

  • http://server_ip/gpio

  • Will display the GIPIO state and a switch form for it

  • http://server_ip/gpio?state=0

  • Will change the GPIO directly and display the above aswell

  • http://server_ip/cleareeprom

  • Will reset the WiFi setting and rest to configure mode as AP

  • While in OTA mode each second start:

    • http://server_ip *-> Gives a WiFi config page

server_ip is the IP address of the ESP8266 module, will be printed to Serial when the module is connected.

Hardware setup

Your WiFi switch should be connected like this

Schematic

You can reorder the working PCB here: https://oshpark.com/shared_projects/xoEZ3PnV or get it from any where else from the KiCad design files "ElectronicDesignAutomation" folder.

Parts list

Usage

For default usage you can use the pre build firmware and flash it with NodeMcu flasher.

After fresh flash please restart the module manualy (power Off & On) otherwise software restart will not work and sometimes WiFi connect does not work.

When manually compile and flash with Arduino IDE please make sure to have this flash settings: fLashSetting

Open the modules page after entering config mode (Press button >20secs if you want to enter again) via http://server_ip there you can setup to be MQTT controled or Web controled.

Credits

For several snippets used the credit goes to:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].