comwiz7
19-01-2009, 17:09
We attempted to wire the encoder but have not been able to get any feedback from it using the dashboard.
I split two PWM cables and connected the two power wires to the power wire on the encoder and the same with the ground. I connected the Channel A wire on the encoder to the white wire on one PWM and the Channel B wire to the white wire on the other PWM.
http://farm4.static.flickr.com/3315/3210177185_780a121d52.jpg?v=0
I connected one PWM to Digital I/O 3 and the other to Digital I/O 4.
I initialized it in the programming like this:
Encoder encoder1;
encoder1(4, 3, 4, 4, 0);
The SLOT 4 spot on the dashboard (picture linked below) sporadically changes colors and I'm not sure if it is even supposed to do that but we can't get any feedback on the ports of the encoder. I'm sure I've done something wrong as I have never worked with an encoder before. However, I can't get it to react to something as simple as a limit switch either.
http://farm4.static.flickr.com/3521/3210177155_b35ab122de.jpg?v=0
I split two PWM cables and connected the two power wires to the power wire on the encoder and the same with the ground. I connected the Channel A wire on the encoder to the white wire on one PWM and the Channel B wire to the white wire on the other PWM.
http://farm4.static.flickr.com/3315/3210177185_780a121d52.jpg?v=0
I connected one PWM to Digital I/O 3 and the other to Digital I/O 4.
I initialized it in the programming like this:
Encoder encoder1;
encoder1(4, 3, 4, 4, 0);
The SLOT 4 spot on the dashboard (picture linked below) sporadically changes colors and I'm not sure if it is even supposed to do that but we can't get any feedback on the ports of the encoder. I'm sure I've done something wrong as I have never worked with an encoder before. However, I can't get it to react to something as simple as a limit switch either.
http://farm4.static.flickr.com/3521/3210177155_b35ab122de.jpg?v=0