Designing robots with Hall-effect sensors