AS5048A SPI encoder on a B_G431B_ESC1

Hi everyone,

I have two B_G431B_ESC1 drivers which are meant to control 2 brushless motors equipped with AS5048A encoders which I want to read via SPI. On the board I also need CAN gpios to allow for external communication. I have seen this post which seems very promising. Before going for the hw modifications is there anyone that can comment about possible drawbacks (that impact the control / encoder signal / etc.) or tests that have been performed? I have seen other posts where the encoder is used with its PWM output but I would like to stick to the SPI communication. Thanks a lot for the help and if you need further details about my setup I am more than happy to share :slight_smile:

Hi @modo , welcome to SimpleFOC!

The main disadvantage I see is that you have to solder on this tiny board - but if you have good soldering skills and a keen eye or microscope then I think it’s quite possible to hack the board in this way.

The post you link describes the hardware and software modifications so if you follow it then it should work for you.

Using SPI is much better than PWM, you’ll get better accuracy and much better performance.