Accelerometer with ESP-IDF using I2C

JayK_2000
Posts: 1
Joined: Tue Jan 24, 2023 7:44 am

Accelerometer with ESP-IDF using I2C

Postby JayK_2000 » Tue Jan 24, 2023 7:52 am

I need to interface my LSM6DS33 with ESP32 Devkit V1 in ESP-IDF(not in Arduino IDE) for getting accelerometer values, using "I2C". Please help me with the code.

bidrohini
Posts: 202
Joined: Thu Oct 27, 2022 12:55 pm

Re: Accelerometer with ESP-IDF using I2C

Postby bidrohini » Wed Jan 25, 2023 1:24 pm

Could not find any code for LSM6DS33. But here is a ESP-IDF driver for LIS3MDL https://github.com/gschorcht/lis3mdl-esp-idf
This may help to some extent. However, if you consider using a simpler 3-axis accelerometer, you can try ADXL335
https://www.pcbway.com/project/sharepro ... eca92.html

User avatar
mbratch
Posts: 303
Joined: Fri Jun 11, 2021 1:51 pm

Re: Accelerometer with ESP-IDF using I2C

Postby mbratch » Thu Jan 26, 2023 8:27 pm

Have you looked at the ESP-IDF I2C example programs, and checked the documentation for your specific device for I2C address and commands, etc? It's not clear what specific kind of help you're looking for.

Who is online

Users browsing this forum: Majestic-12 [Bot] and 102 guests