No description or website provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Dual-Sensor Proportional-Integral-Derivative Line-Follower Algorithm for Lego Mindstorms EV3

Hello World!

Here's how to use this:

  1. Download and extract the files from this repository, or clone this using $ git clone git://
  2. Before you import the My-Blocks, open the project properties, click "Variables" and create the following variables:

    Variable NameDataType
  3. Import both the My-Blocks (init and PID).
  4. Right after the start block, put the init my-block.
  5. Now, put the PID my-block inside a loop. Add two Color Sensor blocks with mode set to Measure -> Reflected Light Intensity, set the ports for your left and right color sensors respectively. Now, plug in the left and right sensor values into their respective input slots (leftSensorValue and rightSensorValue).
  6. Next, Set your power, kP, kI and kD. Make sure your left motor is connected to port A and the left motor is connected to port B.

And you're done.

Here's how to contribute to this repository:

Fork the repository, make the changes. Make sure you commit your changes and mention what you've improved. Then make a pull request. If the changes are approved, they'll get merged into this repository.