Added IMU/MEMS sensor support. #356
kdschlosser
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is a cool feature that I added. IMU/MEMS sensors are quite complicated little IC's. There are 2 main variations, 6DOF and 9DOF. DOF = Degrees of Freedom. so 6 DOF is a 6 axis sensor and a 9DOF is a 9 axis sensor. a 6DOF provides spacial data to be able to calculate roll and pitch and 9DOF is roll, pitch and yaw (heading). The data that comes from these sensors needs to run through really complex equations called "fusion" in order to turn the raw sensor data into numbers that make sense. Think of an airplane and it flying. If the plane is flying perfectly level in all directions and flying straight north the roll, pitch and yaw are all going to be 0. of the roll is to the left or the pitch is nose down or the plane heads in a north west direction the numbers will read in the negative and if the roll is to the right the pitch is nose up and the heading is more to the east the numbers will read in the positive.
By using those numbers we are able to handle the rotation of the UI on the display. There is also a special mode for round displays that are small and would be used as a smart watch.
I need some people to help me test it out. I don't have a display with an IMU/MEMS sensor built into it so I am not able to test it. If there is anyone will to lend a hand with that aspect of it lemme know. The first bit of information I need is the model number of the IMU/MEMS sensor so I can write a driver for it.
Beta Was this translation helpful? Give feedback.
All reactions