开发者

Invensense IMU3000 with microcontroller PIC

开发者 https://www.devze.com 2023-01-30 14:35 出处:网络
Has anybody experienced using the Invensense IMU3000 with some microcontroller? I am trying to build the IMU library for a PIC but I am stuck with the dependencies.. any other experience with others m

Has anybody experienced using the Invensense IMU3000 with some microcontroller? I am trying to build the IMU library for a PIC but I am stuck with the dependencies.. any other experience with others microcontrollers will be nice as well! Basically I don't get whether it is better to take the Visual Studio 2005 project and make the changes there, adding the PIC dependencies (I get stuck..) or开发者_Python百科 compile the whole library in the PIC environment..

Any hint, even with other platforms, would help!

Thank you all!


PC and PIC programming are so very different... Also there are so many pIC variants, they are hugely different from each other, it's hard to answer such an open ended question. However, basically you're writing mathematical algorithms. So write these as ansi c functions, hosted with a load of PC things (dialogs etc) and once they're working, you can move just the math functions over to the PIC - having already got a framework running on the PIC, ready to receive the algorithms. BUT - take care with memory. You have bags of it on the PC, you have to be mean with memory once you work on a PIC. Good luck, enjoy!


While it can be helpful to write code on the PC that will eventually move to the PIC, you will need to make sure that all code that will move has been written with portability in mind. That is, you cannot assume that code that compiles and works perfectly under Visual Studio will work without modification on any other platform.

To run in the PIC, all of the code must be compiled with cross development tools that are designed to target the PIC.

That said, I often develop algorithms and detailed processing code in the PC where a test suite can be easily used to verify its operation, and then recompile it for my target platform.

Incidentally, Google tells me that the IMU-3000 is a MEMS Gyro. It would probably be helpful to include at least the link to its data sheet in the question.

0

精彩评论

暂无评论...
验证码 换一张
取 消