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.
Step 1: Materials
We need the following materials for this project:
Step 2: Wiring
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.
Step 3: RGB LED
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.
Step 4: Origami
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.
Step 5: Switch - Part 1
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.
Step 6: Switch - Part 2
Then we punched through the box with our slide switch and soldered the wire as shown above.
Step 7: Switch - Part 3
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.
Step 8: Switch - Part 4
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.
Step 9: Code
For the code, download the following GitHub Repository:
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.
Step 10: Results
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.
When you get ready to make this cool light, check out Jaycon Systems online store for all the parts you will need.
Let us know what you end up creating!
Thanks for reading!