AS5600 Angle magnetic sensor analog out problem

#1

Hello
I’m trying to use this sensor as angular feedback for my robot aram instead of resistive potentiometer.
I expected that the analog output be activated as default, but when I attached th magnet and turned it, the out put was always 5V.
I tried program it using out pin and POG pin, but the analoug output is still 5v.
when I connect to it using Arduino via I2c i can see that the angles are limited between 0-180 as I programmed it using out pin, but it doesn’t change the output at all. I also tried to write value 0x08 in register MANG_H but no success.
Any one has experience using this sensor and analog output ?
you can see the registers reading from AS5600 in 0-180 degree

Angle =180 :

ZMCO = 1
ZPOS_H = 1
ZPOS_L = 41
MPOS_H = 9
MPOS_L = 28
MANG_H = 0
MANG_L = 0
CONF_H = 0
CONF_L = 0
RAW_H = 9
RAW_L = 34
ANGLE = 179
STATUS = 103
AGC = 68
MAGNITUDE_H = 8
MAGNITUDE_L = 81

Angle =0 :
ZMCO = 1
ZPOS_H = 1
ZPOS_L = 41
MPOS_H = 9
MPOS_L = 28
MANG_H = 0
MANG_L = 0
CONF_H = 0
CONF_L = 0
RAW_H = 1
RAW_L = 62
ANGLE = 1
STATUS = 103
AGC = 70
MAGNITUDE_H = 8
MAGNITUDE_L = 39

#2

Per page 21 of the datasheet, the MANG register can only be written if ZPOS & MPOS haven’t been written, e.g. ZMCO=0. That’s not the case in the above, which would explain the MANG_H write failure.

It appears that you’re able to interface via I2C without problem, and that the device is registering the magnet presence and rotation correctly, based on the data above. The status registers appears to be indicating that things are working properly, and the configuration register looks like it’s set to analog output mode, so by all accounts it seems like you should be getting an analog output, as you’re expecting.

I would expect that device damage sufficient to disable the output stage would also produce noticeable effects beyond it, which doesn’t seem to be the case. My suggestion then would be to take a very close look at the system and the measurement apparatus, to ensure that you’re actually seeing what you think you’re seeing, and that the system on the test bench is the same as the one on the schematic, and the concept of it in your mind. I’ve lost track of the number of times a problem like this turned out to have a very simple solution, such as connecting the power supply, probing the correct node, plugging the other end of the test lead into the meter, removing a rogue solder blob, etc…

1 Like
#3

I was using AS5600-SO_EK_AB adaptor kit for my test. I removed the AS5600 chip from the board and soldered the new chip, now I have analog output by default correspond to 0-360 degree. I guess something was wrong with the chip because I didn’t have any changes in analog output from first day.
it’s working now and I’m not going to re range it since I afraid it stops working, I can use 0-360 instead of 0-180.
Thank you anyway.