The invention relates to a device (10) for pivoting an arm (2) relative a joint (1). The device comprises at least one artificial tendon (20, 21) attached to a distal end (3) of the arm and a driving mechanism (30), the driving mechanism being connected to and adapted to pull the tendon and the distal end of the arm, and a method of operating the device.