OpenCV seems to be the highly used library for computer vision now days and in this blog I am going to show you how you can use this library to make a automated robot car which will follow an object.

Materials required-
  • Arduino uno r3
  • breadboard
  • Chassis and wheels
  • Bluetooth module (HC-05)
  • connecting wires
  • MOSFETs
  • LEDs
  • Diodes
  • Arduino software(IDE)
  • Android Studio


For this project I have used openCV with android and established a wireless connection between Arduino and android app using Bluetooth.

here is the demo of my project




you can get the code for Android app and Arduino board from my Github - https://github.com/anuraj381/Project-Automated-object-follower-car

The connections on the car for Arduino and Bluetooth module are shown here -

connection between Arduino, motors and Bluetooth module

Alright so, if you everything required for the project then let's make it

  • Firstly you download the code from Github (links above) and make the Android app.
  • Secondly assemble the Chassis and wheels and then make connections between Arduino, motors & Bluetooth module and don't forget to make a holder for your android smartphone on the car
  • Third, you should program the Arduino board (code on Github). 
  • Now check you project, put you smartphone on the car, make a bluetooth connection between Bluetooth module and android device, and you are ready to go.


Once you successfully made this project then play with the Android and Arduino code to make customization and also try to detect different different objects.

If you stuck somewhere let me know in the comment section below.

tips-

  • For power supply to Arduino and motors you can use a 12v dc power adapter rated for about 1500mA
  • you can use a voltage divider circuit for your Bluetooth module from 5v power supply by Arduino at it's receiving terminal (as most of the Bluetooth module) rated for 3.3v power reception)
  • Make sure your Bluetooth module is disconnected when you are uploading code to the Arduino, as this might result in error.
  • by default Bluetooth module(HC-05) password is 1234

Comments