Go to Post Moat confirmed, he was only mostly wrong - swnylm [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-09-2016, 15:46
rsync rsync is offline
Registered User
FRC #4913
 
Join Date: Sep 2016
Location: Anaheim, CA
Posts: 5
rsync is an unknown quantity at this point
Talon SRX Breakout Board with Hall Effect Encoders

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-..._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/blo...robot/Arm.java

(x-posted to programming)
Reply With Quote
  #2   Spotlight this post!  
Unread 22-09-2016, 15:58
JR0405's Avatar
JR0405 JR0405 is online now
#StaySavage
AKA: Jack Ross
FRC #5822 (Wolfbyte)
Team Role: Driver
 
Join Date: Jan 2016
Rookie Year: 2011
Location: Chicago, IL
Posts: 89
JR0405 has a spectacular aura aboutJR0405 has a spectacular aura aboutJR0405 has a spectacular aura about
Re: Talon SRX Breakout Board with Hall Effect Encoders

I believe your wiring is wrong, you have V+ going to pin one, V- to two, A to three, and B to four when it should be B to one, V+ to pin two, A to three, skip pin 4, and V- to pin 5.
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 22-09-2016, 17:15
rsync rsync is offline
Registered User
FRC #4913
 
Join Date: Sep 2016
Location: Anaheim, CA
Posts: 5
rsync is an unknown quantity at this point
Re: Talon SRX Breakout Board with Hall Effect Encoders

This is how connected them:

Breakout Board ------- Encoder (pins from right)
Pin 1 (CH B) ------- Pin 4 (CH B)
Pin 2 (V+) ------- Pin 1 (VCC)
Pin 3 (CH A) ------- Pin 3 (CH A)
Pin 4 (Index) ------- Pin 2 (GND)
Pin 5 (V-) ------- Not connected

The pin labels on the encoder are not easy to see but here's the andymark page (http://www.andymark.com/product-p/am-2816a.htm).

We also tried leaving the Pin 2 (GND) of encoder out, but that didn't change anything.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-09-2016, 20:32
JR0405's Avatar
JR0405 JR0405 is online now
#StaySavage
AKA: Jack Ross
FRC #5822 (Wolfbyte)
Team Role: Driver
 
Join Date: Jan 2016
Rookie Year: 2011
Location: Chicago, IL
Posts: 89
JR0405 has a spectacular aura aboutJR0405 has a spectacular aura aboutJR0405 has a spectacular aura about
Re: Talon SRX Breakout Board with Hall Effect Encoders

Have you tried connecting GND to V-?
__________________

Last edited by JR0405 : 22-09-2016 at 20:36.
Reply With Quote
  #5   Spotlight this post!  
Unread 22-09-2016, 21:22
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,259
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Talon SRX Breakout Board with Hall Effect Encoders

Quote:
Originally Posted by rsync View Post
This is how connected them:

Breakout Board ------- Encoder (pins from right)
Pin 1 (CH B) ------- Pin 4 (CH B)
Pin 2 (V+) ------- Pin 1 (VCC)
Pin 3 (CH A) ------- Pin 3 (CH A)
Pin 4 (Index) ------- Pin 2 (GND)
Pin 5 (V-) ------- Not connected

The pin labels on the encoder are not easy to see but here's the andymark page (http://www.andymark.com/product-p/am-2816a.htm).

We also tried leaving the Pin 2 (GND) of encoder out, but that didn't change anything.
This is not going to work. Leave the Index floating and connect GND to V-.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Reply With Quote
  #6   Spotlight this post!  
Unread 22-09-2016, 23:34
rsync rsync is offline
Registered User
FRC #4913
 
Join Date: Sep 2016
Location: Anaheim, CA
Posts: 5
rsync is an unknown quantity at this point
Re: Talon SRX Breakout Board with Hall Effect Encoders

Thank you, that worked.
Reply With Quote
  #7   Spotlight this post!  
Unread 23-09-2016, 08:10
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,259
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Talon SRX Breakout Board with Hall Effect Encoders

Quote:
Originally Posted by rsync View Post
Thank you, that worked.
You're welcome! Happy to help!
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 17:10.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi