In a previous video, I demonstrated the ability to control one or more ESP8266 based displays with MQTT from an MQTT enabled application on my phone.
In this video, I've hooked up a couple of rotary encoders, a couple of 10K potentiometers and some buttons to an ESP32 (because of multiple ADC requirements). A strip of WS2812's are connected to an ESP8266, running FastLED of course.
I'm also using an old LG G3 Android phone as a wifi hotspot as well as MQTT broker.
Basic controls on the top (from the left) as follows:
Encoder1 - Select mode.
Encoder2 - Select palette.
Potentiometer1 - Change speed (in some modes).
Potentiometer2 - Change brightness.
One of the key things when writing sketches with controls is to do so WITHOUT using delay() statements.
Oh, and the LED on the bottom right of the panel:
Red - Power is on.
Yellow - Wifi is connected.
Green - MQTT is connected as well.
This particular routine isn't published yet, however I've got a LOT that are. Check out:
https://github.com/atuline
コメント