A simple to use esp32 LED strip, wifi enabled, controler with option for temperature sensor and thingspeak
if enabled in /setup page
It uses thingspeak for temperature data logging from a (ky-001 "dallas" on pin 15) sensor and a (DHT22 on pin 5)
Default settings:
Username: admin
Password: admin
This code requires the following dependencies :
WifiManager by tzapu ( currently using bbx10 fork https://github.com/bbx10/WiFiManager/tree/esp32)
WebServer by tzapu (currently using bbx10 fork https://github.com/bbx10/WebServer_tng)
simpleDHT by Winlin (builtin arduino library manager)
all other dependencies are built in the arduino ide
or may have been manualy added will need to clean-up when esp32 official support is out
At first run it goes in wifi server mode, you use your phone or pc to connect to it's wifi
and then set it up for your home wifi configuration. then you connect to it's ip to
change the password (default "admin"), sensors and thingspeak settings.
Use it to set the led strip color (pin 12 (Red), 13 (Blue), 14 (green) on Wemos Lolin32
also tested on nodeMCU-32S
it has these basic pages:
"/" for controling the LED strip color
"/temp" for temperature information
"/version" for version information
"/reset" to remove your wifi credetials from flash memory, reset preferences and reboot in wifi server mode
"/leds" Used internally to set leds color (can also be used to create widget on phones and pc)
"/anythingelse" a basic 404 not found page
"/flash" to flash leds (POST or GET COULEUR=#FFFFFF FOIS=10 DELAIS=500) where COULEUR is html color code, FOIS is the number of flashes, DELAIS is the delay in ms between flash.
"/party" for a page with post form to flash leds
"/log" to see latest visitors
"/setup" to set your password, thingspeak API KEY and channel #.
Any input are welcome !
You can see most of it in action here : http://008.ddns.net:8080
(/setup and /log are password locked)
At first run you connect to the device AP
and get this:
You configure the device for your home network
You save the settings and then the device tries to connect to your network
Make sure your phone/computer is re-connected to your home network
You can then use http://lumiere.local to connect to your device
Use the http://lumiere.local/setup page to configure your thingspeak API key and channel #
From there you can also go to the reset page wich reset ALL settings like new
From the /setup page you also have a link to the /log page wich let's you see the latest 50 visitors
And the /party page wich lets you set flash color, duration in ms, and # of flashes