DIY RGB Paper Lamp Using ESP8266 and Blynk

by Kiteretsu in Circuits > Arduino

818 Views, 2 Favorites, 0 Comments

DIY RGB Paper Lamp Using ESP8266 and Blynk

RGB_Lamp_using_esp8266_Blynk_AdobeExpress.gif
RGB Lamp using esp8266+Blynk

In the era of IoT (Internet of Things), home automation has become a popular topic of interest. A significant part of home automation is lighting control, and RGB lamps are an excellent way to add color and ambiance to any room. In this project, we will create an RGB lamp based on the ESP8266 Wi-Fi module and the Blynk mobile app. The ESP8266 will allow the lamp to connect to your home Wi-Fi network, and the Blynk app will allow you to control the color, brightness, and effects of the lamp from your smartphone. This project is perfect for anyone who wants to add a touch of color to their home and learn more about IoT and programming.

Supplies

  • ESP8266 Wi-Fi module (NodeMCU)
  • RGB LED strip
  • 12V power supply (sufficient to power your LED strip)
  • Breadboard or PCB board
  • Jumper wires
  • BC547 transistor (or IRFZ44N or equivalent)
  • 10k ohm resistor
  • Blynk mobile app
  • Paper/Plastic Cups x2 (make sure light can easily pass through it)
  • Thick paper strips
  • Transparent tape
  • Scissors

Creating the Base

IMG_20230508_023416.jpg
IMG_20230508_023717.jpg
IMG_20230508_024229.jpg
IMG_20230508_024437.jpg

Take two identical cups, clear the bottom face of one, place them together one over the other and glue them together, divide the bottom face of cup into 12 equal parts.

Add Paper Strips to the Base

lamp_body_AdobeExpress.gif
lamp body
IMG_20230508_024229.jpg
IMG_20230508_134750.jpg
IMG_20230508_134622.jpg
IMG_20230508_135316.jpg
IMG_20230508_135513.jpg
IMG_20230508_135818.jpg
IMG_20230508_135830.jpg
IMG_20230508_140131.jpg
IMG_20230508_150103.jpg

Take length of the strips as twice the length of the cup structure, and width 4 cm would be enough, attach strips one by one at a time, make sure to end the strip in same line at which head of the strip is started (i.e. head and tail of the strips must be in same line), repeat this pattern for next strips and so on, to complete the lamp body.

Designing the Circuit

final_circuit.jpg
IMG_20230508_160941.jpg
IMG_20230508_161004.jpg

For my RGB lamp project, I created a separate board for the NodeMCU and transistor components. This allows me to reuse the NodeMCU board for future projects and easily swap out other components. By having a dedicated NodeMCU board, I can use it for other projects without sacrificing the RGB lamp setup, maximizing the versatility and longevity of my components.

Setting Up the Blynk Cloud

Screenshot (96).png
Screenshot (98).png
Screenshot (99).png
Screenshot (100).png
Screenshot (101).png
Screenshot (102).png
Screenshot (103).png
Screenshot (104).png
Screenshot (105).png

Login to your Blynk Cloud and create a new template, and add the datastream needed, I need 3 virtual pins for this project so I had created 3 datastream, make sure too copy your template ID and template Name, you need to enter these details while writing the code.

Writing the Code

Screenshot (106).png
Screenshot (109).png

Install the Blynk library

Go to Examples > Blynk > Blynk Edgent > Edgent_ESP8266

Enter the Template ID and Template Name in the code.

Downloads

Setting Up the Blynk Android App

Screenshot_2023-05-06-19-44-19-436_cloud.blynk.jpg
Screenshot_2023-05-06-19-44-32-808_cloud.blynk.jpg
Screenshot_2023-05-06-19-44-48-624_cloud.blynk.jpg
Screenshot_2023-05-06-20-45-39-279_cloud.blynk.jpg
Screenshot_2023-05-06-20-45-59-999_cloud.blynk.jpg
Screenshot_2023-05-06-20-46-08-129_com.android.settings.jpg
Screenshot_2023-05-06-20-46-16-481_cloud.blynk.jpg
Screenshot_2023-05-06-20-46-52-051_cloud.blynk.jpg
Screenshot_2023-05-06-20-46-59-394_cloud.blynk.jpg
Screenshot_2023-05-06-20-47-13-882_cloud.blynk.jpg

Open the Blynk app, and click on the three lines, and add a new device, while connecting the new device you will be asked to provide the WIFI credentials, and the new device (ESP board) is ready to connect to Internet.

Testing the Circuit and Blynk Cloud

circuit_video_AdobeExpress.gif
circuit video

To test the RGB lamp circuit, connect the NodeMCU board to a power source and open the Blynk mobile app. Then, follow the instructions in the app to connect the NodeMCU to your Wi-Fi network and upload the code to the board. Once the code is uploaded, the LED strip should light up and respond to commands in the app. You can then test the different color and brightness settings to ensure that the circuit is working properly.

Place the Circuit and ESP8266 Board Inside the Lamp Body

IMG_20230508_163657.jpg
IMG_20230508_163316.jpg

Carefully place the circuit inside the lamp

Your DIY RGB Lamp Is Ready

RGB_Lamp_AdobeExpress.gif
RGB Lamp
20230508_171409.jpg
DSC01490.JPG
20230508_171251.jpg
DSC01497.JPG
IMG_20230508_163913.jpg
IMG_20230508_164110.jpg
DSC01511.JPG
IMG_20230508_164025.jpg
IMG_20230508_171418.jpg
IMG_20230508_164314.jpg

In conclusion, the RGB lamp project using NodeMCU and Blynk allows for customizable and interactive lighting. By using the Blynk app and NodeMCU board, you can control the LED strip from anywhere with internet access. This project highlights the potential of microcontrollers for DIY electronics and IoT projects. With basic electronics knowledge and programming skills, anyone can build their own RGB lamp and explore endless possibilities.