|
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)
|