|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Talon SRX and Analog Encoders
We just got some Talon SRX motor controllers and are working on understanding all of their potential. Mainly, we need to figure out how to hook up and use a magnetic absolute encoder (MA3) to each of our SRX. The SRX will be what controls the turning of our wheels in a swerve drive.
I've hear that the SRX have 'built-in' PID controllers. Is this true? And if so, do I still need to include PID in our labVIEW programming? There are several examples of using the talon SRX in the software manual that was included with the SRX, but we are unable to distinguish which of them we are meant to use. Thank you for the help! ![]() |
|
#2
|
||||
|
||||
|
Re: Talon SRX and Analog Encoders
Quote:
Quote:
- connect the feedback sensor directly to the Talon (not the roboRIO) - use CAN bus (not PWM) to control the Talon - use the appropriate CAN commands to tell Talon what closed-loop mode you want (e.g. position or speed etc) - use the appropriate CAN commands to set the gains in the Talon's PID controller. - use the appropriate CAN commands to communicate the desired setpoint to the Talon's PID so it knows what value you want it to control to. Last edited by Ether : 16-05-2015 at 18:15. |
|
#3
|
|||||
|
|||||
|
Re: Talon SRX and Analog Encoders
Quote:
http://www.vexrobotics.com/217-4401.html We had 14 SRX this year, 12 of them with a sensor in the breakout... This is amazing |
|
#4
|
|||
|
|||
|
Re: Talon SRX and Analog Encoders
Quote:
|
|
#5
|
||||
|
||||
|
Re: Talon SRX and Analog Encoders
Quote:
Quote:
|
|
#6
|
||||
|
||||
|
Re: Talon SRX and Analog Encoders
Gotta give Antoine credit for that link :-)
|
|
#7
|
|||
|
|||
|
Re: Talon SRX and Analog Encoders
Alright I understand what is it now, but is it the only way to turn 5V of analog signal to 3.3? I'm asking because while the breakout board would be helpful, it doesn't look like we will be getting it any time soon seeing how it is currently sold out.
I still think it might be possible to recreate it, but maybe I don't yet understand the uniqueness of it. The talon SRX user guide makes the comment that the board is useful in the aspect that is uses "a resistor divider and voltage buffer" to make the 5V to 3.3V transition. What are these, and where are they located on the board? Is is something to do with the A63A? |
|
#8
|
|||||
|
|||||
|
Re: Talon SRX and Analog Encoders
Quote:
pretty simple, but would highly recommend the breakouts with the designed cable |
|
#9
|
|||
|
|||
|
Re: Talon SRX and Analog Encoders
What is the "Q1" in the diagram?
Did it still work with the breadboard design? I mean, was there a major flaw in it, or did the breakout board just work better? Yes the breakout board would be preferable, but if there is no way to get it at this moment, we would like to try alternate methods. |
|
#10
|
|||||
|
|||||
|
Re: Talon SRX and Analog Encoders
Quote:
breakout also allows you to use multiple sensors easily on a single SRX. this diagram is an easier circuit you could use. The other was working both ways http://www.savagecircuits.com/attach...6&d=1430452949 |
|
#11
|
|||
|
|||
|
Re: Talon SRX and Analog Encoders
looks good
Thank you for the help! |
|
#12
|
|||
|
|||
|
Re: Talon SRX and Analog Encoders
Ether, what did you mean when you said this?
Do you mean the difference in the current position of the encoder and the set point? |
|
#13
|
|||||
|
|||||
|
Re: Talon SRX and Analog Encoders
Quote:
![]() |
|
#14
|
||||
|
||||
|
Re: Talon SRX and Analog Encoders
Quote:
|
|
#15
|
|||
|
|||
|
Re: Talon SRX and Analog Encoders
Ah I see, you just mean the constants associated with PID.
I understand now.How frequent is the tele-op code executed on the roboRIO? I need to know so I can choose the sensitivity of the joystick. Ill then use the values of the joystick in the math for the set point. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|