SparkFun Forums 

Where electronics enthusiasts find answers.

Hardware or product specific questions are best asked here.
User avatar
By sulhelka
#218690
Hi to all!

I have just bought a Red Openlog Artemis to migrate from the Razor IMU M0, what I was doing with the razor is a custom code to read the values from the in built MPU9250 and trigger an action depending the values. The problem I have right now is I am unable to get the values from the inbuilt ICM 20948 using custom code and the Sparkfun_ICM-20948_Arduino library via SPI, It allways shows the "Wrong ID" message at activation when I load the Example1_Basic sketch (uncommenting the SPI line).

Thanks.
User avatar
By PaulZC
#218703
Hi @sulhelka,
Have you enabled power for the IMU? You will need to replicate the imuPowerOn command in your custom code:
https://github.com/sparkfun/OpenLog_Art ... #L468-L477
Also, please see:
https://github.com/sparkfun/OpenLog_Art ... #L617-L687
Please make sure you are using the correct Chip Select pin for the IMU:
https://github.com/sparkfun/OpenLog_Art ... s.ino#L109
Finally, please select Redboard Artemis ATP (from the SparkFun Apollo3 boards) as the board type when compiling the code.
Please let us know if this fixes your issue.
Best wishes,
Paul
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]