搜索
bottom↓
回复: 6

MPU6050的失重检测中断怎么用啊

[复制链接]

出0入0汤圆

发表于 2014-6-6 11:16:03 | 显示全部楼层 |阅读模式
MPU6050的失重检测中断怎么用啊,网上找的寄存器版本都没有这个设置。

出0入0汤圆

发表于 2014-9-24 09:05:53 | 显示全部楼层
这么久也没有人回复你啊~~~

我也想知道答案~

出0入0汤圆

发表于 2014-10-9 10:22:50 | 显示全部楼层
我也在搞这个

出0入0汤圆

发表于 2014-10-9 11:07:20 | 显示全部楼层
http://www.i2cdevlib.com/devices/mpu6050#registers
======================================
Free Fall Acceleration Threshold (FF_THR @ 0x1D)

Register Bitfields
[7:0] FF_THR
This register configures the detection threshold for Free Fall event detection. The mg per LSB increment for FF_THR can be found in the Electrical Specifications table of the MPU-6000/MPU-6050 Product Specification document.

Free Fall is detected when the absolute value of the accelerometer measurements for the three axes
are each less than the detection threshold. This condition increments the Free Fall duration counter
(Register 30). The Free Fall interrupt is triggered when the Free Fall duration counter reaches the
time specified in FF_DUR (Register 30).

For more details on the Free Fall detection interrupt, see Section 8.2 of the MPU-6000/MPU-6050
Product Specification document as well as Registers 56 and 58 of this document.
========================================
Free Fall Duration (FF_DUR @ 0x1E)

Register Bitfields
[7:0] FF_DUR
This register configures the duration counter threshold for Free Fall event detection. The duration counter ticks at 1kHz, therefore FF_DUR has a unit of 1 LSB = 1 ms.

The Free Fall duration counter increments while the absolute value of the accelerometer measurements are each less than the detection threshold (Register 29). The Free Fall interrupt is triggered when the Free Fall duration counter reaches the time specified in this register.

For more details on the Free Fall detection interrupt, see Section 8.2 of the MPU-6000/MPU-6050 Product Specification document as well as Registers 56 and 58 of this document.

出0入0汤圆

发表于 2014-10-9 11:20:32 | 显示全部楼层
一起关注

出0入0汤圆

发表于 2014-6-6 11:16:04 | 显示全部楼层
        I2C_WriteByte(MPU6050_DEFAULT_ADDRESS,MPU6050_RA_MOT_THR,0x30);                                    //        0x1F  //Ô˶¯¼ì²âãÐÖµ      
        I2C_WriteByte(MPU6050_DEFAULT_ADDRESS,MPU6050_RA_MOT_DETECT_CTRL,0x00);          // 0X69  //  MOT_THR  Ë¥¼õƵÂÊ
        I2C_WriteByte(MPU6050_DEFAULT_ADDRESS,MPU6050_RA_MOT_DUR,0x01);                                    // 0x20        //³ÖÐøʱ¼ä      
        I2C_WriteByte(MPU6050_DEFAULT_ADDRESS,MPU6050_RA_INT_PIN_CFG,0x0A);              //        0x37  //ʹÄÜÅäÖà Êä³öÖжÏΪ50umµÄµÍÂö³å
        I2C_WriteByte(MPU6050_DEFAULT_ADDRESS,MPU6050_RA_INT_ENABLE,0X40);               //        0x38  //ÖжÏʹÄÜ       

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x

出0入0汤圆

发表于 2014-11-14 11:38:33 | 显示全部楼层
FASHAOYIHAOAMO 发表于 2014-6-6 11:16
I2C_WriteByte(MPU6050_DEFAULT_ADDRESS,MPU6050_RA_MOT_THR,0x30);                                    //        0x1F  //Ô˶¯¼ ...

这个是不是单独测的每个轴的
如果失重的时候,传感器是倾斜的,还可以检测到吗,谢谢
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-5-11 03:34

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

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