About Bluetooth Arduino LED
Controlar Arduino mediante bluetooth, puede prender y apagar un Led
Datos que envia el APP
Boton Verde "Encender" = 'h'
Boton Rojo "Apagar" = 'l'
Boton Enlaces = Esta selecciona el Modulo Bluetooth a que se va a conectar y/o sincronizar
Cómo ejemplo Usaremos el 13 y GND; Prenda con Botorn Verde y Apague con Boton Rojo
//INICIO
int Led = 13;
int Status=0;
void setup(){
Serial.begin(9600);
pinMode(Led,OUTPUT);
}
void loop(){
if(Serial.available()!=0){
Status= Serial.read();
}
if (Status =='h'){
digitalWrite(Led,HIGH);
}
if(Status=='l'){
digitalWrite(Led,LOW);
}
}
//FIN
Más Manuales en http://manual.netandino.net Controlling Arduino via Bluetooth, you can turn on and off a led
Data that sends the APP
Pin Green "Power" = 'h'
Red Button "Off" = 'l'
Pin links = This selects the Bluetooth module to be connected and / or synchronize
How example will use the 13 and GND; Botorn garment with Green and Red Button Switch with
// HOME
Led int = 13;
int Status = 0;
void setup () {
Serial.begin (9600);
pinMode (LED, OUTPUT);
}
void loop () {
if (Serial.available ()! = 0) {
Status = Serial.read ();
}
if (status == 'h') {
digitalWrite (LED, HIGH);
}
if (status == 'l') {
digitalWrite (LED, LOW);
}
}
// END
More Manuals http://manual.netandino.net
Download and install
Bluetooth Arduino LED version 1.1 on your
Android device!
Downloaded 500+ times, content rating: Everyone
Android package:
appinventor.ai_ventasnetandino.BluetoothArduino, download Bluetooth Arduino LED.apk