Can Opener - ME 507
encoder_counter.h File Reference
#include <Arduino.h>
#include <HardwareTimer.h>

Go to the source code of this file.

Classes

class  STM32Encoder
 Class which operates an STM32 timer in quadrature encoder mode. More...
 

Detailed Description

This file contains a class which allows timer/counters on an STM32 to be used to read quadrature encoders within the Arduino environment. This code is a bit kludgey, as it was put together quickly in response to a fairly urgent need, but it has been tested and seems to work. It comes with no guarantees; YMMV. Valuable assistance was found at https://www.edwinfairchild.com/2019/04/interface-rotary-encoder-right-way.html

Author
JR Ridgely
Date
2020-Nov-15 Original file