This repository contains source code for a little project to create a thunderstorm using cotton wool clouds, LED strip and ESP8266 microcontroller.
- create
config.py
with following structure
USE_AP = False # set to True to connect to external network, default AP from ESP will be used if False
SSID = '' # SSID of network you want to connect to
PASSWORD = '' # Password of the network
NEOPIXEL_PIN = 5 # pin of ESP where is the NeoPixel strip connected
NEOPIXEL_COUNT = 30 # number of LEDs on the NeoPixel strip
- install requirements (you may want to use virtualenv), specifically you'll need
mpfshell
command
pip3 install -r requirements.txt
-
connect ESP8266, download and install MicroPython to it (if you don't have it already)
-
check ESP8266 port and if it's different from
/dev/ttyUSB0
, change it inupload.mpf
file -
upload files to ESP8266 using
mpfshell
mpfshell -s upload.mpf
-
reboot the ESP
-
connect to IP address of the ESP from your browser and select mode
-
enjoy!