Arduino Bluetooth Car

31K12638

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

Is it the full code? I tried this link https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpLa4LEij4KCZerXR but it said that I need some decryption key

and also this link https://mega.co.nz/#!MElUgLya!KHfUSlgZwJzSvHZ63jxVp5OL7idkJJxoAInSOuVyBYU said that the file is no longer available

sir i have hc-06 bluetooth module will it work?

try this link. thank you.

https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpLa4LEij4KCZerXRzOAeIZf34

i have bluetooth module hc-06 will it work?

which app to use to control this Rc car by our smart phone ?

great project.

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

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.

the full code is here.
The application is here: https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpLa4LEij4KCZerXRzOAeIZf34

Thanks!! :) :D

Amazing project. Good job. Can you please update the full code and schematic ?
Thank you! The complete code is there and I updated the schematic for you.

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

the complete code is here. what is your doubt ?

is there any change if u use arduino UNO instead of mega?

More Comments