Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4861

General • N phase shifted pwm signals

$
0
0
I've googled around but figured I'd ask for a general direction to go for how to do this with the pico. I'd like to generate as least 2, but maybe 3 or 4, pwm signals that have the same frequency but differing duty cycles and a set phase shift between them, and I'd like for the frequency, duty cycles, and phase shifts to be adjustable.

Maybe as a concrete example:

1) Frequency of 50hz (20ms period)

2) a pwm signal with a duty cycle of 10% (2ms width)

3) Another pwm signal with duty cycle of 20% (4ms width) but phase offset of 20ms

4) Another pwm signal with a duty cycle of 15% (3ms width) but phase offset of 10ms

Image

Any advice for the general approach to do this would be appreciated.

Statistics: Posted by blaberj — Tue Oct 29, 2024 3:44 pm



Viewing all articles
Browse latest Browse all 4861

Trending Articles