loading
Picture of Arduino Bluetooth car controlled by Pc
45678oi7u6y54t.JPG
SAM_2426.JPG
SAM_2425.JPG
SAM_2429.JPG
kk.jpg
project.jpg


 
The connection between the arduino, bluetooth and L293D:

The Arduino Mega 2560 is a microcontroller board based on the ATmega2560 (datasheet). It has 54 digital input/output pins (of which 14 can be used as PWM outputs), 16 analog inputs, 4 UARTs (hardware serial ports), a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset button.


The L293D:


L293D is a dual H-bridge motor driver integrated circuit (IC). Motor drivers act as current amplifiers since they take a low-current control signal and provide a higher-current signal. This higher current signal is used to drive the motors.
L293D contains two inbuilt H-bridge driver circuits. In its common mode of operation, two DC motors can be driven simultaneously, both in forward and reverse direction. The motor operations of two motors can be controlled by input logic at pins 2 & 7 and 10 & 15. Input logic 00 or 11 will stop the corresponding motor. Logic 01 and 10 will rotate it in clockwise and anticlockwise directions, respectively.


The Bluetooth:


This module allows communication from an Arduino dev
board to a Bluetooth enabled device. The module communicates with an Arduino
device via a simple two wire serial protocol. If you choose to use the modules
default settings then the module requires no setting up to communicate with it,
just connect to the Arduino. The device defaults to 9600 baud, 8 data bits,
and 1 stop bit. The baud rate, amongst other settings can be changed using
standard AT commands via its serial interface.


The transmitter for the video:
 
the transmitter was modified, the camera was removed and i put a new camera CCTV to better the resolution but the most quality is the receiver who define, that's the reason because the video was kind ugly.


The RCA to USB:

Well to break it down in simple terms and of course not to bore the hell out of you it is a USB gadget accessory that will capture high quality video and audio and you can capture this through USB 2.0 interface, you can even capture sound without the use of a sound card. The EasyCap Capture USB 2.0 video adapter with audio has support for all formats such as record in DVD+/-R/RW, DVD-Video and DVD+/-VR which is superb and also features support for Brightness, Saturation control, Contrast and Hue. What I like about the EasyCap Capture is that it is very simple to install because the external power is not needed. It supports NTSC, PAL and Video format which is a bonus.


The Program:

the program are edited and commented on portugues(br), because is my native language

https://mega.co.nz/#!MElUgLya!KHfUSlgZwJzSvHZ63jxVp5OL7idkJJxoAInSOuVyBYU

 
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); // tempo que fica executando a acao antes de parar os motores
  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);
}



developers:

Rafael Pollon - Electrical Engineering
Mauro Murari - Information System
Kelvin Salton - Information System
crimsonfire196 months 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

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

rafael.pollon (author)  crimsonfire193 months ago
rafael.pollon (author)  crimsonfire193 months ago

try this link. thank you.

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

jorge.murcia33 months 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 (author)  jorge.murcia33 months ago
rafael.pollon (author)  jorge.murcia33 months ago
Ajayv27 months 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 (author)  Ajayv27 months ago

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

Thanks!! :) :D

abiton2 years ago
Amazing project. Good job. Can you please update the full code and schematic ?
rafael.pollon (author)  abiton2 years ago
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

rafael.pollon (author)  ben ammarM7 months ago

the complete code is here. what is your doubt ?

IshanP9 months ago

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

rafael.pollon (author)  IshanP9 months ago

yes, u can use arduino UNO without problems

Can you please send me example of delphi code you used to send commands to COM port??

uros.stojcic@gmail.com

rafael.pollon (author)  urosstojcic1 year ago

The program has been add to instructables

yshah1 year ago

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

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

yashshah213@yahoo.com
rafael.pollon (author)  yshah1 year ago

The program has been add to instructables

rafael.pollon (author)  yshah1 year ago

yes, more specifically which circuit you mean?

which type of camera u used ....and interface..so plz send the details of cam.thank you

rockfellerphilipnittala@gmail.com

I use an analog camera, which work independent from circuit

genius7211 year ago
hi i love your project thinking of making my own one.
what would be a good project for a beginner in arduino but am skilled in electronics
rafael.pollon (author)  genius7211 year ago
ty, was one of those my first projects too, good luck on yours. i can help if you got doubt. fb = rafaelpollon
science221 year ago
could an arduino uno be used instead?
rafael.pollon (author)  science221 year ago
yes, anyone
jabujavi2 years ago
arggggg
8 if-else??
next time use switch...
rafael.pollon (author)  jabujavi2 years ago
ok
abiton2 years ago
How the control is done through the computer?..
rafael.pollon (author)  abiton2 years ago
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..
abiton2 years ago
Thanks for the reply and update. The code for the motor only, and handles on BT, camera, and computer application.

I really liked your project and I want to build my own too.

If you can send me more detailed documents, if you have.
my email is:
P.M - adibiton777@gmail.com
W.M - adi.biton1@flextronics.com

Thank you so much.