Raspberry Pi Quadrature Encoder SFunction

Quadrature encoder route implemented with interrupts with WiringPi

You are now following this Submission

This code is port of Giampy's encoder SFunction from Arduino using the WiringPi library.
It has support for multiple encoders.

Other device driver block, and the hardware it was run on is available at our website:

http://minseg.webs.com/downloads

A complete library for Arduino and curriculum is available here:
http://minseg.com/pages/downloads

coming soon:
- MPU6050 gyro accelerometer
- HMC5883L magnetometer
- FreeIMU driver

and others!

This work is part of the Mechatronics curriculum at Rensselaer Polytechnic Institute.

Cite As

Joshua Hurst (2026). Raspberry Pi Quadrature Encoder SFunction (https://ch.mathworks.com/matlabcentral/fileexchange/41645-raspberry-pi-quadrature-encoder-sfunction), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Device Drivers

Categories

Find more on Simulink Supported Hardware in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

updated changed links

1.0.0.0