【实例简介】
利用STM32F103开发板驱动HC-SR04超声波模块,可以实现基本的测距功能,同时讲测得的距离通过串口输出,本人亲测,保证可用,献给需要的朋友们。
【实例截图】
【核心代码】
HC-SR04
└── HC-SR04
├── CMSIS
│ ├── CM3
│ │ ├── CoreSupport
│ │ │ ├── core_cm3.c
│ │ │ └── core_cm3.h
│ │ └── DeviceSupport
│ │ └── ST
│ │ └── STM32F10x
│ │ ├── Release_Notes.html
│ │ ├── startup
│ │ │ ├── arm
│ │ │ │ ├── startup_stm32f10x_cl.s
│ │ │ │ ├── startup_stm32f10x_hd.s
│ │ │ │ ├── startup_stm32f10x_hd_vl.s
│ │ │ │ ├── startup_stm32f10x_ld.s
│ │ │ │ ├── startup_stm32f10x_ld_vl.s
│ │ │ │ ├── startup_stm32f10x_md.s
│ │ │ │ ├── startup_stm32f10x_md_vl.s
│ │ │ │ └── startup_stm32f10x_xl.s
│ │ │ ├── gcc_ride7
│ │ │ │ ├── startup_stm32f10x_cl.s
│ │ │ │ ├── startup_stm32f10x_hd.s
│ │ │ │ ├── startup_stm32f10x_hd_vl.s
│ │ │ │ ├── startup_stm32f10x_ld.s
│ │ │ │ ├── startup_stm32f10x_ld_vl.s
│ │ │ │ ├── startup_stm32f10x_md.s
│ │ │ │ ├── startup_stm32f10x_md_vl.s
│ │ │ │ └── startup_stm32f10x_xl.s
│ │ │ ├── iar
│ │ │ │ ├── startup_stm32f10x_cl.s
│ │ │ │ ├── startup_stm32f10x_hd.s
│ │ │ │ ├── startup_stm32f10x_hd_vl.s
│ │ │ │ ├── startup_stm32f10x_ld.s
│ │ │ │ ├── startup_stm32f10x_ld_vl.s
│ │ │ │ ├── startup_stm32f10x_md.s