anger0925 发表于 2021-8-18 18:11

【Silicon Labs 开发套件评测】+6 轴惯性传感器 ICM-20648

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="Calibri">ICU-20648</font><font face="宋体">是</font><font face="Calibri">6</font><font face="宋体">抽惯性传感器,是</font><font face="Calibri">24</font><font face="宋体">引脚</font><font face="Calibri">QFN</font><font face="宋体">封装的</font><font face="Calibri">3</font><font face="宋体">轴陀螺仪、</font><font face="Calibri">3</font><font face="宋体">轴加速度和</font><font face="Calibri">Digital Motion processor(DMP)</font><font face="宋体">。片上</font><font face="Calibri">16</font><font face="宋体">位</font><font face="Calibri">ADC</font><font face="宋体">,通讯接口有</font><font face="Calibri">I2C</font><font face="宋体">个</font><font face="Calibri">7MHz</font><font face="宋体">的高速</font><font face="Calibri">SPI</font><font face="宋体">,我们这里使用</font><font face="Calibri">SPI</font><font face="宋体">接口。</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">详细信息参考官网文档:</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><a href="https://invensense.tdk.com/products/motion-tracking/6-axis/icm-20648/"><u><span class="15" style="font-family:Calibri"><span style="color:#0000ff"><span style="text-decoration:underline"><span style="text-underline:single">https://invensense.tdk.com/products/motion-tracking/6-axis/icm-20648/</span></span></span></span></u></a></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">不过官网建议在新设计中不要使用</font><font face="Calibri">ICU-20648</font><font face="宋体">,可能是停产或者有优于他的芯片替代。</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">硬件接口</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">使能开关</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">与</font><font face="Calibri">mcu</font><font face="宋体">的接口</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify">&nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">在</font><font face="Calibri">SSv5</font><font face="宋体">上实现</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">使能</font><font face="Calibri">IMU</font><font face="宋体">,</font><font face="Calibri">GPIO</font><font face="宋体">接口是</font><font face="Calibri">PB04</font><font face="宋体">。</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">在</font><font face="Calibri">board drives</font><font face="宋体">下找到</font><font face="Calibri">IMU</font><font face="宋体">,点击</font><font face="Calibri">install</font><font face="宋体">安装。</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">安装好之后,安装</font><font face="Calibri">SPI</font><font face="宋体">驱动</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">出现错误,提示</font></span></span><span style="font-size:8.0000pt"><span style="background:#ffffff"><span style="font-family:Roboto"><span style="color:#d91f2a"><span style="letter-spacing:0.0000pt"><span style="font-style:normal">PB02 can not be used for USART0_CS, as it is reserved for use as GPIO</span></span></span></span></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">需要把</font><font face="Calibri">GPIO</font><font face="宋体">复用去掉就可以了。</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">添加任务读取传感器数据</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">把陀螺仪和加速度值读起来</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"> &nbsp;</p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="Calibri">3</font><font face="宋体">轴陀螺仪和</font><font face="Calibri">3</font><font face="宋体">轴加速度值均可以正常读取。</font></span></span></span></span></p>

Jacktang 发表于 2021-8-19 09:47

<p>官网不建议使用使用ICU-20648?可能是停产或者有优于他的芯片替代这个原因挺蹊跷</p>

freebsder 发表于 2021-8-19 18:00

<p>这颗片子很少见。一看是&nbsp;tdk 的,,,</p>

anger0925 发表于 2021-8-20 08:33

Jacktang 发表于 2021-8-19 09:47
官网不建议使用使用ICU-20648?可能是停产或者有优于他的芯片替代这个原因挺蹊跷

<p>个人见解</p>
页: [1]
查看完整版本: 【Silicon Labs 开发套件评测】+6 轴惯性传感器 ICM-20648