Close
0%
0%

Beginner "H2" line follower

9 volts, DIY motors, Arduino and DRV8833

Public Chat
Similar projects worth following
H2 is a 250g, 13 x 18cm line-following robot. It uses an Arduino UNO (though I personally use a clone), a DRV8833 H-bridge, and 200 RPM DC motors. It employs three infrared sensors to follow white or black lines using a four-state conditional algorithm (centered, smooth turn, sharp turn, and lost) with smooth transitions between states, memory, and an LED indicator. It works well at low speeds, but to reach its full potential it requires manual adjustments and pre-calculations that I haven't yet implemented in the code. Youtube video of the line follower: https://youtu.be/Mmyuy7dJdA0?si=KJlt16CRo21BB0r7

H2_A.ino

Code

ino - 5.94 kB - 07/11/2026 at 05:18

Download

  • 1 × Arduino UNO
  • 1 × Driver DRV8833 (Or similar)
  • 2 × Direct current geared motor
  • 2 × Wheel
  • 1 × ELCAP 1000µF (Optional)

View all 16 components

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates