I would like to set speed, direction and number of revolutions of the motor shaft based on the PID algoritm. I can read actual number of revolutions and direction of rotation based on hardware encoder readings. After achieving desired value (number of rotations, angle of shaft) serwo will stop the rotation of the shaft. Or, if value is behind or above desired, shaft will rotate in specified direction.
Does anybody have an idea how to implement PID algoritm based on vvvv?