Skip to content

Instantly share code, notes, and snippets.

View Steven0706's full-sized avatar

Steven Lin Steven0706

View GitHub Profile
@Steven0706
Steven0706 / fred_bot.ino
Created September 17, 2018 21:39 — forked from ShawnHymel/fred_bot.ino
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.