View Single Post
  #1   Spotlight this post!  
Unread 19-01-2009, 17:09
comwiz7's Avatar
comwiz7 comwiz7 is offline
Registered User
AKA: Joey
FRC #1323 (Madtown Robotics 1323)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Madera
Posts: 66
comwiz7 will become famous soon enoughcomwiz7 will become famous soon enough
Send a message via MSN to comwiz7
Digital I/O Dilemma

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/...121d52.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:
Code:
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/...b122de.jpg?v=0