Post Go back to editing

ADICUP 360 with ADXL-355-PMDZ

Hi everyone,

I am using an ADICUP360 with ADXL355-PMDZ. I am currently using the example code provided by Analog Devices to take acceleration readings from the accelerometer. I have two main questions and I would be delighted if anyone of you could help me with that:

1. I want to increase the resolution of ADC. (Currently, I am getting an acceleration reading upto 1 decimal point and I want to get it upto 7-8 decimal point). Also, could you point out where can I change the code for it.

2. How can I add delay between two lines of main code? I need a detailed explanation for this question since there is nothing available on the internet about ADICUP timers and delays.

Thank You.

Hi,

1)  At the end of the main.c file you need to change the precision of the float number representation.  "%.2f"  needs to be "%.6f" and that should do it for you.

2) A delay can be added using the timer function.  I'm not sure if this is included in teh ADXL355 project at the moment, but i did find another project using the ADICUP360 that has it, and its accompaning source code up on Github.  Please have a look at this C file here (https://github.com/analogdevicesinc/EVAL-ADICUP360/blob/master/projects/ADuCM360_demo_cn0337/src/Timer.c )  and you will also need the header file which is also in the project structure here (https://github.com/analogdevicesinc/EVAL-ADICUP360/blob/master/projects/ADuCM360_demo_cn0337/include/Timer.h )