Published: 17 Oct 2018 › Updated: 17 Oct 2018
Pulse Width Modulation (PWM) via Software
Pulse-width modulation is a technique that allows a microcontroller to control the speed of motors, brightness of LEDs, or average voltage without needing a DAC. If you don't have a microcontroller with on-board PWM hardware, or have run out of PWM channels, how can PWM be simulated using software?
The flow diagram
The C code
Leave Pulse Width Modulation (PWM) via Software to:
Read more #programming posts
Best Posts From Electron Wrangler
We have not curated any of tacticalcadaver's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Electron Wrangler
- Aluminim Electrolysis (Smelting)
- SpaceX & NASA DART Launch
- Burrows-Wheeler Transform
- Physics 000 - Answers to Last Week's Questions
- Genesis: Contrasting Adam & Eve
- Do People No Longer Trust Science?
- Cryptocurrency Transactions with Local Governments
- Physics 000 - Acceleration, Velocity & Displacement in One Dimension
- Back to the Bad Old Days of Programming - Book Project Post I
- Energy Storage Options