基于架空线路警示器跌落报警,架空线路故障指示器跌落报警NB实现

响应国网加快推进泛在电力物联网建设的要求

架空线路警示器,架空线路故障指示器,现场存在跌落风险

当出现跌落故障后及时时唤醒nb模块进行预警

NB-iot远传低功耗技术,基于MT2625的opencpu开发

NB-iot模块,ME3616,opencpu,片上编程

陀螺仪6轴加速度传感器MPU6050

检测到z轴加速度多次低于0.6之后,进行预警,I2C总线获取6轴状态

        IICreadBytes(0x50, AX, 24,&chrTemp[0]);
		a[0] = (float)CharToShort(&chrTemp[0])/32768*16;
		a[1] = (float)CharToShort(&chrTemp[2])/32768*16;
		a[2] = (float)CharToShort(&chrTemp[4])/32768*16;
		w[0] = (float)CharToShort(&chrTemp[6])/32768*2000;
		w[1] = (float)CharToShort(&chrTemp[8])/32768*2000;
		w[2] = (float)CharToShort(&chrTemp[10])/32768*2000;
		h[0] = CharToShort(&chrTemp[12]);
		h[1] = CharToShort(&chrTemp[14]);
		h[2] = CharToShort(&chrTemp[16]);
		Angle[0] = (float)CharToShort(&chrTemp[18])/32768*180;
		Angle[1] = (float)CharToShort(&chrTemp[20])/32768*180;
		Angle[2] = (float)CharToShort(&chrTemp[22])/32768*180;
        if (a[2]<0.6)  
        {
            checktimes++;
            if(checktimes>=3)
                status |=DROPBIT;
        }
        else
        {
            checktimes=0;
        }

git链接:https://github.com/dading105/NB_StatusDetect

技术交流群:334312796 验证密码:深圳友先达
 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值