View Single Post
  #6   Spotlight this post!  
Unread 07-02-2014, 08:58
Pranit T's Avatar
Pranit T Pranit T is offline
Find the power to inspire.
FRC #0188 (Woburn Robotics)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Toronto, Ontario
Posts: 22
Pranit T has a spectacular aura aboutPranit T has a spectacular aura aboutPranit T has a spectacular aura about
Re: Counting number of turns

If you have a light sensor/photoreflective sensor, you can put a pulley in front of it, and paint it half white and half black. Connect the pulley to the motor. You can now track the number of times the motor rotates based on the number of times the light sensor counts it sees the white or black pass by.

You can fine tune this by adding more sections of black/white rather than just one of each colour. We did this on our 2009 bot to tune the PID for the shooting wheel.
__________________
Team 188: Woburn Robotics Alumnus, Mentor

2013 FRC World Champions (1241, 1477, 610)