Mechatronic Zen Garden  0.1
This webpage contains documentation for the ME 507 term project: Mechatronic Zen Garden.
EncoderDriver.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

This file has been modified from code by JR Ridgeley for our purposes. Original code is at https://github.com/spluttflob/ME507-Support/blob/master/examples/encoder_counter.cpp

Source code available here: https://github.com/chstanto/Zen_Garden/blob/main/src/EncoderDriver.cpp

Author
JR Ridgely
Aaron Tran
Cole Stanton
Date
2020-Nov-15 Original file
2021-Dec-6 modified to work with specific encoders

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

This file has been modified from code by JR Ridgeley for our purposes. Original code is at https://github.com/spluttflob/ME507-Support/blob/master/examples/encoder_counter.h

Source code available here: https://github.com/chstanto/Zen_Garden/blob/main/src/EncoderDriver.h

Author
JR Ridgely
Aaron Tran
Cole Stanton
Date
2020-Nov-15 Original file
2021-Dec-6 modified to work with specific encoders