M5Stack Gray Development Kit: IMU - SD Karte



  • Hallo!
    Hat jemand bereits Erfahrung im Umgang mit dem verbauten IMU des M5Stacks? Ich würde gerne die Daten des IMU aufnehmen und dann auf einer SD-Karte abspeichern, um später erneut diese aufzurufen zu können, um sie weiter zu bearbeiten.

    Über eine Antwort würde ich mich freuen!

    Gruß Jan



  • @jsh after install ESP32 board and M5Stack lib in Arduino IDE. you could find the ESP32 SD example and IMU example. in the example list.



  • @m5stack
    Thank you for the answer!
    The example for the IMU works.
    The SD(esp32) example does not work on my M5Stack. So far I haven't found a way to save the data (using the command M5.IMU.getAccelData(&accX,&accY,&accZ);) to an SD card. Do I have to convert my data into a string to save it in a txt file or can I save the data directly as float variables?
    I also wanted to know if there is a command to display the acceleration data directly as a graph on the M5Stack display (and not just the value)?