# Title: LSM6DSL Click Board™ ## Description: The LSM6DSL Click Board™ measures linear and angular velocity with six degrees of freedom. It carries the LSM6DSL high-performance 3-axis digital accelerometer and 3-axis digital gyroscope. The click is designed to run on a 3.3V power supply. The LSM6DSL Click Board™ communicates with the target microcontroller over SPI or I2C interface, with additional functionality provided by the INT pin on the mikroBUS™ line. Mode 1: I2C slave interface or SPI serial interface is available. Mode 2: I2C slave interface, or SPI serial interface and I2C interface master for external sensor connections, are available. LSM6DSL INERTIAL MODULE FEATURES The LSM6DSL is a system-in-package featuring a 3D digital accelerometer and a 3D digital gyroscope performing at 0.65 mA in high-performance mode and enabling always-on low-power features for an optimal motion experience. The event-detection interrupts enable efficient and reliable motion tracking and contextual awareness, implementing hardware recognition of free-fall events, 6D orientation, click and double-click sensing, activity or inactivity, and wakeup events The LSM6DSL has a full-scale acceleration range of ±2/±4/±8/±16 g and an angular rate range of ±125/±245/±500/±1000/±2000 dps (degrees per second). SPECIFICATIONS Type Acceleration,Gyroscope,Motion Applications Motion tracking and gesture detection, indoor navigation, vibration monitoring and compensation, etc. On-board modules LSM6DSL Key Features Power consumption: 0.4 mA in combo normal and 0.65 mA in combo high-performance mode; hard, soft ironing for external magnetic sensor corrections Interface I2C,SPI 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 LSM6DSL 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 Programmable interrupt Chip select CS 3 CS TX 14 NC SPI clock SCK 4 SCK RX 13 NC Master input slave output MISO 5 MISO SCL 12 SCL I2C clock Master output slave input MOSI 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 JUMPERS AND SETTINGS Designator Name Default Position Default Option Description JP1 COMM SEL Left SPI Communication Interface Selection SPI/I2C, left position SPI, right position I2C JP2 COMM SEL Left SPI Communication Interface Selection SPI/I2C, left position SPI, right position I2C JP3 COMM SEL Left SPI Communication Interface Selection SPI/I2C, left position SPI, right position I2C JP4 INT SEL Left INT1 Interrupt selection INT1/INT2, left position INT1, right position INT2 JP5 COMM SEL Left SPI Communication Interface Selection SPI/I2C, left position SPI, right position I2C JP6 MODE SEL Left 1 Mode Selection 1/2, left position 1, right position 2 JP7 MODE SEL Left 1 Mode Selection 1/2, left position 1, right position 2 JP8 ADD SEL Left 0 I2C slave address selection 0/1, left position 0, right position 1 ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, MikroE, Motion, Sensor ## Price range: 12.6 - 12.6 GBP ## Link: https://thedebugstore.com/products/mikroe-2731-lsm6dsl-click-board-uk ## Compare-at price range: 18.0 - 18.0 GBP ## Options - Title: Default Title ## Collections - [New Products](https://thedebugstore.com/a/llms/collections/new-products-debug-store) - [Mikroelektronika d.o.o. (MikroE)](https://thedebugstore.com/a/llms/collections/mikroelektronika-catalogue-uk) - [Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/sensor-click-boards-catalogue) - [MikroE Click Boards™](https://thedebugstore.com/a/llms/collections/mikroe-click-boards-catalogue-uk) - [Motion Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/motion-sensor-click-boards-catalogue) - [Click Boards™ Summer Sale](https://thedebugstore.com/a/llms/collections/inventory-sale) - [MikroE Sale](https://thedebugstore.com/a/llms/collections/mikroe-sale) - [MIKROE Stock](https://thedebugstore.com/a/llms/collections/mikroe-products-in-stock-sale) ## Variants - Default Title, SKU: MIKROE-2731, Available: yes, Inventory: 1 ## Metafields - full_description:
The LSM6DSL Click Board™ measures linear and angular velocity with six degrees of freedom. It carries the LSM6DSL high-performance 3-axis digital accelerometer and 3-axis digital gyroscope. The click is designed to run on a 3.3V power supply. The LSM6DSL Click Board™ communicates with the target microcontroller over SPI or I2C interface, with additional functionality provided by the INT pin on the mikroBUS™ line.

