Crates.io | sensor_lib_as5600 |
lib.rs | sensor_lib_as5600 |
version | 0.1.1 |
source | src |
created_at | 2024-10-11 03:39:55.643225 |
updated_at | 2024-10-11 03:39:55.643225 |
description | A driver for the AS5600 sensor module. |
homepage | |
repository | https://github.com/jake-g00dwin/sensor_lib_as5600 |
max_upload_size | |
id | 1404877 |
size | 26,058 |
A Rust sensor library for the AS5600 magnetic rotary encoder module.
The library is currently functional and has been tested thorugh unit testing and on actual hardware(ch32v203 micro-controller).
Below is a basic overview of the sensor packges pinout, but make sure to checkout the data sheet for more detail.
VDD5V:: 5v supply pin.
VDD3V3:: 3.3v supply pin.
OUT:: PWM output
GND:: Ground pin.
PGO:: Digital Input for Programming Option
SDA:: I2C Data.
SCL:: I2C Clock.
DIR:: Digital Input for Direction(GND = ClockWise/VDD = CounterClockWise)
There are two ways to add the crate/repo to your project. You can use the github URL or you can add it via the normal crates name(TBD).
Cargo.toml
sensor_lib_as5600 = {git = 'https://github.com/jake-g00dwin/sensor_lib_as5600'}
To run the tests for the project after downloading or cloning the repo
cargo test
Define all Bitmasks for registers.
Add non-default i2c addressing.
setup un-initialized and initialized versions of the sensor.
Add example usage.
Create an example repo for drop-in uC examples.
Create Comperhensive Documentation using D.S. images.
Create and link to example usage video.
If you want to contribute to it feel free to open up a pull-request or make a new github issue.