# Modified a LEGO Line-Follower with Custom Gear Ratios

> Built a LEGO infrared line-following robot and redesigned its gearbox to noticeably increase top speed.

- Published: 2019-06-23
- Tags: hardware
- Kind: hardware
- Author: Ankush Singh
- Page: https://ankush.one/timeline/line-follower/

Built an infrared line-following bot out of LEGO, learned how IR reflectance sensors and gear ratios trade torque for speed, and rebuilt the drivetrain to push it much faster.

<div class="my-6 grid gap-4 sm:grid-cols-2">
  <figure>
    <div class="aspect-video w-full overflow-hidden">
      <iframe src="https://www.youtube-nocookie.com/embed/-nA_rv9vvZE" title="LEGO line follower V1" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen class="h-full w-full border-0"></iframe>
    </div>
    <figcaption>V1 was slow</figcaption>
  </figure>
  <figure>
    <div class="aspect-video w-full overflow-hidden">
      <iframe src="https://www.youtube-nocookie.com/embed/mTh1pjq7Kqo" title="LEGO line follower V2 gear mod" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen class="h-full w-full border-0"></iframe>
    </div>
    <figcaption>Rebuilt the gear arrangement so the wheels spun much faster</figcaption>
  </figure>
</div>
