Go to Post Who needs daytime soaps when one can watch FRC matches? ;) - lkg9999 [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 04-24-2016, 10:58 PM
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,536
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
Low-cost Talon SRX computer?

As an off season project, I'd like to lead a build of a couple of the catapult concepts we had back around week 1 or 2 that we dropped because we didn't have any experience with them. Ideally, these would be standalone projects, with no drive system and a low-cost controller (e.g. arduino, rather than RoboRIO). One is essentially pneumatic, so we're ready to drive this with some relay modules. Another requires PID. I don't see any reason that a Talon SRX internal PID shouldn't fill the bill, but I really don't want to commit a RoboRIO to control the SRX over CAN. As controlling the SRX is a means rather than an end (our end is more mechanical), I'm hoping we can adapt a relatively inexpensive way to control an SRX via CAN. Arduino would be the preferred tool, as we have several Leonardo clones already in hand, but learning another infrastructure if needed is certainly acceptable.

A search for CAN bus shields turned up a number of shields with DB-15 ports to interface to vehicles. While this may be adaptable to our needs, it was not clear from a high-level read of their capabilities. I also found a number of really low cost devices which seemed to want to interface to something through IR, which didn't seem like the right answer.

Does anyone have an inexpensive (<$100, or at least < $200) way (both hardware and software) to control a Talon SRX (in encoder mode) which includes both driving at a specified speed and driving (a single encoder) to a "click count"?
__________________

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.
Reply With Quote
  #2   Spotlight this post!  
Unread 04-24-2016, 11:01 PM
asid61's Avatar
asid61 asid61 is offline
Registered User
AKA: Anand Rajamani
FRC #0115 (MVRT)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,210
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
Re: Low-cost Talon SRX computer?

Old cRIOs from neighboring teams could do it, maybe.
The Arduino has some built-in PID libraries, if you want to go really cheap, but if you do go that route you wouldn't be using CAN and would probably need the Arduino Due for the processing power.
__________________
<Now accepting CAD requests and commissions>

Reply With Quote
  #3   Spotlight this post!  
Unread 04-24-2016, 11:02 PM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,997
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Low-cost Talon SRX computer?

Quote:
Originally Posted by GeeTwo View Post
Does anyone have an inexpensive (<$100, or at least < $200) way (both hardware and software) to control a Talon SRX (in encoder mode) which includes both driving at a specified speed and driving (a single encoder) to a "click count"?
Have you asked Omar? He is usually very helpful.


Reply With Quote
  #4   Spotlight this post!  
Unread 04-24-2016, 11:03 PM
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,536
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: Low-cost Talon SRX computer?

Quote:
Originally Posted by asid61 View Post
Old cRIOs from neighboring teams could do it, maybe.
The Arduino has some built-in PID libraries, if you want to go really cheap, but if you do go that route you wouldn't be using CAN and would probably need the Arduino Due for the processing power.
cRIOs introduce the same issue as RoboRIOs for this purpose - I'm looking for something else.

Edit: I considered using arduino-controlled PID, but I am concerned that this would not translate into a "proven FRC-capable solution" if it were to come up in future years. I'd rather solve this with basic programming of an SRX.


Quote:
Originally Posted by Ether View Post
Have you asked Omar? He is usually very helpful.
No, I haven't asked him specifically, but I did spend a few minutes browsing ctr-electronics.
__________________

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.

Last edited by GeeTwo : 04-24-2016 at 11:08 PM.
Reply With Quote
  #5   Spotlight this post!  
Unread 04-24-2016, 11:07 PM
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 985
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: Low-cost Talon SRX computer?

The HERO is probably your best bet unless you want to be re-implementing/porting all of the software for communicating with the Talon: http://www.ctr-electronics.com/hro.html
Reply With Quote
  #6   Spotlight this post!  
Unread 04-24-2016, 11:20 PM
Michael Hill's Avatar
Michael Hill Michael Hill is offline
Registered User
FRC #3138 (Innovators Robotics)
Team Role: Mentor
 
Join Date: Jul 2004
Rookie Year: 2003
Location: Dayton, OH
Posts: 1,566
Michael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond repute
Re: Low-cost Talon SRX computer?

If you're wanting to control over CAN, be wary of the security token put in the CAN bus every 100 msec (I believe that's still a thing). I don't believe it's part of the standard CAN protocol, so you may have to install the non-FRC firmware on the Talon (I assume that's one of the differences in the firmware). Someone who knows more about it should comment if this is the case.
Reply With Quote
  #7   Spotlight this post!  
Unread 04-25-2016, 12:16 AM
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,536
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: Low-cost Talon SRX computer?

Quote:
Originally Posted by RufflesRidge View Post
The HERO is probably your best bet unless you want to be re-implementing/porting all of the software for communicating with the Talon: http://www.ctr-electronics.com/hro.html
Not that I really want to, but is there an inexpensive C# programming environment?

Quote:
Originally Posted by Michael Hill View Post
If you're wanting to control over CAN, be wary of the security token put in the CAN bus every 100 msec (I believe that's still a thing). I don't believe it's part of the standard CAN protocol, so you may have to install the non-FRC firmware on the Talon (I assume that's one of the differences in the firmware). Someone who knows more about it should comment if this is the case.
Thanks for the reminder that FIRST always has a watchdog! I knew this, but hadn't considered it in this context.
__________________

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.
Reply With Quote
  #8   Spotlight this post!  
Unread 04-25-2016, 12:34 AM
cbale2000's Avatar
cbale2000 cbale2000 is offline
Registered User
AKA: Chris Bale
FRC #0703 (Phoenix)
Team Role: Leadership
 
Join Date: Apr 2006
Rookie Year: 2004
Location: Saginaw, MI
Posts: 927
cbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond repute
Re: Low-cost Talon SRX computer?

Quote:
Originally Posted by GeeTwo View Post
Not that I really want to, but is there an inexpensive C# programming environment?
Microsoft Visual Studio is free for personal use and supports C# (amongst others):

https://www.visualstudio.com/vs-2015-product-editions
Reply With Quote
  #9   Spotlight this post!  
Unread 04-25-2016, 07:36 AM
BeardyMentor BeardyMentor is offline
Just the right amount of Crazy
AKA: Matt Hagan
FRC #1257 (Parallel Universe)
Team Role: Mentor
 
Join Date: Mar 2014
Rookie Year: 2010
Location: United States
Posts: 107
BeardyMentor has much to be proud ofBeardyMentor has much to be proud ofBeardyMentor has much to be proud ofBeardyMentor has much to be proud ofBeardyMentor has much to be proud ofBeardyMentor has much to be proud ofBeardyMentor has much to be proud ofBeardyMentor has much to be proud ofBeardyMentor has much to be proud ofBeardyMentor has much to be proud of
Re: Low-cost Talon SRX computer?

There is an arduino CAN library http://www.chiefdelphi.com/forums/sh...d.php?t=145564
Reply With Quote
  #10   Spotlight this post!  
Unread 04-25-2016, 07:48 AM
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Low-cost Talon SRX computer?

Your project is still shrouded in mystery, so my suggestions may not be that applicable. Here are my tinkering $.02.

1. The cheapest stuff is what you already have.
2. SRX are quite nice, but it is not hard to do PID on almost anything, and you'll learn and understand it better if you can see the response plots and understand what the control terms do.
3. A key part of engineering is transferring from a scale prototype to a full implementation. Or from one domain to another. You don't have to meet all constraints at once, especially if this is risky, so using a laptop and building a big one with the tools you have may be the quickest way to prove it works.

Then take what you learned and grow/shrink speed it up, make it cheaper, etc.

Yes, you can skip these steps, but many times, the optimization and lack of iteration drives you off course and gets in the way of other discoveries.

By the way, CTR provides non-FRC firmware that has no tokenization for safety.

Greg McKaskle
Reply With Quote
  #11   Spotlight this post!  
Unread 04-25-2016, 09:29 AM
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,536
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: Low-cost Talon SRX computer?

Quote:
Originally Posted by Greg McKaskle View Post
Your project is still shrouded in mystery, so my suggestions may not be that applicable.
I wasn't intending to be mysterious. The PID controller would drive a (non-parallel) four-bar linkage similar to one I described in this post, though with a lever arm rather than a linear slide.
__________________

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.
Reply With Quote
  #12   Spotlight this post!  
Unread 04-25-2016, 11:36 AM
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,620
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Low-cost Talon SRX computer?

Is there a reason one couldn't use these IC to service the CAN requirement:
http://www.microchip.com/design-cent...heral-products

I'd be interested into doing this. I previously had some of this working with the Parallax Propeller but my code base for it is just a mess right now.
Reply With Quote
  #13   Spotlight this post!  
Unread 04-25-2016, 02:04 PM
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: 516
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: Low-cost Talon SRX computer?

Hey All, Some answers below...

Quote:
Does anyone have an inexpensive (<$100, or at least < $200) way (both hardware and software) to control a Talon SRX (in encoder mode) which includes both driving at a specified speed and driving (a single encoder) to a "click count"?
We get this question a lot through our support email. This is one of the main reasons why we made the HERO development board.
http://www.ctr-electronics.com/hro.html
It's a C# based NETMF board that allows you to write/debug C# robot code (works with the free Visual Studio IDE/Debugger). This is where we add features to our CAN actuators first, test them, then port what makes sense to the FRC system.

Our C# library is open source so you can use it as a reference for porting the Talon library to whatever.
https://github.com/CrossTheRoadElec/HERO-SDK

Also, if you are married to another hardware platform (familiarly, preference, whatever) you should consider looking at HERO anyway as a tool to field-upgrade/set-IDs, and to get your robot moving immediately. Then you can begin your porting effort by studying our library.

If you happen to be at Worlds this week, check out our demos at our booth. We'll have at least one robot using HERO and Talons.

Quote:
Not that I really want to, but is there an inexpensive C# programming environment?
Visual Studio Community is free, see HERO User's Guide for installation steps.

Quote:
...be wary of the security token put in the CAN bus every 100 msec (I believe that's still a thing). ....
We have FRC and nonFRC firmware. FRC firmware requires a roboRIO that safely tells us that we can enable, nonFRC does not need the roboRIO to enable.
The firmware file is on our site, use a HERO or roboRIO to field-upgrade your Talons.

Quote:
A search for CAN bus shields turned up a number of shields
I've had a few customers do this. Typically they prove out what they want to do using HERO, then do a minimal port to Arduino/RaspPi/whatever. This is particularly helpful if you don't have a lot of flash on your platform.

I've also had a few customers just send high level commands to a HERO, which in turn updates the Talons (over UART or similar). See HERO User's Manual for serial example.

Last edited by ozrien : 04-25-2016 at 02:32 PM. Reason: spelling mistake
Reply With Quote
  #14   Spotlight this post!  
Unread 04-25-2016, 02:19 PM
Andrew Schreiber Andrew Schreiber is offline
Data Nerd
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,055
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Low-cost Talon SRX computer?

Quote:
Originally Posted by ozrien View Post
Hey All, Some answers below...


We get this question a lot through our support support. This is one of the main reasons why we made the HERO development board.
http://www.ctr-electronics.com/hro.html
It's a C# based NETMF board that allows you to write/debug C# robot code (works with the free Visual Studio IDE/Debugger). This is where we add features to our CAN actuators first, test them, then port what makes sense to the FRC system.

Our C# library is open source so you can use it as a reference for porting the Talon library to whatever.
https://github.com/CrossTheRoadElec/HERO-SDK

Also, if you are married to another hardware platform (familiarly, preference, whatever) you should consider looking at HERO anyway as a tool to field-upgrade/set-IDs, and to get your robot moving immediately. Then you can begin your porting effort by studying our library.

If you happen to be at Worlds this week, check out our demos at our booth. We'll have at least one robot using HERO and Talons.


Visual Studio Community is free, see HERO User's Guide for installation steps.


We have FRC and nonFRC firmware. FRC firmware requires a roboRIO that safely tells us that we can enable, nonFRC does not need the roboRIO to enable.
The firmware file is on our site, use a HERO or roboRIO to field-upgrade your Talons.


I've had a few customers do this. Typically they prove out what they want to do using HERO, then do a minimal port to Arduino/RaspPi/whatever. This is particularly helpful if you don't have a lot of flash on your platform.

I've also had a few customers just send high level commands to a HERO, which in turn updates the Talons (over UART or similar). See HERO User's Manual for serial example.
Omar, if we're not married to the idea of using Talons (cost/ more features than we need) how well would the Hero work for general purpose robot platform controller using, say Spark ESCs or for even lower load motors Vex Controller 29s.
__________________




.
Reply With Quote
  #15   Spotlight this post!  
Unread 04-25-2016, 02:29 PM
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,886
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Low-cost Talon SRX computer?

How difficult would it be to get Jaguars working through Hero on the CanBus? Does anybody know if the Jaguar firmware exists? We have a bunch of those sitting around. It would be great to have a test bed that connected them to a x-box controller.

I see there are 3 PWM outputs on the board. I suppose that would do about the same.
__________________
If you don't know what you should hook up then you should read a data sheet

Last edited by FrankJ : 04-25-2016 at 02:44 PM. Reason: Added PWM comment
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 12:44 AM.

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