Docsity

programacion de sensores, Resúmenes de Tecnología

Toggle sidebar
bg1
3-Axis Magnetic Sensor
QMC5883L
The QMC5883L is a multi-chip three-axis magnetic sensor. This
surface -mount, small sized chip has integrated magnetic sensors with
signal condition ASIC, targeted for high precision applications such as
compassing, navigation and gaming in drone, robot, mobile and
personal hand-held devices.
The QMC5883L is based on our state-of-the-art, high resolution,
magneto-resistive technology licensed from Honeywell AMR technology.
Along with custom-designed 16-bit ADC ASIC, it offers the advantages of
low noise, high accuracy, low power consumption, offset cancellation and
temperature compensation. QMC5883L enables 1° to 2° compass
heading accuracy. The I²C serial bus allows for easy interface.
The QMC5883L is in a 3x3x0.9mm3 surface mount 16-pin land grid
array (LGA) package.
FEATURES BENEFIT
3-Axis Magneto-Resistive Sensors in a 3x3x0.9 mm3
Land Grid Array Package (LGA), guaranteed
to operate over an extended temperature range of
-40 °C to +85 °C.
Small Size for Highly Integrated Products. Signals Have
Been Digitized And Calibrated.
16 Bit ADC With Low Noise AMR Sensors Achieves
2 Milli-Gauss Field Resolution
Enables 1° To 2° Degree Compass Heading Accuracy ,
Allows for Navigation and LBS Applications
Wide Magnetic Field Range (±8 Gauss)
Maximizes Sensor’s Full Dynamic Range and Resolution
Temperature Compensated Data Output and
Temperature Output
Automatically Maintains Sensor’s Sensitivity Under Wide
Operating Temperature Range
I2C Interface with Standard and Fast Modes.
High-Speed Interfaces for Fast Data Communications.
Maximum 200Hz Data Output Rate
Wide Range Operation Voltage (2.16V To 3.6V) and
Low Power Consumption (75A)
Compatible with Battery Powered Applications
Lead Free Package Construction
RoHS Compliance
Software And Algorithm Support Available
Compassing Heading, Hard Iron, Soft Iron, and Auto
Calibration Libraries Available
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Vista previa parcial del texto

¡Descarga programacion de sensores y más Resúmenes en PDF de Tecnología solo en Docsity!

3-Axis Magnetic Sensor

QMC5883L

The QMC5883L is a multi-chip three-axis magnetic sensor. This surface -mount, small sized chip has integrated magnetic sensors with signal condition ASIC, targeted for high precision applications such as compassing, navigation and gaming in drone, robot, mobile and personal hand-held devices.

The QMC5883L is based on our state-of-the-art, high resolution, magneto-resistive technology licensed from Honeywell AMR technology. Along with custom-designed 16-bit ADC ASIC, it offers the advantages of low noise, high accuracy, low power consumption, offset cancellation and temperature compensation. QMC5883L enables 1° to 2° compass heading accuracy. The I²C serial bus allows for easy interface.

The QMC5883L is in a 3x3x0.9mm^3 surface mount 16-pin land grid array (LGA) package.

FEATURES BENEFIT

 3 - Axis^ Magneto-Resistive Sensors in a^ 3x3x0.9^ mm

3 Land Grid Array Package (LGA), guaranteed to operate over an extended temperature range of

  • 40 °C to +85 °C.

 Small^ Size for Highly Integrated Products.^ Signals^ Have Been Digitized And Calibrated.

 16 Bit ADC^ With Low Noise^ AMR^ Sensors^ Achieves

2 Milli-Gauss Field Resolution

 Enables^ 1°To 2°Degree Compass Heading Accuracy^ , Allows for Navigation and LBS Applications

 Wide^ Magnetic Field Range (±^8 Gauss)^  Maximizes^ Sensor’s Full Dynamic Range and Resolution

 Temperature^ Compensated Data Output and

Temperature Output

 Automatically^ Maintains Sensor’s Sensitivity Under Wide Operating Temperature Range

 I

(^2) C Interface with Standard and Fast Modes.  High-Speed Interfaces for Fast Data Communications. Maximum 200Hz Data Output Rate

 Wide^ Range Operation Voltage (2.16V^ To 3.6V) and

