UAV Mounted Magnetometer-SMAGALL
UAV Mounted Magnetometer-SMAGALL
UAV Mounted Magnetometer-SMAGALL
Manual
The magnetometer mounted on UAV (hereinafter referred to as magnetometer) is a series of weak magnetic
measurement products integrating GPS information acquisition, attitude information acquisition, temperature
information acquisition and other functions developed and designed by Xi'an Huashun measurement
equipment Co., Ltd., which has the characteristics of high measurement accuracy, simple operation and
convenient carrying.
The magnetometer is composed of fluxgate magnetic sensor, data acquisition module, GPS module, attitude
module, temperature module, etc. The whole set is powered by DC 12V power supply.
Basic testing principle of magnetometer system: The magnetic sensor converts the magnetic field signal of
the area to be tested into voltage signal, and then realizes digitization through 24bit AD chip; The attitude
module is integrated in the magnetic sensor, and the attitude information is sent out through the serial port; The
temperature module is integrated in the data acquisition module; The GPS module collects the GPS
information of the current position and sends it through the serial port (TTL). ARM chip processes four kinds
of data and communicates with the outside world through internal recording.
2 Technical Index
1
No. Technical Item Technical Index
6 Size 56mm*106mm*136mm
7 Weight ≤400g
9 GPS 1Hz
1 Axis 3
3 Bandwidth DC-1KHz
4 Linearity ≤0.01% FS
5 Orthogonality ≤±0.5°
7 Consumption ≤0.45W
8 Weight 220g
2
second
3 Application Scope
The three channel data acquisition module is used together with magnetic sensor, temperature module,
attitude module and GPS module to facilitate the magnetic detection application of outdoor UAV.
PT100 Temperature Sensor: The temperature value of the position where the magnetic sensor is located can
be measured;
Attitude Module: The attitude information of the current system can be measured;
Temperature Module: The temperature information of the current system can be measured.
4 Structure Feature
3
4.1 Data Acquisition Module
port, an Ethernet interface, a circular switch, a power interface and a GPS interface, as shown in Figure 4.2.
Input Interface: Connect to GPS module. See the table below for interface definition.
1:5V
2:DGND
4
3:TX Connect GPS RX
5:NC
See the table below for the definition of magnetic sensor interface
1:PGND
2:-15V
3:+15V
4: X
5: Y
6: Z
7:AGND
8:VCC
9:DGND
10:TX
11:RX
12: NC
13: NC
5
4.2 Fluxgate Sensor
There is a power indicator light and a connecting wire with aviation plug on the side of the magnetic
The GPS module is internally integrated with a blue indicator, which is connected with the data
6
Indicator Work State Work Description
Light on The power supply of GPS module is normal
Power
Light off GPS module abnormality or power failure
(2) See the table below for the definition of GPS module interface
Function
Interface Appearance Remark
Definition
1:5V
2:DGND
5:NC
5 Operation Method
The data acquisition module is used together with the magnetic sensor and GPS module. The specific
operations include function test and data export. After the system obtains the GPS time, the system will create
a new folder named the date of the current day in the root directory. At this time, the test data will be stored in
the folder in ". Dat" format; Power on again, the system will re create a new ". Dat" file as long as the power
If the GPS signal is not received, the system will create a new date named 5 days earlier than the current
date in the root directory, and save the test data in ". Dat" format in this folder.
( 1 ) The magnetic sensor is connected to the magnetic sensor interface of the data acquisition module.
The GPS module is connected to the GPS & IO interface, and the 12V power supply is connected to the power
(2) Turn on the power switch and power on the system. The "power" indicator of the data acquisition
module is on, and the system enters initialization. The "power" indicator of the data acquisition module starts
to flash and start searching for GPS signals. After obtaining the GPS time, the "power" indicator is always on.
The "status" indicator flashes all the time as an indication of data sampling.
7
(3)After the test, disconnect the system power supply firstly, and then remove the magnetic sensor and
GPS module.
Attention:
It is strictly forbidden to plug and unplug the aviation plug of magnetic sensor and GPS module.
(1)The USB cable connects the USB port of the computer with the type C port of the data acquisition
module;
( 2 ) The 12V power supply is connected to the power interface through the 3-core aviation plug, the
power switch is closed, and the computer automatically identifies the data acquisition module as a storage
device.
(3)Open the USB storage device of the data acquisition module, and there will be a folder with the name
of "date of the day" in the root directory. The folder is the actual test data. The files in the "date of the day"
folder are the test data after receiving the GPS signal.
Note:
(1)When the device is working normally, please ensure that there is enough space in the
memory device. After using the original data, please empty the files in the SD card in time.
(2)In the process of data export, connect the USB cable before power on. Hot plug of
USB cable is prohibited.
After following steps 5.1 and 5.2, the data saved by Ethernet is txt file, so there is no need to convert. The
". dat" file stored in the internal memory card is the original data, which needs to be decoded through "format
conversion" and converted into a txt file that can visually read GPS information, temperature information and
magnetic field values of each axis of the magnetic sensor. The specific operation steps are as follows:
(1)Copy the data file in the memory card to the hard disk of the PC;
(2)Open the upper computer software, click "add file" or "add folder", and select the data file or folder in the
(3)Select the appropriate output path and click "" directly to complete the format conversion. The final output
file is ". txt" file, GPS information and magnetic field value of each axis of its magnetic sensor.
8
6 Considerations
Appendix
and temperature information are received in real time through serial port. Magnetic field information, GPS,
attitude and temperature information are integrated and packaged and stored in SD card in real time.
2 Interface Specification
Serial port; Baud rate: 9600, Data bits: 8 bits, Stop bit: 1 bit, no parity bit;
9
Y- Component magnetic field mark of
16 15 59 UINT8
magnetic sensor 1,ASCII‘Y’
Z- Component magnetic 24 bit AD acquisition, accounting for only the
17~19 16 INT32
field of magnetic sensor 1 lower 24 bits
Z- Component magnetic field mark of
20 19 5A UINT8
magnetic sensor 1,ASCII‘Z’
Second frame magnetic
21~36 20 ~
field data
… … … … The format corresponds to 5 ~ 20
3189~320 200th frame magnetic
3188 ~
4 field data
3205~320 The end of each packet of data frame is used
3204 0D 0A 0D 0A UINT8
8 as the end flag
3209~321
3208 46 47 UINT8 GPS frame header
0
3211~321
3210 A8 00 UINT8 Frame length, GPS data length - 168 bytes
2
3213~327
3212 B5 62 01 06 XX……XX UINT8 NAV-SOL data,60 bytes
2
3273~330
3272 B5 62 01 02 XX……XX UINT8 NAV-POSLLH,36 bytes
8
3309~335
3308 B5 62 01 12 XX……XX INT8 NAV-VELNED,44 bytes
2
3353~338
3352 B5 62 01 21 XX……XX UINT8 NAV-TIMEUTC,28 bytes
0
3381~338 The end of each packet of data frame is used
3380 0D 0A 0D 0A UINT8
4 as the end flag
3385~338
3384 46 41 UINT8 Attitude temperature frame header
6
3387~338 Frame length, attitude temperature data length
3386 24 00 UINT8
8 - 36 bytes
3389~342 55 51 …… 55 52 ……
3388 UINT8 Attitude temperature data, 36 bytes
4 55 53 ……
3425~342 The end of each packet of data frame is used
3424 0D 0A 0D 0A UINT8
8 as the end flag
For each sampling, there is an incremental mark in the magnetic field data, accounting for 4 bytes; Followed
by 12 bytes (x, y, z) of magnetic field data, 4 bytes for each channel. According to the small end mode, the low
byte is in front, the high byte is in the back, and the highest byte is the identification byte. The details are as
10
follows:
(1)Incremental mark
L M H 0x0C
00 00 00 ‘12’
The fourth byte "0x0c" has a constant value as a distinguishing mark; The first three bytes are incremental
The amount of magnetic field data sampled each time is 12 bytes (x, y, z), and the data of each channel is 4
bytes. The magnetic field data is in the small end mode, with the low byte in the front, the high byte in the
back, and the highest byte as the identification byte. The details are as follows:
Low Medium High ‘X’ Low Medium High ‘Y’ Low Medium High ‘Z’
Where XL is the lowest byte of X-Component data, XH is the highest byte of X- Component, and 0x58 is
the ASCII code of character 'X', indicating that the 4-byte data is X- Component data;
YL is the lowest byte of Y-Channel data, YH is the highest byte of Y- Component, and 0x59 is the ASCII
code of character 'Y', indicating that the 4-byte data is Y- Component data;
ZL is the lowest byte of Z-Channel data, ZH is the highest byte of Z- Component, and 0x5A is the ASCII
code of character 'Z', indicating that the 4-byte data is Z- Component data
The data received by each component is 4 bytes, including 3 bytes of valid data and 1 byte of identifier. The
For example: the primary sampling data received is:“C2 FD 63 58 B2 54 DC 59 29 F9 FF 5A” indicate that
The format of 3-byte data is signed integer number, the data is complement format, and the highest bit is
symbolic bit. You need to convert the data in complement format into the actual value of decimal first. The
method is as follows:
When the data is less than , it is a positive number, the actual value is itself;
When the data is more than , it is a negative number, the actual value is its own value minus
11
;
For example: X-Component data is 0x63FDC2 , then convert to decimal is 6553026 which is less than
Another example: Y-Component data is 0xDC54B2, then convert to decimal is 14439602,more than
8388607 , so it is a negative number, the actual value is its own value minus , that is:14439602
- = -2337614;
Assuming that the actual value of the calculated data is data and the final magnetic field value is Mag, their
relationship is:
(Unit: nT)
Where, Vref is the reference voltage, and the reference voltage of the equipment is 2.5V;
When the calculation result is negative, it indicates that the direction of the magnetic field is opposite to the
reference direction.
12
5.2 NAV-POSLLH
Sample data: (Hexadecimal)
B5 62 01 02 1C 00 0C 69 03 00 00 00 00 00 00 00 00 00 00 00 00 00 98 BD FF FFFFFFFFFF 00 80 84 DF C9
D0
13
5.3 NAV-VELNED
Sample data: (Hexadecimal)
B5 62 01 12 24 00 0C 69 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D0
07 00 00 80 A8 12 01 C1 7D
5.4 NAV-TIMEUTC
Sample data: (Hexadecimal)
B5 62 01 21 14 00 0C 69 03 00 FF FF FF FF 00 65 CD 1D DD 07 09 01 00 03 2B F0 05 7F
14
6 Attitude Temperature Analytical Algorithm
6.1 Content of Each Packet
Label 0 1 2 3 4 5 6 7 8 9 10
Packet Identify packet X X Y Y Z Z T T Checks
Meaning
header content Low High Low High Low High L H um
Acceleration 0X55 0X51 8 bits
Angular
0X55 0X52 8 bits -
velocity
Angle 0X55 0X53 8 bits
15
wi=((wiH<<8)|wiL)/32768*2000(° /s )
angle_i=((angle_iH<<8)|angle_iL)/32768*180(°)
T= =((TH<<8)|TL) /100 ℃
Checksum SUM=0X55+0X5x+xH+xL+yH+yL+zH+zL+TH+TL
Each data cache has 11 bits, which are supplemented by four byte alignment during actual data processing, and
each data packet stores 12 bits.
16