We use cookies and other technologies on this website to enhance your user experience.
By clicking any link on this page you are giving your consent to our Privacy Policy and Cookies Policy.
Arduino Car Control icône

1.0 by Ahmet ALBEREN


May 3, 2016

À propos de Arduino Car Control

Français

Arduino Car Control

Arduino circuit check your car from your phone with bluetooth communication .

Arduino bluetooth haberleşmesi ile telefonunuzdan araba devrelerinizi kontrol edin.

[email protected] for questions You can send mail .

Sorularınız için [email protected] mail atabilirsiniz.

/*

HAZIRLAYAN = Ahmet ALBEREN

[email protected] for questions You can send mail .

*/

#include

SoftwareSerial BT(2,3); //rx-tx

int Car1= 5;

int Car2= 6;

int motorlc = 8; // left motor clockwise rotation

int motorla = 9; // left motor anticlockwise rotation

int motorrc = 10; // right motor clockwise rotation

int motorra = 11; // right motor anticlockwise rotatio

int Far = 13;

int hiz1;

int hiz2;

int hiz3;

String readString;

void setup() { // presenting pins as outputs

pinMode(Far, OUTPUT);

pinMode(motorlc, OUTPUT);

pinMode(motorla, OUTPUT);

pinMode(motorrc, OUTPUT);

pinMode(motorra, OUTPUT);

Serial.begin(9600);

BT.begin(9600);

}

void loop() {

while(BT.available()){ // the code here is for bluetooth

delay(3);

char c = BT.read();

readString += c;

}

if(readString.length() > 0){ // when a certain button is pressed the reaction will be...

Serial.println(readString);

if(readString == "Forward"){

analogWrite (Car1,hiz1);

analogWrite (Car2,hiz1);

digitalWrite(motorlc, HIGH);

digitalWrite(motorla, LOW);

digitalWrite(motorrc, HIGH);

digitalWrite(motorra, LOW);

}

if(readString == "Back"){

analogWrite (Car1,hiz1);

analogWrite (Car2,hiz1);

digitalWrite(motorlc, LOW);

digitalWrite(motorla, HIGH);

digitalWrite(motorrc, LOW);

digitalWrite(motorra, HIGH);

}

if(readString == "Left"){

analogWrite (Car1,hiz2);

analogWrite (Car2,hiz2);

digitalWrite(motorlc, HIGH);

digitalWrite(motorla, LOW);

digitalWrite(motorrc, LOW);

digitalWrite(motorra, HIGH);

}

if(readString == "Right"){

analogWrite (Car1,hiz2);

analogWrite (Car2,hiz2);

digitalWrite(motorlc, LOW);

digitalWrite(motorla, HIGH);

digitalWrite(motorrc, HIGH);

digitalWrite(motorra, LOW);

}

if(readString == "Stop"){

digitalWrite(motorlc, LOW);

digitalWrite(motorla, LOW);

digitalWrite(motorrc, LOW);

digitalWrite(motorra, LOW);

analogWrite (Car1,hiz3);

analogWrite (Car2,hiz3);

}

if(readString == "Car on"){

hiz1 =200;

hiz2 =140;

hiz3 =0;

digitalWrite(Far,HIGH);

delay(50);

digitalWrite(Far,LOW);

delay(50);

digitalWrite(Far,HIGH);

delay(50);

digitalWrite(Far,LOW);

delay(50);

digitalWrite(Far,HIGH);

delay(50);

digitalWrite(Far,LOW);

}

if(readString == "Car off"){

hiz1 =0;

hiz2 =0;

hiz3 =0;

}

if(readString == "Far on"){

digitalWrite(Far,HIGH);

}

if(readString == "Far off"){

digitalWrite(Far, LOW);

}

}

readString="";

}

Quoi de neuf dans la dernière version 1.0

Last updated on May 3, 2016

Minor bug fixes and improvements. Install or update to the newest version to check it out!

Chargement de la traduction...

Informations Application supplémentaires

Dernière version

Demande Arduino Car Control mise à jour 1.0

Telechargé par

Juan Camilo Cuellar

Nécessite Android

Android 1.6+

Voir plus

Arduino Car Control Captures d'écran

Charegement du commentaire...
Langues
Abonnez-vous à APKPure
Soyez le premier à avoir accès à la sortie précoce, aux nouvelles et aux guides des meilleurs jeux et applications Android.
Non merci
S'inscrire
Abonné avec succès!
Vous êtes maintenant souscrit à APKPure.
Abonnez-vous à APKPure
Soyez le premier à avoir accès à la sortie précoce, aux nouvelles et aux guides des meilleurs jeux et applications Android.
Non merci
S'inscrire
Succès!
Vous êtes maintenant souscrit à notre newsletter.