|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Magnetic Encoder Wiring and Programming
Hi Everyone, does someone knows how to wire the Magnetic encoder in the Sidecar or in the roboRIO and does someone knows how to program a magnetic encoder in labview?
The Magnetic Encoder number is AS5145B, Eval Kit. Thanks, Go #1382 |
|
#2
|
||||
|
||||
|
Re: Magnetic Encoder Wiring and Programming
Last year, we used this sensor and it worked reliably. To wire it, we used a low pass filter to average the PWM signal. There are instructions to build the filter on page 18 of the datasheet here:
http://ams.com/eng/Products/Position...ensors/AS5145B Do note that when used in this way, the sensor outputs a value proportional to it's absolute position, so it can be used like a potentiometer. For us this was perfect as we were not counting number of rotations, but rather what angle the shaft was within a rotation. The pinouts are on page 4. +5v is pin 16, and Gnd is pin 7. We wired these to the digital sidecar last year, but I think you can wire them right to the DIO on the RoboRio. |
|
#3
|
||||
|
||||
|
Re: Magnetic Encoder Wiring and Programming
Or you can use the FPGA to measure the pulse width? WPILib counter object semi-period mode.
http://www.chiefdelphi.com/forums/sh...32&postcount=5 |
|
#4
|
||||
|
||||
|
Re: Magnetic Encoder Wiring and Programming
You can also use it like a normal ecoder with A and B channels.
This article is very helpful: http://wpilib.screenstepslive.com/s/...control-system |
|
#5
|
||||||
|
||||||
|
Re: Magnetic Encoder Wiring and Programming
Quote:
|
|
#6
|
||||
|
||||
|
Re: Magnetic Encoder Wiring and Programming
Quote:
The same holds true for the US Digital MA3: Quote:
Quote:
Last edited by Ether : 24-01-2015 at 09:32. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|