Box that can switch the LEDs from interactive mode to just white

rorist 799faa7a40 configure pin 1 month ago
led_switch 799faa7a40 configure pin 1 month ago
README.md b8b33f0a72 added design and flashing instructions 11 months ago
led switch box with switch.dxf b8b33f0a72 added design and flashing instructions 11 months ago

README.md

LED switch box

Box that turns remote LEDs from interactive mode into regular white. Think of it as a connected light switch that turns off the party when the folks get back home.

Software

Micropython running on an ESP8266

Hardware

Laser cut acrylic box and switch that was recovered from a vintage power supply.

Notes

Flashing nodemcu lolin

pip install esptool.py
esptool.py --port /dev/cu.wchusbserialfa130 erase_flash
esptool.py --port /dev/cu.wchusbserialfa130 write_flash --flash_size=detect --flash_mode dio 0 esp8266-20171101-v1.9.3.bin

Connecting WiFi

MicroPython v1.9.3-8-g63826ac5c on 2017-11-01; ESP module with ESP8266 Type "help()" for more information.

import network sta_if = network.WLAN(network.STA_IF); sta_if.active(True) #5 ets_task(4020ed88, 28, 3fff9730, 10) sta_if.scan() [list of aps] sta_if.active(True) sta_if.connect('ssid', 'pass') sta_if.isconnected() True sta_if.ifconfig() ('192.168.130.110', '255.255.255.0', '192.168.130.1', '62.220.128.14')