DFRobotShop Rover V2 - 2014 Scouts Canada - Robotics Guide Using DFRobotShop Rover

15 ROBOTICS ADVENTURE BOOK  SCOUTER MANUAL  STEM
Activity 4 – How Far Did We Go?
Objective
• While driving forward, read the optical encoder.
How does this get used?
• Beabletodriveaknowndistanceandturn
accurately to drive a search pattern (stripes or
expanding square).
What you need to know
• How does the optical encoder work?
• Reading the analog input
Extend / Challenge
• Usetheopticalencoderstomakeamoreaccurate
turn or rotate, rather than just using time.