Encoder Value for 1 rotation
Hi I am with team 133 the Arrows,
Right now we are trying to use encoders on our motors. This is the first year we have tried to use these but we are having trouble getting our wheels to turn exactly one rotation. Here is an example of the code we tested.
while(nmotorencoder[motor1] < 360)
motor[motor1] = 50;
motor[motor1] = 0
this code works, but the wheel only rotates ~ 1/3 of a rotation
in all of the example code I've seen on cs2n.org 360 degrees is supposed to be one rotation of the motor shaft but this doesnt work on our robot.
I don't know whether we installed the encoder incorrectly or the value of on rotation is something different but i would like to know if anyone else has had this problem or knows a solution
thanks team 133 - the arrows