You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This is a simple example for motor speed control using the soft PWM function in the WiringPi library.
The range is set to 255 to emulate Arduino like implementation.
Other device driver block, and the hardware it was run on is available at our website:
http://minseg.webs.com/downloads
A complete Arduino library and curriculum is available here:
http://minseg.com/pages/downloads
coming soon:
- Quadrature Encoder
- MPU6050
and others!
This work is part of the Mechatronics curriculum at Rensselaer Polytechnic Institute.
Cite As
Joshua Hurst (2026). Raspberry Pi PWM Driver Block SFunction (https://se.mathworks.com/matlabcentral/fileexchange/41529-raspberry-pi-pwm-driver-block-sfunction), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Device Drivers
General Information
- Version 1.2.0.0 (17.9 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
