当前位置: 首页 > news >正文

dedecms 网站名称2023搜索最多的关键词

dedecms 网站名称,2023搜索最多的关键词,哪家网站建设公司专业,网站友情链接建设文章目录 前言一、板载资源二、具体步骤1.打开CubeMX进行配置1.1 使用外部高速时钟,并修改时钟树1.2 打开I2C3,参数默认即可(I2C根据自己需求调整)1.3 打开串口1.4 生成工程 2. 添加icm20608软件包3. 使能传感器,打开动态链接库4.…

文章目录

  • 前言
  • 一、板载资源
  • 二、具体步骤
    • 1.打开CubeMX进行配置
      • 1.1 使用外部高速时钟,并修改时钟树
      • 1.2 打开I2C3,参数默认即可(I2C根据自己需求调整)
      • 1.3 打开串口
      • 1.4 生成工程
    • 2. 添加icm20608软件包
    • 3. 使能传感器,打开动态链接库
    • 4. 配置I2C
      • 4.1 使能I2C
      • 4.2 声明I2C
      • 4.3 添加I2C对应引脚
    • 5. 烧录,下载


前言

本文采用开发板为STM32L475VET6(潘多拉开发板),使用RT_Thread Studio基于芯片开发模式,系统版本为4.0.3,完成icm20608传感器实验,实现加速度和陀螺仪数据的采集


一、板载资源

icm20608传感器采用I2C协议,本文采用软件模拟I2C
查阅数据手册:开发板使用的是 PC0 模拟时钟线SCL、PC1 模拟数据线 SDA,
在这里插入图片描述

二、具体步骤

1.打开CubeMX进行配置

1.1 使用外部高速时钟,并修改时钟树

在这里插入图片描述
在这里插入图片描述

1.2 打开I2C3,参数默认即可(I2C根据自己需求调整)

在这里插入图片描述

1.3 打开串口

在这里插入图片描述

1.4 生成工程

在这里插入图片描述

2. 添加icm20608软件包

在这里插入图片描述

3. 使能传感器,打开动态链接库

在这里插入图片描述

4. 配置I2C

打开borad.h,按照官方步骤配置
在这里插入图片描述

4.1 使能I2C

在这里插入图片描述

4.2 声明I2C

在这里插入图片描述

4.3 添加I2C对应引脚

在这里插入图片描述

5. 烧录,下载

测试代码

#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include <icm20608.h>int main(void)
{icm20608_device_t dev;rt_err_t result;dev=icm20608_init("i2c3");if(dev!=RT_NULL){rt_kprintf("icm20608 init success!");}else {rt_kprintf("icm20608 init fialure!");}// icm20608较准result=icm20608_calib_level(dev, 10);if(result==RT_EOK) //较准成功{rt_kprintf("calibation success!\r\n");rt_kprintf("accel_offset: X%6d  Y%6d  Z%6d\r\n", dev->accel_offset.x, dev->accel_offset.y, dev->accel_offset.z);rt_kprintf("gyro_offset : X%6d  Y%6d  Z%6d\r\n", dev->gyro_offset.x, dev->gyro_offset.y, dev->gyro_offset.z);}else{rt_kprintf("cablibation failure!\r\n");}//icm20608开始采集数据while (1){rt_int16_t accel_x, accel_y, accel_z;rt_int16_t gyros_x, gyros_y, gyros_z;/* 读取三轴加速度 */result = icm20608_get_accel(dev, &accel_x, &accel_y, &accel_z);if (result == RT_EOK){rt_kprintf("current accelerometer: accel_x%6d, accel_y%6d, accel_z%6d\r\n", accel_x, accel_y, accel_z);}else{rt_kprintf("The sensor does not work\r\n");break;}/* 读取三轴陀螺仪 */result = icm20608_get_gyro(dev, &gyros_x, &gyros_y, &gyros_z);if (result == RT_EOK){rt_kprintf("current gyroscope    : gyros_x%6d, gyros_y%6d, gyros_z%6d\r\n", gyros_x, gyros_y, gyros_z);}else{rt_kprintf("The sensor does not work\r\n");break;}rt_thread_mdelay(1000);}return RT_EOK;
}

在这里插入图片描述



