As5048 spi esp32_s3

Can anyone please point me to a simple working introduction to using AS5048 with SPI, preferably with some debugging help guide in case things do not perform as expected? Together with an instruction on usage, and what is meant to happen?

Over the past week or two I have tried numerous examples from this website.

I’ve checked: Look in “Sketch->Include Library->Manage Libraries” and pick “Updatable” in the type dropdown. Then click Update on each one. Always install “all dependencies” when asked.

Then in “Tools->Board->Boards Manager”. Do the same, setting type to updatable and updating all in the list.

nothing to update.

There are plenty of old guides to using SPI with AS5048 sensor. However, none that I can believe in….

However at least three of the code samples I’ve used from this website simply will not build.

and the main example: full_control_serial is probably rather complex to start with, and does not describe how to tell what is meant to happen…

I’m about to make an ESP32S3 board with AS5048A.

Have you tried to get the sensor working on its own as per Magnetic sensor SPI | Arduino-FOC

?

Many thanks for the prompt response!

I have not tested, as yet, but did manage to build ‘example code’ at base of page linked.

That is after commenting out one of the MagneticSensorSPI definitions, swapping the order within brackets. Changing sensor.update to as5048.update, whilst having changed all other mentions of as5047u to as5048.

This type of typo seems somewhat prevalent in this domain, bearing in mind, I am more or less new to Arduino, mostly RPi & FPGA so little if any ‘c’.’c++’ python etc.

So many of the failures to build, I cannot resolve.

Naturally, I greatly appreciate the support, which is sociable and generally excellent.