Go to Post Based on EXTENSIVE analysis of this image, I have concluded that we will have to use wires on our robots. I am certain of it. - theCADguy [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 22-11-2016, 21:54
FRC Team CC FRC Team CC is offline
Registered User
FRC #6560 (Charging Champions)
 
Join Date: Sep 2014
Rookie Year: 2012
Location: Southern California
Posts: 102
FRC Team CC is an unknown quantity at this point
Talon SRX Motor Controller Problem

We have a problem connecting the motor controller to the PWM ports on the roboRIO. We believe to have correctly connected the motor controller to the roboRIO and the Power Distribution Module. When we connect the motor controller to the CAN port, the motor controller works. However, when we use the PWM ports, the motor controller doesn't work and just blinks red.

We took two photos of the system which are posted below.

Thanks for any help!
Attached Thumbnails
Click image for larger version

Name:	IMG_2680.JPG
Views:	62
Size:	508.4 KB
ID:	21295  Click image for larger version

Name:	IMG_2681 (1).JPG
Views:	56
Size:	515.8 KB
ID:	21296  
__________________
The Charging Champions
FTC Team #8660
Facebook Page: https://www.facebook.com/chargingchampions
Follow us on Twitter: @FtcTeamCC
Google Plus: https://plus.google.com/112552147224383900922/posts
Youtube channel: https://www.youtube.com/channel/UCop...G3zsvQKCXF4ESQ
Blog: http://chargingchampionsblog.blogspot.com/
Reply With Quote
  #2   Spotlight this post!  
Unread 22-11-2016, 22:03
Bkeeneykid's Avatar
Bkeeneykid Bkeeneykid is offline
#wheatcoastneatcoast
AKA: Devin Keeney
FRC #1982 (Cougar Robotics); Season Long Fantasy FIRST (F3)
Team Role: Student
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Lenexa, Kansas
Posts: 301
Bkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud of
Re: Talon SRX Motor Controller Problem

Quote:
Originally Posted by FTC Team CC View Post
We have a problem connecting the motor controller to the PWM ports on the roboRIO. We believe to have correctly connected the motor controller to the roboRIO and the Power Distribution Module. When we connect the motor controller to the CAN port, the motor controller works. However, when we use the PWM ports, the motor controller doesn't work and just blinks red.

We took two photos of the system which are posted below.

Thanks for any help!
To use PWM, you need to flash the SRX using a different firmware. See section 1.3.4.2. PWM – Updating firmware for PWM use in the SRX's User Manual.
__________________

F4 Network Website Designer

2010-2012: A Whole Buncha FLL Teams; Team Spirit, Gracious Professionalism Award winner
2015-Current: FRC 1982, Captain, Electrical Lead
Beginning FIRST Volunteer

Moderator on the FIRSTwiki
Reply With Quote
  #3   Spotlight this post!  
Unread 22-11-2016, 22:51
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 521
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: Talon SRX Motor Controller Problem

That section explains that PWM CAL Mode and Limit Switches require the upgrade. General PWM drive does not require the update, however it is required to be FRC legal if the firmware is <0.28.

Your photo looks like the green wire is connected to the middle pin, which is not correct. Green should go to ground. See Section 1.3.3 of the Talon SRX User's Guide.
Reply With Quote
  #4   Spotlight this post!  
Unread 23-11-2016, 09:30
dirtbikerxz's Avatar
dirtbikerxz dirtbikerxz is offline
Captain | Driver | CAD | Junior
AKA: Rohit Gondi
FRC #3991 (KnightVision)
Team Role: Driver
 
Join Date: Nov 2014
Rookie Year: 2015
Location: Baton Rouge, LA
Posts: 444
dirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud of
Re: Talon SRX Motor Controller Problem

Why are you attempting to run the SRXs from PWM anyway?
__________________

Team 3991: Driver since freshman (2015-), Captain since sophomore (2016-), CADer
"The human condition is not perfect. We are not perfect specimens, any of us. We're not robots." - Michael Ovitz
My posts may or may not reflect the views of my team, they are my opinions, and mine alone.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-11-2016, 17:56
FRC Team CC FRC Team CC is offline
Registered User
FRC #6560 (Charging Champions)
 
Join Date: Sep 2014
Rookie Year: 2012
Location: Southern California
Posts: 102
FRC Team CC is an unknown quantity at this point
Re: Talon SRX Motor Controller Problem

Neither of our wires are connected to the middle pin - the green is connected to ground. By our understanding, the problem with the CAN wires is that they employ series circuiting rather than parallel. So if one of the motor controllers goes out, then the others stop working. This is the reason we are trying to use PWM ports, but correct us if we wrong about this.

Thanks,
Charging Champions
__________________
The Charging Champions
FTC Team #8660
Facebook Page: https://www.facebook.com/chargingchampions
Follow us on Twitter: @FtcTeamCC
Google Plus: https://plus.google.com/112552147224383900922/posts
Youtube channel: https://www.youtube.com/channel/UCop...G3zsvQKCXF4ESQ
Blog: http://chargingchampionsblog.blogspot.com/
Reply With Quote
  #6   Spotlight this post!  
Unread 23-11-2016, 18:48
bobbysq bobbysq is offline
Registered User
FRC #4646 (Team ASAP)
Team Role: Leadership
 
Join Date: Apr 2016
Rookie Year: 2015
Location: Des Moines, IA
Posts: 276
bobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud of
Re: Talon SRX Motor Controller Problem

Quote:
Originally Posted by FTC Team CC View Post
Neither of our wires are connected to the middle pin - the green is connected to ground. By our understanding, the problem with the CAN wires is that they employ series circuiting rather than parallel. So if one of the motor controllers goes out, then the others stop working. This is the reason we are trying to use PWM ports, but correct us if we wrong about this.

Thanks,
Charging Champions
Supposedly, both pairs of Talon SRX wires are continuous with each other. You should also note that if you use PWM, you don't get any of the nice PID and active brake and coast switching features.
Reply With Quote
  #7   Spotlight this post!  
Unread 23-11-2016, 19:28
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: 540
Ari423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant future
Re: Talon SRX Motor Controller Problem

Quote:
Originally Posted by bobbysq View Post
You should also note that if you use PWM, you don't get any of the nice PID and active brake and coast switching features.
+1

For most teams that use Talon SRX's, the main reason is the built-in PID and active breaking software, which is only available via CAN. Obviously you already have these Talon SRX's, but in the future if you know you will only be using PWM you can buy cheaper motor controllers that do effectively the same thing. You can get SPARK motor controllers from REV Robotics for $45 (half the price of a Talon SRX). If you really need the small package, you can get Victor SP's ($60 IIRC). Of course this isn't to say that the Talon SRX's won't work with PWM, just that in the future there are cheaper alternatives.
__________________
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)


