找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開(kāi)始

搜索
查看: 2659|回復(fù): 0
打印 上一主題 下一主題
收起左側(cè)

QMA6981計(jì)步器配置

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:366097 發(fā)表于 2018-7-6 21:08 | 只看該作者 回帖獎(jiǎng)勵(lì) |倒序?yàn)g覽 |閱讀模式
  固定4步來(lái)一個(gè)中斷,停止走路時(shí)再來(lái)一個(gè)中斷,靈敏度是10寄存器

        bResult = gsensor_i2c_write_byte(0x10, 0x2a);
        bResult =  gsensor_i2c_write_byte(0x0f, 0x04);

        bResult = gsensor_i2c_write_byte(0x12, 0x8f);
        bResult = gsensor_i2c_write_byte(0x13, 0x10);
        bResult = gsensor_i2c_write_byte(0x14, 0x14);
        bResult = gsensor_i2c_write_byte(0x15, 0x10);
        bResult = gsensor_i2c_write_byte(0x32, 0x02);

        bResult = gsensor_i2c_write_byte(0x27, 0x60);
        bResult = gsensor_i2c_write_byte(0x28, 0x60);
        bResult = gsensor_i2c_write_byte(0x29, 0x60);

        bResult = gsensor_i2c_write_byte(0x16, 0x08);
        bResult = gsensor_i2c_write_byte(0x19, 0x08);
        bResult = gsensor_i2c_write_byte(0x20, 0x00); // 低電平或者下降沿觸發(fā)
        //bResult = gsensor_i2c_write_byte(0x20, 0x05);// 高電平或者上升沿觸發(fā)       

        bResult = gsensor_i2c_write_byte(0x11, 0x80);
       
       
        固定4步來(lái)一個(gè)中斷,停止走路時(shí)再來(lái)一個(gè)中斷,靈敏度是10寄存器

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

手機(jī)版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表