loading

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

<p>Is it the full code? I tried this link https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpLa4LEij4KCZerXR but it said that I need some decryption key</p>
<p>and also this link https://mega.co.nz/#!MElUgLya!KHfUSlgZwJzSvHZ63jxVp5OL7idkJJxoAInSOuVyBYU said that the file is no longer available</p>
<p>try this link. thank you</p><p><a href="https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpLa4LEij4KCZerXRzOAeIZf34" rel="nofollow">https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpL...</a></p>
<p>sir i have hc-06 bluetooth module will it work?</p>
<p>try this link. thank you.</p><p>https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpLa4LEij4KCZerXRzOAeIZf34</p>
<p>i have bluetooth module hc-06 will it work?</p>
<p>Need to programe HC 05 bluetooth module or not?</p>
<p>which app to use to control this Rc car by our smart phone ?</p><p>great project.</p>
<p>hola disculpa me podr&iacute;as dar la contrase&ntilde;a para desemcriptar el link para poder descargar el c&oacute;digo completo por favor te agradezco de antemano</p>
<p>try this link. thank you.</p><p><a href="https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpLa4LEij4KCZerXRzOAeIZf34" rel="nofollow">https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpL...</a></p>
<p>try this link. thank you.</p><p><a href="https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpLa4LEij4KCZerXRzOAeIZf34" rel="nofollow">https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpL...</a></p>
<p>i have some questions regarding this project,Please help me out here </p><p>1:-The code you posted is the full code?</p><p>2:-Which application you used to control the car from PC.</p>
<p>the full code is here.<br>The application is here: https://mega.co.nz/#!dZFEgRJD!XKTOuzyVV3aA8yrLwSpLa4LEij4KCZerXRzOAeIZf34</p>
<p>Thanks!! :) :D</p>
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.
<p>hello sur:</p><p>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 ?</p><p>BraveSofts13@Gmail.com </p>
<p>the complete code is here. what is your doubt ?</p>
<p>is there any change if u use arduino UNO instead of mega?</p>
<p>yes, u can use arduino UNO without problems</p>
<p>Can you please send me example of delphi code you used to send commands to COM port??</p><p>uros.stojcic@gmail.com</p>
<p>The program has been add to instructables</p>
<p>ur project is excellent sir, but i need help. i am new to circuits and all, so i need complete circuit and components list to be use.i</p><p>i want complete understanding of whole circuit and use of some parts as u mention above of some of d.u can mail me d details at</p><strong><em>yashshah213@yahoo.com</em></strong>
<p>The program has been add to instructables</p>
<p>yes, more specifically which circuit you mean?</p>
<p>which type of camera u used ....and interface..so plz send the details of cam.thank you</p><p>rockfellerphilipnittala@gmail.com</p>
<p>I use an analog camera, which work independent from circuit</p>
hi i love your project thinking of making my own one. <br>what would be a good project for a beginner in arduino but am skilled in electronics <br>
ty, was one of those my first projects too, good luck on yours. i can help if you got doubt. fb = rafaelpollon
could an arduino uno be used instead?
yes, anyone
arggggg <br>8 if-else?? <br>next time use switch...
ok
How the control is done through the computer?..
the control from computer is on the bluetooth, do you need connect and paired the device, he will create a COM port. make a program on delphi to send commands to COM port and will works..
Thanks for the reply and update. The code for the motor only, and handles on BT, camera, and computer application.<br/><br/>I really liked your project and I want to build my own too.<br/><br/>If you can send me more detailed documents, if you have. <br/>my email is: <br/>P.M - adibiton777@gmail.com<br/>W.M - adi.biton1@flextronics.com<br/><br/>Thank you so much.

About This Instructable

24,262views

112favorites

License:

More by rafael.pollon:Arduino Bluetooth Car 
Add instructable to: