Wrist-Rehabilitation-device Firmware for the wrist joint rehabilitation Using arduino pro micro Encoder 400 pulse per revolution Spring displacement measured from a potentiometer