Raspberry Pi PWM Driver Block SFunction
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.
Citation pour cette source
Joshua Hurst (2024). Raspberry Pi PWM Driver Block SFunction (https://www.mathworks.com/matlabcentral/fileexchange/41529-raspberry-pi-pwm-driver-block-sfunction), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- Simulink > Simulink Supported Hardware >
- Physical Modeling > Simscape > Customization > Creating Custom Components and Libraries > Pulse width modulation (PWM) >
Tags
Remerciements
Inspiré par : Device Drivers
A inspiré : Raspberry Pi Simulink Driver Blocks ADC DAC PWM
Communautés
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.2.0.0 | updated links |
||
1.1.0.0 | updated links |
||
1.0.0.0 |