Create a Mood Light Device

by JayconSystems in Circuits > LEDs

5750 Views, 53 Favorites, 0 Comments

Create a Mood Light Device

1.jpg

Wouldn't it be awesome to have a mood light that you can control with your phone from the comfort of your bed? With a simple Bluetooth module, an Arduino, and an RGB LED, you can make that dream possible.

In this tutorial, we are going to show how to setup an RF8001 Bluetooth module to change an RGB LED color according to the value sent from our iOS device.

Materials

Wiring

2.jpg
3.jpg
4.png
5.png

Follow the pictures above to wire the Arduino to the nRF8001 Board and the RGB LED.

Note: Make sure you connect a resistor between the Arduino Pro Mini and each of the RGB LED color pins. Also, if you want to use other digital pins for the RGB LED, make sure those pins have PWM capabilities.

RGB LED

combined 6 7.png

An RGB LED is just like a regular LED, but with the ability to change between three different colors: red, green, and blue. Hence the name “RGB.” So by combining these three colors, we can produce any color we want.

When it comes to RGB LEDs, there are two types: common cathode and common anode. So what is the difference between them? Looking at the schematics above, we can immediately see how they differ.

Common cathode means that the three colors share the negative pin while common anode means that the three colors share the positive pin.

Origami

DIY Paper Lamp Shades For String Lights - How To Make Origami Cubes Lamp Shades

In this project we decided to create our own paper lamp using origami. There are many tutorials on the internet that show how to create different types of paper lamps, some more complex than others.

You can follow whichever you like the most to create your own paper lamp. In our case, we followed the tutorial above from YouTube.

Switch - Part 1

8.jpg

We connected a slide switch to the 3.7V battery to be able to turn on and off our lamp.

We simply took a red wire, cut it, and stripped it as shown above.

Switch - Part 2

9.jpg

Then we punched through the box with our slide switch and soldered the wire as shown above.

Switch - Part 3

10.jpg

So now one end of the red wire is connected to the positive terminal of the battery and one end of a black wire is connected to the negative terminal of the battery.

Switch - Part 4

11.jpg

Finally we make a small hole on one of the sides of the box to pass the red and black wires and connect them to the Arduino’s Raw and GND pins, respectively.

In the end, we end up with something like the picture above.

Code

For the code, download the following GitHub Repository:

https://github.com/kitefaster/LightShow

You are also going to need to download and install the following iOS App in your device: https://itunes.apple.com/us/app/apple-store/id955...

Once the repository is downloaded, locate the folder “libraries” and extract the library inside it into your Arduino’s libraries folder. Then connect your Arduino Pro Mini, open the LightShowArduino.ino, select Arduino Pro or Pro Mini (5V, 16MHz) w/ Atmega328 as your board, choose the Serial Port that your Arduino is using, and run the program.

Once the program is running, open the Light Show App and connect to the Bluetooth module. When the connection has been locked, you can select the color that you want in your iOS device and duplicate it in the RGB LED.

​Results

Light Show Tutorial

Now you just need to put your paper lamp over the RGB LED, turn off the room lights, and enjoy!

Optional: We wrapped a white tissue around the LED before putting it inside our paper lamp to help diffuse the light and give it a smoother bright.

If you have any questions about this tutorial, then please leave a comment, contact us through email, or drop a line in our forum!

When you get ready to make this cool light, check out Jaycon Systems online store for all the parts you will need.

While you're on our website, read through our other helpful and interesting tutorials. If you have not yet, take a look at our Instructables profile for more informational guides.

Let us know what you end up creating!

Thanks for reading!