Wifi light dimmer based off of the inexpensive ESP8266 wifi modules.
I'm using a dimming circuit by [diy_bloke] (http://www.instructables.com/id/Arduino-controlled-light-dimmer-The-circuit/step1/Arduino-controlled-light-dimmer-The-PCB/).
Fritzing schematics are under the schematics folder.
- Download [Arduino-compatible IDE with ESP8266 support] (https://github.com/esp8266/Arduino)
- Load smartSwitch.ino sketch in Arduino IDE
- Fill in SSID and password
- Verify/adjust GPIO pins.
- Flash sketch to ESP
Browse to IP of ESP. Use GET variables to configure settings:
- s = state (0 or 1)
- b = brightness (0-255)
- f = fade (0 or 1)
ex1: View current settings (json): http://ip.of.esp/
ex2: Set brightness to 50% and set state to on: http://ip.of.esp/?s=1&b=128
ex3: Set brightness to 100% and enable fade: http://ip.of.esp/?b=255&f=1
ex4: Toggle state (on->off or off->on): http://ip.of.esp/?s=t