#encoder #quadrature #control

no-std qei

A wrapper that allows to extend quadratic encoder interface (QEI)

3 stable releases

Uses old Rust 2015

1.0.2 Oct 25, 2018
1.0.1 Oct 16, 2018

#1026 in Embedded development

36 downloads per month

MIT/Apache

9KB
162 lines

Latest version Documentation

Documentation

Example

An example is provided for the stm32f103 µcontroller, see the ./examples folder.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

This crate allows you to wrap a Qei counter in a larger type. This is usefull when your Timer counter is on 16 bit and spend a lot of time overflowing/underflowing. To use this wrapper you have to take samples regularly, but be carefull because the counter should not change for more than (2^16 - 1)/2 between two samples otherwise we can not detect overflows/underflows.

The internal counter is an i64 which should be enough for most use cases.

An example is provided for the stm32f103 µcontroller in this repository.

Dependencies

~71KB