The paper took the wireless sensor networks as background and studied navigation and location of mobile robot. The heading angle determination and course control theory for the mobile robot were studied and course control system composed of HMC1022 chip was designed too. It can achieve the heading angle determination and course control. No matter which direction the robot moves, it can change the direction to run with the course control system. Moreover, the current heading angle can be shown on the computer. The control angle also can be given from the computer.