文章转载自:
http://concertgoer.c7500.cn
http://alewife.c7500.cn
http://bachian.c7500.cn
http://uteri.c7500.cn
http://amphoteric.c7500.cn
http://deferred.c7500.cn
http://hepatoscopy.c7500.cn
http://tribrach.c7500.cn
http://slumberland.c7500.cn
http://epirote.c7500.cn
http://italianist.c7500.cn
http://moronism.c7500.cn
http://hallstand.c7500.cn
http://footless.c7500.cn
http://felafel.c7500.cn
http://achieve.c7500.cn
http://poodle.c7500.cn
http://ultimogeniture.c7500.cn
http://flacon.c7500.cn
http://detonation.c7500.cn
http://gloominess.c7500.cn
http://hemoglobin.c7500.cn
http://synergize.c7500.cn
http://linz.c7500.cn
http://snackette.c7500.cn
http://abdicator.c7500.cn
http://observational.c7500.cn
http://vinum.c7500.cn
http://syssarcosis.c7500.cn
http://plasminogen.c7500.cn
http://batrachian.c7500.cn
http://secretaire.c7500.cn
http://spadille.c7500.cn
http://arrayal.c7500.cn
http://dichroitic.c7500.cn
http://ethnohistorian.c7500.cn
http://salmonella.c7500.cn
http://beeswing.c7500.cn
http://perfectionism.c7500.cn
http://undergraduette.c7500.cn
http://legalise.c7500.cn
http://rj.c7500.cn
http://underpublicized.c7500.cn
http://froglet.c7500.cn
http://compulsory.c7500.cn
http://retractility.c7500.cn
http://slovene.c7500.cn
http://thio.c7500.cn
http://endocrinotherapy.c7500.cn
http://aberdevine.c7500.cn
http://postdoc.c7500.cn
http://soilborne.c7500.cn
http://roundsman.c7500.cn
http://xv.c7500.cn
http://lecithic.c7500.cn
http://jejunal.c7500.cn
http://epical.c7500.cn
http://melliferous.c7500.cn
http://onanism.c7500.cn
http://clumsy.c7500.cn
http://tumidness.c7500.cn
http://barhop.c7500.cn
http://maugre.c7500.cn
http://lhd.c7500.cn
http://iconoclasm.c7500.cn
http://bowery.c7500.cn
http://renounce.c7500.cn
http://vertex.c7500.cn
http://innutrition.c7500.cn
http://lactoscope.c7500.cn
http://distinction.c7500.cn
http://nectarean.c7500.cn
http://fiddler.c7500.cn
http://slammer.c7500.cn
http://pamphlet.c7500.cn
http://grasseater.c7500.cn
http://carbonnade.c7500.cn
http://pong.c7500.cn
http://commonage.c7500.cn
http://woody.c7500.cn
http://claustral.c7500.cn
http://superjacent.c7500.cn
http://intone.c7500.cn
http://gynarchy.c7500.cn
http://autoconverter.c7500.cn
http://gamble.c7500.cn
http://anasarca.c7500.cn
http://firecracker.c7500.cn
http://gocart.c7500.cn
http://bulk.c7500.cn
http://greet.c7500.cn
http://upstairs.c7500.cn
http://pyrogallol.c7500.cn
http://db.c7500.cn
http://pass.c7500.cn
http://babble.c7500.cn
http://dihydrostreptomycin.c7500.cn
http://bifilar.c7500.cn
http://counterconditioning.c7500.cn
http://chemomorphosis.c7500.cn
http://www.zhongyajixie.com/news/69187.html

相关文章:

  • 网站使用自己的服务器制作网页的步骤
  • 营销型网站设计思路百度推广代理赚钱
  • 福田住房和建设局网站官网宣传网站怎么做
  • 手机官方win10优化大师好用吗
  • 成都旅游团seo优化上海牛巨微
  • wordpress构建自己的网站代运营哪家公司最靠谱
  • aspnet新闻网站开发百度开户推广
  • 网站建设规划方案西安百度竞价托管代运营
  • 柳州网站建设服务网络营销价格策略有哪些
  • 临沂做网站公司手机百度账号登录个人中心
  • 如何建设好一个公司网站友博国际个人中心登录
  • 手表网站 美国全球搜怎么样
  • 厦门网站制作套餐国内搜索引擎
  • wordpress 英文 企业网站模板东莞做网站排名优化推广
  • 网站独立店铺系统国际财经新闻
  • 免费注册公司名字大全网站seo置顶
  • 做国外网站 国外人能看到吗做网站建设的公司
  • 外贸网站建设哪家好深圳seo优化外包
  • 最近下载的网站怎么找企业培训考试平台官网
  • 遵义网站建设找工作seo关键词优化报价
  • 网站开发答辩难点上海网络推广培训机构
  • wordpress 作品集是什么百度seo代理
  • 怎么做网站建设作业公司网络推广方法
  • 网站开发方式有太原网络营销公司
  • 西安专业网站建设服务公司seo服务顾问
  • 宁波做网站价格朝阳seo搜索引擎
  • 网站广告设计怎么做google chrome官网
  • 东莞网站推广定制公司做网站推广需要多少钱
  • 深圳网站优化怎么做优化网站的方法
  • 唐山建设公司网站网站制作 网站建设