Arduino Uno + RGB Strip + HC-08 Bluetooth Module
- This also requires an app to send information through bluetooth through the module. I have provided an APK for the BLE elegoo bluetooth app which worked for me.
Arduino | HC-08 |
---|---|
3.3V | VCC |
Ground | Ground |
TX | TX |
RX | RX |
Arduino | RGB LED Strip |
---|---|
5V | Power (White Cable) |
11~ | Red (Red Cable) |
10~ | Green (Green Cable) |
9~ | Blue (Blue Cable) |
We use pins 11, 10, and 9 because they support PWM (Pulse Width Modulation) which allows us to create a fade effect on the RGB strip by adjusting the frequency that electricity is passed to the specified pin.
- The code uses a delay function for the fade effect other wise it is not visible (To quick) which results in the bluetooth module not receiving commands until the end of the fade effect.
- There is an interval of 2 seconds in the code in between the RGB color switch function which can be manually changed.
- The RGB strip color works by displaying the color only if the corresponding wire is pulled to LOW (Ground)
- Connect to your bluetooth module (HC-08)
- Go to the keyboard tab
- Press and hold any of the squares to begin defining the buttons
- Create a button name and the character to be sent to the arduino.
- Make sure the character received is the same character that the code expects to activate certain functions