Mode 1: I2C slave interface or SPI serial interface is available.
Mode 2: I2C slave interface, or SPI serial interface and I2C interface master for external sensor connections, are available.

The LSM6DSL is a system-in-package featuring a 3D digital accelerometer and a 3D digital gyroscope performing at 0.65 mA in high-performance mode and enabling always-on low-power features for an optimal motion experience.

The event-detection interrupts enable efficient and reliable motion tracking and contextual awareness, implementing hardware recognition of free-fall events, 6D orientation, click and double-click sensing, activity or inactivity, and wakeup events
The LSM6DSL has a full-scale acceleration range of ±2/±4/±8/±16 g and an angular rate range of ±125/±245/±500/±1000/±2000 dps (degrees per second).
| Type | Acceleration,Gyroscope,Motion |
| Applications | Motion tracking and gesture detection, indoor navigation, vibration monitoring and compensation, etc. |
| On-board modules | LSM6DSL |
| Key Features | Power consumption: 0.4 mA in combo normal and 0.65 mA in combo high-performance mode; hard, soft ironing for external magnetic sensor corrections |
| Interface | I2C,SPI |
| Compatibility | mikroBUS |
| Click board size | M (42.9 x 25.4 mm) |
| Input Voltage | 3.3V |
This table shows how the pinout of the LSM6DSL 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 | Programmable interrupt | |
| Chip select | CS | 3 | CS | TX | 14 | NC | |
| SPI clock | SCK | 4 | SCK | RX | 13 | NC | |
| Master input slave output | MISO | 5 | MISO | SCL | 12 | SCL | I2C clock |
| Master output slave input | MOSI | 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 |
| Designator | Name | Default Position | Default Option | Description |
|---|---|---|---|---|
| JP1 | COMM SEL | Left | SPI | Communication Interface Selection SPI/I2C, left position SPI, right position I2C |
| JP2 | COMM SEL | Left | SPI | Communication Interface Selection SPI/I2C, left position SPI, right position I2C |
| JP3 | COMM SEL | Left | SPI | Communication Interface Selection SPI/I2C, left position SPI, right position I2C |
| JP4 | INT SEL | Left | INT1 | Interrupt selection INT1/INT2, left position INT1, right position INT2 |
| JP5 | COMM SEL | Left | SPI | Communication Interface Selection SPI/I2C, left position SPI, right position I2C |
| JP6 | MODE SEL | Left | 1 | Mode Selection 1/2, left position 1, right position 2 |
| JP7 | MODE SEL | Left | 1 | Mode Selection 1/2, left position 1, right position 2 |
| JP8 | ADD SEL | Left | 0 | I2C slave address selection 0/1, left position 0, right position 1 |
The LSM6DSL Click Board™ measures linear and angular velocity with six degrees of freedom. It carries the LSM6DSL high-performance 3-axis digital accelerometer and 3-axis digital gyroscope. The Click is designed to run on a 3.3V power supply. LSM6DSL Click communicates with the target microcontroller over SPI or I2C interface, with additional functionality provided by the INT pin on the mikroBUSline.
.
Mode 1: I2C slave interface or SPI serial interface is available.
Mode 2: I2C slave interface, or SPI serial interface and I2C interface master for external sensor connections, are available.
.
The LSM6DSL is a system-in-package featuring a 3D digital accelerometer and a 3D digital gyroscope performing at 0.65 mA in high-performance mode and enabling always-on low-power features for an optimal motion experience.
The event-detection interrupts enable efficient and reliable motion tracking and contextual awareness, implementing hardware recognition of free-fall events, 6D orientation, Click and double-Click sensing, activity or inactivity, and wakeup events .
The LSM6DSL has a full-scale acceleration range of
- amazon_main_image: https://www.thedebugstore.com/images/product/lg-lsm6dsl-click-board.jpg - amazon_browse_node: 428655031 - mpn: MIKROE-2731 - backorder_label: If no stock shown above, check availability - badge: - widget:Code examples for the LSM6DSL Click Board™, written for MikroElektronika hardware and compilers are available on Libstock.
The following code snippet initializes the module, the driver, and peripherals, and then outputs the measured data to UART every two seconds.
01 void main()
02 {
03 char txt [100];
04 float x,y,z;
05
06 systemInit();
07 LSM6DSL_initDriver(SPI3_Write, SPI3_Read);
08 UART1_Write_Text ("rnInitialized");
09
10 /*
11 * Starts measurements for acceleration and rotation at specified
12 * rate (104 HZ) and selected full-scale (+-2G, +-245DPS).
13 */
14 LSM6DSL_configureRead (CONFIG_ACCELERATION, ODR_104_HZ | FULLSCALE_A_2);
15 LSM6DSL_configureRead (CONFIG_ROTATION, ODR_104_HZ | FULLSCALE_R_245);
16 while( 1 )
17 {
18 UART1_Write_Text ("rnrnAcceleration values in mili-Gs:");
19 LSM6DSL_readAccelerationXYZ (&x, &y, &z, FULLSCALE_A_2);
20 sprintf (txt, "rnX: %.2f, t Y:%.2f, t Z: %.2f", x,y,z);
21 Uart1_Write_Text (txt);
22
23 UART1_Write_Text ("rnRotation values in degrees per second:");
24 LSM6DSL_readRotationXYZ (&x, &y, &z, FULLSCALE_R_245);
25 //Values are read in mili-degrees per second, so they need to be divided by 1000
26 sprintf (txt,
27 "rnPitch: %.2f, t Roll:%.2f, t Yaw: %.2f", x/1000,y/1000,z/1000);
28 Uart1_Write_Text (txt);
29
30 delay_ms (2000);
31 }
32 }
- attachments: [{"download_file":[{"download_file":"LSM6DSL Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]}]
- device_vendor: STMicroelectronics
- device_type: LSM6DSLTR
- warranty: 12 months
- brand: MikroE
- manufacturer: Mikroelektronika d.o.o.
- brands: gid://shopify/Metaobject/56256004319
- breadcrumbs: ["gid://shopify/Collection/447955239135","gid://shopify/Collection/241680580797","gid://shopify/Collection/241545969853"]
- customhs_code: 847330
- detailed_description: {"type":"root","children":[{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"LSM6DSL Click Board™","bold":true,"italic":true},{"type":"text","value":" measures linear and angular velocity with six degrees of freedom. It carries the LSM6DSL high-performance 3-axis digital accelerometer and 3-axis digital gyroscope. The click is designed to run on a 3.3V power supply. The "},{"type":"text","value":"LSM6DSL Click Board™","bold":true},{"type":"text","value":" communicates with the target microcontroller over SPI or I2C interface, with additional functionality provided by the INT pin on the mikroBUS™ line."},{"type":"text","value":""},{"type":"text","value":""},{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"Mode 1","bold":true},{"type":"text","value":": I2C slave interface or SPI serial interface is available."}]},{"type":"paragraph","children":[{"type":"text","value":"Mode 2","bold":true},{"type":"text","value":": I2C slave interface, or SPI serial interface and I2C interface master for external sensor connections, are available."},{"type":"text","value":""},{"type":"text","value":""},{"type":"text","value":""}]},{"type":"heading","level":3,"children":[{"type":"text","value":"LSM6DSL INERTIAL MODULE FEATURES"}]},{"type":"paragraph","children":[{"type":"text","value":"The LSM6DSL is a system-in-package featuring a 3D digital accelerometer and a 3D digital gyroscope performing at "},{"type":"text","value":"0.65 mA","bold":true},{"type":"text","value":" in high-performance mode and enabling always-on low-power features for an optimal motion experience."},{"type":"text","value":""},{"type":"text","value":""},{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"The event-detection interrupts enable efficient and reliable motion tracking and contextual awareness, implementing hardware recognition of free-fall events, 6D orientation, click and double-click sensing, activity or inactivity, and wakeup events"}]},{"type":"paragraph","children":[{"type":"text","value":"The LSM6DSL has a full-scale acceleration range of ±2/±4/±8/±16 g and an angular rate range of ±125/±245/±500/±1000/±2000 dps (degrees per second)."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Type\nAcceleration,Gyroscope,Motion\nApplications\nMotion tracking and gesture detection, indoor navigation, vibration monitoring and compensation, etc.\nOn-board modules\nLSM6DSL\nKey Features\nPower consumption: 0.4 mA in combo normal and 0.65 mA in combo high-performance mode; hard, soft ironing for external magnetic sensor corrections\nInterface\nI2C,SPI\nCompatibility\nmikroBUS\nClick board size\nM (42.9 x 25.4 mm)\nInput Voltage\n3.3V"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"PINOUT DIAGRAM"}]},{"type":"paragraph","children":[{"type":"text","value":"This table shows how the pinout of the "},{"type":"text","value":"LSM6DSL Click Board™","bold":true},{"type":"text","value":" corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns)."}]},{"type":"paragraph","children":[{"type":"text","value":"Notes\nPin\nPin\nNotes\nNC\n1\nAN\nPWM\n16\nNC\nNC\n2\nRST\nINT\n15\nINT\nProgrammable interrupt\nChip select\nCS\n3\nCS\nTX\n14\nNC\nSPI clock\nSCK\n4\nSCK\nRX\n13\nNC\nMaster input slave output\nMISO\n5\nMISO\nSCL\n12\nSCL\nI2C clock\nMaster output slave input\nMOSI\n6\nMOSI\nSDA\n11\nSDA\nI2C data\nPower supply\n+3.3V\n7\n3.3V\n5V\n10\nNC\nGround\nGND\n8\nGND\nGND\n9\nGND\nGround"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"JUMPERS AND SETTINGS"}]},{"type":"paragraph","children":[{"type":"text","value":"Designator\nName\nDefault Position\nDefault Option\nDescription\nJP1\nCOMM SEL\nLeft\nSPI\nCommunication Interface Selection SPI/I2C, left position SPI, right position I2C\nJP2\nCOMM SEL\nLeft\nSPI\nCommunication Interface Selection SPI/I2C, left position SPI, right position I2C\nJP3\nCOMM SEL\nLeft\nSPI\nCommunication Interface Selection SPI/I2C, left position SPI, right position I2C\nJP4\nINT SEL\nLeft\nINT1\nInterrupt selection INT1/INT2, left position INT1, right position INT2\nJP5\nCOMM SEL\nLeft\nSPI\nCommunication Interface Selection SPI/I2C, left position SPI, right position I2C\nJP6\nMODE SEL\nLeft\n1\nMode Selection 1/2, left position 1, right position 2\nJP7\nMODE SEL\nLeft\n1\nMode Selection 1/2, left position 1, right position 2\nJP8\nADD SEL\nLeft\n0\nI2C slave address selection 0/1, left position 0, right position 1"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]}
- summary: The LSM6DSL Click Board™ measures linear and angular velocity with six degrees of freedom. It carries the LSM6DSL high-performance 3-axis digital accelerometer and 3-axis digital gyroscope. The Click Board™ is designed to run on a 3.3V power supply.
The LSM6DSL Click Board™ communicates with the target microcontroller over SPI or I2C interface, with additional functionality provided by the INT pin on the MikroBUS line.