View Full Version : KOP Encoders.
TenaciousDrones
11-09-2013, 14:04
I'm curios, am I able to use the 2013 kit of parts encoders with the AndyMark gearboxes? If so, how? Do I just slightly drill in to the back of it?
Nate Laverdure
11-09-2013, 14:18
You're installing a E4P encoder (http://www.andymark.com/product-p/am-0174.htm) onto an AndyMark Toughbox Mini (http://www.andymark.com/product-p/am-0654.htm)? Well then, you'll need to make or buy an Encoder Mount Pad (http://www.andymark.com/product-p/am-0208.htm) and then follow the installation instructions (http://www.andymark.com/product-p/am-0180.htm) (on the "How To/Pictures" tab).
TenaciousDrones
11-09-2013, 14:52
That isn't what we got with our KOP. We got 2 of the AS5145B Magnetic Encoders. There is a 1.5 mm hole in it right now and it has a set pin on the side. I think I would just have to drill a new hole to insert the shaft into. But yes, it's the AndyMark Toughbox Mini.
Nate Laverdure
11-09-2013, 15:22
That isn't what we got with our KOP. We got 2 of the AS5145B Magnetic Encoders. There is a 1.5 mm hole in it right now and it has a set pin on the side. I think I would just have to drill a new hole to insert the shaft into. But yes, it's the AndyMark Toughbox Mini.
Aha. Here's what you need (http://files.andymark.com/AS5145B_EK_FIRST-1.1_UserManual.pdf).
TenaciousDrones
12-09-2013, 13:27
Thanks this looks like what I need. I don't know how I wasn't able to find this.
TenaciousDrones
13-09-2013, 11:07
Do any of you guys know where I can get some 1 wire connection extenders.
otherguy
13-09-2013, 12:11
Something like this (http://www.adafruit.com/products/824)?
There are other lengths available. The ones linked are Male/Female (extensions), if you need Male/male or femal/femal ends, just browse through this section (http://www.adafruit.com/category/82_125).
THey're all connected, just pull the # of conductors apart that you need.
TenaciousDrones
16-09-2013, 08:54
That's exactly what I'm looking for, thanks.
TenaciousDrones
19-09-2013, 11:27
Another question, how do I wire the encoder? Like I can't find the index port on the digital sidecar.
otherguy
19-09-2013, 17:11
Another question, how do I wire the encoder? Like I can't find the index port on the digital sidecar.
I'm not familiar with the AS5145 in particular, but wiring should be like any other rotary encoder.
There is a simplified wiring diagram on page 8 of the PDF linked a few posts back.
You need to hook the 5v, gnd, A, and B conductors up to the digital side car (DSC). You shouldn't need the index channel. My guess is that the index channel will give you a single pulse per revolution.
Channels A and B should be connected to the DSC Digital I/O ports. They need to go to separate channels, they connect t othe pins labeled "sig" if I remember correctly. Choose two that are available. Note the numbers of the channels, and set your code up to use these two channels to configure the encoder object/VI.
TenaciousDrones
23-09-2013, 07:25
So would I use the other encoder type that isn't index encoder in robot builder?
otherguy
23-09-2013, 09:15
I'm not familiar with the particular options in robot builder. But if you are wiring up channels A and B to the digital side car, then you're using the encoder as a quadrature encoder. IF there's an option that says quadrature, pick that one.
For info on what quadrature is, check out these links:
http://www.dynapar.com/Technology/Encoder_Basics/Quadrature_Encoders/
http://www.eehomepage.com/report.php?report=20080225
Otherwise if you could provide a list of named options, or a screenshot, I could help direct you better.
TenaciousDrones
23-09-2013, 13:51
Here are the two encoder types.
Joe Ross
23-09-2013, 14:05
Another question, how do I wire the encoder? Like I can't find the index port on the digital sidecar.
http://wpilib.screenstepslive.com/s/3120/m/8559/l/91404-using-the-as5145b-magnetic-encoder-with-the-frc-control-system
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.