Introduction: 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
Question 3 years ago
Hello, nice project! the link (https://mega.nz/file/dZFEgRJD#XKTOuzyVV3aA8yrLwSpLa4LEij4KCZerXRzOAeIZf34) doesn't work. Also is there an outline of your circuit? Thank a lot!
8 years ago on Introduction
Is it the full code? I tried this link https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpLa4LEij4KCZerXR but it said that I need some decryption key
Reply 8 years ago on Introduction
and also this link https://mega.co.nz/#!MElUgLya!KHfUSlgZwJzSvHZ63jxVp5OL7idkJJxoAInSOuVyBYU said that the file is no longer available
Reply 8 years ago on Introduction
try this link. thank you
https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpL...
Reply 7 years ago
sir i have hc-06 bluetooth module will it work?
Reply 8 years ago on Introduction
try this link. thank you.
https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpLa4LEij4KCZerXRzOAeIZf34
7 years ago
i have bluetooth module hc-06 will it work?
8 years ago on Introduction
Need to programe HC 05 bluetooth module or not?
8 years ago on Introduction
which app to use to control this Rc car by our smart phone ?
great project.
8 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
Reply 8 years ago on Introduction
try this link. thank you.
https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpL...
Reply 8 years ago on Introduction
try this link. thank you.
https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpL...
8 years ago on Introduction
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.
Reply 8 years ago on Introduction
the full code is here.
The application is here: https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpLa4LEij4KCZerXRzOAeIZf34
Reply 8 years ago on Introduction
Thanks!! :) :D
10 years ago
Amazing project. Good job. Can you please update the full code and schematic ?
Reply 10 years ago on Introduction
Thank you! The complete code is there and I updated the schematic for you.
Reply 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
Reply 8 years ago on Introduction
the complete code is here. what is your doubt ?
9 years ago on Introduction
is there any change if u use arduino UNO instead of mega?