IOT Mood Lamp

by Mukesh_Sankhla in Circuits > Arduino

1580 Views, 5 Favorites, 0 Comments

IOT Mood Lamp

IMG_20200927_194602.jpg
IMG_20200927_193522.jpg
IMG_20200927_194641.jpg
IMG_20200927_194531.jpg

A IoT Mood lamp made using a Node MCU(ESP8266),RGB LEDs and a Jar. The colors of lamp can be changed using Blynk App. I have chose Tony Starks Memorial Statue which I have 3D printed to put in this lamp. You can take any readymade statue or you can 3D print as I have did.

Supplies:

IMG_20200927_132640.jpg

  • Node MCU(ESP8266)
  • 5V LEDs(Red, Green and Blue)
  • Jar
  • Statue
  • 3D Printed Parts
  • Paint
  • 5V Micro USB Adapter

3D Printing:

Screenshot (45).png
Screenshot (44).png
IMG_20200927_132716.jpg

Painting:

IMG_20200927_132749.jpg
IMG_20200927_132706.jpg
IMG_20200927_181139.jpg
IMG_20200927_181249.jpg

  • I have painted all the 3D prints and Jar cap in white color.
  • You can directly print the desired colored 3D model if you have the right color material or you can paint as I did.

Circuit Connection:

JarCircuit.png
IMG_20200927_132649.jpg
IMG_20200927_193841.jpg

  • Make all the connections as shown in circuit diagram.
  • GND~GND
  • D2~Red
  • D3~Green
  • D4~Blue

Assembling:

IMG_20200927_185755.jpg
IMG_20200927_193813.jpg
IMG_20200927_193928.jpg
IMG_20200927_194225.jpg

  • Put the statue on a base using waterproof glue.
  • I have used spray can cap for the base which I painted white.
  • Fill the water in the jar and close the cap.
  • Now put the NodeMCU inside the 3D printed case and place it on the base of the Jar(i.e top) using glue.

App Setup:

Screenshot_20200927_123109.jpg
Screenshot_20200927_123143.jpg
Screenshot_20200927_123159.jpg
Screenshot_20200927_123206.jpg
Screenshot_20200927_123216.jpg
Screenshot_20200927_123222.jpg
Screenshot_20200927_123230.jpg
Screenshot_20200927_194749.jpg
  • Click for App
  • Install the app, create a account and login.
  • Create a new project, Select the board as ESP8266.
  • You will receive a authentication code of the project in your E-Mail which we will use in the code.
  • Click on the add button and add ZeRGBa widget.
  • Click on the widget set the R~GP4, G~GP0, B~GP2 and turn off the send on release button.

Code:

Screenshot (46).png
Screenshot (47).png
Screenshot (48).png
Screenshot (50).png
Screenshot (51).png
Screenshot (53).png
Screenshot (54).png
Screenshot (55).png
Screenshot (56).png
Screenshot (57).png
  • Click For Blynk Arduino Library
  • Open the given link and download the Blynk zip file.
  • Open the Arduino IDE and add the Blynk library to Arduino IDE from Sketch->Include Library->Add .Zip library.
  • Open the code from Files->Examples->Blynk->Boards_Wifi->ESP8266_Standalone .
  • Copy paste the authentication code received in email.

char auth[] = "YourAuthToken";

  • Enter you home Wifi Name and Password

char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

  • Then select the board type as ESP8266(NodeMCU)
  • Select the port and upload the code.

Final:

IMG_20200927_204203.jpg
IMG_20200927_204157.jpg
Screenshot_20200927_195846.jpg
Screenshot_20200927_200834.jpg

  • Take the 5V micro USB adapter to power the lamp.
  • Turn ON the lamp.
  • Open the app, click on play icon on top right.
  • And that's it you can select the color you want on the lamp.