<< return to Pixycam.com

User Tools

Site Tools


wiki:v2:lego_line_following_demo

**This is an old revision of the document!**

Pixy2 LEGO Line Following Demo

This page describes how to make a LEGO robot that follows lines and makes turns at intersections as instructed. It's meant to be a basic introduction to the Pixy2's line following abilities.

Building the robot

The robot we're going to build can be found in Laurens Valk's book LEGO Mindstorms EV3 Discovery Book. The robot is called the Explor3r and it uses parts that are available in the retail Mindstorms EV3 kit.

  • Assemble Explor3r through step 11. Click here for instructions on how to build Explor3r. That is, stop short of mounting the IR Sensor (step 12). Instead of the IR Sensor, we'll be mounting Pixy2.
  • Locate these LEGO parts and your LEGO-mounted Pixy2. (There are instructions on how to mount Pixy2 to LEGO here)



  • Add these pieces to the Explor3r as shown

  • Attach Pixy2 and plug into port 1 as shown. Note how Pixy2 is pointed down (it's going to be tracking lines on the ground!)
wiki/v2/lego_line_following_demo.1548889654.txt.gz · Last modified: 2019/01/30 23:07 by pixycam