Controlling a motor with iphone