Mikroelektronika d.o.o.
LSM303AGR Click Board
LSM303AGR Click Board
Couldn't load pickup availability
The LSM303AGR Click Board™ is a magnetometer and accelerometer device, capable of sensing both the magnetic and gravitational field along three orthogonal axes. It uses the LSM303AGR from STMicroelectronics, an integrated MEMS IC with plenty of features that allow accurate and reliable sensing, even in presence of foreign objects made of iron and similar materials that exhibit ferromagnetic behavior. An extensive interrupt engine can be programmed to generate an interrupt signal for free-falling events, motion detection, and magnetic field detection.
The LSM303AGR Click Board™ can sense the magnetic field in the range of ±50 G (gauss) and ±2g, ±4g, ±8g, and ±16g selectable ranges for the full-scale acceleration detection (gravity force).
![Mikroelektronika d.o.o. MIKROE-2684 LSM303AGR Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-lsm303agr-click-board-29646941880509.jpg?v=1685139956&width=1445)
![Mikroelektronika d.o.o. MIKROE-2684 LSM303AGR Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-lsm303agr-click-board-30244132651197.jpg?v=1685015924&width=1445)
![Mikroelektronika d.o.o. MIKROE-2684 LSM303AGR Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-lsm303agr-click-board-30244132323517.jpg?v=1685015931&width=1445)
![Mikroelektronika d.o.o. MIKROE-2684 LSM303AGR Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-lsm303agr-click-board-29646942044349.jpg?v=1685140494&width=1445)
Additional embedded self-test circuitry allows reliable operation, while the integrated thermometer offers calibration data with no additional circuitry or sensors used. This makes the LSM303AGR sensor a perfect choice for the magnetometer and accelerometer Click board™, which can be used for development of a wide range of applications, including electronic compasses, position detectors, motion or tap activated features, gaming equipment, intelligent handheld devices power saving, free-fall detection, and similar.
How Does The LSM303AGR Click Board™ Work?
The LSM303AGR Click Board™ is a low power and high-performance sensor IC featuring a digital linear acceleration sensor, and a digital magnetic sensor, capable of sensing magnetic and gravitational fields in all three axes. The sensor is a highly integrated system in package (SIP), offering two independent sensors, charge amplifiers, A/D converters, and control logic sections. There are two independent I2C slave addresses for each of the sensors: 0011001b is the slave address of the accelerometer, while the 0011110b is the slave address of the magnetic sensor. These are 7-bit addresses, to complete the address sequence, an R/W bit needs to be added at the end.
An interrupt pin (INT_MAG/DRDY) allows the interrupt generated by an event within the LSM303AGR IC, to alert the host MCU. This pin is routed to the mikroBUS™ INT pin. The power of the LSM303AGR IC lies in its configurable interrupt engine. The function, threshold, and timing of the interrupt signal on the INT pin can be completely defined by the user. Its behavior can be programmed by setting a range of appropriate registers via the I2C bus. The sensor offers detection of many events, caused either by the sensors themselves or by the error/status events within the sensor IC. For example, the interrupt can be generated if there is data ready to be transferred to the host MCU if the FIFO buffer overflow occurred and so on. A combination of events is also available, with either 'OR' or 'AND' function between the generated events. It allows developing HID applications, which react on tapping, moving, positioning, etc.
The LSM303AGR device offers digital filtering, compensation, self-test, and more. It allows resolution, sampling time and power consumption to be adjusted, allowing the Click board™ to be tailored to any application. Trimming values for zero-g level, zero-gauss level, and sensitivity adjustment are stored into the internal non-volatile memory and are copied to the registers upon restart. This allows the sensor to perform accurate measurements without repeated calibration after each power-up cycle.
Another feature used to increase the accuracy of the sensor is the hard-iron compensation, which compensates the readings, in cases when an object with magnetic properties is placed near the sensor, permanently biasing the output values. Six registers hold magnetic values for the compensation and are automatically subtracted from readings. Many signal processing features such as the low-pass and high-pass filtering, also help to obtain accurate and reliable readings from this sensor.
A self-test procedure can be used to verify the functionality of the device. The internal current generates an internal magnetic field, which is then sensed by the sensors. The readings during self-test should look like in the table, given in the LSM303AGR datasheet. If these readings look differently, a particular device can be discarded.
The device contains a FIFO buffer, which can be used for the accelerometer sensor only. It is 32 levels deep, allowing 32 sets of readings along X, Y, and Z axes to be stored. The buffer can be bypassed, it can be fixed so that new data is discarded when it is full, and it can be set to streaming mode so that the new data pushes out the oldest information from the buffer. An interrupt can be triggered if a programmed threshold is exceeded so that the buffer can be read before the data is lost.
The sampling frequency and the resolution can be selected from 1Hz up to 5.736 kHz and from 8 bits up to 12 bits. These settings affect the power consumption. The device can work in normal mode, high-resolution mode, and low power mode. This affects the acquisition time as well as the power consumption. In addition, the device can work in continuous mode, or in a single shot mode. A single shot mode allows the device to consume less power, as the single measurement is done on a command, after which device reverts to idle mode and the DRDY (data ready) bit is set. Again, the datasheet of the LSM303AGR offers an in-depth explanation of all the registers and their functionality.
SPECIFICATIONS
Type | Acceleration,Magnetic |
Applications | The LSM303AGR Click Board™ can be used for developing various applications, including electronic compasses, position detectors, motion or tap activated features, gaming equipment, intelligent handheld devices power saving, free-fall detection, and similar. |
On-board modules | LSM303AGR, a compact 3D accelerometer and 3D magnetometer from STMicroelectronics |
Key Features | Two independent sensors providing three magnetic field channels and three acceleration channels. Onboard EEPROM with the factory programmed compensation values, permanent magnetic field cancelation, and more |
Interface | I2C |
Compatibility | mikroBUS |
Click board size | M (42.9 x 25.4 mm) |
Input Voltage | 3.3V |
PINOUT DIAGRAM
This table shows how the pinout of the LSM303AGR Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | ![]() |
Pin | Notes | |||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | NC | ||
NC | 2 | RST | INT | 15 | INT | Interrupt | |
NC | 3 | CS | TX | 14 | NC | ||
NC | 4 | SCK | RX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | SCL | I2C clock | |
NC | 6 | MOSI | SDA | 11 | SDA | I2C data | |
Power supply | +3.3V | 7 | 3.3V | 5V | 10 | NC | |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
Additional Notes and Information
Depending on the development board you are using, you may need USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
Software Support
MIKROSDK
The LSM303AGR Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant click board demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
LSM303AGR Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.