Skip to content

Instantly share code, notes, and snippets.

View isaacvitor's full-sized avatar
Working

Isaac Vitor isaacvitor

Working
View GitHub Profile
@ShawnHymel
ShawnHymel / fred_bot.ino
Last active May 26, 2025 20:15
Use two magnetic encoders to make a robot drive in a straight line for 1 meter
/**
* Adventures in Science: Fred Bot
* SparkFun Electronics
* Author: M. Hord (October 8, 2013)
* Modified by: B. Huang (October 31, 2014)
* Modified by: Shawn Hymel (July 21, 2017)
*
* Use two magnetic encoders on Fred's motor shafts (48:1
* gearbox, 60mm wheels) to make him move in a straight line for
* 1m.