SparkFun will be closing early at 3:30 Friday 5/27 and remain closed Monday for Memorial Day (5/30). Orders placed after 2pm MT on Friday (5/27) will process and ship out on Tuesday (5/31).

Member #327099

Member Since: May 25, 2012

Country: United States

  • Hi, The code presented here has a number of problems, I understand that it is simply an introductory example however for a solution that addresses the problems see here -


    For those that mention it, it also uses interrupts although in the case of a slow moving robot pulseIn could work just as well - until you start adding additional inputs, encoders etc.

    The link also allows correct proportional speed and steering in forwards and reverse and also allows rotation on the spot.

    Duane B


No public wish lists :(