Like what we heard in the song The Color of The Night, we always indulged in the psychedelic lights at night. The colorful lights tell sadness or happiness. I like the color of lights but I hate the uncomfortable manually switch of them. Fortunately, I have DIY a smart colorful light which satisfied my requirements of switch, color and even feelings.
This ESP32 project is based on FireBeetle ESP32 IoT microcontroller (supports Wi-Fi & Bluetooth).
Hardware
NPN Triode×1
FireBeetle ESP32 IOT Microcontroller (Supports Wi-Fi & Bluetooth) ×1
FireBeetle Covers-Proto Board×1
Rotary Encoder EC11J×1
BME280×1
Hardware Connection
Schematic and drawing, shown as below.
Firstly, connecting D2, D3, D4 to D2, D3, D4 of the FireBeetle Board-ESP32 respectively and drive with high-level. And connecting Vcc to Vcc of the FireBeetle Board-ESP32 too. Then, there are A and B in the Rotary Encoder EC11J, A should be connected to D7, B to D6 and the bottom should be connected to D5. Finally, connecting BME280 to I2C of FireBeetle Board-ESP32.
2. Connecting and fixing RGB lights with Dupond, shown as below.
3. Connecting output line to FireBeetle Board-ESP32, Rotary Encoder EC11J and FireBeetle Covers-Proto Board according to the schematic and drawing, shown as below.
Remember to fix the connected electronic circuit with hot-melt glue.
Remember to fix the connected electronic circuit with hot-melt glue.
Crust assembly
The curst printed by a 3D printer.
Then you should click here to download the program to the FireBeetle Board-ESP32.
I chose Blynk for the mobile client.
Temperature: V3
Humidity: V4
Pressure: V5
Red Light: V0
Green Light: V1
Blue Light: V2
Switch Bottom: V6
Finally, well done!
P.S: I love the design of the interface. Cool!
Comments