Pulse Width Modulation (PWM) via Software

in programming •  6 years ago 

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?

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @tacticalcadaver! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You published more than 70 posts. Your next target is to reach 80 posts.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Very cool, thank you for sharing with us!