Accelerometer with ESP-IDF using I2C
Posted: Tue Jan 24, 2023 7:52 am
by JayK_2000
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.
Re: Accelerometer with ESP-IDF using I2C
Posted: Wed Jan 25, 2023 1:24 pm
by bidrohini
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
Re: Accelerometer with ESP-IDF using I2C
Posted: Thu Jan 26, 2023 8:27 pm
by mbratch
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.