Dear All,
My project involves controlling a stepper motor, therefore I need a RPM measurement. Available is an Arduino an IR sensor (no counter!). The IR sensor generates a pulse signal and if I know the frequency of the pulse signal I can convert this one into an RPM measurement. However untill now, I am not able to get the frequency of my pulse signal.
Currently I am struggling to convert my IR sensor measurement from Arduino (tried Analog and Digital, in volts and 0-1 values). I used the pulse measurement.vi and the timing and transitions block, however both keep resulting in errors.
The VI i attached tries to use an analog read, which results in a pulse voltage graph from 0 to 5 volts, and the pulse measurement.vi. Probably, I don't see some obvious mistake.
Errors that keeps popping up is "The amplitude of the wavevorm is zero". Also adding an offset here does not help. The next thing, for which are some workaround, but I question the validity is the use of different data types. In the attached VI is converted the analog signal to an array, but I did not help.
Did somebody else also struggle to get frequency measurments from his Arduino and IR sensor, help is much appreciated!
Or could somebody please watch at my VI and try to see the mistake.