Hey!
Our team wants to use a conveyer belt system to dump frisbees but we want it done automatically so we don’t have to mess around with the joystick too much. We want like say if it takes 7 turns of the conveyer belt to dump the frisbee, we want the shaft encoder to detect when it turns seven times, and then reset.
What I’m asking is, how do I program all of this? I’ve looked everywhere online and on CheifDelphi and looked at the labview example but it just confused me. Maybe someone could show me how to program this for my specific situation? Thanks.
Have you tried the FRC Encoder Example project that can be found under the FRC Examples. Turn the conveyor by hand 7 time to see how many “clicks” it takes to rotate 7 times.
Then when you start the conveyor reset the counter to zero (see how that is done in the example). Each time though the loop read the Encoder and check if it is passed the number of ‘clicks’ for 7 rotations.
We will need a little more detail about how your conveyor is controlled and how are you going to signal it to start (joystick button?)
But let us know if you have tried the Encoder Example first.