in

WiFi RGB Mood Light

Choose what ever color that suits you.

In this project we control a set of five RGB Leds to simulate a particular color according to our mood. The best thing is that we are able to control this project from where ever in the world with an internet connection.

We make use of WiFi in our home to control the LEDs. In order for this project to work correctly you should have a Home WiFi Connection. The brain of the project is the famous Node MCU also know as the ESP8266 board. It is similar to an arduino uno but with built in WiFi and other functions. Here I have used common anode RGB LEDs, common cathode RGB LEDs are also available in the market.

Here we make use of the application called Blynk which is a free Android and IOS App, in order to correctly communicate with Blynk Servers we make use of the Blynk Library.

Overall it’s an easy, fun and appealing project.

The WiFi RGB Mood Light requires following parts

  • Node MCU.
  • 5 piece Common Anode RGB LEDs or Common Cathode RGB LEDs.
  • Jumper Cables.
  • Smart phone to install Blynk.
  • Breadboard.

Let’s start with the Blynk app.

Instructions.

  • First create an Blynk account.
  • Then tap on create a new project and select the below options. Give a suitable project name.
  •  After you create the project you will receive an auth token in your email. this will come in use later.
  • Then tap on Add Widgets and add the ZERGBA widget.

Tap on the widget and given in the following parameters (for common anode RGB LED)

Connection Instructions.

As you can see D6, D7 & D8 can be seen in the above photograph. Those are thepins to whics the Red, Green and Blue terminals of the RGB LEDs are connected respectively.

Connect the LEDs in parralel using breadboard or if a soldering station is available solder to a perfboard.

  1. Connect RED Terminal to D6 of the Node MCU.
  2. Connect GREEN Terminal to D7 of the Node MCU.
  3. Connect BLUE Terminal to D8 of the Node MCU.
  4. Connect the anode pin of the LEDs to 3.3V of the Node MCU.

After all the connections are completed we can move on to the Arduino IDE.

Download the library and and paste it on the Library folder present in the Arduino folder in the documents folder.

After opening the code type in the Auth Token, Your WiFi SSID and Password

After this step  compile and upload the code. Make sure to remove the LED terminals before  uploading the code or it will show connections errors. Don’t forget to select correct board and COM Ports in the tools section in the IDE.

Congrats the project is done. You can change the color by tapping on any region of the ZERGBA Widget. it’s that easy.

Code  

Additionally you can make a paper shade that can cover the LEDs and diffuse the light. It will make it more appealing and beautiful.

Finished project

What do you think?

9 points
Upvote Downvote

Written by Mahesh US

Smart Dustbin with Arduino

How to Make a moving robot