当前位置:网站首页>Summary of some usage methods of mpu6050
Summary of some usage methods of mpu6050
2022-07-16 06:54:00 【Creator_ v】
Refer to others' posts MPU6050 Some usage methods
In the use of MPU6050 There are some problems in the process , About online MPU6050 Although there are many materials , But it's hard to find a way to solve the problem you want , Learn from others' methods here , Make some summary , Mainly about azimuth matrix and DMP Attitude solution .
Azimuth matrix
First, provide a document about the azimuth matrix in the attachment , It's very detailed , Here is to say in “inv_mpu.c” Only the gyro azimuth matrix is provided in the document , Probably 2866 Right and left of the line , My own experiment found that I changed the azimuth matrix ( Different matrix ), All conform to the axial direction in the document as 1g、 And the gyroscope output data of the right-hand rule is positive , Because there is no time to study the source code , Plus the ability is limited , So I don't know the specific principle . When I use it, I compare the azimuth matrix of the gyroscope with PCB The azimuth matrix on the board is the same , Of course, it is based on the location , It's obviously different to put it horizontally and vertically . I also hope someone can read the article if they know what's going on , You can contact me and tell me the specific principle , After all, it took a long time to figure out what was going on .
Absolute angle and relative angle
There is a self checking function under the gyro azimuth matrix , stay mpu_get_accel_sens(&accel_sens); Add... Below *accel_sens = 0;* The relative angle becomes the absolute angle , I don't understand the specific principle , But it really can , According to the meaning of others' posts, it is probably to clear the absolute horizontal calibration value obtained 0. But what are the disadvantages of doing this is still unclear .
Change the initialization direction to suit the placement position
About 2149 Row left and right position , There is a passage /* Don’t remove gravity!*/,accel[2] Inside 2 yes Z Axis means , It means to place horizontally ,Z The axis can be initialized successfully when it is upright , If you stand up, you have to write 1 perhaps 0 了 (0:x Axis \1:y Axis \2:z Axis ), This is also what others see in their posts , It seems that I can really , The same specific principle , Don't understand, !
The above is all about MPU6050 Some problems encountered in the process of using , Hope to help people who encounter the same problem , I also hope that the boss can supplement the article and explain the relevant principles after seeing it .
The attachment
边栏推荐
- stm32用较简单的方法控制许许多多的灯实现流水效果
- Embedded software development stm32f407 key input standard library version
- [introduction to go language] 10 go language map details
- Use of functions with variable length parameters (C language < stdarg. H>)
- Virtual memory location structure (reserved area, code area, stack area, heap area, literal constant area) and variable modifiers (const, auto, static, register, volatile, extern)
- Pagoda panel creates multiple port deployment projects under the same server (lightweight application server one click deployment website, blog, gltlab full version)
- SQL basics 1
- [Go语言入门] 10 Go语言Map详解
- Keil5 software reports error: l6406e: no space in execution regions with ANY selector matching xxx
- [go language introduction] 13 go language interface details
猜你喜欢
![[introduction to go language] 05 go language branch statement](/img/cb/9830418c0e14b40fb15cfb68966426.png)
[introduction to go language] 05 go language branch statement
![[hbuilderx development uniapp] automatic code formatting plug-in installation and configuration](/img/84/b32cd4e4a63a040a0edca961fe4d89.png)
[hbuilderx development uniapp] automatic code formatting plug-in installation and configuration
![[signal conditioning] ADC protection circuit /adc buffer](/img/33/a9d1a6b2e25bfa72cfb04aec8a5490.png)
[signal conditioning] ADC protection circuit /adc buffer

pyopencv基础操作指南

Chapter I use of DHT11 temperature and humidity sensor

Friendly zeropi uboot, kernel compilation,

SQL基础1

C language bit operation (applicable to the operation of MCU registers)

Redis is the fastest to get started in history (attach redis on ECs)

vscode插件安装介绍
随机推荐
寶塔面板在同一服務器下創建多個端口部署項目(輕量應用服務器一鍵部署網站、博客、GltLab完整版)
Embedded software development stm32f407 running lantern Hal library version
Go language websocket library gorilla websocket
General commands of MATLAB
[Go语言入门] 04 Go语言运算符
2022.6.24~2022.8.26 假期学习计划
数据库黑马笔记DDL
ROS command
数组扁平化实现
Customize and modify the width and height of the van button in the van weap component library
How to set the Internet function of raspberry pie
Go language from entry to specification -6.8, go generation and parsing JSON and precautions
OpenGL 3D graphics development notes, terrain, lighting, shadows, etc
黑马数据库笔记DCL
Typescript basic configuration tutorial (automatically compiled in vscode)
多个else if嵌套时的作用域
[Go语言入门] 12 Go语言结构体(struct)详解
四舍五入,向下取整,向上取整的使用
树莓派系统镜像的下载和烧录
Introduction to vscode plug-in installation