Hello,
I am trying to connect an Arduino Mega 2560 to a DK-42670-P to read the sensor data using SPI.
Therefore I do not need the Main MCU and debug features of the devkit, I basically just want to use the devkit as a breakout board to connect the sensor to the arduino.
I have connected the 4 SPI wires according to the pin documentation of the boards. I have used the J4 pin which are designated for the SPI interface.
Then I just have copied the example code you provided on github:
https://github.com/tdk-invn-oss/motion.arduino.ICM42670P/tree/main/examples/Polling_SPI
When running the program i get an error -4 which is some kind of timeout according to the code commentary.
What do I have to do to access the sensor on the kit via SPI using the J4 pins?
Thanks for helping
Hello,
Did you check this? https://github.com/tdk-invn-oss/motion.arduino.ICM42670P/issues