Mood Lamp Project Part - 2

 With the hardware done, the next step was the firmware and connecting it to Blynk.

The code runs in Arduino IDE and handles three things: Wi-Fi connection, receiving RGB values from the Blynk dashboard, and writing those to the NeoPixel ring. The Blynk app sends values through the cloud to the ESP32, which updates all 16 LEDs.

Setting up BlynkIOT: create a project in the Blynk web console, add an ESP32 device, get your Auth Token, and paste it into your code. The phone dashboard is three sliders for Red, Green, and Blue, each linked to a virtual pin. 


Testing was plug-and-play. Moved the sliders, the LEDs responded. Ran through a few colors: blue, green, red, and mixes. No issues at all. The lamp also diffuses light well when placed face down on a surface. The acrylic scatters it into a soft glow rather than 16 separate points. It wasn't planned, but it's a useful effect.

The working video is up on YouTube: https://youtube.com/shorts/1-iBQc89kcM, and the code is up on GitHub: https://github.com/AvyuktChhabra/MoodLamp. Feel free to pull and use the code from my GitHub.  

Comments

Popular posts from this blog

IIT Delhi Robotics Festival - Tryst 2026

Statics of a human arm

Robotic Hand Assist for Rehab - Part 2 - The Genesis