Chris Field
Chris Field

Reputation: 11

Measure PWM Duty Cycle on RP2040 using micropython

I'm trying to use a Raspberry Pi Pico to measure an incoming PWM signal duty cycle and use the value to drive an I2C digital potentiometer. I'd like to use micropython as I know some of this already. The I2C output I have working with no problems. However I can't find where to start with the PWM measurement.

Perhaps I am just missing some documentation - any pointers much appreciated.

Chris

EDIT: I have found a useful module which covers a large part of this query: https://github.com/phoreglad/pico-MP-modules/tree/main/PWMCounter

Upvotes: 1

Views: 2627

Answers (0)

Related Questions