I'd like to measure the frequency of an RPM sensor connected to DigitalInput_1 of a MIO module. Software is Node-Red.
The sensors output is OC, the pullup-resistor of the MIO is active.
When I config DigitalInput_1 as digital input (digitalIn) and apply a low frequency, I can see the value changing from 0 to 1 and back according to the input. So the electrical part should be ok.
But is there a way to measure the frequency of the input signal (in Hz or so)?
I followed the example, but can not read anything that correlates with the input frequency.
... headscratchIf necessary, configure the duty cycle at PwmDutycycle_1.
... that shows a fixed value (23975)The frequency and duty cycle are displayed at Fpwm_PulseCount_1 .
Setting IO_Mode_1 to pulseln and reading DutyCycle_PulseLength_1 just delivers 0 or 1 and sometimes (random) different values.
Any hints?
Thanks
Stefan