hello,
I have an DC motor which is provided with an encoder, this encoder should give a number of pulses per rotation, the encoder provides four pulses per rotation. The maximum motor speed is 1500rpm so this is 25 Hz. The encoder gives 100 pulses a second on this speed.
My question is, does anyone have a simple program to read these pulses on the arduino uno? Do I need to read those pulses with a interrupt? How do I do it? I don't have to know the position and the direction of the axis, I only need te speed of it.
When I have the speed of the axis in pulses/second I use the speed for a PID regulator on the arduino controller.
thx