Go to Post When I was going down that one escalator that led to the field between the buildings and getting my first look at it, I felt like Dorothy walking into Oz. - Dr. Acula [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-01-2016, 21:49
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 250
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Talon SR LED blinks orange momentarily

While testing some PID code discused in This Thread "PID with encoder" of our team. We had the min/max output set to -0.1 , 0.1. When driving to a set point that took some time to finish the Talon frequently stopped/started and the LED went from green-orange-green or red-orange-red depending on the directions. I looked through the talon Talon_User_Manual_1_3.pdf documentation and found that the Talon will blink Orange if Disable ( I don't believe to be the case here) , If the PWM is lost, or throttle
is within the 4% dead band. How can I isolate the possibilities? Seems that i could be possibly operation in or near the dead band?
  #2   Spotlight this post!  
Unread 05-01-2016, 22:36
Ari423's Avatar
Ari423 Ari423 is offline
LabVIEW aficionado and robot addict
AKA: The guy with the yellow hat
FRC #5987 (Galaxia)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2012
Location: Haifa, Israel
Posts: 597
Ari423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud of
Re: Talon SR LED blinks orange momentarily

Sounds like your problem is you are going into and staying in the deadband zone for a noticeable amount of time. If your max is .1 (10% of full throttle) and your min is -.1, 40% of your range is in the deadband zone. Besides not being on a good place on the motor curve, you are going to have a hard time controlling your movements when 40% of speeds get cut off to 0. Sounds like you may need a larger gear reduction on your motor (or find a slower motor). Is there a reason you are limiting the output so severely besides speed? Maybe try re-tuning the PID coefficients and reducing the output limits.
__________________
2017-present: Mentor FRC 5987
2017-present: CSA for FIRST in Israel
2012-2016: Member FRC 423
2013: Programmer
2014: Head Programmer, Wiring
2015: Head Programmer, Wiring
2016: Captain, Head Programmer, Wiring, Manipulator, Chassis, CAD, Business, Outreach (basically everything)


  #3   Spotlight this post!  
Unread 06-01-2016, 02:44
kiettyyyy's Avatar
kiettyyyy kiettyyyy is offline
Registered User
FRC #1538 (The Holy Cows)
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2005
Location: San Diego, CA
Posts: 181
kiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond repute
Send a message via AIM to kiettyyyy
Re: Talon SR LED blinks orange momentarily

It does sound like you're near the deadband. One way to tell is to hook up an oscilloscope to measure the PWM waveform.. 1500 microseconds is the "0" or neutral position.

A quick and dirty way could be to just print the motor output values to screen and see if you're near 0.
__________________
-Kiet Chau

2004-2008 - Software Developer/Driver on Team #968
2008-2011 - Software Developer/Coach/Mentor/"Engineer" on Team #968
2011-Present - Mentor & Engineer on Team #1538
www.team1538.com
  #4   Spotlight this post!  
Unread 06-01-2016, 07:03
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 250
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Re: Talon SR LED blinks orange momentarily

I was just teaching the concept of PID and to slow things down to a point we could see it in action is why we set the limits so small. For testing purpose I will scope it as well but it good to hear I was possibly on the right track with dead band. In a competition set up I know this would be undesirable. This was classroom stuff with no load spinning a wheel a given deg.
  #5   Spotlight this post!  
Unread 06-01-2016, 08:24
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,614
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Talon SR LED blinks orange momentarily

For your demo, you'd be better off going at full speed with a smaller motor geared down than low speed with a larger motor. Not only is the deadband effectively narrower, you'll have a lot less effect from the motor resistance (that is, the current drawn by the motor when spinning free, not just its literal electrical resistance).
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
  #6   Spotlight this post!  
Unread 06-01-2016, 11:17
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 250
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Thumbs up Re: Talon SR LED blinks orange momentarily

Quote:
Originally Posted by GeeTwo View Post
For your demo, you'd be better off going at full speed with a smaller motor geared down than low speed with a larger motor. Not only is the deadband effectively narrower, you'll have a lot less effect from the motor resistance (that is, the current drawn by the motor when spinning free, not just its literal electrical resistance).
Agreed, It was what we had already. I been working with two first year freshmen kids that wish to be programmers. Team has/had a Senior member that has been MIA all preseason and I'm not banking on him for the build season. No major loss to the team only his expanding knowledge since the team has rarely used any feed back devices on past robots because they simply could not get them to work or didn't know how to use them. This year is new and exciting I can see in the Veteran students and mentors eyes they are excited with all the new functionality of using feedback and if the senior shows up I with the Freshmen can get him caught up on everything he missed.
  #7   Spotlight this post!  
Unread 08-01-2016, 18:22
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 250
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Re: Talon SR LED blinks orange momentarily

Follow up.

I found today as I was testing some other code with hobby servos I had the same pause. Turns out with further investigation I had packet loss every 12 seconds in the Diverstation status trend. This matched the pause spot on. With a bit of searching I found others had this issue as well after installing Autodesk Inventor. Yes I just installed this too. I killed the Autodesk update manager and trouble are gone. Used System configuration to disable all Autodesk apps from starting on boot.
  #8   Spotlight this post!  
Unread 08-01-2016, 19:59
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,614
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Talon SR LED blinks orange momentarily

Quote:
Originally Posted by cpapplefamily View Post
Follow up.

I found today as I was testing some other code with hobby servos I had the same pause. Turns out with further investigation I had packet loss every 12 seconds in the Diverstation status trend. This matched the pause spot on. With a bit of searching I found others had this issue as well after installing Autodesk Inventor. Yes I just installed this too. I killed the Autodesk update manager and trouble are gone. Used System configuration to disable all Autodesk apps from starting on boot.
At the office (where we build and use a number of data collection and classified computers) we have a name for this:

Phone Home (v. int.), 1. The act of checking in with one's family (that is, entities derived of the same source as oneself). 2. A good thing for E.T. 3. A bad thing for time-critical software running on hardware that is disconnected from the internet.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Closed Thread


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 02:58.

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