Setting up the ADXL345 external library for Arduino

Robbert Lee
Robbert Lee Altair Community Member
edited April 2023 in Community Q&A

I want to use HIL on Embed to monitor the acceleration of the XYZ axis in real-time. The program runs correctly in the Arduino IDE environment, but I cannot convert the code to blocks in the Embed environment. Can you tell me how to set it up? Thank you.

Best Answer

  • Sreeram Mohan_20368
    Sreeram Mohan_20368
    Altair Employee
    edited April 2023 Answer ✓

    Hi Robert, 
    Could you please try the attached diagram. I have modified it to compile the ADXL354 looking at you originial diagram. Do not have a sensor to test it out but hoping this should work. 

    image

     

    --sreeram

Answers

  • Sreeram Mohan_20368
    Sreeram Mohan_20368
    Altair Employee
    edited April 2023 Answer ✓

    Hi Robert, 
    Could you please try the attached diagram. I have modified it to compile the ADXL354 looking at you originial diagram. Do not have a sensor to test it out but hoping this should work. 

    image

     

    --sreeram