Skip to content
Menu
Barely Walking
  • Home
  • Robotics
  • SD, LLMs
  • One shot projects
  • 3d printers
  • About me
Barely Walking
11/04/201716/04/2022

Working with AS5048a on Arduino with Matlab plots

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.

6 thoughts on “Working with AS5048a on Arduino with Matlab plots”

  1. Débora Almeida says:
    08/10/2018 at 7:30 pm

    That’s awesome, great work dude! Can you tell me which magnet ring do you use? Thanks!!

    1. lukomski says:
      09/10/2018 at 12:04 am

      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.

  2. Débora Almeida says:
    10/10/2018 at 6:54 pm

    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!

    1. lukomski says:
      10/10/2018 at 7:00 pm

      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

  3. Débora Almeida says:
    15/10/2018 at 4:57 pm

    Thank you very much!!!

  4. hshahzad108277 says:
    09/02/2021 at 8:35 pm

    Are you using SPI or I2C? Thanks

Comments are closed.

©2025 Barely Walking | Powered by WordPress and Superb Themes!