I have a sensor with PWM output.
At the moment I am using a ready-made module on an operational amplifier and reading the measured value using ADC.
But are there any modules that would allow reading the pulse width in digital form?
Retrieve the PWN value
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 543
- Joined: 07 Jun 2018, 06:47
- Location: Gdynia/Poland
Re: Retrieve the PWN value
You mean like [Plugin#GPIO#Pinstate#N] (with N being the GPIO nr) but then for the PWM value as a state?
I just looked at the code and it doesn't work like that, but I guess we could add it as a feature.
Not sure whether it should be called "pinstate" or "pwmstate".
I just looked at the code and it doesn't work like that, but I guess we could add it as a feature.
Not sure whether it should be called "pinstate" or "pwmstate".
Re: Retrieve the PWN value
It might work... but processing the function also tries to read the pin state and not sure what this will do to the PWM which is running.
Who is online
Users browsing this forum: No registered users and 7 guests