Firmware for an ATTiny84 that will read two quadrature encoders of your choice, and report readings (aka counts) over I2C.
This Firmware is used on the SparkFun Auto pHAT for Raspberry Pi.
SparkFun Auto pHAT for Raspberry Pi
Sometimes you just need to read two encoders. Whether it's for a pair of motors on a driving robot, or for multiple user inputs. This firmware, programmed on an ATTiny84, will offload all the work needed to read those encoders.
One rotation in the clockwise direction increases the respective channel count by 96 and -96 in the counter clockwise direction. The number of 'ticks' or steps the encoder has turned on both channels is readable over I2C.
The I2C address of Qwiic Dual Encoder Reader is software configurable which means you can hookup over 100 on a single I2C bus!
New to qwiic? Take a look at the entire SparkFun qwiic ecosystem.
- /Documents - Datasheet for the ATTiny84
- /Firmware/Qwiic_Dual_Encoder_Reader - Firmware for the Qwiic Dual Encoder Reader
- Qwiic Dual Encoder Reader Python Module - Python pip install supported!
- SparkFun qwiic Python Package - Basic information on how to install drivers for the qwiic ecosystem.
This product is open source!
Please review the LICENSE.md file for license information.
If you have any questions or concerns on licensing, please visit the SparkFun Forum and post a topic. For more general questions related to our qwiic system, please visit this section of the forum: SparkFun Forums: QWIIC SYSTEMS
Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release any derivative under the same license.
Distributed as-is; no warranty is given.
- Your friends at SparkFun.