Hello makers, today we will learn to make a Bluetooth controlled RGB strip which is controlled from our smartphone. The basic idea behind this project is to create background/desk light that adds a feel of warmth to the viewer's eyes. Yes, this light is pretty good for YouTubers and persons associated with product photography. Also I will attach the screenshots of how I developed an android app in MIT app inventor 2 to control the led's.
The circuit diagram for this project is given in the attachments section and it is easy to solder on the general purpose PCB. But I would recommend to test the circuit on a breadboard first. Make sure the RGB strip which you buy is a common anode type. i.e. You need to connect the led to ground in order to turn it on. The mosfets are controlled by the PWM pins of the Arduino Uno.
The circuit receives the command from the smartphone via the HC-05 Bluetooth module. The Arduino's TX and Rx pins are used for this.
Uploading The Code :Now again the two programs are given below. Both are same with just one change. One of the code has the capability to store the previous selected color to display even after the Arduino is reset.
The other code is just a simple RGB led controller that we have to configure every time we power on the device.
The code with the EEPROM is quite efficient and you don't have to connect your smartphone every time. If you have any doubts regarding the code feel free to comment below.
Note : Disconnect the Bluetooth module's Rx and Tx pin while uploading the code or it will give you an error.
The Android Application :I used MIT App Inventor 2 to create this android application. The interface is a simple sliding switch which sends PWM values to the Arduino via Bluetooth. The Bluetooth device can be selected from various available devices. If you want to make the application same as mine then follow the images above. And set the blocks as I did to get the same controls.
Those who wish to save themselves from this task can directly download my application.
The installation of the software requires you to turn on installation from unknown sources option on your smartphone.
When installed, turn on your phone's Bluetooth and pair it with the HC-05 module. The password will be "0000" or "1234".
Now click on the large Bluetooth icon and select your paired device.
Now you can control the RGB strip by sliding the horizontal bars. You can also create a mix color by adding up the three colors.
That's it your project is ready. Now find a small enclosure to fit all the components in and connect the 12V power supply as shown in the circuit diagram.
Comments