Bluetooth Controlled Vehicle With WiFi Camera

by Maggie Shah in Circuits > Arduino

8932 Views, 73 Favorites, 0 Comments

Bluetooth Controlled Vehicle With WiFi Camera

20170216_144402.jpg
20170216_144535.jpg

This is a 4-wheel drive camera vehicle controlled by Arduino and Bluetooth module(HC-05). Wifi action camera is mounted on it. This can be controlled remotely by an android device for easy operation. It uses android application commands to move in front, back and left right directions. This vehicle is capable of turning 360 degree in any direction at the same place. On receiving command from the receiver, The microcontroller operates the movement through the motor driver. Range is approximately 10 Meters (30 feet).

Materials

IMG_20170828_144248.jpg
IMG_20170828_144222.jpg
IMG_20170828_142904.jpg
IMG_20170828_145918.jpg
IMG_20170828_144129.jpg
$_35.jpg
dupont mf.png
  • 4 Wheel Drive Robot Chassis
  • Wifi Action Camera
  • Arduino Uno
  • L293D motor Sheild
  • HC-05 bluetooth module
  • 2x 18650 battery
  • Male to Female jumper wires
  • Female and Male Header Pins
  • Blank PBC
  • (M4 x 10mm) screws
  • (M4 x 30mm) screws
  • (M4 x 10mm) brass spacer
  • (M4 x 40mm) brass spacer
  • M4 nuts

Mounting Motors to the Chassis

IMG_20170828_144336.jpg
IMG_20170828_144336.jpg
IMG_20170828_143109.jpg
IMG_20170828_143051.jpg
IMG_20170828_151821.jpg
IMG_20170828_151718.jpg
IMG_20170828_151836.jpg
IMG_20170828_152722.jpg
IMG_20170828_153113.jpg
IMG_20170828_153103.jpg

Using 10mm screws mount the motors.

Battery

IMG_20170828_154553.jpg
IMG_20170828_154605.jpg

Here I've used 2 x 18650 batteries in series to make 7.4 V and the batteries are rated at 2800mAh.

mount the battery using zip ties. Be sure that the shafts of motors are away from the battery.

Alternative: using a 2s liPo battery with circuit protection for over charge and discharege

Modification of L293D Motor Shield

IMG_20170828_150036 (2).jpg
IMG_20170828_150150.jpg
IMG_20170828_150215.jpg
IMG_20170828_150325.jpg
IMG_20170828_150502.jpg
IMG_20170828_181855.jpg
IMG_20170828_181905.jpg
IMG_20170828_160549.jpg

Here I've done two modifications on the Motor shield.

1. Adding heat sink to the L293D motor driver IC.

2. Soldering two male header pins on the shield for Bluetooth communication.

Soldering male header pins to the pin no. 0 and 1 of the shield, which are basically Rx and Tx pins of the Arduino.

Mounting Micro Controller and Motor Driver to Chassis

IMG_20170828_155439.jpg
IMG_20170828_155811.jpg
IMG_20170828_155927.jpg
IMG_20170828_155956.jpg
IMG_20170828_160007.jpg
IMG_20170828_160124.jpg
IMG_20170828_160156.jpg
IMG_20170828_160251.jpg

using 2x m4 10mm screws and 2x m4 30mm screws.

8x m4 nuts as spacers between the arduino board and the chassis.

2x m4 brass spacers as lock nut to lock them tight.

Connector for Bluetooth Module

IMG_20170828_181128.jpg
IMG_20170828_181332.jpg
IMG_20170828_181400.jpg
IMG_20170828_181151.jpg

The Bluetooth module uses total 4 pins.

  1. RX
  2. TX
  3. Gnd
  4. Vcc

First solder 4 female header pins on the small blank PCB cutout, then solder male pins of the male to female jumper cables to the corresponding pins at bottom of PCB.

IMPORTANT

Mark the pins names on the PCB for the correct connection of bluetooth module.

Mounting the Bluetooth Connector

IMG_20170828_182211.jpg
IMG_20170828_182220.jpg
IMG_20170828_182236.jpg

Using zip tie , tie the circuit to the back of the upper chassis.

Connection of Bluetooth Module to Micro Controller

Arduino Bluetooth.png
IMG_20170828_182646.jpg
IMG_20170828_182651.jpg
IMG_20170828_182703.jpg

Arduino (pin) ............ HC-05(pin)

RX >>>>>>>>>>>>>> TX

TX >>>>>>>>>>>>>> RX

5v >>>>>>>>>>>>>> Vcc

Gnd >>>>>>>>>>>>>> Gnd

Combining Lower and Upper Chassis Together

IMG_20170828_183259.jpg
IMG_20170828_183230.jpg
IMG_20170828_183330.jpg
IMG_20170828_183524.jpg
IMG_20170828_183624.jpg

Mounting 4x (M4 x 40mm) spacers using (M4 x 10mm) screws on lower chassis, as stands for the upper chassis.

Battery Connections

IMG_20170828_184309.jpg
IMG_20170828_185239.jpg
IMG_20170828_185135.jpg
IMG_20170828_190324.jpg

The battery will connect to the EXT_PWR connecting port on the motor shield. Arduino Board will get power from the motor shield itself.

Here I have used male and female connecting ports for the battery connection for ease.

Connection of Motors to Motor Driver

Adafr_mot_Sh_4_DC_mot.jpg
IMG_20170828_190057.jpg
IMG_20170828_190306.jpg

M1, M2, M3 & M4 are motor ports.

Connect all the motors to the ports.

Connecting Bluetooth Module

IMG_20170828_190645.jpg
IMG_20170828_190528.jpg
IMG_20170828_181436.jpg
IMG_20170828_181504.jpg
IMG_20170828_181635.jpg
IMG_20170828_191223.jpg
IMG_20170828_191328.jpg

Insert the bluetooth module corresponding to their pins as marked.

I had used an antenna as a support only here, its doesn't extend range though.

Programming

IMG_20170828_190933.jpg

In order to use the Motor shield, we need the Adafruit Motor Shield library. You can download it here, I also included it below for your convenience. In the Arduino IDE, click on Sketch > Include Library > Add Zip Library... and point it the 'bluetooth_control' folder.

Next, extract the other zip file and open 'bluetooth_control.ino' in the Arduino IDE. Upload the sketch to the arduino.

Important

while uploading the sketch make sure the bluetooth module is not connected to the connector, otherwise the execution will thrown an error.

The App !

Screenshot_20170901-181018.png
Screenshot_20170901-181752.png
Screenshot_20170901-181812.png

Download the application Arduino Bluettoth RC Car from play store, run and then connect to the vehicle.

This app also allows to control the vehicle using tilt control.

Mounting the Camera to the Rover/Car

20170216_144451.jpg

Using double sided tape, mount the camera to the front of the vehicle. Cast live to your laptop!!!