I'm currently working on a school project that requires me to measure acceleration. In order to do so, we are using the LSM9DS1 9-DOF accelerometer/gyroscope/magnetometer and an ESP32 microcontroller. We wish to connect the two using ESPEasy. All three components are mandatory (request of our client). However, there is no ESPEasy Plugin for this accelerometer. Therefore, we took the ESPEasy Plugin for the MPU6050 accelerometer and tried modifying it to work with the LSM9DS1. Here are the changes we implemented:
-Modification of the addresses for the registers (according to our accelerometer data sheet)
-Adjustment of the buffers according to the bytes format of our data (also taken from the data sheet)
The plugin that we've modified works, but only if we have used the accelerometer and microcontroller with Arduino IDE before hand. If we reset the controller and then try the plugin once again it returns 0 for the readings of the pins (we put an addLog in this section to see the output). It's as if the pins need to be activated (which Arduino would do, but our plugin doesn't do?)....
I'm not quite sure what to make of it. Any help would be appreciated
