201037337 '六、發明說明: 【發明所屬之技術領域】 • 本發明涉及一種電子羅盤測試系統及方法。 • 【先前技術】 隨著科學技術之發展,現在許多電子產品都擴充增加 功能,例如現在許多電子產品中加入電子羅盤功能。^子 羅盤一般包括一磁性感測器及一數位訊號處理裝置。所述 0磁性感測器一般使用電子式霍爾效應感測器偵測磁場,然 後輸出磁場之類比訊號,所述數位訊號處理裝置將磁場之 類比訊號轉換為數位訊號,然後將數位訊號經過軟體計算 得到方位度數。電子羅盤在導航,定位,定向等方面有著 廣泛之應用。但是電子羅盤感測到之磁場大小及位置與實 際磁場大小及位置一般存在誤差,為了保證導航定向資訊 之準確及生產出精准度高之合格電子羅盤產品,對電子羅 ❹盤之測試很重要。在實際生產中,現有電子羅盤之檢測一 般是利用固定電磁線圈產生磁性以類比地球南北地磁,從 而對電子羅盤進行檢測。但是這種固定磁極之檢測方法無 法測試電子羅盤在360度方位之精准度。另外,在電子羅 盤之測試過程中極易受到地理位置及當時環境狀況之影 響,從而直接影響測試結果之可信度,影響產品之品質。' 【發明内容】 有鑒於此,有必要提供一種能夠準確檢測電子羅盤精 4 201037337 准度之電子羅盤測試系統及方法。 Ο 種電子羅盤測試系統,其包括—計算模組、驅動模 組、、電磁鐵及磁屏以置。所述計算模組、驅動模組及電 磁U於所述磁屏蔽I置内。所述驅動模組與所述計算 撫、、且及所述電磁鐵電連接,驅動所述電磁鐵繞—待測電子 、.隹盤移動所述4昇模纟1與所述驅動模組及所述待測電子 羅盤電連接’所述計算模組籍由所述驅動模組獲取所述電 磁鐵實際移綠置,並籍由所述㈣電子㈣獲取偵測之 電磁鐵之位置’ 4异電磁鐵實際移動位置與彳貞測位置之間 之位置偏移誤差值’顯示位置偏移誤差值。 、一種電子羅盤測試方法,其包括一磁屏蔽裝置及—電 磁鐵,所述電磁鐵設置於所述磁屏蔽裝置中,所述電子羅 盤測試方法包括以下幾個步驟: 將待測電子羅盤放置於磁屏蔽裝置中; 控制改變電磁鐵位置; ◎ 獲取電磁鐵實際位置及所述待測電子羅盤偵測之電磁 鐵位置; 、计算電磁鐵實際位置與所述待測電子羅盤偵測之電磁 鐵位置之間之位置偏移誤差值;及 顯示電磁鐵位置偏移誤差值。 本發明所提供之電子羅盤測試系統將待測電子羅缝放 置入一磁屏蔽空間内,籍由改變電磁鐵之位置,檢測待測 電子羅盤之精准度,同時相對於現有技術測試結果比較準 確。 5 201037337 【實施方式】 * 下麵將結合附圖對本發明作一具體介紹。 • 請參閱圖1,一種電子羅盤測試系統10,其包括一計 算模組11、驅動模組12、電壓控制模組13、電磁鐵14及 磁屏蔽裝置15。所述計算模組11、驅動模組12、電壓控制 模組13及電磁鐵14設置於所述磁屏蔽裝置15内。所述電 磁鐵14可以繞一待測電子羅盤16移動。在本實施方式中, 〇設置一圓形轨道,將所述待測電子羅盤16放置於所述執道 之中心,將所述電磁鐵14設置於所述執道上,使所述電磁 鐵14沿所述執道移動。在本實施方式中,所述磁屏蔽裝置 15為一磁屏蔽罩,使用鋁制材料外殼,可有效遮罩掉外界 環境磁場對測試之影響。 所述驅動模组12與所述計算模組11及所述電磁鐵14 電連接,所述驅動模組12驅動所述電磁鐵14圍繞所述待 測電子羅盤16移動。在本實施方式中,所述驅動模組12 〇 為步進馬達。 所述電壓控制模組13與所述計算模組11及所述電磁 鐵14電連接,所述電壓控制模組13控制改變所述電磁鐵 14兩端之電壓,從而改變所述電磁鐵14之電流值,所述電 磁鐵14之電流值變化導致所述電磁鐵14之磁通量發生改 變,進而所述電磁鐵14之磁場強度會發生改變,實現電磁 場強度之控制。 所述計算模組11包括獲取單元111、處理單元112及 6 201037337 顯示單元H3。所述獲取單元m與所述驅動模組i2 .通電壓控制模組13以及所述待測電子羅盤i6電連接,由 •所述驅動模組12獲取所料磁鐵u所移動之實際位值, 由所述電壓控制模組13獲取所述電磁鐵14兩端電壓以及 接受所述待測電子羅盤16之輸出訊號,獲取所述待測電子 羅盤16制之電_ 14之純及磁場強度。所述處 兀112言十算所述獲取單力lu獲取之所述電磁鐵14實際位 〇置與债測位置之間之位置偏移誤差值,以及由所述獲取單 疋111獲取之電壓計算所述電磁鐵14之磁場強度,並計笞 所述實際電磁鐵14磁場強度與偵測之電磁鐵14之磁場; 度之間之誤差。其中所述位置偏移誤差以及磁場強度之門 之誤差反映所述待測電子羅盤16《精准度。需要說=之丄 所述精准度根據不同之電子羅盤產品而不同。所述顯示; 元⑴用於顯示位置偏移誤差值及磁場強度之間之誤差值。 在進行測試時,首先將所述待測電子羅盤16放置入所 〇述磁屏蔽裝置15内,並且所述電磁鐵14可圍繞所述待測 電子羅盤16移動。所述電壓控制模組13改變所述電磁鐵 14兩端電壓以改變所述電磁鐵14之磁場強度大小,所述驅 動模組12驅動所述電磁鐵14圍繞所述待測電子羅盤“移 動。所述獲取單元U1獲取所述電磁鐵14所移動之實際位 置’獲取所述電磁鐵14兩端電壓以及獲取所述待測電^羅 盤16所偵測之電磁鐵i4之位置及磁場強度。所述處理單 元112計算所述電磁鐵14實際位置與偵測位置之間之位置 偏移誤差值以及計算所述實際電磁鐵14磁場強度與偵測之 201037337 電磁鐵14之磁場強度之間之誤差,所述顯示單元顯八 位置偏移誤差值及磁場強度之間誤差,從而可判斷所^ 測電子羅盤16之精准度。 請參閱圖2 ’ 一種電子羅盤測試方法流程圖,其包括— 磁屏蔽裝置及一電磁鐵,所述電磁鐵設置於所述磁^蔽裝 置中,所述電子羅盤測試方法包括以下幾個步驟: S101,將待測電子羅盤放置於磁屏蔽裝置中; o S102 ’控制改變電磁鐵位置及磁場強度; S103,獲取電磁鐵實際位置,磁場強度及所述待測電 子羅盤偵測之電磁鐵位置及磁場強度; S104,叶算電磁鐵實際位置與所述待測電子羅盤偵測 t電磁鐵位置之間之位置偏移誤差值及計算電磁鐵實際磁 场強度與所述待測電子羅盤偵測磁場強度之間之誤差;及 ,顯示電磁鐵位置偏移誤差值及磁場強度之間誤 差。 ❹ 在本實施方式中,所述磁屏蔽裝置為一磁屏蔽罩,使 ^制材料外殼’可有效遮罩掉外界環境磁場對測試之影 響。 本發明所提供之電子羅盤測試系統將待測電子羅盤放 置入磁屏蔽空間内,籍由改變電磁鐵之位置,檢測待測 =子羅盤之精准度’同時相對於現有技術測試結果比較準 0 另夕卜 ’本領域技術人員還可在本發明精神内做其他變 J匕,奋妙 田一 ’這些依據本發明精神所做之變化,都應包含在 8 201037337 ‘本發明所要求保護之範圍之内。 * 【圖式簡單說明】 * 圖1係本發明實施方式提供之電子羅盤測試系統功能 模組圖。 圖2係本發明實施方式提供之電子羅盤測試方法流程 圖。 〇 【主要元件符號說明】 電子羅盤測試系統 10 計算模組 11 獲取單元 111 處理單元 112 顯示單元 113 驅動模組 12 電壓控制模組 13 電磁鐵 14 磁屏蔽裝置 15 待測電子羅盤 16 電子羅盤測試方法步驟 S101-S105 〇 9201037337 'VI. Description of the Invention: TECHNICAL FIELD OF THE INVENTION The present invention relates to an electronic compass testing system and method. • [Prior Art] With the development of science and technology, many electronic products are now expanding and adding functions, such as the electronic compass function added to many electronic products. ^Sub Compass generally includes a magnetic sensor and a digital signal processing device. The zero magnetic sensor generally uses an electronic Hall effect sensor to detect a magnetic field, and then outputs a magnetic field analog signal. The digital signal processing device converts a magnetic field analog signal into a digital signal, and then passes the digital signal through the software. Calculate the degree of azimuth. The electronic compass has a wide range of applications in navigation, positioning, and orientation. However, the size and position of the magnetic field sensed by the electronic compass generally have errors in the size and position of the actual magnetic field. In order to ensure the accuracy of the navigation orientation information and to produce a qualified electronic compass product with high precision, it is important to test the electronic compass. In actual production, the detection of the existing electronic compass is generally performed by using a fixed electromagnetic coil to generate magnetism analogous to the Earth's north-south geomagnetism, thereby detecting the electronic compass. However, this method of detecting a fixed magnetic pole cannot test the accuracy of the electronic compass in a 360-degree orientation. In addition, during the testing of the electronic compass, it is highly susceptible to geographical location and environmental conditions at the time, which directly affects the credibility of the test results and affects the quality of the product. [Invention] In view of this, it is necessary to provide an electronic compass test system and method capable of accurately detecting the accuracy of the electronic compass 4 201037337. The electronic compass testing system includes a computing module, a driving module, an electromagnet, and a magnetic screen. The computing module, the driving module and the electromagnetic U are disposed within the magnetic shield I. The driving module is electrically connected to the computing device and the electromagnet, and drives the electromagnet to rotate the electronic device to be tested, the disk to move the 4 liter die 1 and the driving module and The computing module of the electronic compass to be tested is obtained by the driving module, and the electromagnet is actually moved to the green position, and the position of the electromagnet detected by the (4) electron (4) is obtained. The positional offset error value between the actual moving position of the electromagnet and the detected position 'displays the positional offset error value. An electronic compass testing method comprising a magnetic shielding device and an electromagnet, wherein the electromagnet is disposed in the magnetic shielding device, and the electronic compass testing method comprises the following steps: placing the electronic compass to be tested on In the magnetic shielding device; controlling the position of the electromagnet; ◎ obtaining the actual position of the electromagnet and the position of the electromagnet for detecting the electronic compass to be tested; calculating the actual position of the electromagnet and the position of the electromagnet for detecting the electronic compass to be tested The positional offset error value between the two; and the electromagnet position offset error value. The electronic compass test system provided by the invention puts the electronic stitch to be tested into a magnetic shielding space, and detects the accuracy of the electronic compass to be tested by changing the position of the electromagnet, and is relatively accurate compared with the prior art test results. 5 201037337 [Embodiment] The present invention will be specifically described below with reference to the accompanying drawings. • Referring to FIG. 1, an electronic compass testing system 10 includes a computing module 11, a driving module 12, a voltage control module 13, an electromagnet 14, and a magnetic shielding device 15. The computing module 11, the driving module 12, the voltage control module 13, and the electromagnet 14 are disposed in the magnetic shielding device 15. The electromagnet 14 is movable around an electronic compass 16 to be tested. In this embodiment, a circular track is disposed, the electronic compass 16 to be tested is placed at the center of the road, and the electromagnet 14 is disposed on the road, so that the electromagnet 14 is along The obstruction moves. In the present embodiment, the magnetic shielding device 15 is a magnetic shielding cover, which is made of an aluminum material casing, and can effectively shield the influence of the external environmental magnetic field on the test. The driving module 12 is electrically connected to the computing module 11 and the electromagnet 14 , and the driving module 12 drives the electromagnet 14 to move around the electronic compass 16 to be tested. In this embodiment, the drive module 12 〇 is a stepping motor. The voltage control module 13 is electrically connected to the computing module 11 and the electromagnet 14 , and the voltage control module 13 controls to change the voltage across the electromagnet 14 to change the electromagnet 14 The current value, the change in the current value of the electromagnet 14 causes the magnetic flux of the electromagnet 14 to change, and the magnetic field strength of the electromagnet 14 changes to control the electromagnetic field strength. The computing module 11 includes an obtaining unit 111, a processing unit 112, and a 6201037337 display unit H3. The obtaining unit m is electrically connected to the driving module i2, the voltage control module 13 and the electronic compass i6 to be tested, and the driving module 12 obtains the actual bit value of the moving magnet u. The voltage control module 13 obtains the voltage across the electromagnet 14 and receives the output signal of the electronic compass 16 to be tested, and obtains the purity and magnetic field strength of the electric compass 16 to be tested. The positional deviation error value between the actual position of the electromagnet 14 and the debt measurement position obtained by the single force lu is obtained, and the voltage calculated by the acquisition unit 111 is calculated. The magnetic field strength of the electromagnet 14 is calculated by the error between the magnetic field strength of the actual electromagnet 14 and the magnetic field of the electromagnet 14 being detected. The error of the position offset error and the gate of the magnetic field strength reflects the accuracy of the electronic compass 16 to be tested. Need to say = 丄 The accuracy varies according to different electronic compass products. The display; element (1) is used to display an error value between the position offset error value and the magnetic field strength. When the test is performed, the electronic compass 16 to be tested is first placed into the magnetic shielding device 15 and the electromagnet 14 is movable around the electronic compass 16 to be tested. The voltage control module 13 changes the voltage across the electromagnet 14 to change the magnetic field strength of the electromagnet 14. The driving module 12 drives the electromagnet 14 to move around the electronic compass to be tested. The acquiring unit U1 acquires the actual position where the electromagnet 14 moves, 'acquires the voltage across the electromagnet 14 and acquires the position and magnetic field strength of the electromagnet i4 detected by the electric circuit 16 to be tested. The processing unit 112 calculates a position offset error value between the actual position and the detected position of the electromagnet 14 and calculates an error between the actual electromagnet 14 magnetic field strength and the detected magnetic field strength of the 201037337 electromagnet 14 . The display unit displays an error between the eight-position offset error value and the magnetic field strength, so as to determine the accuracy of the measured electronic compass 16. Referring to FIG. 2A flowchart of an electronic compass test method, including: a magnetic shielding device And an electromagnet, the electromagnet is disposed in the magnetic shielding device, and the electronic compass testing method comprises the following steps: S101, placing the electronic compass to be tested on the magnetic shielding Centering; o S102 'Control changes the position of the electromagnet and the strength of the magnetic field; S103, obtain the actual position of the electromagnet, the magnetic field strength and the position of the electromagnet and the magnetic field strength of the electronic compass to be tested; S104, the actual position of the electromagnet And a position offset error value between the position of the electronic compass detected by the electronic compass to be tested and an error between calculating an actual magnetic field strength of the electromagnet and the magnetic field strength of the electronic compass to be tested; and displaying the position of the electromagnet The error between the offset error value and the magnetic field strength. ❹ In the present embodiment, the magnetic shielding device is a magnetic shield, so that the material casing can effectively cover the influence of the external environmental magnetic field on the test. The electronic compass test system provided puts the electronic compass to be tested into the magnetic shielding space, and changes the position of the electromagnet to detect the accuracy of the test sub-compass, and compares with the prior art test results. 'Those skilled in the art can also make other changes in the spirit of the present invention, and the changes made according to the spirit of the present invention should be included. It is within the scope of the claims of the present invention. * [Simplified description of the drawings] * Fig. 1 is a functional block diagram of an electronic compass test system according to an embodiment of the present invention. Fig. 2 is an electronic body provided by an embodiment of the present invention. Compass test method flow chart 〇 [Main component symbol description] Electronic compass test system 10 Calculation module 11 Acquisition unit 111 Processing unit 112 Display unit 113 Drive module 12 Voltage control module 13 Electromagnet 14 Magnetic shielding device 15 Electron to be tested Compass 16 electronic compass test method steps S101-S105 〇 9