Go to Post actually, I don't work with mechanics, so I just barely learned what Lexan was a few days ago...long story... It's amazing the variety of things FIRST teaches us!!! - tribotec_ca88 [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 08-02-2015, 19:16
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 747
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
Talon SRX Missing Encoder Counts in Labview

Was hoping to bounce some ideas off of others on CD since these Talon SRX motor controllers are kinda of new and we are just learning about them.

So like most, our application is a PID position based application. Our current feedback sensor is a US Digital S5 shaft encoder that is 1000 PPR. It's coupled to the output shaft of a gear box.

Working with my lead programmer student today, we was able to setup a fully closed loop control method around our mechanical linear elevator. We spent some time tuning the PID and the result is fantastic. The rate is aggressive with a nice accel and decel right at the end of the setpoint.

That part works wonderfully well....kudos to the Cross Road Guys, we like how user friendly the controller is so far.

What we are having problems with is accuracy or what looks like we are missing encoder counts. That's where I wanted to bounce some ideas of some people to see what methods we can use for troubleshooting our problem.

Here are some thing we are sure are OK.

1. Wiring for sure is ok. The closed loop method works great and the position response is wonderful. We don't have an reverse or out-of-phase condition because we are able to set up setpoint commands and everything works great there.

2. The encoder is not slipping on the output shaft of the gearbox. The follower gear is tight and everything seems like it's mechanically coupled ok.

As a test, we used velocity sampling to see if we are missing some counts. In looking at the waveform, it does appear that some skips are happening because as we accelerate a "wave form" is made and there are horizontal flat spots then a rise in the step when we look at the wave form, small ones. I wished we would have grabbed a screen shot....

So here are my troubleshooting thoughts to try on Monday.

1. The obvious, switch out the encoder. Making sure we don't have a bad one. We don't have brand new one, but I have three more to try and see if we can repeat the problem.

2. I am wondering since the encoder is wired directly to the Talon SRX, what methods of debug do we have to see about missing encoder counts? Right now we have a 1000 PPR encoder. I was thinking about trying a 250 or 360 PPR encoder. Is our 1000 PPR encoder too much for the Talon SRX interrupts?

3. The while loop that my lead programmer has is a 50 millisec loop in it's own VI. So every 50 msec, it's samping the count information via CAN BUS of course to his VI. I don't think there would be an software issues, because if we can't get a repeatable count from the get count, then the problem is not software, it gotta be something up with the two above conditions...

Any other suggestions for troubleshooting to understanding here our encoder counts are going?

I am also going to stop by AndyMark in the morning and pick up a couple of MA3 analog sensors along with the analog breakout board and see how that works. Anyone tried the MA3 analog sensor yet with the Talon SRXs?
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
Reply With Quote
 


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 10:18.

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