Skip to content

Use ESP8266 WiFi MCU to control a remote controlled mains power switch over Internet

License

Notifications You must be signed in to change notification settings

ksalin/esp8266_power_switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ESP8266 Power Switch

Use ESP8266 WiFi MCU to control a remote controlled mains power switch over Internet.

Copyright (C) 2016 Jussi Salin [email protected] under GPLv3.

Hardware

Adafruit ESP8266 break-out board connected to a remote controller of the remote controller mains power switch.

https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/

Wiring:

ESP8266            Remote

 3V o------------- Battery+ (do NOT insert battery)

GND o------------- Battery- (do NOT insert battery)

 #4 o------------- Parallel of turn ON button

 #5 o------------- Parallel of turn OFF button

The remote controller is ran by 3V instead of whatever battery it came it, for example, a 12V battery. Three volts seems to be enough to get distance of several meters still though. This way there is no need for any level converter on the two switch pins.

Software

Firmware has a hard coded URL and SSID + KEY configured in a include file. They are used to fetch content "true" or "false" which determines what action to take. Controlling is done by simply changing content of the file on a web server of choice. This kind of polling client approach is useful when the switch is located behind a NAT.

To use the board in Arduino, you have to install support for it adding following URL in Preferences and then installing esp8266 in Boards Manager: http://arduino.esp8266.com/stable/package_esp8266com_index.json

About

Use ESP8266 WiFi MCU to control a remote controlled mains power switch over Internet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages