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:
- Arduino Board 1 Piece
- Bluetooth HC-05 / HC-06
- Android-Based HP 1 Piece (complete with Boarduino applications, activate its Bluetooth)
- Fruit color LED 4 free
- Resistor 220 Ohm 4 pieces
Schematic Arduino, LEDs and Bluetooth HC-05 |
- Turn Hp Certainly yes, then open the application boarduino or if you do not have, you can download at PlayStore with keywords boarduino.
- Turn on / Turn Bluetooth
- Pairing Konekkan or via the "Find device" with bluetooth HC-05, usually the name of the default direct HC-05 and Pairings
- 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); } }
0 Response to "LED light control with Android"
Post a Comment