|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Dynamic Brake/Coast Modes?
I have a potential mechanism application for which it would be desirable to dynamically switch between brake and coast modes on a speed controller via software rather than setting a mode prior to a match via a switch or calibration button.
Do any of the legal speed controllers currently support such an application? I have not used CAN control on the Talons before, so I wasn't sure if the Talons could be programmed with this functionality. I know the Jaguar is configured via jumpers -- is it legal to create a custom circuit that will allow electronic switching of the jumper position? |
|
#2
|
|||||
|
|||||
|
Re: Dynamic Brake/Coast Modes?
The Talon SRX can dynamically set brake/coast when operating in CAN mode.
See section 2.1.3 of the Talon SRX User's Guide. This refers you to the various language references. Last edited by GeeTwo : 20-01-2016 at 00:32. |
|
#3
|
|||||
|
|||||
|
Re: Dynamic Brake/Coast Modes?
Any speed controller that has a brake/coast jumper can have that jumper connected to a digital I/O and be controlled in software. We have done it many times in the past. CAN is also an alternative.
|
|
#4
|
|||||
|
|||||
|
Re: Dynamic Brake/Coast Modes?
Quote:
Quote:
Quote:
Last edited by GeeTwo : 21-01-2016 at 08:39. Reason: Clarified last sentence. |
|
#5
|
||||
|
||||
|
Re: Dynamic Brake/Coast Modes?
Quote:
For R88, I think the controller is still being controlled by the PWM port - the DIO hooked up to the coast/break header won't cause the motor to move at any time, only the PWM signal will do that. The DIO signal will just change the performance characteristics of the controller when it's being used by the PWM signal. |
|
#6
|
|||||
|
|||||
|
Re: Dynamic Brake/Coast Modes?
What Jon said, this is for the brake/coast jumper only. I believe bullet J also applies.
|
|
#7
|
||||
|
||||
|
Re: Dynamic Brake/Coast Modes?
All good points...
Java example demonstrating section 2.1.3. java function here... https://github.com/CrossTheRoadElec/...bot/Robot.java |
|
#8
|
|||
|
|||
|
Re: Dynamic Brake/Coast Modes?
Quote:
1. On the Jaguar, the BRAKE sensor pin (middle one) is a direct input to the MCU which has 3.3V IOs (which are 5V tolerant, but still). In retrospect, we really should have put an ESD suppression device on that pin (he says looking at the last version of the schematics). But more so, 2. When you've done this in the past, did you also connect ground? I.e. Was the DIO connection to the brake/coast jumper 2 wires (signal+ground), or just one wire (signal only)? I presume you did single wire. I ask since the PWM input of motor controllers use optoisolators so that the only ground return from the motor controller is V-. Connecting to the brake/coast jumper with 2 pins introduces a second ground return which may bear more current should the V- get disconnected, even momentarily. I don't recall seeing any documentation for how to do the dynamic brake/coast. I don't recall providing this in the Jaguar docs. I don't recall seeing it in the Victor (but that was a while ago for me). |
|
#9
|
|||||
|
|||||
|
Re: Dynamic Brake/Coast Modes?
Scott,
This is not using the PWM interface, ever. The Brake/Coast jumper is a pulled up input. Close the contact to common and it pulls down into the other state on those devices that use this feature. So you are supplying a closing contact to ground and no voltage in either state. This is my preferred method of interfacing to external control electronics. I don't like volts... |
|
#10
|
|||||
|
|||||
|
Re: Dynamic Brake/Coast Modes?
Bullet J of R66 refers specifically to the limit switch jumpers, not the brake/coast jumper. Applying bullet E assumes that a jumper pin is a standard connection point, which isn't clear. The other arguments don't convince me either, though this is a case where I'd like to be wrong; it would have provided a simple solution to a design problem a few years ago, but I thought it illegal. I have asked about this on the Q&A.
Quote:
Last edited by GeeTwo : 22-01-2016 at 20:30. Reason: Added second sentence ("Applying bullet E..") |
|
#11
|
|||||
|
|||||
|
Re: Dynamic Brake/Coast Modes?
Guys,
There is no rule that prevents this use of the Brake/Coast jumpers. R66 lists allowed modifications to electrical components. The removal of a jumper and the connection to a DIO output is what was intended by the manufacturer starting with the Victor 883 and has been allowed since that device was introduced in FRC robots. The bullet that refers to the limit switch input on Jaguars has a history to their first introduction and the firmware that was used at that time. To make it clear for present day users, Bullet J was added. R68 has no bearing on the Brake/Coast jumper. R68 requires that all PWM controls originate in the RoboRio directly or through the listed MXP devices to insure that FMS will stop all motors used on an FRC robot when so commanded. |
|
#12
|
||||
|
||||
|
Re: Dynamic Brake/Coast Modes?
The GDC says it's a violation of R68.
Last edited by cgmv123 : 28-01-2016 at 11:26. Reason: Al has spoken. |
|
#13
|
|||||
|
|||||
|
Re: Dynamic Brake/Coast Modes?
Everyone,
In a discussion with Engineering, certain conditions could produce a hazardous condition. (verified during component testing) The current Q&A response is the only way to prevent this condition from occurring in all legal controller implementations on FRC robots. The Q&A response will be enforced at least for FRC season 2016. Sorry for the confusion. |
|
#14
|
||||
|
||||
|
Re: Dynamic Brake/Coast Modes?
Quote:
|
|
#15
|
|||||
|
|||||
|
Re: Dynamic Brake/Coast Modes?
Moving the jumpers are legal as specified in R66.i.
If a power return cable were to open under certain conditions, full current might flow in the jumper cable common lead. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|