Log in

View Full Version : Talon SRX Breakout Board with Hall Effect Encoders


rsync
22-09-2016, 15:48
We're trying to use the Talon SRX breakout board (http://www.andymark.com/product-p/am-3281.htm) with the Talon SRX controllers and the PG71 motor. The motor comes with hall effect encoder (am-2816a) attached to the back. We connected encoder pins on the breakout board to the encoder, but are unable to read any encoder values. When printing the values in SmartDashboard, they always stay 0. We're not sure if it's a wiring issue or programming issue.

Here's some pictures for how we're connecting:
https://goo.gl/photos/6gmekW3FFhZBhXi56 (pins on breakout board)
https://goo.gl/photos/XQJWmhJqSngsGHaw5 (encoder)

Wiring question:
The breakout board has 5 pins for encoder (Ch B, V+, Ch A, IDX, V-), whereas the encoder has 4 pins (Ch B, Ch A, VCC, GND). How should those be connected?
http://files.andymark.com/Images/am-3281_SRX_InfoSheet.jpg

Programming question:
We wrote a simple program with 2 CANTalon objects, and one motor following the other. We didn't yet set the PID values, hoping to just test with the encoder values. But we were not getting any values from the encoder. The code is here: https://github.com/FRC4913/Chell/blob/new-arm/src/org/usfirst/frc/team4913/robot/Arm.java

(x-posted to electrical)

mikets
22-09-2016, 23:10
Wiring question:
The breakout board has 5 pins for encoder (Ch B, V+, Ch A, IDX, V-), whereas the encoder has 4 pins (Ch B, Ch A, VCC, GND). How should those be connected?
http://files.andymark.com/Images/am-3281_SRX_InfoSheet.jpg

ChA -> ChA
ChB -> ChB
V+ -> VCC
V- -> GND
Leave the IDX (index) pin unconnected.
Is the motor the NeveRest motor from Andy Mark? If so, their pin out is:
http://files.andymark.com/LayoutPrints/am-2964a+NeverRest+40+REV1-1.PDF
And the breakout board pin out is:
http://mach-engineering.com/products/TSUB-2/TSUB-2_UserGuide_R1512.pdf

rsync
22-09-2016, 23:33
Thank you, that worked.