40-pin IO Development
Experiment 04 - PWM Output
- Hardware Connection
Connect a servo/motor/oscilloscope to IO33 (the S100 board supports two PWM outputs on IO32 and IO33).
- Software Execution
Enter the user home directory and run:
- cd user
- sudo python3 ./PWM_out.py
Terminal output:
You can observe: starting at 25% duty cycle, the duty cycle increases by 5% every 0.25 seconds. After reaching 100%, it decreases by 5% every 0.25 seconds.
