Library for AS5048A encoder
- Using this library you can check direction of rotation , speed and position .
- Tested on arduino uno and STM32 blue pill.
- encoder should be connected like this:
-
stm32 (Blue Pill) wiring : CS to PA4 , CLK to PA5 , MOSI to 3.3V , MISO to PA6
-
UNO wiring :CS to PIN 10 , CLK to PIN 13 , MOSI to 5v , MISO to PIN 12
- you can find example code in AS5048_example
STL folder contains files for encoder testing jig. Design is compatible only with these test boards There are 2 versions (both use same wheel stl file):
- encoder_housing , uses no ball bearing
- encoder_housing_no_bearing , uses 15x28x7 ball bearing
both models also need 2 M2 5mm screws