|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Encoders not giving me dashboard data and/or not responding
Hello all,
We have two encoders attached to our robot at the present time. Neither of these encoders are sending me back any information and I do not know how to proccede in my troubleshooting. Right now we have the wires attached Blue- A, Orange- 5V, Brown- Grnd, and Yellow- B (as my team's last electronics guy assures me is the proper wiring). Then the B goes to its own DIO slot to the signal and the other 3 go to a different DIO slot on the Digital Sidecar. The programming that I did is based on the Encoder example code that came with the Labview under the FRC examples (except broken up into the begin and teleop methods). To troubleshoot so far I have tried putting the Get method for each encoder into my dashboard data (which I know works because I have other data coming to my dashboard that works properly). The numbers on both of these remains at 0. I have also put a piece of code in so that if the encoder get method returns a number greater that 5 or less then -5 would turn on some rollers we have. This never happened either. I really don't know where to go from here and I would really like to have these encoders working for the Chesapeake Regional this weekend. Can anyone give me some ideas to make them work. Thanks to any and all that help, |
|
#2
|
|||||
|
|||||
|
Re: Encoders not giving me dashboard data and/or not responding
Make sure the encoder disk is the correct distance from the circuit board in the base. If it's too far away, you'll get inconsistent or no response. If it's too close, it might be damaged by rubbing against the mounting screws.
Check the A and B signals coming from the encoder to make sure they're toggling from 0 to 5 volts as the shaft turns. Look at the dashboard DIO feedback to verify that the proper two signals are indeed changing as seen by the Digital Sidecar. Show us the code you're using to open and read the encoder. |
|
#3
|
|||
|
|||
|
Re: Encoders not giving me dashboard data and/or not responding
I'm having the same problem while running the actual NI example. I also added a DIO Get to it to see if the 2 waveforms are switching.
When I run it all that happens is the distance toggles between 0 and .25 when I spin it. I have tested all of the DIO ports on the DSidecar with a limit switch and they all work. The Encoder Lights up and all 4 of the connections have continuity. I cant recall what else we tested. Its getting a bit annoying. The b channel is alternating 4.88V when we spin it. Last edited by j.cole : 20-03-2011 at 19:34. Reason: b channel bit |
|
#4
|
||||
|
||||
|
Re: Encoders not giving me dashboard data and/or not responding
Are you sure you set it to be looking for a quadrature encoder?
And you are putting the get in the dashboard data vi in robot main, not in the dashboard project, correct? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|