01-29-2022 09:17 AM
The one I use is MPU-9250.
The data I want to read with NI-Myrio is as follows
1-Accelerometer 3 axis
2-Gyroscope 3 axis
3-Magnetometer 3 axis
4-Temperature
After reading all this information, I converted it to Pitch, roll information. But I want to read Compass information in addition. I think magnetometer information is required for this. but the problem is that I can't read the Magnetometer information fast.
In addition, I think I cannot read the pitch roll information correctly because the pitch roll angles affect each other. If the pitch has a slope of more than 90 degrees, the roll information changes.
Is there anyone who can help with this?
Attached below is what I'm working on
Any opinion given is worthy of respect
01-30-2022 08:06 PM
Hello, again, and welcome to the Exciting World of Rotations, and movable Coordinate Frames. Here are a couple of points you might have missed:
Some other things to consider:
Bob Schor
01-30-2022 09:21 PM
There are excellent references to the information you ask about in Dr. Doering's articles (check the references he cites).
Bob Schor
01-31-2022 01:12 AM
Hello, thanks for your answer.Bob_Schor
I am trying a new example to read magnetometer information in addition to accelerometer, gyroscope information. I'm still trying to read data from sensors using SPI. I found a new example. Serial connection to Myrio was lost while trying to read information from sensor using SPI. I cannot reconnect to myrio without restarting myrio. What do you think could be the cause of this problem?
Below is the example I used.
If I can fix this problem I will work on the next steps again.
02-04-2022 12:02 PM
Is this the same code that @IllinoisControl shared in the Academic Forum in 2014? Looks like it ...
You do know, I presume, why the myRIO stopped -- there was an Error somewhere that stopped the top Timed Loop (but why didn't the bottom Timed Loop prevent the Frame Sequence from executing the Reset myRIO?). So the culprit is either "Initialize_Loop" or "Read_Data" (why did I leave out "Process Graph"?).
Now you can learn a little about debugging LabVIEW code. Here are three things you should look up and learn about that may be helpful:
You can also go to LabVIEW Help and search for "Debugging". Look for the entry "Debugging Techniques" in location "Concepts".
Bob Schor
02-09-2022 05:30 AM
I think the problem was that the VI was using too much CPU causing overheating. After deleting the extra representations in the code, the problem was solved.
thank you for the answer.Bob_Schor
But on other issues in general. I'm working using different methods.
02-09-2022 09:28 PM
@constructionworker wrote:
I think the problem was that the VI was using too much CPU causing overheating.
Overheating? From a 9-axis MPU running on 3V power and 9 channels of SPI or I²C? I don't believe temperature is a factor here. But then I don't really know how hard your myRIO is running -- how many channels (9?) are you sampling, how fast, and for how long? What are you using to power your myRIO? I think its power consumption is pretty modest (I've run it off batteries) ...
Bob Schor