Exploring the role of a smartphone as a motion sensing and control device in the wireless networked control of a Motor testbed