Log in

View Full Version : Using the Magnetic Encoder


EyalD
19-01-2013, 14:06
Hello!
This year we decided to try out the magnetic encoder (model AS5145B)
so before we try it we need to find out exactly how to wire it so we won't do something wrong and destroy it.

In addition, we'll really appreciate an instruction on how to set it up and use it with a motor (Cim for example).

Thank you very much!

Ether
19-01-2013, 14:08
Hello!
This year we decided to try out the magnetic encoder (model AS5145B)
so before we try it we need to find out exactly how to wire it so we won't do something wrong and destroy it.

https://wpilib.screenstepslive.com/s/3120/m/8559/l/91404-using-the-as5145b-magnetic-encoder-with-the-frc-control-system

Ether
19-01-2013, 14:10
In addition, we'll really appreciate an instruction on how to set it up and use it with a motor (Cim for example).

PID tutorials
https://decibel.ni.com/content/docs/DOC-14709
http://www.controlguru.com/pages/table.html
http://www.inpharmix.com/jps/PID_Controller_For_Lego_Mindstorms_Robots.html
http://www.chiefdelphi.com/forums/showpost.php?p=1205722&postcount=12
http://brettbeauregard.com/blog/2011/04/improving-the-beginners-pid-introduction/
http://www.education.rec.ri.cmu.edu/previews/robot_c_products/teaching_rc_tetrix_preview/movement/improved_movement/documents/Movement_Improvedmovement.pdf

EyalD
19-01-2013, 14:47
PID tutorials
https://decibel.ni.com/content/docs/DOC-14709
http://www.controlguru.com/pages/table.html
http://www.inpharmix.com/jps/PID_Controller_For_Lego_Mindstorms_Robots.html
http://www.chiefdelphi.com/forums/showpost.php?p=1205722&postcount=12
http://brettbeauregard.com/blog/2011/04/improving-the-beginners-pid-introduction/
http://www.education.rec.ri.cmu.edu/previews/robot_c_products/teaching_rc_tetrix_preview/movement/improved_movement/documents/Movement_Improvedmovement.pdf




Thank you! But I actually meant to ask: how do I physically attach the magnet to the CIM motor?

Ether
20-01-2013, 20:38
I actually meant to ask: how do I physically attach the magnet to the CIM motor?

What is the CIM motor attached to ?

sg999
20-01-2013, 23:55
I'm not sure what other teams are doing (or even how we're supposed to be mounting the encoders), but we're using one motor per gearbox, so someone on our team is machining a mount for us to attach the encoder to where the other motor is supposed to go. We're also enlargening the hole in the magnet, so we can just stick the magnet right onto the shaft.

ksafin
21-01-2013, 00:01
So, to my understanding, the magnet is supposed to be mounted on a shaft (CIM motor shaft/output shaft/etc) and then the chip is supposed to be placed just a millimeter in front of the motor?

Ether
21-01-2013, 00:06
So, to my understanding, the magnet is supposed to be mounted on a shaft (CIM motor shaft/output shaft/etc) and then the chip is supposed to be placed just a millimeter in front of the motor?

Draw a sketch to illustrate what you think your words are saying.

This will avoid much misunderstanding.

ksafin
21-01-2013, 00:14
http://i50.tinypic.com/2rwnc5g.png

sg999
21-01-2013, 00:22
Correct, except you are allowed to be in a range of .5mm to 1.5mm, according to the sheet that came with the encoder.

ksafin
21-01-2013, 00:30
Seems much more difficult to put on than the USDigital Encoders..

Ether
21-01-2013, 00:41
..

Alan Anderson
21-01-2013, 09:31
I'm not sure what other teams are doing (or even how we're supposed to be mounting the encoders), but we're using one motor per gearbox, so someone on our team is machining a mount for us to attach the encoder to where the other motor is supposed to go. We're also enlargening the hole in the magnet, so we can just stick the magnet right onto the shaft.

What gearbox are you using? Ones from AndyMark have an extension to the output shaft that's designed for mounting the E4P quadrature encoders. You could put your magnetic sensor there.

akoscielski3
21-01-2013, 10:19
We're using these encoders also. I almost Guarantee you you're suppose to mount them to the gear box. not the motor shaft.

I am trying to mount this encoder to a Ball shifter right now, hope it works out.

Nikhil Bajaj
21-01-2013, 15:53
For what it is worth, if you look at the AS5145B data sheet, in Table 4 (Magnetic Input Specifications) it gives a maximum frequency of rotation of 153 rpm. I would be wary of putting that on the output of a CIM, but I could be interpreting the data sheet incorrectly.

sg999
21-01-2013, 19:23
We're using the mini tough boxes. The issue we're having is that the encoders are too big to fit on the shaft where the E4P quadrature encoders are supposed to be mounted. There's not enough space between that shaft and the motor, or we're trying to put them in the wrong place.