0

I want to read PWM output signal which I got from a sensor. Is there any way to give PWM signals as input to Raspberry pi 4B?

1
  • You need to clarify the characteristics of the PWM you want to read.
    – joan
    Sep 18 at 15:46
0

PWM is a digital signal.

You could (at least in principle) monitor to detect the proportion of time it is HIGH.

If I wanted to do this I would write code to detect rising and falling edges and times.

I am unaware of any existing code although Joan's DHT temperature humidity code would provide an excellent starting point.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.