A new electronic device the size of a mobile phone could transform aftercare for stroke patients and help them regain movement and control of their hands.