At present, in the navigation, military project and underwater detection field for the electronic compass as a navigation device has more and more application. With the rapid development of science and technology, application fields are constantly expanding, even in industrial production and daily life plays a more and more important role. Foreign countries have developed a variety of functional electronic compass, but due to various reasons, the present study in our country in the electronic compass started relatively late. In view of this situation, the electronic compass based on the research of a kind of low power consumption, high stability, and can be suitable for various application environments to meet the current demand as the research object.First, the design principle of the electronic compass, respectively on the electronic compass processor and embedded operating system selection. Determine the hardware module and software module need through the analysis of the function of electronic compass.In the understanding of the geomagnetic field background knowledge, a clear direction angle is how the magnetic intensity in the X, Y, calculates the vector Z axis. We made sure to use the magnetoresistive sensor,by comparing and analyzing the way of the measurement of magnetic field sensor.Second, this paper is developed by ProklTechnology circuit design software Protel99SE based on Windows environment for each hardware module circuit design. Each module circuit to simplify the whole electronic compass by selecting the high integrated chip.Third, the use of the design of the embedded technology based on ARM9and Linux operating system. According to each chip data manual, respectively, the driver package and to drive the form is loaded into the kernel, according to electronic compass task, process creation to call the driver to perform specific tasks in the system top.Fourth, according to the mathematical model of electronic compass error the error ellipsoid and ellipse fitting method based on compensation is proposed. By using MATLAB simulation study of the two methods, the mathematical model of error compensation. Proved by practice, the model is feasible.The test results show that the design scheme of the electronic compass is feasible,and can be used on many occasions,to meet the current market demand,has a certain application value.At the same time it also promotes the research of electronic compass in China. |