Line Follower Robot Using Smartphone Camera

About This Project

This project will show you how to make a line follower robot using a Smartphone.

Project Info



After completing its previous mission with the IR sensors, it is back, this time with a camera, to hunt its enemies out and recover what was wrongfully taken by them. Assisting it with the camera will be Dabble, a smart Smartphone application that with its super-cool abilities will take control of the Smartphone’s camera and assist the line follower in its mission 2.0. You can get dabble from HERE.

Are you ready for Liner Follower Rebooted?

Ready. Set. Follow!

Components Required

Building Guide

Step 1: Making

Take the chassis and fasten the motor mounts to it using M3 bolts and nuts.motor mounts

Now, attach the dual shaft DC Motor to the motor mounts using M2 bolts and nuts.mount motors

Take the wheels and attach them to the motor wheels

Attach caster wheel to the chassis using standoffs and M3 bolts and nuts.mount castor wheel

Flip the assembly and keep it aside.

We won’t be attaching evive on this chassis; we will keep this space to attach our phone.

Now, take another chassis and fasten evive to it.

Fix the chassis with evive to the base chassis using standoffs.Fix the chassis on top

Our assembly is now complete.Line following Robot using Smartphone

Step 2: Circuitary

Make the connections as shown:

  • Connect motor wire in evive at M1 and M2.
  • Connect Bluetooth.fritzing diagram

Step 3: Logic

The Dabble application has a number of modules, out of which camera is one of them.

Once you select this module, there are other four options available.

Select the colour detector module. We will be making the line follower follow a black line on a white sheet.

You need to configure the module to the following settings:

  • 3 x 3 scale
  • Average
  • Grayscale
  • 1 bit.

This module has two modes,

  1. Camera mode (Normal)
  2. Binary mode

You can use these modes to place your phone in the centre.

If you choose the camera mode, you will be able to see the actual line, whereas once you select the binary mode, you will be able to see it’s binary representation on your phone’s screen.

These binary values are sent to evive. Thus, giving our line follower the instructions to follow.


  • When the camera detects a line in the centre, the robot moves forward.
  • When the line is detected on the right side, the robot turns right.
  • If the line is detected on the left side, the robot turns left.

Step 4: Code

Upload the following code to evive:

Step 5: Conclusion

With this, your line follower robot using Smartphone is ready to rock ‘n’ roll!

PS. We have really exciting news for you: We are LIVE on Indiegogo and have been 100% FUNDED within less than a week into our campaign! DIYers and project makers from all over the world are LOVING us! To know more about our awesome campaign and support us visit HERE.

Circuit Diagram

DescriptionCircuit Diagram

Make the connections as shown:

  • Connect motor wire in evive at M1 and M2.
  • Connect Bluetooth.


DescriptionDownload Code
Arduino CodeDownload
evive LibraryDownload
Share this Project
Share on facebook
Share on twitter
Share on pinterest
Share on reddit
Share on print
Featured Projects