Low Power Consumption (75A)

 Compatible^ with^ Battery Powered Applications

 Lead^ Free Package Construction^ ^ RoHS^ Compliance

 Software^ And^ Algorithm Support Available^ ^ Compassing^ Heading,^ Hard Iron,^ Soft Iron, and^ Auto

Calibration Libraries Available

QMC5883L

1 INTERNAL SCHEMATIC DIAGRAM

1.1 Internal Schematic Diagram

Figure 1. Block Diagram

Table 1. Block Function

Block Function AMR Bridge 3 axis magnetic sensor MUX Multiplexer for sensor channels PGA Programmable gain amplifier for sensor signals ADC 16 bit Analog-to-Digital converter Signal Conditioning Digital blocks for magnetic signal calibration and compensation I^2 C Interface logic data I/O NVM Non-Volatile memory for calibrated parameters SET/RST Driver Internal driver to initialize magnetic sensor Reference Voltage/Current reference for internal biasing Clock Gen. Internal oscillator for internal operation POR Power on reset Temperature Sensor Temperature sensor for internal sensitivity /offset compensation, and temperature output

QMC5883L

2.2 Absolute Maximum Ratings

Table 3. Absolute Maximum Ratings (Tested at 25°C except stated otherwise.)

Parameter MIN. MAX. Units VDDIO - 0.3 5.4 V VDD - 0.3 5.4 V Storage Temperature - (^40 125) ℃ Exposed to Magnetic Field (all directions) 50000 Gauss Reflow Classification MSL 3, 260 C Peak Temperature

2.3 I/O Characteristics

Table 4. I/O Characteristics

Parameter Symbol Pin Condition Min. TYP. Max. Unit Voltage Input High Level 1

VIH 1 SDA, SCL 0.7*VD

DIO

VDDIO+

V

Voltage Input Low Level 1

VIL 1 SDA, SCL - 0.3 0.3*VD

DIO

V

Voltage Output High Level

VOH INT Output Current ≥-100uA

0.8*VD

DIO

V

Voltage Output Low Level

VOL INT, SDA Output Current ≤100uA(INT) Output Current ≤1mA (SDA)

0.2*VD

DIO

V

3 PACKAGE PIN CONFIGURATIONS

3.1 Package 3-D View

Arrow indicates direction of magnetic field that generates a positive output reading in normal measurement configuration.

Figure 2. Package 3-D View

Table 5. Pin Configurations

PIN

No.

PIN

NAME

Function

1 SCL Serial Clock – I 2 C Master/Slave Clock 2 VDD Power Supply (2.16V to 3.6V) 3 NC Not to be Connected 4 S1 Tie to VDDIO 5 NC Not to be Connected 6 NC Not to be Connected 7 NC Not to be Connected 8 SETP Set/Reset Strap Positive – S/R Capacitor (C2) Connection 9 GND Supply Ground 10 C1 Reservoir Capacitor (C1) Connection 11 GND Supply Ground 12 SETC S/R Capacitor (C2) Connection – Driver Side 13 VDDIO IO Power Supply (1.71V to VDD) 14 NC Not to be Connected

15 DRDY

Data Ready, Interrupt Pin. Default low. Data ready high until data register is read. 16 SDA Serial Data – I 2 C Master/Slave Data

TOP VIEW ( looking through )

3.2 Package Outlines

3.2.1 Package Type LGA (Land Grid Array)

3.2.2 Package Size: 3mm (Length)3mm (Width)0.9mm (Height)

4 EXTERNAL CONNECTION

4.1 Dual Supply Connection

Figure 5. Dual Supply Connection

4.2 Single Supply connection

Figure 6. Single Supply Connection

2.16V to 3.6V

1.71V to VDD

2.16V to 3.6V

QMC5883L

4.3 Mounting Considerations

The following is the recommend printed circuit board (PCB) footprint for the QMC5883L. Due to the fine pitch of the pads, the footprint should be properly centered in the PCB.

Figure 7. QMC5883L PCB footprint

4.4 Layout Considerations

Besides keeping all components that may contain ferrous materials (nickel, etc.) away from the sensor on both sides of the PCB, it is also recommended that there is no conducting copper line under/near the sensor in any of the PCB layers.

