With the growing use of robots in the present day, such as elder caring, shopping helper and automatic production line, the issue of robot moving control is becoming a very important issue. In order to control a robot to move to a certain location, there is an important factor, the orientation of this robot, which has to be determined precisely. Thus the position of the robot can be estimated accurately. In general, the orientation of a robot is usually determined by individual electronic sensor devices, such as accelerometers and gyroscopes. However, this traditional approach leads to the following issues, such as complicated connection between the MCU and sensors, the requirement of the control bus and individual drivers, the need of calibration for each sensor; the lower sensor data fetch rate and difficult programming between the MCU and individual sensor. In order to improver there issues, the control method based the IMU of smart devices is proposed in this study. With the use of smart devices (such as Android and iOS mobile phones) which is already integrated with IMU sensors, such as accelerometers, gyroscopes, gravity and magnetic field sensors, the integration of sensors and the platform could have the significant improvement to the traditional individual approach. This proposed approach not only reduces the platform cost and the complexity of device drivers and connections, but also improves the convenience of robot control programming significantly.