Bluetooth Arduino Carro Robot Apk
Apk Infos
Version | 1.5 |
Rating | 4.9/5, based on 7 votes |
Size | 3.4 MB |
Requires Android | Android 2.1+ (Eclair) |
Author's Notes | Communication Synchronization and Control Arduino Bluetooth |
About Bluetooth Arduino Carro Robot APK
Table Of Contents
Description
Controlar Arduino mediante bluetooth para cuatro principales movimientos. Puede servir para gruas, carros, Brazos y más.Datos que envia el APP
Flecha N "Norte" = 'n'
Flecha S "Sur" = 's'
Flecha O "Oeste" = 'o'
Flecha E "Este" = 'e'
Flecha P "Parar" = 'p'
Boton Verde "Encender" = 'h'
Boton Rojo "Apagar" = 'l'
// INICIO DEL CÓDIGO
int Pecho = 4; // define Pecho como (echo) para el Ultrasonido
int Ptrig = 5; // define Ptrig como (trig) para el Ultrasonido
int LaIzAn = 6; // Giro Lado Izquierdo AntiHorario
int LaIzHo = 7; // Giro Lado Izquierdo Horario
int LaDeHo = 8; // Giro Lado Derecho Horario
int LaDeAn = 9; // Giro Lado Derecho AntiHorario
int Mov = 255; // Movimiento de motor (0-255)
int estado = 'l'; // inicia detenido
int duracion, distancia; // Para Calcular distacia
void setup() {
Serial.begin(9600); // inicia el puerto serial para comunicacion con el Bluetooth
pinMode(LaDeHo, OUTPUT);
pinMode(LaDeAn, OUTPUT);
pinMode(LaIzHo, OUTPUT);
pinMode(LaIzAn, OUTPUT);
pinMode(Pecho, INPUT); // define el pin 4 como entrada (echo)
pinMode(Ptrig,OUTPUT); // define el pin 5 como salida (trig)
}
void loop() {
if(Serial.available()>0){ // lee el bluetooth y almacena en estado
estado = Serial.read();
}
if(estado=='n'){ // Desplazar hacia Adelante "Norte"
analogWrite(LaDeAn, 0);
analogWrite(LaIzAn, 0);
analogWrite(LaDeHo, Mov);
analogWrite(LaIzHo, Mov);
}
if(estado=='s'){ // Desplazar hacia Atras "Sur"
analogWrite(LaDeAn, Mov);
analogWrite(LaIzAn, Mov);
analogWrite(LaDeHo, 0);
analogWrite(LaIzHo, 0);
}
if(estado=='o'){ // Desplazar hacia LadDerecha "Oeste"
analogWrite(LaDeAn, 0);
analogWrite(LaIzAn, 0);
analogWrite(LaIzHo, 0);
analogWrite(LaDeHo, Mov);}
if(estado=='e'){ // Desplazar hacia LadIzquierdo "Este"
analogWrite(LaDeAn, 0);
analogWrite(LaIzAn, 0);
analogWrite(LaIzHo, Mov);
analogWrite(LaDeHo, 0);
}
if(estado=='p'){ // Detenerse; Detiene los motores
analogWrite(LaDeAn, 0);
analogWrite(LaIzAn, 0);
analogWrite(LaDeHo, 0);
analogWrite(LaIzHo, 0);
}
if (estado =='h'){ // Boton Verde Modo automatico con sensor Ultrasonido
digitalWrite(Ptrig, HIGH); // genera el pulso de trigger por 10us
delay(0.01);
digitalWrite(Ptrig, LOW);
duracion = pulseIn(Pecho, HIGH); // Lee el tiempo del Echo
distancia = (duracion/2) / 29; // calcula la distancia en centimetros
delay(10);
if (distancia <= 15 && distancia >=2){ // si la distancia es menor de 15cm
analogWrite(LaDeAn, 0); // Parar los motores por 1/4 de segundo
analogWrite(LaIzAn, 0);
analogWrite(LaDeHo, 0);
analogWrite(LaIzHo, 0);
delay (250);
analogWrite(LaDeHo, 0);
analogWrite(LaIzHo, 0);
analogWrite(LaDeAn, Mov); // Reversa durante 1/2 de segundo
analogWrite(LaIzAn, Mov);
delay(500);
analogWrite(LaDeAn, 0); // Girar durante 1 segundo
analogWrite(LaIzAn, 0);
analogWrite(LaDeHo, 0);
analogWrite(LaIzHo, Mov);
delay(1000);
}
else{ // Si no hay obstaculos se desplaza al frente
analogWrite(LaDeAn, 0);
analogWrite(LaIzAn, 0);
analogWrite(LaDeHo, Mov);
analogWrite(LaIzHo, Mov);
}
}
if(estado=='l'){ // Boton OFF, detiene los motores.
analogWrite(LaDeAn, 0);
analogWrite(LaIzAn, 0);
analogWrite(LaDeHo, 0);
analogWrite(LaIzHo, 0);
}
}
//FIN DEL CÓDIGO
Más Manuales en http://manual.netandino.net
Detalles completos de carro
https://netandino.blogspot.com/2015/02/armar-carro-robot-controlado-por.html
Latest updates
What's new in version 1.5
Se cambia modo de recepción textos por bluethooHow to install Bluetooth Arduino Carro Robot APK on Android phone or tablet?
Download Bluetooth Arduino Carro Robot APK file from ApkClean, then follow these steps:
Update Phone Settings
- Go to your phone Settings page
- Tap Security or Applications (varies with device)
- Check the Unknown Sources box
- Confirm with OK
Go to Downloads
- Open Downloads on your device by going to My Files or Files
- Tap the APK file you downloaded (appinventor.ai_ventasnetandino.BluetoothArduinoCar-v1.5-ApkClean.apk)
- Tap Install when prompted, the APK file you downloaded will be installed on your device.
Older Versions
1.5 (15) | 3.4 MB |
Questions & Answers
Q: What is an APK File?
A: Just like Windows (PC) systems use an .exe file for installing software, Android does the same. An APK file is the file format used for installing software on the Android operating system.
Q: If I install an APK from this website, will I be able to update the app from the Play Store?
A: Yes, absolutely. The Play Store installs APKs it downloads from Google's servers, and sideloading from a site like ApkClean.net goes through a very similar process, except you're the one performing the downloading and initiating the installation (sideloading).
As soon as the Play Store finds a version of the app newer than the one you've sideloaded, it will commence an update.
Q: Why ApkClean.net can guarantee APK 100% safe?
A: Whenever someone wants to download an APK file from ApkClean.net, we'll check the corresponding APK file on Google Play and allow user download it directly (of course, we'll cache it on our server). If the APK file does not exist on Google Play, we'll search it in our cache.
Q: What are Android App permissions?
A: Apps require access to certain systems within your device. When you install an application, you are notified of all of the permissions required to run that application.
Don't hesitate to contact us if you have any questions or concerns.
(*) is required