4.4.1 Solder Paste A 4 mil stencil and 100% paste coverage is recommended for the electrical contact pads.

4.4.2 Reflow Assembly

This device is classified as MSL 3 with 260C peak reflow temperature. As specified by JEDEC, parts with an MSL 3 rating require baking prior to soldering, if the part is not kept in a continuously dry (< 10% RH) environment before assembly. Reference IPC/JEDEC standard J-STD-033 for additional information.

No special reflow profile is required for QMC5883L, which is compatible with lead eutectic and lead-free solder paste reflow profiles. QST recommends adopting solder paste manufacturer’s guidelines. Hand soldering is not recommended.

4.4.3 External Capacitors The external capacitors C1 should be ceramic type with low ESR characteristics. The exact ESR value is not critical, but values less than 200 milli-ohms are recommended. Reservoir capacitor C1 is nominally 4.7 μF in capacitance. Low ESR characteristics may not be in many small SMT ceramic capacitors (0402), so be prepared to up-size the capacitors to gain low ESR characteristics.

QMC5883L

Figure 8. Power On/Off Timing

5.4 Communication Bus Interface I

2 C and Its Addresses

This device will be connected to a serial interface bus as a slave device under the control of a master device, such as the processor. Control of this device is carried out via I²C.

This device is compliant with I²C -Bus Specification, document number: 9398 393 40011. As an I²C compatible device, this device has a 7-bit serial address and supports I²C protocols. This device supports standard and fast speed modes, 100kHz and 400kHz, respectively. External pull-up resistors are required to support all these modes.

The default I^2 C address is 0D: 0001101 If other I^2 C address options are required, please contact factory..

5.5 Internal Clock

The device has an internal clock for internal digital logic functions and timing management. This clock is not available to external usage.

5.6 Temperature Compensation

Temperature compensation of the measured magnetic data is enabled by default at the factory. Temperature measured by the built-in temperature sensor will be used to compensate the magnetic sensor’s sensitivity changes due to temperatures. The compensated magnetic sensor data is placed in the Output Data Registers automatically.

5.7 Temperature Output

QMC5883L has a built-in temperature sensor, it can provide temperature reading for other applications. The output is placed in Temperature Output Registers (07H and 08H). The temperature is calibrated for its sensitivity.

6 MODES OF OPERATION

6.1 Modes Transition

The device has two different operational modes, controlled by register (09H), mode bits. The main purpose of these modes is for power management. The modes can be transited from one to the other, as shown below, through I^2 C commends of changing mode bits. The default mode is Standby.

POR

OTP Load

Standby

Continuous Mode

Mode Change?

Mode Change?

Soft Reset

NO

NO

YES

YES

Soft Reset could be set at any time and then chip automatically transits to standby mode

The system automatically transits to standby mode after power on reset or soft reset.

Figure 9. Modes Transition

6.2 Description of Modes

6.2.1 Continuous-Measurement Mode During the continuous-measurement mode (mode bits= 01), the magnetic sensor continuously makes measurements and places measured data in data output registers. The field range (or sensitivity) and data output rate registers are also located in the control register (09H), they should be set up properly for your applications in the continuous-measurement mode.

For example, if the application requires output date rate 50Hz, the ODR bit in control register (09H) should be 01. If the field range is +/-8 Gauss, the RNG =01. The over sample rate is optional for you to use. The default is OSR=00, if your application has enough resolution and need low power consumption, you may reduce OSR to a lower number, such as OSR=10 (128) or OSR = (64).

In the continuous-measurement mode, the magnetic sensor data are automatically compensated for offset and temperature effects. The gains are calibrated in the factory.

6.2.1.1 Normal Read Sequence Complete magnetometer data read-out can be done as follow steps.  Check DRDY pin or by polling DRDY bit in Register 06H  Read DRDY bit in Register 06H (if polling, it’s unnecessary)

6.2.1.4 Data Locks Until Next Measurement Ends Data lock is activated once any of the data register is accessed. If 05H (data unlock) is not accessed until next measurements ends, current data blocks next data to update data register. In this case, DOR bit is also set to “1” until 06H is accessed in next data read.

Figure 13. Sequence When Data Locks

