Microchip | The Embedded Control Solutions Company Register Login
Browse All
Microchip Technology
 369 Code Snippets

Line Following Robot

Microchip Technology

Line following robot application written in the high level Processing language for the chipKIT development platform. This application uses a chipKIT Uno32 with Arduino Motor Control Shield and Sparkfun IR Sensor breakout board. In this configuration, the robot will follow a black line on a white surface. Additional details are available at http://chipkit.net/arduino-mc-line-follower/

About this Code Example

The line following robot is programmed to basically avoid the color black. If both sensors see black, then the robot will back up until it no longer sees black. If one sensor sees black, then the robot will turn in the direction of that sensor until it no longer sees black. Other than that, if the robot doesn't see black on either sensor, it will simply move for- ward. In this application, the black line is created using common electrical tape.


Release History

  • Apr 12, 2013

    Version: 1.0.0

    Original version of code.

Download Contact the Developer

*Required Fields

  • Current Version:1.0.0
  • Created:Apr 12, 2013
  • Updated:Feb 26, 2015
  • Downloads:7266
  • MPLAB Version:N/A as this code is written to be used within the chipKIT MPIDE
  • C Compiler:chipKIT Compiler
  • Development Tools:chipKIT Development Platforms
  • Supported Devices:PIC32

Corporate News


Stay Connected

Stay up to date with the latest news from Microchip Technology.