Using bit-angle PWM to drive GPIO pins

Although yesterday’s post was a reasonable introduction to bit-angle PWM, showing a pattern of characters on a console screen is hardly the most exciting or useful thing. So today I shall try to use the same code to drive something a bit more fun. I still had the “flowing water light” lying around, which I …

Continue reading ‘Using bit-angle PWM to drive GPIO pins’ »

Efficient software PWM with bit-angle modulation

It is a few months now since I last had a play with pulse-width modulation (PWM). At the time I was concerned by the amount of processing power used by the simplistic approach I had implemented, so I abandoned the exercise. Luckily, there are more efficient ways to do software PWM. One of the most …

Continue reading ‘Efficient software PWM with bit-angle modulation’ »