6.2.1.5 Interrupt An interrupt is generated on DRDY pin each time that magnetic field is measured. The interrupt can be disabled by set 0AH[0] = 1.

6.2.2 Standby Mode Standby mode is the default state of QMC5883L upon POR and soft reset, only few function blocks are activated in this mode, which keeps power consumption as low as possible. In this state, register values are hold on by an ultra-low power LDO, I

2 C interface can be woken up by reading or writing any registers. There is no magnetometer measurement in the Standby mode. Internal clocking is also halted.

7 Application Examples

7.1 Continuous Mode Setup Example

 Write Register 0BH by 0x01 (Define Set/Reset period)  Write Register 09H by 0x1D (Define OSR = 512, Full Scale Range = 8 Gauss, ODR = 200Hz, set continuous measurement mode)

7.2 Measurement Example

 Check status register 06H[0] ,” 1 ” means ready.  Read data register 00H ~ 05H.

7.3 Standby Example

 Write Register 09H by 0x

7.4 Soft Reset Example

 Write Register 0AH by 0x

QMC5883L

8 I

2 C COMMUNICATION PROTOCOL

8.1 I^2 C Timings

Below table and graph describe the I^2 C communication protocol times

Table 9. I^2 C Timings Parameter Symbol Condition Min. Typ. Max. Unit SCL Clock 0 400 kHz SCL Low Period 1 μS SCL High Period (^1) μS

SDA Setup Time 0.1 μS SDA Hold Time 0 0.9 (^) μS Start Hold Time 0.6 μS Start Setup Time 0.6 (^) μS Stop Setup Time 0.6 μS New Transmission Time

μS

Rise Time μS Fall Time (^) μS

Figure 14. I^2 C Timing Diagram

8.2 I

2 C R/W Operation

8.2.1 Abbreviation

Table 10. Abbreviation

SACK Acknowledged by slave MACK Acknowledged by master NACK Not acknowledged by master RW Read/Write

8.2.2 Start/Stop/Ack

START: Data transmission begins with a high to transition on SDA while SCL is held high. Once I^2 C transmission starts, the bus is considered busy. STOP: STOP condition is a low to high transition on SDA line while SCL is held high. ACK: Each byte of data transferred must be acknowledged. The transmitter must release the SDA line during the acknowledge pulse while the receiver mush then pull the SDA line low so that it remains stable low during the high period of the acknowledge clock cycle. NACK: If the receiver doesn’t pull down the SDA line during the high period of the acknowledge clock cycle, it’s recognized as NACK by the transmitter.

QMC5883L

9 REGISTERS

9.1 Register Map

The table below provides a list of the 8-bit registers embedded in the device and their respective function and addresses

Table 13. Register Map

Addr. 7 6 5 4 3 2 1 0 Access 00 H Data Output X LSB Register XOUT[7:0] Read only 01 H Data Output X MSB Register XOUT[15:8] Read only 02H Data Output Y LSB Register YOUT[7:0] Read only 03H Data Output Y MSB Register YOUT[15:8] Read only 04H Data Output Z LSB Register ZOUT[7:0] Read only 05H Data Output Z MSB Register ZOUT[15:8] Read only 06H DOR OVL DRDY Read only 07H TOUT[7:0] Read only 08H TOUT[15:8] Read only 09H OSR[1:0] RNG[1:0] ODR[1:0] MODE[1:0] Read/Write 0AH SOFT_ RST

ROL_P

NT

INT_E

NB

R/W, Read only on blanks 0BH SET/RESET Period FBR [7:0] Read/Write 0CH Reserved Read only 0DH Chip ID Read only

9.2 Register Definition

9.2.1 Output Data Register

Registers 00H ~ 05H store the measurement data from each axis magnetic sensor in continuous-measurement. In the continuous measurement mode, the output data is refreshed periodically based on the data update rate ODR setup in control registers 1. The data stays the same, regardless of reading status through I^2 C, until new data replaces them. Each axis has 16 bit data width in 2’s complement, i.e., MSB of 01H/03H/05H indicates the sign of each axis. The output data of each channel saturates at -32768 and 32767.

