My ADcmXL3021 with Raspberry pi 4.
And use python code
My ADcmXL3021 with Raspberry pi 4.
And use python code
Interesting development you have here. Although support from 'Analog Devices' is non-existent. Have to consider using different controller than raspberry pi? I have been working on raspberry pi 4 and after a week of struggle, I decided to check the SPI output of EZUSB-FX3 and the evaluation software provided by analog devices and found out that the control frequency is about 14MHz and somehow the output format for cs, sclk and MOSI is very different than of spidev of raspberry pi module. The SYNC/RTS pin also enabled throughout the read process in the eval software. I tried to emulate the similar spi behavior using python and spidev and GPIO pins but somehow the reads are always zeros.
I believe that it has something to do with the SCLK frequency. Have you ever got your code to work? Me with my limited knowledge of visual basic. It's almost impossible for me to reverse engineering the evaluation program source code provided on GitHub. Worst case scenario a c++ source code for fx3 controller would have been easier for developers to understand.
Wish you all the best.
Hi,
I've written an application for the Raspberry Pi to do vibration measurement in C++. This might be a good starting point to adapt it to your needs. The source code can be found on: https://github.com/jolau/VibrationDAQ
Best,
Jonas
Hello Kumarpmc. I know my reply is too late, but thought it might be useful for others who run into the same issue later.
For me too, all the reads are always zero. I have also check my SPI signals (SCK, CS and MOSI) and everythign is perfectly fine. But I tried resetting the sensor by holding the RESETn pin low for enough time (Check datasheet for exact timing) and then performed SPI transactions. I was successfully able to communicate with the sensor.
I hope this helps anyone.
Thanks & Regards.