Reply With Quote
  #8   Spotlight this post!  
Unread 23-11-2016, 20:10
bobbysq bobbysq is offline
Registered User
FRC #4646 (Team ASAP)
Team Role: Leadership
 
Join Date: Apr 2016
Rookie Year: 2015
Location: Des Moines, IA
Posts: 276
bobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud of
Re: Talon SRX Motor Controller Problem

Quote:
Originally Posted by Ari423 View Post
You can get SPARK motor controllers from REV Robotics for $45 (half the price of a Talon SRX). If you really need the small package, you can get Victor SP's ($60 IIRC). Of course this isn't to say that the Talon SRX's won't work with PWM, just that in the future there are cheaper alternatives.
+1 to that too

Also, you should put some form of connector on your wires. It's possible you were shorting +5v to ground with your current setup. If you don't have the proper connectors and crimper, you can solder the wires to a preexisting PWM cable. Using connectors will also give you something good to attach the cables with if you decide to use CAN at some point, since I doubt you'll want to cut, restrip, and solder the wires every season, especially since the wires are permanently stuck to the controller.
Reply With Quote
  #9   Spotlight this post!  
Unread 24-11-2016, 01:14
FRC Team CC FRC Team CC is offline
Registered User
FRC #6560 (Charging Champions)
 
Join Date: Sep 2014
Rookie Year: 2012
Location: Southern California
Posts: 102
FRC Team CC is an unknown quantity at this point
Re: Talon SRX Motor Controller Problem

Thank you all for the replies. A couple of questions:

1. So if we used the CAN ports, which don't use parallel circuiting, would it be right to say that if one motor controller were to stop receiving power, then the rest of them would not receive any inputs through the CAN wires?

