View Single Post
  #10   Spotlight this post!  
Unread 15-05-2009, 13:44
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: Misbehaving encoders

Quote:
The encoder has four connections. Can you detail precisely where each of those connections is going? I hope you aren't really using PWM outputs for power.

How do you know the robot isn't reading the encoder properly?
"PWM" here is referring to the cable we've spliced to, not the output on the digital sidecar

I sketched out a diagram of eaxctly how it's set up and attached it.

We know the robot isn't reading the encoder because the value from Get() never changes, and the robot always reports that it is stopped, even when moving

Quote:
When you are powering your encoder from your cRIO you should see the red LED inside the encoder housing turn on. Make sure that this is the case.
Yep--we saw this, and when we checked it with a multimeter(we don't have an o-scope), we saw fluctuation in values--it just seems that the robot isn't interpreting it correctly.
Attached Thumbnails
Click image for larger version

Name:	encoder schematic.GIF
Views:	62
Size:	4.5 KB
ID:	7946  
__________________
Get yer robot source code here!