LED light control with Android

          In ioisalman.com This tutorial will teach how to control lights using Android. for that we need to set android apps on our mobile phones, an application that we will use is Boarduino (Can be downloaded at PlayStore).
glimpse of boarduino

         Boarduino is an application Graphical User Interface (GUI) Between Android Arduino Board with Via Bluetooth.until now Boarduino until version 1.2. This tutorial source of www. boarduino.web.id, we can create your own applications like this boarduino using Java Eclipse or Android Studio.

             For Android app has been completed, we will now make its schematic LED and Arduino. before we make wiring or cabling, now we will prepare a needs - needs which we must prepare:


  1. Arduino Board 1 Piece
  2. Bluetooth HC-05 / HC-06
  3. Android-Based HP 1 Piece (complete with Boarduino applications, activate its Bluetooth)
  4. Fruit color LED 4 free
  5. Resistor 220 Ohm 4 pieces



Schematic Arduino, LEDs and Bluetooth HC-05

Schematic Arduino, LEDs and Bluetooth HC-05



How to use :


  1. Turn Hp Certainly yes, then open the application boarduino or if you do not have, you can download at PlayStore with keywords boarduino.
  2. Turn on / Turn Bluetooth
  3. Pairing Konekkan or via the "Find device" with bluetooth HC-05, usually the name of the default direct HC-05 and Pairings
  4. Open Applications Boarduino then select Control Relay, select ON - OFF To control lights





// Free Tutorial Arduino
// www.ioisalman.com
char val;
void setup() {
  pinMode(2,OUTPUT);
  pinMode(3,OUTPUT);
  pinMode(4,OUTPUT);
  pinMode(5,OUTPUT);
  Serial.begin(9600);
}

void loop() {
if( Serial.available() >0 ) {
    val = Serial.read();
    Serial.println(val); 
}
  if( val == '1' ) {
    digitalWrite(2,HIGH); }
  else if( val == '2' ) {
    digitalWrite(3,HIGH); }
  else if( val == '3' ) {
    digitalWrite(4,HIGH); }
  else if( val == '4' ) {
    digitalWrite(5,HIGH); }
  else if( val == '5' ) {
    digitalWrite(2,HIGH);
    digitalWrite(3,HIGH);
    digitalWrite(4,HIGH);
    digitalWrite(5,HIGH);
 }
  else if( val == 'A' ) {
    digitalWrite(2,LOW); }
  else if( val == 'B' ) {
    digitalWrite(3,LOW); }
  else if( val == 'C' ) {
    digitalWrite(4,LOW); }
  else if( val == 'D' ) {
    digitalWrite(5,LOW); }
  else if( val == 'E' ) {
    digitalWrite(2,LOW);
    digitalWrite(3,LOW);
    digitalWrite(4,LOW);
    digitalWrite(5,LOW);
  }
}

Subscribe to receive free email updates:

0 Response to "LED light control with Android"

Post a Comment