https://github.com/osteele/pwm-explorer
Interactive visualization of Pulse Width Modulation (PWM)
https://github.com/osteele/pwm-explorer
arduino education pwm visualization
Last synced: about 1 month ago
JSON representation
Interactive visualization of Pulse Width Modulation (PWM)
- Host: GitHub
- URL: https://github.com/osteele/pwm-explorer
- Owner: osteele
- Created: 2020-10-15T01:43:08.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-09T04:14:24.000Z (over 5 years ago)
- Last Synced: 2025-07-09T05:03:26.230Z (12 months ago)
- Topics: arduino, education, pwm, visualization
- Language: JavaScript
- Homepage: https://osteele.github.io/pwm-explorer/
- Size: 348 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PWM Explorer
An interactive visualization of Pulse Width Modulation (PWM).

## Instructions
Drag the sliders to set the period, frequency, and duty cycle.
The period of a wave is the inverse of its frequency. Dragging one of these
sliders will move the other slider in the opposite direction.
Click the checkbox to control whether the average voltage is shown. This is the
voltage that a device with high reactance, such as a motor, will see.
The simulated servo at the top of the page moves at a speed that is proportional
to the average voltage.
## Related
[Map explorer](https://osteele.github.io/map-explorer/) visualizes the
Arduino / Processing / p5.js `map()` function.
The [PWM Explorer](https://github.com/osteele/arduino-pwm-explorer) project
controls the LED on an actual Arduino. It uses pots to control the frequency and
duty cycle, and sends this information to a Processing sketch that simulates an
oscilloscope view of the waveform.
## License
MIT