|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
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"? |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
||||
|
||||
|
Re: Low-cost Talon SRX computer?
Quote:
|
|
#4
|
|||||
|
|||||
|
Re: Low-cost Talon SRX computer?
Quote:
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. No, I haven't asked him specifically, but I did spend a few minutes browsing ctr-electronics. Last edited by GeeTwo : 04-24-2016 at 11:08 PM. |
|
#5
|
|||
|
|||
|
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
|
|
#6
|
||||
|
||||
|
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.
|
|
#7
|
|||||
|
|||||
|
Re: Low-cost Talon SRX computer?
Quote:
Quote:
|
|
#8
|
||||
|
||||
|
Re: Low-cost Talon SRX computer?
Quote:
https://www.visualstudio.com/vs-2015-product-editions |
|
#9
|
|||
|
|||
|
Re: Low-cost Talon SRX computer?
There is an arduino CAN library http://www.chiefdelphi.com/forums/sh...d.php?t=145564
|
|
#10
|
|||
|
|||
|
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 |
|
#11
|
|||||
|
|||||
|
Re: Low-cost Talon SRX computer?
Quote:
|
|
#12
|
||||
|
||||
|
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. |
|
#13
|
||||
|
||||
|
Re: Low-cost Talon SRX computer?
Hey All, Some answers below...
Quote:
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:
Quote:
The firmware file is on our site, use a HERO or roboRIO to field-upgrade your Talons. Quote:
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 |
|
#14
|
|||
|
|||
|
Re: Low-cost Talon SRX computer?
Quote:
|
|
#15
|
||||
|
||||
|
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. Last edited by FrankJ : 04-25-2016 at 02:44 PM. Reason: Added PWM comment |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|