Skip to content
This repository was archived by the owner on Sep 23, 2021. It is now read-only.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store

# Object files
*.o
*.ko
Expand All @@ -9,6 +11,7 @@
*.pch

# Libraries
lib/
*.lib
*.a
*.la
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
AS5048A-Arduino
===============

A simple SPI library to interface with Austria Microsystem's AS5048A angle sensor with an Arduino.
A simple SPI library to interface with Austria Microsystem's AS5048A angle sensor with Arduino C Framework and Libraries included in Arduino IDE.
It is tested in Arduino microcontrollers and ESP32.

The sensor should be connected to the hardware SPI pins (MISO, MOSI, SCK). The CS pin can be connected to any GPIO pin but should be passed to the constructor.
The second (optional) argument in the constructor is the time the library should wait for the sensor to have the data available in order to read it. It is not usually a problem
using ATmega microcontrollers in Arduino UNO but it can be a problem using fast microcontrollers such as the ESP32. For these cases, a value of around 50 would do, but should be fine tuned.

The angle sensor is described in more detail [here](zoetrope.io/AS5048)


Installation
================
The simplest way to install the library into Arduino IDE is by creating a soft link:
```
ln -s $REPOSITORY_DIR/lib/AS5048A/ $ARDUINO_DIR/libraries/AS5048A
```
Loading