File Exchange

image thumbnail

Super tiny IMU Orientation Visualizer

version 1.0.0.0 (9.85 KB) by Victor
A story of how an airplane passengers' lives were saved with these codes.

13 Downloads

Updated 11 Oct 2016

View License

This tiny, powerful Matlab program visualize 6DOF IMU orientation.
The light weight GUI covers two essential components of IMU Orientation Visualization, 3D visualization and 2D plotting.
3D panel:
Red box translates the current raw readings from IMU, it responses super fast even to noise.
About noise and Blue Box:
Such noise, which is not acceptable, corrupts data consistency and may lead to system failure if it is passed to control systems. Imagine this IMU is used on an airplane and suddenly it got a big roll reading, saying that your plane is upside down. Then the plane control system signals the ailerons to do crazy maneuvers to save the day, such false positive is crazy. By applying a tiny digital filter, the result is shown by the blue box right on top, we save the passengers.
2D plotting:
This plot is quite self explanatory, regarding 6DOF readings from IMU.
Easy codes:
Even better thing happens is that all codes was written with minimum amount of build-in functions, making it super easy to understand.
This open source codes solves theses puzzles:
1.How to receive and parse data from serial port?
2.If I want multiple variables to be sent from serial port, what format of data should I use?
3.How to plot and update data in real time.
4.How to draw 3D objects and rotate in real time.
5.How to connect these things with GUI.

For firmware codes on STM32 board, check this out:
https://mega.nz/#!gNx11Y4L!Qsk6tCyOjVJbbYrhFXyergC27Mvtc8VXurZfpHJETkE

HAPPY CODING~

Cite As

Victor (2020). Super tiny IMU Orientation Visualizer (https://www.mathworks.com/matlabcentral/fileexchange/50975-super-tiny-imu-orientation-visualizer), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

GeoMath

Duong Doan

Sory i don't run with m file.

program problem:

>> ReadFromSerialPort
Index exceeds matrix dimensions.

Error in ReadFromSerialPort>pushbutton1_Callback (line 137)
accX(j)=getSignedReading( reading(1), accX_offset);

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in ReadFromSerialPort (line 42)
gui_mainfcn(gui_State, varargin{:});

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)ReadFromSerialPort('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback

Duong Lee

thank yoou for share

COULD YOU PLEASE SEND ME SCRIPT CODE TO ramanatha476@gmail.com

COULD YOU PLEASE SEND ME SCRIPT CODE TO ramanatha476@gmail.com

Updates

1.0.0.0

update version

1.0.0.0

Updated STM32 download link

1.0.0.0

Updated Summary

1.0.0.0

Updated Summary

1.0.0.0

Updated description

1.0.0.0

Updated description

1.0.0.0

Updated description

1.0.0.0

Updated description

1.0.0.0

Updated description

1.0.0.0

Updated description

1.0.0.0

Updated Video Link

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags