Using AS5600 as a post-gear position sensor

Hello.
I would like to use AS5600 (i2c) to position the arm approximately 180*(+/-90*) through a 35/1 bevel gear. I use a BLDC motor controlled by hall sensors.

I am thinking of controlling several such controllers using the i2ccommander module. Can this work?

Yes, it can work

They all need different I2C addresses, of course.

When you call the angle or velocity normally, it will be the one from the Hall sensors.

To get the extra AS5600 values you’ll have to add a custom register for it. It’s not hard to do, we can help you with that if you have troubles.

Hey. I’m going to need help. I did it differently, but it’s probably not optimal. It now initializes as5600 with “MagneticSensorI2C sensorArm = MagneticSensorI2C(AS5600_I2C);” which works well, however, I read the positions outside simpleFOC and using a separate pid and send speed to the original pid by “motor.controller = MotionControlType::velocity;”.

Can I use this in a better way by using angle with simpleFOC but with the motor controlled by hall sensors?