Item Description
Item: LSM303DLH module (three-axis magnetic field + triaxial acceleration)
Chip built-in 12bit AD converter, 16-bit data output
High quality immersion gold PCB, machine welding process to ensure quality
Using the chip: LSM303DLH
Power supply: 3-5v (internal low dropout voltage regulation)
Communication method: standard IIC communication protocol
Magnetic field range:
±1.3 / ±1.9 / ±2.5 /± 4.0 / ±4.7 /
±5.6 / ±8.1 gauss
Acceleration range: ±2 g/±4 g/±8 g
LSM303D related introduction:
The LSM303DLH chip's accelerometer, magnetometer, A/D converter and signal processing circuit are integrated and still communicate with the processor via the I2C bus. In this way, 6-axis data detection and output is realized with only one chip, which reduces the design difficulty of the customer, reduces the occupied area of the PCB board, and reduces the device cost.
The LSM303DLH requires few peripheral components and is easy to connect. The magnetometer and accelerometer each have an I2C bus and processor communication. If the customer's I/O interface level is 1.8V, Vdd_dig_M, Vdd_IO_A and Vdd_I2C_Bus can be connected to 1.8V, Vdd can be powered by 2.5V or more; if the customer interface level is 2.6V, except Vdd_dig_M requires 1.8V, Others can use 2.6V.
As mentioned above, the LSM303DLH requires a set/reset circuit to maintain the main magnetic domain of the AMR. C1 and C2 are the external matching capacitors of the set/reset circuit. Since there are certain requirements for the set pulse and reset pulse, it is recommended that users do not arbitrarily modify the size of C1 and C2.
To implement the electronic compass function, a three-axis magnetic sensor for detecting a magnetic field and a three-axis acceleration sensor are required.
1. ST integrated magnetometer and accelerometer sensor module LSM303DLH
1.1 How the magnetometer works
In the LSM303DLH, the magnetometer uses an anisotropic magneto-resistance material to detect the magnitude of magnetic induction in space. Such an alloy material having a crystal structure is sensitive to an external magnetic field, and a change in the strength of the magnetic field causes a change in the resistance value of the AMR itself.
1.2 Set/Reset Circuit
Due to the influence of the external environment, the direction of the main magnetic domain on the AMR in the LSM303DLH will not remain permanently. The LSM303DLH has a built-in/reset circuit that periodically generates current pulses through the internal metal coil to restore the initial main magnetic domain, as shown in Figure 8. It should be noted that the set pulse and the reset pulse have the same effect, but the direction is different.
The set/reset circuit brings many advantages to the LSM303DLH:
1) Even if it encounters interference from strong external magnetic fields, the LSM303DLH can resume normal operation after the interference disappears without requiring the user to perform correction again.
2) Accurate measurement can be achieved by maintaining the initial magnetization direction even after a long period of work
3) Eliminate bridge deviation due to temperature drift.
1.3 Performance parameters of LSM303DLH
The LSM303DLH integrates a three-axis magnetometer and a three-axis accelerometer with a digital interface. The magnetometer's measurement range is from 1.3 Gauss to 8.1 Gauss in 7 steps, which users can choose freely.
The LSM303DLH has an automatic detection function.
As a highly integrated sensor module, in addition to the magnetometer, the LSM303DLH also integrates a high-performance accelerometer. Accelerometer to 1mg measurement accuracy. The accelerometer operates in a low-power mode with sleep/wake-up capabilities to significantly reduce power consumption. At the same time, the accelerometer also integrates 6-axis direction detection and two programmable interrupt interfaces.
For portable devices, the power consumption of the device is very important, directly affecting the standby time. The LSM303DLH can control the power mode of the magnetometer and accelerometer to put them into sleep or low power mode. And the user can adjust the data update frequency of the magnetometer and accelerometer to adjust the power consumption level.
2. Ferromagnetic field interference and calibration
2.1 Stereo 8-word calibration method
In general, the 8-word calibration method requires the user to perform 8-word sloshing in the air using the equipment to be calibrated. In principle, the normal direction of the device should be directed to all eight quadrants of the space.
Many of the current popular android phones are equipped with a compass function. In order to achieve this function, only the 2-in-1 sensing module LSM303DLH provided by ST is required.
Packing included:1PCS Triaxial LSM303DLHC E-Compass Board