2022-03-21 02:09 PM
Hello,
I am facing a problem while using STEVAL-MKI197V1(https://www.st.com/en/evaluation-tools/steval-mki197v1.html) with Raspberry pi 2 and try to fetch the accelerometer values.
I am not able to interface this with Raspberry pi 2. I am using python language for scripting. I am curious if they is anything to be done before interfacing (such as downloading the libraries compatible with Raspberry pi). Since I am new to this process, I would like to know what would be the best approach to interface this sensor and fetch the accelerometer values using python language in Raspberry pi. It would be of great help if anyone has any reference on this and is happy to share.
Thanks
2022-04-22 06:56 AM
Hi @Suprith ,
You can use standard Python I2C / SPI drivers for communicating with the STEVAL-MKI197V1.
But probably it is better to look for help on Raspberry pi / Python forum...
-Eleon
2022-04-22 10:30 AM
@Suprith
First and the foremost things is you can connect vdd, gnd, i2c-clk,i2c-data ( sda line connected to vdd - optional but you can do it externally) and then on raspberry pi install the i2c-tools : https://www.waveshare.com/wiki/Raspberry_Pi_Tutorial_Series:_I2C
and run i2cdetec -y 1 or i2cdetect -y 0 to see the address is displayed.
if it shows some address (8 bit address of the sensors) your hardware setup is up.
then use python APIs to read the data or i2c-tools APIs to read and write the register
If this works then move on to python development and follow Raspberry PI forums.You will get many references.
Br,