登录
首页 » 算法 » 超声波测距

超声波测距

于 2022-03-11 发布 文件大小:34.03 kB
0 299
下载积分: 2 下载次数: 1

代码说明:

51单片机超声波测距,亲测能够使用,解释详细。主要技术参数:1.使用电压:DC5V 2.静态电流:小于2mA3:电平输出:高5V 4:电平输出:低0V5:感应角度:不大于15度 6:探测距离:2cm-450cm 7:高精度:可达3mm接线方式,VCC、trig(控制端)、 echo(接收端)、 GND地线使用方法:一个控制口发一个10US以上的高电平,就可以在接收口等待高电平输出.一有输出就可以开定时器计时,当此口变为低电平时就可以读定时器的值,此时就为此次测距的时间,方可算出距离.如此不断的周期测,就可以达到你移动测量的值了.模块工作原理:(1)采用IO触发测距,给至少10us的高电平信号;(2)模块自动发送8个40khz的方波,自动检测是否有信号返回;(3)有信号返回,通过IO输出一高电平,高电平持续的时间就是超声波从发射到返回的时间.测试距离=(高电平时间*声速(340M/S))/2;

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Abstract: This paper aims to study a thermal complex objects can be an effective...
    摘要:本文旨在研究一种能对复杂热工对象的有效建模方法。基于遗传算法的辨识方法有较强的抗干扰能力,对低、高阶系统、延时系统都可以达到很好的辨识效果。根据单元机组的低阶非线性模型,推导出一个双进双出、能够描述机组动态特性及机炉间相互耦合关系的协调控制系统传递函数矩阵。依次模型为基础,提出一种基于改进的遗传算法的参数辨识方法。-Abstract: This paper aims to study a thermal complex objects can be an effective modeling method. Identification method based on genetic algorithm has strong anti-jamming ability, low, high-end systems, delay systems can achieve very good recognition results. According to unit power plant low-level non-linear model, derived a double inlet and outlet, can describe the dynamic characteristics and boiler-turbine unit is coupled between two relations, coordination and control system transfer function matrix. Turn model was proposed based on improved genetic algorithm based on parameter identification method.
    2022-01-24 09:15:33下载
    积分:1
  • 运动驱动程序版本6.1
    移动驱动器6.1版本,支持MPU9250,MPU9150,MPU6050,STM32与MSP430平台上的MPU6500。
    2022-03-04 02:02:11下载
    积分:1
  • 图像处理中的基本运
    数字图像获取、处理和实践——很多图像处理有用的源代码,图像增强(均值滤波3*3,5*5,中值滤波),边缘检测(sobel算子,拉普拉斯算子,reborts算子),图像分割(固定阈值分割,最大类间方差阈值分割)等
    2022-05-19 03:02:12下载
    积分:1
  • VB实现的线性卡尔曼滤波程序,简单易懂。适合初学者练习参考。...
    VB实现的线性卡尔曼滤波程序,简单易懂。适合初学者练习参考。-VB linear Kalman filtering procedures, simple and understandable. For beginners practice reference.
    2022-03-21 15:54:32下载
    积分:1
  • 统计某篇英文小说中某些形容词的出现次数和位置。英文小说存于一个文本文件中,小说中的词汇一律不允许换行,每读入一行,就统计每个词在这行中出现的次数。...
    统计某篇英文小说中某些形容词的出现次数和位置。英文小说存于一个文本文件中,小说中的词汇一律不允许换行,每读入一行,就统计每个词在这行中出现的次数。
    2023-09-09 00:45:02下载
    积分:1
  • energy center, two pairs of split
    用能量重心法,对基2分裂的FFT算法进行校正,在整周期采样的条件下,幅值,相位,频率等可以达到很高的精度 -energy center, two pairs of split-the FFT algorithm for correction, in the whole cycle of sampling conditions, the amplitude, phase, frequency, etc., may achieve high accuracy
    2022-04-20 19:20:20下载
    积分:1
  • 示例随机数产生方,符合平均分部和正态分部,示波器显示...
    示例随机数产生方法,符合平均分部和正态分部,示波器显示-random sample method, in line with the average Division and the normal divisions, oscilloscope shows
    2022-03-18 18:29:51下载
    积分:1
  • 在去噪的旅行商问题的大文章
    Great articles on noising method algorithm for travelling salesman problem-Great articles on noising method algorithm for travelling salesman problem
    2023-05-10 03:45:03下载
    积分:1
  • Sort ranked scoring option, insert, Bubble Sort Shell Sort
    排序排序评分选项,插入,气泡排序外壳排序-插入排序震动器改进排序方法-改进气泡排序堆排序-选择排序改进快速排序方法(a)快速排序方法(b)快速排序方法(c)合并排序方法排序基方法
    2022-02-26 11:49:29下载
    积分:1
  • 通过奇异值分解的最小二乘拟合
    通过奇异值分解实现的最小二乘拟合算法 inear least-squares fit by singular value decomposition-through the singular value decomposition of the least squares fitting algorithm inear least-squares fit by singular value decomposition
    2022-04-20 14:07:19下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载