We first connected the shaft encoder on our breadboard, connecting S1 and S2 the inputs 1 and 2 respectively on the LogoChip. We then used the oscilloscope to monitor the shaft encoder. As we turned the NXT motor, we were able to see the edges of S1 on channel 1 of the oscilloscope.
We then had to write a program that counts and prints the edges of S1 as we turned the motor by hand.
No comments:
Post a Comment