Using ESP32 you can make a small home light show with 2 LED strips, a neopixel ring, a laser, a buzzer and an RGB LED!
I wanted to create something with lighting effects and a few days ago I got this ring, so I wanted to try it out and also see how the relay works with LED strips.
- Web interface
- You can switch modes
- It has a buzzer and an RGB LED for notification
- You can turn off various lights, buzzer, etc.
The script has exactly 199 lines, so it fit under 200!! It was very difficult, but I put everything in just one script, so you can just copy it and paste it into the ESP32 right away.
You can change profiles and turn off various lights via the web. The web runs on the ESP32 IP address. There is a small RGB LED and a buzzer for signaling. Everything can be turned on manually using the touch sensor hidden in the case.
- Mode 1 (FOREST): Constant green ring light with strip.
- Mode 2 (CYBER): Constant magenta ring light with laser.
- Mode 3 (NUCLEAR): Blinking relay with orange ring and pulsing warning buzzer.
- Mode 4 (SUNSET): Breathing effect on the ring in sunset colors.
- Mode 5 (AMBIENT): White ring light and relay for steady "illumination".
- Mode 6 (FOCUS): Blue pulsing ring effect for concentration with active relay.
- Mode 7 (DISCO): Strobe for relay and laser with rainbow ring and rhythmic beeps.
- Mode 8 (STROBE): High speed white strobe and ring with buzzer.
- Mode 9 (POLICE): Red and blue flashing ring with a siren sound.
- Mode 10 (EXTREME): Random chaotic flashing with flickering colors and noise.
I like sunset the most and extreme is probably the most chaotic!
Here is a view of the top and bottom of the case:
- ESP32 (Powered via USB or 5V Vin)
- Touch Sensor (TTP223):
- SIG: GPIO 4
- VCC: 3.3V / 5V
- GND: GND
- Relay (Strip Control): GPIO 23
- Laser Diode: GPIO 22
- Passive Buzzer: GPIO 17
- NeoPixel Ring (24 LEDs):
- Data: GPIO 21
- VCC: 5V
- GND: GND
- RGB LED:
- Red Pin: GPIO 19
- Green Pin: GPIO 18
- Blue Pin: GPIO 5
- GND: GND
- LED strips:
- 5V: COM (Relay) ---> 5V external (NO on relay)ay)
- GND: GND
- Arduino.h
- WiFi.h
- ESPAsyncWebServer.h
- AsyncTCP.h
- Adafruit_NeoPixel.h
- LittleFS.h
FS.h
Here is a youtube video where you can see how it works: Link




