极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

123
返回列表 发新帖
楼主: 江南

MPU6050计算角度

  [复制链接]
发表于 2015-4-28 20:03:35 | 显示全部楼层
大神,有没有用角加速度积分求出角度的程序?急求
回复 支持 反对

使用道具 举报

发表于 2015-5-3 23:46:24 | 显示全部楼层
楼主我怎么感觉这个姿态有无数种情况 ,当如楼主所示限定三个夹角的时候,实际情况姿态惠有无数种情况。举个最浅显的例子,水平放置z轴为1g加速度。这时候在水平面任意旋转加速度计,x轴y轴z轴都与自然坐标系成0度角。当然自然坐标系到底是如何设定也不知道资料里是如何说的,猜想是说只要水平放置下来,自然坐标系就确定下来了 ?不知道对不对。
回复 支持 反对

使用道具 举报

发表于 2015-7-31 15:15:03 | 显示全部楼层
LEADIY-M3C串口姿态模块 MPU6050 HMC5883L BMP180/BMP085 串口姿态模块卡尔曼
串口直接输出角度
帧率达400Hz,达到每2--2.5mS更新数据帧的超快更新率

LEADIY-M3C is the newest and greatest version of intchip smart uart output IMU module. M3C is 10Dof IMU module with auto run feature. The goal of the M3C is to simplify the development of projects based upon the most powerful and new consumer grade inertial, magnetic and pressure sensors. M3C incorporates three sensors: an MPU-6050(MEMS triple-axis gyro with triple-axis accelerometer ), HMC5883L(triple-axis magnetometer), thus it can give you nine degrees of inertial measurement. In addition, M3C incorporates BMP180(pressure sensor). There is also a cortex MCU on board, by reading the data from the various sensors, it is possible to compute precisely the orientation of M3C in the space. The orientation result is output through uart interface. The main application of M3C is orientation sensing such as drones, action game controller, self-balancing robot, industrial measuring instrument, autonomous vehicles and video stabilization systems. M3C is a tiny but powerful orientation solution.

The cascaded Kalman filter is used in our system to improve the estimated attitude.The precision of the attitude is up to 0.01 Deg. The output frame rate is up to 400Hz. The uart baud rate can be configured up to 460800.

And designed computer monitoring software to monitor the change of the attitude.Simply connect M3C to the serial TX and RX pins with a USB To TTL Serial Converter Adapter Module , open our VisualIMU terminal program, you can see the changing of the attitude, current temperature, air pressure, altitude, Gyroscope angular velocity, acceleration value, magnetism. The data outputted is varied with the position and angle of the module.
You can also read the sensors from the unified IIC access routines, before you do this, you should stop the on-board MCU’s access by sending stop serial output command.

We also provide some example software that demos the used of LEADIY-M3C. Demo code worked on STM32 board and demo code worked on arduino platform can be provided.

Figure 2 shows relative data output of M3C in horizontal state.The compass is used to indicate the heading of the module.
回复 支持 反对

使用道具 举报

发表于 2015-8-14 16:27:52 | 显示全部楼层
你好  我想问一下  u8的定义数据类型是什么
回复 支持 反对

使用道具 举报

发表于 2015-11-5 09:36:06 | 显示全部楼层
很棒  很好的材料  谢谢分享
回复 支持 反对

使用道具 举报

发表于 2015-11-24 14:09:26 | 显示全部楼层
Malc 发表于 2012-10-30 21:24
有更简单的
accelgyro.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);
angleAx=atan2(ax,az)*180/PI;

你这个是算什么的?
回复 支持 反对

使用道具 举报

发表于 2015-11-24 16:17:12 | 显示全部楼层
Malc 发表于 2012-10-30 21:24
有更简单的
accelgyro.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);
angleAx=atan2(ax,az)*180/PI;

我想用你这公式让它显示坐标,然而它变化只是在0和1。能帮解决下吗
回复 支持 反对

使用道具 举报

发表于 2016-6-27 12:03:24 | 显示全部楼层
真厉害,超级新手表示膜拜
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|联系我们|极客工坊 ( 浙ICP备09023225号 )

GMT+8, 2019-6-19 09:22 , Processed in 0.047164 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表