2. Should we use Anderson Powerpoles to link together CAN wires or a different mechanism? What is the cleanest way of linking CAN wires?

We are probably going to stick with the CAN ports.

Thanks for the help,
Charging Champions
__________________
The Charging Champions
FTC Team #8660
Facebook Page: https://www.facebook.com/chargingchampions
Follow us on Twitter: @FtcTeamCC
Google Plus: https://plus.google.com/112552147224383900922/posts
Youtube channel: https://www.youtube.com/channel/UCop...G3zsvQKCXF4ESQ
Blog: http://chargingchampionsblog.blogspot.com/
Reply With Quote
  #10   Spotlight this post!  
Unread 24-11-2016, 01:19
dirtbikerxz's Avatar
dirtbikerxz dirtbikerxz is offline
Captain | Driver | CAD | Junior
AKA: Rohit Gondi
FRC #3991 (KnightVision)
Team Role: Driver
 
Join Date: Nov 2014
Rookie Year: 2015
Location: Baton Rouge, LA
Posts: 444
dirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud of
Re: Talon SRX Motor Controller Problem

Quote:
Originally Posted by FTC Team CC View Post
Thank you all for the replies. A couple of questions:

1. So if we used the CAN ports, which don't use parallel circuiting, would it be right to say that if one motor controller were to stop receiving power, then the rest of them would not receive any inputs through the CAN wires?

2. Should we use Anderson Powerpoles to link together CAN wires or a different mechanism? What is the cleanest way of linking CAN wires?

We are probably going to stick with the CAN ports.

