⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
Athul valsan
Offline
Last seen:1 year 12 months ago
加入:2019-02-07 10:53
Accelerometer

What are the changes needed for ADXL345 accelerometer (西南的例子:一个I2C acceleromet阅读er and sending notification data) code to make LSM6DS3 accelerometer code.?

Device:
PM_Dialog
Offline
Last seen:22 hours 49 min ago
Staff
加入:2018-02-08 11:03
Hi Athul valsan,

Hi Athul valsan,

As I have already let you know, this software example is based on ADXL345 accelerometer and if you check the source code you will see that there is an appropriate library for this reason, and it is according to ADXL345 datasheet. If you would like to use the LSM6DS3, you should use the library from this accelerometer, import it into the project and the check from the datasheet how to initialize, reading the values etc according to its datasheet. You have not used this accelerometer, so we don’t have any library for this. The implementation is up to you and it’s not straight-forward changes to this project.

Thanks, PM_Dialog