View Single Post
  #18   Spotlight this post!  
Unread 04-11-2013, 13:45
Domenic Rodriguez's Avatar
Domenic Rodriguez Domenic Rodriguez is offline
Registered User
FRC #0316 (LuNaTeCs)
Team Role: College Student
 
Join Date: Sep 2010
Rookie Year: 2011
Location: Grove City, PA
Posts: 213
Domenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura about
Re: Encoders Programming

I found another thread related to the magnetic encoders. You might want to look through it if you haven't already: http://www.chiefdelphi.com/forums/sh...d.php?t=111202

Also, here's the non FIRST-specific data sheet for the sensor: http://www.ams.com/eng/content/downl...heet_v1-15.pdf

Unfortunately I can't see the wiring very well from the pictures provided, so I won't be of much help there. It seems the sensor has two modes of output: absolute position, and quadrature output. For you usage, you need to make sure you wire it for quadrature output. Here's the wiring:

Quote:
Originally Posted by Screen Steps Live
To wire the sensor to the FRC Control System, the following connections must be made:
  1. The pin labeled 5V on the sensor should be connected to a 5V (labeled "PWR") pin of the Digital Sidecar Digital I/O bank
  2. The 2 pins labeled GND should be connected to a ground pin (labeled "(-)") on the Digital Sidecar.
  3. The pins A and B should be connected to separate signal pins (labeled "SIG") on the Digital Sidecar.
  4. The pin CSn should be connected to a ground pin on the Digital Sidecar (for a description of the purpose of this pin, see "Incremental Power-up Lock Option" on Page 15 of the datasheet
Source. Attached is a sketch of what (I believe) the wiring should look like.
Attached Thumbnails
Click image for larger version

Name:	Wiring.png
Views:	21
Size:	46.0 KB
ID:	15395  
__________________

LuNaTeCs - Learning Under Nurturing Adults Teaching Engineering Concepts and Skills - Small and Mighty!

FRC 316 LuNaTeCs - Student (2011-2014), Lead Programmer (2011-2014), Team Captain (2013-2014), Operator (2013), Drive Coach (2014), Mentor (2015-????)
'11 Philly Regional Finalists, '13 Chestnut Hill Finalists, '13 Lenape Champions, '13 Archimedes Division, '14 Chestnut Hill Champions, '14 Lenape Champions
FTC 7071 EngiNerds - Founding Advisor (2013-2014) | FRC 5420 Velocity - Founding Advisor (2015)
Grove City College Class of '18, Electrical/Computer Engineering (B.S.E.E)

Reply With Quote