Goal: postprocess what absolute magnetic angle measurement sensor (woah) AS5048a returns with Matlab in order to see plots and make animations.
First result: what in the name of valhalla is the Matlab serial doing?!
Second result: works.
Github repositories with main files:
https://github.com/adamlukomski/AS5048a_matlab
https://github.com/adamlukomski/AS5048A-Arduino
Arduino code is fork of the great ZoetropeLabs/AS5048A-Arduino, with a couple of additions. The main library files stays the same, but I reorganised it into an Arduino library with examples. The Matlab code is my own, with buffor handling for the serial connection.
That’s awesome, great work dude! Can you tell me which magnet ring do you use? Thanks!!
The one that came with AS5048A (I ordered from mouser), it’s diametrically magnetised – they are quite cheap on ebay, there are version with a hole through the center for usage with slip rings.
I couldn’t find in mouser, I only saw the AS5048A without the magnet ring! Could you sent me the link or the link in ebay? I have seen some diametrically magnetised but they are made of neodymium and it has a very strong magnetic field!
https://www2.mouser.com/ProductDetail/ams/AS5048A-TS_EK_AB?qs=sGAEpiMZZMvc81WFyF5Edo%252bBD6YtzCDccRHLErKci0A=
They come as a single set – AS5048A devel board with one magnet, the Digikey has a better picture:
https://www.digikey.co.il/product-detail/en/ams/AS5048A-TS_EK_AB/AS5048A-AB-1.0-ND/3188612
Thank you very much!!!
Are you using SPI or I2C? Thanks