kriswiner / LSM9DS1

ST's new smaller, lower-power 9-axis motion sensor
40 stars 28 forks source link

images #1

Open kriswiner opened 9 years ago

kriswiner commented 9 years ago

lsm9ds1

sverdlovsk commented 9 years ago

What do you think about this part? How is it in compare with mpu-9250? Thanks.

kriswiner commented 9 years ago

The LSM9DS0/1 are fine 9-axis motion sensors. The DS1 has higher mag resolution than the DS0, but fewer interrupts and reduced environmental detection (portrait/landscape, tap/double tap, etc) functionality. They both have higher accel and mag resolution than the MPU9250. For pure orientation detection, they are all about the same. The MPU9250 has the DMP, which I never use. The MPU9250 is smaller and lower cost, although the LSM9DS1 is pretty close in both attributes. Like everything else, the choice depends on your application. I use all three and love them all! BTW, I have fully-functional Arduino/Teensiduino sketches for all three.

The MS5611 is simply the finest altimeter I have ever used at any price.

federovsky commented 8 years ago

Hi kriswiner,

I have a custom board with LSM9DS1 from ST, and I would like to make use of Tap/Click functionality. As you mentioned, it doesn't seem to have specific registers for Tap/Click functionality (like separate interrupt, CLICK_* registers etc). Did you manage to make the tap/click functionality work? Will you give me some references?

Thanks!

kriswiner commented 8 years ago

There are no dedicated tap or click registers but none are needed. You can define low and high accel and gyro thresholds and generate an interrupt when one is exceeded, and you can read which type of condition set off the interrupt, etc. so you can interpret the motion as you like. In other words, it is only slightly different than the LSM9DS0 and might require a bit more work, but just a bit.

-----Original Message----- From: federovsky [mailto:notifications@github.com] Sent: December 14, 2015 12:38 AM To: kriswiner/LSM9DS1 Cc: Kris Winer Subject: Re: [LSM9DS1] images (#1)

Hi kriswiner,

I have a custom board with LSM9DS1 from ST, and I would like to make use of Tap/Click functionality. As you mentioned, it doesn't seem to have specific registers for Tap/Click functionality (like separate interrupt, CLICK_* registers etc). Did you manage to make the tap/click functionality work? Will you give me some references?

Thanks!

Reply to this email directly or view it on GitHub https://github.com/kriswiner/LSM9DS1/issues/1#issuecomment-164378217 . https://github.com/notifications/beacon/AGY1qiHa9ZonP8vnUVDDSZ0WiKbiTDdpks5 pPndNgaJpZM4C6gT2.gif

federovsky commented 8 years ago

Hi,

I'm not sure that crossing low / high thresholds is enough. You can see in Figure 14 here: http://www.st.com/st-web-ui/static/active/en/resource/technical/document/application_note/CD00290365.pdf?s_searchtype=keyword that identifying click, requires a time window. I wonder it this can be implemented by setting high AND low thresholds, and identify click event only if both were crossed during X time.

Thanks.

kriswiner commented 8 years ago

Of course, you could just switch to the LSM9DS0 or MPU9250, then you wouldn't have to struggle so...

-----Original Message----- From: federovsky [mailto:notifications@github.com] Sent: December 14, 2015 11:28 PM To: kriswiner/LSM9DS1 Cc: Kris Winer Subject: Re: [LSM9DS1] images (#1)

Hi,

I'm not sure that crossing low / high thresholds is enough. You can see in Figure 14 here: http://www.st.com/st-web-ui/static/active/en/resource/technical/document/app lication_note/CD00290365.pdf?s_searchtype=keyword that identifying click, requires a time window. I wonder it this can be implemented by setting high AND low thresholds, and identify click event only if both were crossed during X time.

Thanks.

Reply to this email directly or view it on GitHub https://github.com/kriswiner/LSM9DS1/issues/1#issuecomment-164670792 . https://github.com/notifications/beacon/AGY1qjWNHRat0FDoQ9tSUbOq19R3Sl62ks5 pP7iYgaJpZM4C6gT2.gif