![]() |
CAN to PWM converter?
After reading the recent thread on motor controller selection, I realized that if a poor-ish team wanted to use CAN they would have to drop $40 more than a SPARK to buy a Talon SRX. Does anybody know how one could have a separate PCB that would act as a CAN device and relay commands to a Spark or Victor SP as PWM? I anybody could help me with it/answer case-by-case questions (like how CAN commands would be set up, how to set up a particular chip) I would be very grateful.
|
Re: CAN to PWM converter?
IIRC, the CAN protocol used for FRC is pretty heavily modified and kept under wraps to prevent tampering.
If you do somehow figure out the protocol, you would need to use a microprocessor to a. spoof a talon SRX and b. translate the commands into PWM values. I can't really help you with anything, sorry. If you wanted to try to reverse-engineer the protocol, I would start with the firmware files, or maybe see if it's on robotpy's github. |
Re: CAN to PWM converter?
Current FRC rules would prohibit that anyway. R68 in 2016 rules. The usual caveat about future rules, but I don't see this changing. The device would be more than a simple convertor. It would have to read & respond to Canbus commands and the make a PWM output. Would still would not get the advantages of the additional modes in the native Canbus motor controler By the time you made that, you would have covered the gap to the Talon.
If you just want Canbus, a cheaper solution might be to find used Jaguars. They have a somewhat undeserved bad reputation. |
Re: CAN to PWM converter?
I don't understand why someone would want to do this. Can you elaborate on the advantage?
|
Re: CAN to PWM converter?
Quote:
|
Re: CAN to PWM converter?
Quote:
|
Re: CAN to PWM converter?
Quote:
|
Re: CAN to PWM converter?
Quote:
http://www.ctr-electronics.com/Talon...e%20Manual.pdf http://www.ctr-electronics.com/Talon...;s%20Guide.pdf http://www.ctr-electronics.com/PCM%20User's%20Guide.pdf http://www.ctr-electronics.com/PDP%20User's%20Guide.pdf Being that CTRE's devices are the only CAN devices at the moment for FRC motor control (and power and pneumatic) and they offer non-FRC firmware and tons of example code, they are doing a terrible job of hiding any of this. My smarty-pants response aside, the CAN devices available for FRC teams are pretty well documented and accessible. Also relevant if you get into CAN jiggery pokery: Cool device and software for making it a lot easier (CAN is integrated into the Linux Kernel these days though): http://linklayer.github.io/cantact/ Good talk explaining how CAN works and how to use above device with software (I'm in the audience somewhere): http://livestream.com/internetsociet...deos/130605456 EDIT: Also, the irony of FRC specific CAN being an undocumented dark art while most of the automotive industry keeps it a closely guarded secret is amusing. Seriously, watch the talk. |
Re: CAN to PWM converter?
Code:
You must spread some Reputation around before giving it to marshall again. |
Re: CAN to PWM converter?
Quote:
That being said, if I could get a converter working, then it's possible to increase the size of the microcontroller and add support for PID or something, although at that point we're getting into SRX territory anyway. :P Kind of unfortunate that the rules disallow it, although the rule makes sense. |
Re: CAN to PWM converter?
Quote:
Thanks for the info. Must have been the late night that caused me to miss those sections. |
Re: CAN to PWM converter?
Quote:
You also give up most of the usefulness of CAN while doubling your number of control system connections. |
Re: CAN to PWM converter?
Quote:
|
Re: CAN to PWM converter?
Quote:
|
Re: CAN to PWM converter?
Quote:
Quote:
|
Re: CAN to PWM converter?
Quote:
I know nothing about the COTS FRC Market, but I wouldn't be surprised if the per item cost on a Talon SRX is in the $20-40 range.They need to sell it at $90 to cover all the overhead and still make a profit. |
Re: CAN to PWM converter?
Quote:
|
Re: CAN to PWM converter?
Not to mention programing & design time. If you are doing it as a hobby or have students do as a project that might not be much of an issue. If you have to actually pay your programmers and engineers, it starts to add up. Quite expensive for a prototype or small production run. Obviously the per unit costs come down with the more you make.
|
| All times are GMT -5. The time now is 20:03. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi