Magnet Encoder Vs Incremental Optical Encoder

Hello,

Is there any reason Odrive use incremental optical encoder instead of magnet encoder such as AMS AS5047? Is there any disadvantage of magnet encoder?

Thank you very much

Hao

You may use the incremental interface of the AS5047 if you wish.
Feel free to add the drivers needed to initialise it over SPI.

Is there any disadvantage of magnet encoder?

Generally lower resolution, higher latency (magnetic orientation needs to be processed), and higher power consumption.

Magnetic encoders are a newer solution to the problem of optical encoders being fragile, and prone to issues from heat, humidity, vibrations, and dust in industrial environments. If you don’t anticipate an environment like that, there’s not really a reason to go for a magnetic encoder, as far as I’m aware. Even if you had the resolution you need, and power consumption wasn’t an issue, you’d be introducing position latency, so make sure it’s justifiable.

1 Like

Another difference between optical and magnetic encoder is the accuracy.

It is a very important thing when talking about encoder, but often ignored.

While resolution is the smallest distance or angle the encoder can measure, accuracy is the difference between the true position and the measured position.

So, if our encoder has 720PPR, it means that the smallest angle measurable is 360°/720=0.5°.

In an ideal encoder accuracy error is 0, then if you count for example 90 pulses, measured angle and real angle are the same: 90*0.5°=45.0°.

In real world accuracy error is never 0. You can check the datasheet of the encoder for this value.
It is usually just called accuracy or Integral non linearity (INL) or Total non linearity (TNL) or linearity error.

If accuracy is ±0.3° and we still count 90 pulses, measured angle is 45.0°±0.3° so real angle, instead, can be anything between 44.7° and 45.3°.

Both magnetic and optical encoders have their inaccuracy, which is usually bigger in magnetic encoders than in optical.

A lot of things affect inaccuracy, for example sources of inaccuracy in optical encoders are mechanical misalignments and code disk print precision.

For magnetic encoders, mechanical misalignments is still an error source, as well as temperature drift or ferromagnetic materials near sensor or magnet.

Nowadays, good magnetic encoders can achieve accuracy of ±0.1°/±0.2°, while optical encoders can go down to a few thousandths of degrees

3 Likes