/Bluetooth_RGB_Strip

Arduino Uno + RGB Strip + HC-08 Bluetooth Module

Primary LanguageC++

Bluetooth_RGB_Strip πŸ“ΆπŸ”΄πŸŸ’πŸ”΅

Arduino Uno + RGB Strip + HC-08 Bluetooth Module

Parts πŸ› 

Libraries πŸ“š

  • 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.

Schematics ⚑

Wiring πŸ”Œ

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)

Code πŸ’»

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)

Bluetooth App Setup πŸ“ΆπŸ“±

  1. Connect to your bluetooth module (HC-08)
  2. Go to the keyboard tab
  3. Press and hold any of the squares to begin defining the buttons
  4. Create a button name and the character to be sent to the arduino.
  5. Make sure the character received is the same character that the code expects to activate certain functions