Table 14. Output Data Register Addr. 7 6 5 4 3 2 1 0 00H Data Output X LSB Register XOUT[7:0] 01H Data Output X MSB Register XOUT[15:8] 02H Data Output Y LSB Register YOUT[7:0] 03H Data Output Y MSB Register YOUT[15:8] 04H Data Output Z LSB Register ZOUT[7:0] 05H Data Output Z MSB Register ZOUT[15:8]

9.2.2 Status Register

There are two status registers located in address 06H and 0CH. Register 06H has three bits indicating for status flags, the rest are reserved for factory use. The status registers are read only bits.

Table 15. Status Register 1 Addr. 7 6 5 4 3 2 1 0

06H DOR OVL DRDY

Data Ready Register (DRDY), it is set when all three axis data is ready, and loaded to the output data registers in the continuous measurement mode. It is reset to “0” by reading any data register (00H~05H) through I^2 C commends

DRDY: “0”: no new data, “1”: new data is ready

Overflow flag (OVL) is set to “1” if any data of three axis magnetic sensor channels is out of range. The output data of each axis saturates at -32768 and 32767, if any of the axis exceeds this range, OVL flag is set to “1”. This flag is reset to “0” if next measurement goes back to the range of (-32768, 32767), otherwise, it keeps as “1”.

OVL: “0”: normal, “1”: data overflow

Data Skip (DOR) bit is set to “1” if all the channels of output data registers are skipped in reading in the continuous-measurement mode. It is reset to “0” by reading any data register (00H~05H) through I^2 C

DOR: “0”: normal, “1”: data skipped for reading

9.2.3 Temperature Data Registers

Registers 07H-08H store temperature sensor output data. 16 bits temperature sensor output is in 2’s complement. Temperature sensor gain is factory-calibrated, but its offset has not been compensated, only relative temperature value is accurate. The temperature coefficient is about 100 LSB/℃

Table 17. Temperature Sensor Output

Addr. 7 6 5 4 3 2 1 0 07H TOUT[7:0] 08H TOUT[15:8]

9.2.4 Control Registers

Two 8-bits registers are used to control the device configurations. Control register 1 is located in address 09H, it sets the operational modes (MODE). output data update rate (ODR), magnetic field measurement range or sensitivity of the sensors (RNG) and over sampling rate (OSR). Control register 2 is located in address 0AH. It controls Interrupt Pin enabling (INT_ENB), Point roll over function enabling(POL_PNT) and soft reset (SOFT_RST).

Two bits of MODE registers can transfer mode of operations in the device, the two modes are Standby, and Continuous measurements. The default mode after Power-on-Reset (POR) is standby. There is no any restriction in the transferring between the modes.

Output data rate is controlled by ODR registers. Four data update frequencies can be selected: 10Hz, 50Hz, 100Hz and 200Hz. For most of compassing applications, we recommend 10 Hz for low power consumption. For gaming, the high update rate such as 100Hz or 200Hz can be used.

Field ranges of the magnetic sensor can be selected through the register RNG. The full scale field range is determined by the application environments. For magnetic clear environment, low field range such as +/- 2gauss can be used. The field range goes hand in hand with the sensitivity of the magnetic sensor. The lowest field range has the highest sensitivity, therefore, higher resolution. Over sample Rate (OSR) registers are used to control bandwidth of an internal digital filter. Larger OSR value leads to smaller filter bandwidth, less in-band noise and higher power consumption. It could be used to reach a good balance between noise and power. Four over sample ratio can be selected, 64, 128, 256 or 512.

ORDERING INFORMATION

Ordering Number Temperature Range Package Packaging

QMC5883L-TR (^) - 40 ℃~85℃ LGA- 16 Tape and Reel: 3 k pieces/reel

FIND OUT MORE

For more information on QST’s Magnetic Sensors contact us at 86-21-69517300.

The application circuits herein constitute typical usage and interface of QST product. QST does not provide warranty or assume liability of customer-designed circuits derived from this description or depiction.

QST reserves the right to make changes to improve reliability, function or design. QST does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others.

U.S. Patents 4,441,072, 4,533,872, 4,569,742, 4,681,812, 4,847,584 and 6,529,114 apply to the technology described.

QST First Floor, Building No.2, Chengbei Road 235, Shanghai Tel: 86 - 21 - 69517300

  1. 0 , released Feb. 201 6 QST Corporation