Setir untuk Mobil Arduino
À propos de Setir untuk Mobil Arduino
RC voiture bluetooth à distance pour Arduino
Setir Mobil Arduino adalah remote untuk mengendalikan RC arduino,
Anda dapat mengontrol RC yang di buat dengan Arduino dengan memiringkan ke kanan dan kekiri android anda seperti ketika main game balap mobil.
aplikasi ini mengirim string melalui bluetooth berdasarkan sensor Accelerometer android, dengan format pesan
X|Y|Z,
contoh pesan 40|50|80,
artinya x = 10
y = 50
z = 80
dengan informasi tersebut anda bisa mengolah menjadi gerak kendaraan yang anda buat sesuai selera,,
contoh ringkasan sketch arduino
http://www.ttsberita.com/?p=464
============================================
boolean belok = false;
boolean onstop = false;
void loop() {
x = 0;
y = 0;
z = 0;
if(bt.available()){
x = bt.readStringUntil('|').toInt();
y = bt.readStringUntil('|').toInt();
z = bt.readStringUntil(',').toInt();
}
belok = false;
onstop = false;
if(x != 0 || y != 0 || z != 0){
if(z < 50) // stop
{
analogWrite(A1,0);
analogWrite(A2,0);
onstop = true;
}
if(y > 20 && !onstop) //belok kanan
{
analogWrite(A1,255);
analogWrite(A2,0);
belok = true;
}
else if(y < -20 && !onstop) // belok kiri
{
analogWrite(A1,0);
analogWrite(A2,255);
belok = true;
}
if(!onstop && !belok){ // maju
analogWrite(A1,255);
analogWrite(A2,255);
}
}
delay(50);
}
============================================
What's new in the latest 1.0
Informations Setir untuk Mobil Arduino APK
Vieilles versions de Setir untuk Mobil Arduino
Setir untuk Mobil Arduino 1.0
Téléchargement super rapide et sûr via l'application APKPure
Un clic pour installer les fichiers XAPK/APK sur Android!