### Author Topic: Magnetic absolute and incremental encoder  (Read 211 times)

0 Members and 1 Guest are viewing this topic.

#### nForce

• Frequent Contributor
• Posts: 328
• Country:
##### Magnetic absolute and incremental encoder
« on: January 19, 2019, 07:11:39 am »
I would like to know how does it work the magnetic absolute encoder and incremental one? Not the optical one.

I have these 2 signals (in attachment) from the incremental magnetic encoder. How would I calculate the speed of the motor?

Thanks.

• Super Contributor
• Posts: 5318
• Country:
##### Re: Magnetic absolute and incremental encoder
« Reply #1 on: January 19, 2019, 08:06:04 am »
This is the same as optical encoders work.

The speed regardless of the direction (assuming that direction is constant) - just use any channel and measure the frequency (number of edge transitions in a unit of time). The RPMs are proportional to that value. Exact coefficient depends on the overall mechanical design of the system.
Alex

The following users thanked this post: nForce

#### nForce

• Frequent Contributor
• Posts: 328
• Country:
##### Re: Magnetic absolute and incremental encoder
« Reply #2 on: January 19, 2019, 08:54:07 am »
Ok, in my case it's:

(12.02 kHz * 60)/1024

From where do we get that 60 and 1024?

• Super Contributor
• Posts: 5318
• Country:
##### Re: Magnetic absolute and incremental encoder
« Reply #3 on: January 19, 2019, 09:01:12 am »
1024 looks like the number of edges per revolution. Assuming you are counting only rising or falling edges, that would make your encoder to be 4096 steps/rev, which is pretty standard.

Where does 60 come from, I have no idea. Do you have any sort of gearing between the motor and the encoder?

In your case, if you count N pulses per minute, then RPM = N / 1024, since 1024 pulses constitute the full rotation.
Alex

The following users thanked this post: nForce

#### rstofer

• Super Contributor
• Posts: 5547
• Country:
##### Re: Magnetic absolute and incremental encoder
« Reply #4 on: January 19, 2019, 03:33:14 pm »
kHz is in seconds, RPM is in minutes, 60 shows up in there somewhere.

The following users thanked this post: nForce

• Super Contributor
• Posts: 5318
• Country:
##### Re: Magnetic absolute and incremental encoder
« Reply #5 on: January 19, 2019, 03:35:18 pm »
Yes, that makes sense
Alex

Smf