Go to Post Thankfully, my student drivers are a lot smarter than me and covered for me on several occasions. - Paul Copioli [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-03-2011, 14:53
CaptainKemp CaptainKemp is offline
Registered User
AKA: Morton
FRC #0888 (Robotiators)
Team Role: Programmer
 
Join Date: Dec 2010
Rookie Year: 2005
Location: Glenelg High School
Posts: 16
CaptainKemp is an unknown quantity at this point
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,
__________________
Morton
Team 888

"Any sufficiently advanced technology is indistinguishable from magic." - Clarke
Reply With Quote
  #2   Spotlight this post!  
Unread 14-03-2011, 16:01
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-03-2011, 19:32
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
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.
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.

Last edited by j.cole : 20-03-2011 at 19:34. Reason: b channel bit
Reply With Quote
  #4   Spotlight this post!  
Unread 20-03-2011, 19:45
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
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?
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:47.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi