This part has a page of its own, with a note on using it and a circuit to try: the part page.
Diğer adları: LSM6DS, LSM6DS33, LSM6DSO, Adafruit LSM6DSOX, altı eksenli IMU. Yeni Adafruit ve Arduino kartlarının hareket sensörüdür: MPU6050'den daha düşük gürültü ve kendi başına bir makine öğrenmesi çekirdeği var, modelde bu dahil edilmez.
Pins
| Pin | Ne yapar |
|---|---|
VIN, GND |
Besleme, kartta 3 ila 5 V. |
SCL, SDA |
I2C. Pull-up dirençleri kartın üzerindedir. |
INT1, INT2 |
Kesmeler, modelde high-Z bırakılır. |
Özellikler
address, 0x6A veya 0x6B'dir. pitch, roll ve heading kartın nasıl durduğudur; üç kaydırıcı kartı eğer ve döndürür, bir kaydırıcı hareket ederken jiroskop hızı okur.
Arduino üzerinde okumak
Mokxi'nin Adafruit_LSM6DSOX.h olarak sunduğu Adafruit kütüphanesiyle:
#include <Adafruit_LSM6DSOX.h>
Adafruit_LSM6DSOX sox;
void setup() {
Serial.begin(9600);
sox.begin_I2C();
}
void loop() {
sensors_event_t accel, gyro, temp;
sox.getEvent(&accel, &gyro, &temp);
Serial.println(accel.acceleration.z); // 9.81 flat on the bench
delay(200);
}
Nasıl konuşur
WHO_AM_I (0x0F) reads 0x6C. CTRL1_XL (0x10) and CTRL2_G (0x11) set each
sensor's data rate (zero is off, the reset) and range; CTRL3_C (0x12) has the reset
bits and IF_INC, which steps the address. At each sample STATUS_REG (0x1E) flags
new data, and the outputs follow: the temperature at 0x20, the gyroscope at 0x22
and the accelerometer at 0x28, low byte first. For 10 ms after power-on it boots and
does not answer.
Modellemediği şeyler
FIFO, gömülü işlevler (adımsayar, dokunuş, eğim, makine öğrenmesi çekirdeği), kesme pinleri, filtreler, gürültü ve ofsetler.
Common mistakes
Reading zeros: both sensors power up off until a data rate is written. Reading a gyroscope that never moves: it reads a rate, so it is zero whenever the board is still.