Arduino bluetooth car plus APK
Informations
Version 1.0 (#1)
Mise à jour 27 May 2018
Taille APK 2.6 MB
Nécessite Android Android 2.1+ (Eclair)
Proposée par Rupak Poddar
Catégorie App de Productivité Gratuits
App id appinventor.ai_poddarrupak2808.Rupak_car_plus
Notes d'auteur Conduire comme un professionnel avec les caractéristiques pro!
Captures d'écran
Cliquez sur l'image pour la voir en taille réelle
Tableau des matières
Description
int m1 = 12;
int m2 = 11;
int b1 = 10;
int b2 = 9;
int gauche = 8;
int droite = 7;
int up = 6;
int bas = 5;
int lumière = 13;
Chaîne readString;
void setup() {
Serial.begin (9600);
pinMode (m1, OUTPUT);
pinMode (m2, OUTPUT);
pinMode (b1, OUTPUT);
pinMode (b2, OUTPUT);
pinMode (gauche, OUTPUT);
pinMode (à droite, OUTPUT);
pinMode (haut, OUTPUT);
pinMode (vers le bas, OUTPUT);
pinMode (lumière, OUTPUT);
}
void loop () {
while (Serial.available ()) {
retard (3);
char c = Serial.read ();
readString + = c;
}
si (readString.length ()> 0) {
Serial.println (readString);
if (readString == "f")
{
digitalWrite (m1, HIGH);
digitalWrite (m2, HIGH);
}
if (readString == "b")
{
digitalWrite (b1, HIGH);
digitalWrite (b2, HIGH);
}
if (readString == "l")
{
digitalWrite (m1, HIGH);
digitalWrite (b2, HIGH);
}
if (readString == "r")
{
digitalWrite (m2, HIGH);
digitalWrite (b1, HIGH);
}
si (readString == "s")
{
digitalWrite (m1, LOW);
digitalWrite (m2, LOW);
digitalWrite (b1, LOW);
digitalWrite (b2, LOW);
digitalWrite (gauche, LOW);
digitalWrite (à droite, LOW);
digitalWrite (haut, LOW);
digitalWrite (vers le bas, LOW);
}
if (readString == "ledon")
{
digitalWrite (lumière, HIGH);
}
if (readString == "LEDOFF")
{
digitalWrite (lumière, LOW);
}
si (ReadString == "gauche")
{
digitalWrite (gauche, HIGH);
}
si (== readString "droit")
{
digitalWrite (à droite, HIGH);
}
si (readString == "up")
{
digitalWrite (haut, HIGH);
}
si (readString == "down")
{
digitalWrite (vers le bas, HIGH);
}
readString = "";
}
}
Notes et avis
Note: 5.0 sur 5 · Less than 100 votes
(*) est nécessaire
Versions précédentes
Arduino bluetooth car plus 1.0 APK pour Windows (#1, 2.6 MB)
Vous aimerez peut-être aussi
Joystick Arduino Bluetooth APK
CarBot RC Bluetooth Arduino APK
Du même développeur
Arduino Bluetooth Security Lock APK
Arduino Bluetooth Car Remote APK
Arduino Bluetooth Home Automation APK
Fast fingers - Type speed test! APK
Arduino Bluetooth Serial Monitor APK
Applications les plus téléchargées
فیلتر شکن جدید و قوی،فیلتر شکن قوی و پرسرعت رایگان APK