Use APKPure App
Get Setir untuk Mobil Arduino old version APK for Android
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);
}
============================================
Telechargé par
Kelvyn Gonçalves
Nécessite Android
Android 4.0+
Catégories
Signaler
Last updated on Sep 27, 2016
Minor bug fixes and improvements. Install or update to the newest version to check it out!
Setir untuk Mobil Arduino
1.0 by WestJava Media
Sep 27, 2016