Arduino Bluetooth Car
Intro: Arduino Bluetooth Car
The Program:
https://mega.nz/#!YFkyia5Q!x5ytSGWDa8olQ1eMkamRhZoXms2Irfb6kHHsMubzMGg
The Code:
int motorPin1 = 10;
int motorPin2 = 11;
int motorPin3 = 8;
int motorPin4 = 9;
void setup()
{
Serial.begin(9600);
pinMode(motorPin1, OUTPUT);
pinMode(motorPin2, OUTPUT);
pinMode(motorPin3, OUTPUT);
pinMode(motorPin4, OUTPUT);
digitalWrite(motorPin1, 0);
digitalWrite(motorPin2, 0);
digitalWrite(motorPin3, 0);
digitalWrite(motorPin4, 0);
}
void loop(){
char vDados = Serial.read();
if (vDados == '1'){
fFrente();
}
else
if (vDados == '2'){
fFrente();
fDireita();
}
else
if (vDados == '3'){
fDireita();
}
else
if (vDados == '4'){
fRe();
fDireita();
}
else
if (vDados == '5'){
fRe();
}
else
if (vDados == '6'){
fRe();
fEsquerda();
}
else
if (vDados == '7'){
fEsquerda();
}
else
if (vDados == '8'){
fFrente();
fEsquerda();
}
delay(111);
fParar();
}
void fParar(){
digitalWrite(motorPin1, 0);
digitalWrite(motorPin2, 0);
digitalWrite(motorPin3, 0);
digitalWrite(motorPin4, 0);
}
void fFrente(){
digitalWrite(motorPin1, 1);
}
void fDireita(){
digitalWrite (motorPin3, 1);
}
void fRe(){
digitalWrite(motorPin2, 1);
}
void fEsquerda(){
digitalWrite (motorPin4, 1);
}
https://www.facebook.com/rafaelpollon
developers:
Rafael Pollon - Electrical Engineering
Mauro Murari - Information System
Kelvin Salton - Information System
37 Comments
ReCompulsive Behaviours 3 years ago
crimsonfire19 9 years ago
Is it the full code? I tried this link https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpLa4LEij4KCZerXR but it said that I need some decryption key
crimsonfire19 9 years ago
and also this link https://mega.co.nz/#!MElUgLya!KHfUSlgZwJzSvHZ63jxVp5OL7idkJJxoAInSOuVyBYU said that the file is no longer available
rafael.pollon 9 years ago
try this link. thank you
https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpL...
joy khan 8 years ago
sir i have hc-06 bluetooth module will it work?
rafael.pollon 9 years ago
try this link. thank you.
https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpLa4LEij4KCZerXRzOAeIZf34
joy khan 8 years ago
i have bluetooth module hc-06 will it work?
shreyas songirkar 8 years ago
Need to programe HC 05 bluetooth module or not?
shreyas songirkar 8 years ago
which app to use to control this Rc car by our smart phone ?
great project.
jorge.murcia3 9 years ago
hola disculpa me podrías dar la contraseña para desemcriptar el link para poder descargar el código completo por favor te agradezco de antemano
rafael.pollon 9 years ago
try this link. thank you.
https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpL...
rafael.pollon 9 years ago
try this link. thank you.
https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpL...
Ajayv2 9 years ago
i have some questions regarding this project,Please help me out here
1:-The code you posted is the full code?
2:-Which application you used to control the car from PC.
rafael.pollon 9 years ago
the full code is here.
The application is here: https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpLa4LEij4KCZerXRzOAeIZf34
Ajayv2 9 years ago
Thanks!! :) :D
abiton 10 years ago
rafael.pollon 10 years ago
ben ammarM 9 years ago
hello sur:
may i get the full source code of your Amazing Project and thier shema and with all steps i need to Realise one Like yours ?
BraveSofts13@Gmail.com
rafael.pollon 9 years ago
the complete code is here. what is your doubt ?
IshanP 9 years ago
is there any change if u use arduino UNO instead of mega?