Creative creator
Published © CC BY

Android Controlled RGB LED Strip Using Arduino

LEDs are Great for Lighting. Controlling the splendor of the LED strip is a significant troublesome assignment with Bare hands.

IntermediateFull instructions provided2 hours1,572
Android Controlled RGB LED Strip Using Arduino

Things used in this project

Hardware components

Arduino Nano UTSOURCE:
×1
HC-05 Bluetooth UTSOURCE:
×1
Resistors UTSOURCE:
×1
Capacitor UTSOURCE:
×1
Screw Terminal Block UTSOURCE:
×1
5MM Green LED UTSOURCE:
×1
Wires UTSOURCE:
×1
BC547 Transistor UTSOURCE:
×1

Software apps and online services

Android App
PCB Garber

Hand tools and fabrication machines

Soldering Iron UTSOURCE:
Iron Stand UTSOURCE:
Nose Pliers UTSOURCE:
Flux UTSOURCE:

Story

Read more

Custom parts and enclosures

Step 1

First I inspected the PCB. what's more, checked whether the PCB inside association is alright or not. In the wake of testing with a multimeter I find that the interior association is completely useful and working consummately.

Step 2

At that point I accumulated all the segments which are required for the PCB. At next I associated all the segments to its position.

Step 3

at that point I associated the USB link with the Laptop and the Arduino nano. One thing you should take note of that here I am utilizing an Arduino nano with old BootLoader. So you should choose the old Bootloader Version.

Step 4

After the coding part, I have associated the 4 Pin LED wire with the circuit Male Headers. And furthermore I have associated the Bluetooth Module with the circuit.

Step 5

For the Power Supply, I have utilized a 3s 12v Li-Po Battery with the circuit. You can likewise utilize any 12V Power supply in the circuit.

Step 6

Presently I opened my Bluetooth and looked for the HC-05 Bluetooth Module. By and large, the secret phrase for the Bluetooth module is 0000 or 1234. I have downloaded the application from Play Store. Chosen the privilege Bluetooth button and associated it. What's more, Here you can see the LED shading is changing with my finger swipe. So now RGB LED Strip utilizing Arduino controlled is working.

Schematics

Schematics Of Android Controlled RGB LED Strip:

Code

Android Controlled RGB LED Strip Using Arduino Code:

Arduino
#include <SoftwareSerial.h>

SoftwareSerial BLU(0,1);

#define redPin 5 
#define greenPin 6
#define bluePin 3

void setup()
{
  //Serial setup
  Serial.begin(9600);
  Serial.println("-= HC-05 Bluetooth RGB LED =-");
  BLU.begin(9600);
  BLU.println("-= HC-05 Bluetooth RGB LED =-");
 
  pinMode(redPin, OUTPUT);
  pinMode(greenPin, OUTPUT);
  pinMode(bluePin, OUTPUT);

  setColor(255, 0, 0);
  delay(500);
  setColor(0, 255, 0);
  delay(500);
  setColor(0, 0, 255);
  delay(500);
  setColor(255, 255, 255);
}

void loop()
{
  while (BLU.available() > 0)
  {
    int redInt = BLU.parseInt();
    int greenInt = BLU.parseInt();
    int blueInt = BLU.parseInt();

    redInt = constrain(redInt, 0, 255);
    greenInt = constrain(greenInt, 0, 255);
    blueInt = constrain(blueInt, 0, 255);

    if (BLU.available() > 0)
    {
      setColor(redInt, greenInt, blueInt);

      Serial.print("Red: ");
      Serial.print(redInt);
      Serial.print(" Green: ");
      Serial.print(greenInt);
      Serial.print(" Blue: ");
      Serial.print(blueInt);
      Serial.println();

      BLU.flush();
    }
  }
}

void setColor(int red, int green, int blue)
{
  analogWrite(redPin, red);
  analogWrite(greenPin, green);
  analogWrite(bluePin, blue);
}

Credits

Creative creator

Creative creator

22 projects • 3 followers

Comments