Thanks for the help,
Charging Champions
1. I believe the input and output CAN wires on a talon are soldered to the same place. So even if one motor controller were to lose power, the rest should still work. ( Someone correct me if I'm wrong). Also, it is really rare that only one of your motor controllers should lose power, especially if the wiring was done correctly.

2. We always cut our CAN wires to the exact length and solder them together and cover in heatshrink. Makes really clean runs. If we need more length on one wire later on, we can always just solder on more wire, or if it comes to it, take apart the motor controller housing and compltley swap out the wire (it's not too hard).
__________________

Team 3991: Driver since freshman (2015-), Captain since sophomore (2016-), CADer
"The human condition is not perfect. We are not perfect specimens, any of us. We're not robots." - Michael Ovitz
My posts may or may not reflect the views of my team, they are my opinions, and mine alone.
Reply With Quote
  #11   Spotlight this post!  
Unread 24-11-2016, 01:31
Bkeeneykid's Avatar
Bkeeneykid Bkeeneykid is offline
#wheatcoastneatcoast
AKA: Devin Keeney
FRC #1982 (Cougar Robotics); Season Long Fantasy FIRST (F3)
Team Role: Student
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Lenexa, Kansas
Posts: 301
Bkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud of
Re: Talon SRX Motor Controller Problem

Quote:
Originally Posted by FTC Team CC View Post
Thank you all for the replies. A couple of questions:

1. So if we used the CAN ports, which don't use parallel circuiting, would it be right to say that if one motor controller were to stop receiving power, then the rest of them would not receive any inputs through the CAN wires?

2. Should we use Anderson Powerpoles to link together CAN wires or a different mechanism? What is the cleanest way of linking CAN wires?

We are probably going to stick with the CAN ports.

Thanks for the help,
Charging Champions
We used CTR's CAN Connector Pack to connect our SRXs this year. They worked great, just put some electrical tape over the exposed solder points on the bottom (just in case). Makes it very simple to re wire the CAN network (as we had to do as we needed more motor controllers suddenly), and means you don't risk damaging the cables much with other connectors. It uses the same connectors as on the PDP, PCM and roboRIO. It may not be the cleanest way (our board was not very clean this year), but it certainly makes it easy to change later. Anderson connectors would be cleaner cut to the right length, but for the CAN wires, these connectors are overkill. Try .1" pitch PWM wires maybe instead?

And as Rohit said, most CAN devices just connect high-high and low-low and just take that signal elsewhere for processing. Also, you don't have much probability of one dying on you. Though more likely, if one died your code would crash as it couldn't initialize the CANTalon anymore. That's assuming the entire thing just died rather than the just the voltage controlling circuitry, which is more likely. The SRX is advanced enough to have current limiting and the such, and because of that I've never seen a dead one.
__________________

F4 Network Website Designer

2010-2012: A Whole Buncha FLL Teams; Team Spirit, Gracious Professionalism Award winner
2015-Current: FRC 1982, Captain, Electrical Lead
Beginning FIRST Volunteer

Moderator on the FIRSTwiki
Reply With Quote
  #12   Spotlight this post!  
Unread 24-11-2016, 09:58
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 988
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Talon SRX Motor Controller Problem

Quote:
Originally Posted by Bkeeneykid View Post
Also, you don't have much probability of one dying on you.
A breaker trip will cause a single controller to lose power.

As others have noted though, the controller losing power will not interrupt your CAN chain.

Quote:
Though more likely, if one died your code would crash as it couldn't initialize the CANTalon anymore.
This should not crash WPILib code, it will just throw errors into the log.
Reply With Quote
  #13   Spotlight this post!  
Unread 24-11-2016, 12:01
bobbysq bobbysq is offline
Registered User
FRC #4646 (Team ASAP)
Team Role: Leadership
 
Join Date: Apr 2016
Rookie Year: 2015
Location: Des Moines, IA
Posts: 276
bobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud of
Re: Talon SRX Motor Controller Problem

For connecting CAN wires, I would recommend using the DuPont 3 pin connectors, since they can also then be used for PWM if you want. You can also use Wago lever nuts, since they can be reused very easily and don't require special tools.
Reply With Quote
  #14   Spotlight this post!  
Unread 24-11-2016, 12:59
FRC Team CC FRC Team CC is offline
Registered User
FRC #6560 (Charging Champions)
 
Join Date: Sep 2014
Rookie Year: 2012
Location: Southern California
Posts: 102
FRC Team CC is an unknown quantity at this point
Re: Talon SRX Motor Controller Problem

Thank you all for your help. Currently we have a CAN wire running from the RoboRio to a central "hub". CAN wires from each motor controller are connected to this "hub" (see image below). They are currently secured with electrical tape - we are planning on using a more substantial connection (based on the suggestion you guys provided. Does this setup look right?

Also, how do we know if the Talon SRXs are connected to each and working? Do they alternate orange?

Thanks once again.

- Charging Champions
Attached Thumbnails
Click image for larger version

Name:	IMG_2688.JPG
Views:	29
Size:	1.12 MB
ID:	21299  
__________________
The Charging Champions
FTC Team #8660
Facebook Page: https://www.facebook.com/chargingchampions
Follow us on Twitter: @FtcTeamCC
Google Plus: https://plus.google.com/112552147224383900922/posts
Youtube channel: https://www.youtube.com/channel/UCop...G3zsvQKCXF4ESQ
Blog: http://chargingchampionsblog.blogspot.com/
Reply With Quote
  #15   Spotlight this post!  
Unread 24-11-2016, 14:42
Bkeeneykid's Avatar
Bkeeneykid Bkeeneykid is offline
#wheatcoastneatcoast
AKA: Devin Keeney
FRC #1982 (Cougar Robotics); Season Long Fantasy FIRST (F3)
Team Role: Student
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Lenexa, Kansas
Posts: 301
Bkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud of
Re: Talon SRX Motor Controller Problem

Quote:
Originally Posted by FTC Team CC View Post
Thank you all for your help. Currently we have a CAN wire running from the RoboRio to a central "hub". CAN wires from each motor controller are connected to this "hub" (see image below). They are currently secured with electrical tape - we are planning on using a more substantial connection (based on the suggestion you guys provided. Does this setup look right?

Also, how do we know if the Talon SRXs are connected to each and working? Do they alternate orange?

Thanks once again.

- Charging Champions
Electrical tape is a bad idea, but you already knew that. There are many solutions here, use one of them. Also, while I believe this setup may work, I'm not sure it's you best option. Your best option is to connect the green of one to the green of another, like you see in the SRX manual. And yes, if they are properly connected but not enabled, they will alternate orange. They will alternate red if they cannot connect. Once enabled (and initialized in code), they will stay solid orange and then flash the color of the direct they are going, like the other motor controllers.
__________________

F4 Network Website Designer

2010-2012: A Whole Buncha FLL Teams; Team Spirit, Gracious Professionalism Award winner
2015-Current: FRC 1982, Captain, Electrical Lead
Beginning FIRST Volunteer

Moderator on the FIRSTwiki
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 15:51.

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