单片机测速 毕业设计
更新时间:2023-11-22 01:23:01 阅读量: 教育文库 文档下载
- 单片机测速仪推荐度:
- 相关推荐
毕业设计(论文)说明书
摘 要
随着科技的迅速发展,单片机的应用也越来越广泛,并带动传统控制检测技术不断更新。现在的车速表大多是电子式的,用LED数码管或LCD即时显示,显示更加直观。电子式车速表采用接触车速传感器代替软轴传动,可使车速表的安装位置不受距离限制,进一步有效地克服了机械式车速表中的诸多不足。
本次设计给出了以AT89C2051为核心,利用单片机的运算和控制功能,并采用系统化LED显示模块实时显示所测速度的设计方案,以及串口数据存储电路和系统软件。
该方案由于使用了数码管显示模块和E2PROM,以及高效快速算法,因而可在节约系统资源和简化程序设计的基础上保证测量精度和系统实时性。其中信号预处理电路包含信号放大、波形变换和波形整形:信号预处理电路中的放大器用于对待测信号进行放大,以降低对待测信号的幅度要求;波形变换和波形整形电路则用来将放大的信号转换成可与单片机接口的TTL 信号。通过单片机的设置可使INT0 引脚能够对内部定时器T0 的工作进行控制,这样能精确地测出加到INT0 引脚的正脉冲宽度(即测出脉冲信号的期) 。速度显示部分采用数码显示, 所得的数据采用I2C总线, 并通过E2PROM来存储, 因而节省了所需单片机的口线和外围器件, 同时也简化了显示部分的软件编程。
本方案实现了电动车速度即时显示,并可通过控制两个按键显示速度或里程,同时加入了超速语音报警功能,使之更加人性化。
关键词:单片机;霍尔传感器;数码显示;语音报警;DC/DC变换器
I
毕业设计(论文)说明书
Abstract
With the rapid development of technology, more and more widespread application of microcomputer, and promote the traditional control detection technology constantly updated. Most of the current electronic speedometer, and with the LED digital tube or LCD display real-time, display more intuitive. Electronic speedometer flexible shaft using the contact speed sensor instead of driving, speed tables can be installed without distance limitations, and further to effectively overcome the mechanical disadvantages of speed in the table.
The AT89C2051 is designed to give the core of computing and the use of microcomputer control, and adopting a systematic LED display module shows the measured real-time speed design, and the serial data storage circuits and system software.
The program due to the use of the digital display module and E2PROM, and efficient fast algorithm, thus saving resources and simplifying programming system based on the system to ensure accuracy and real-time. Signal pre-processing circuit which includes signal amplification, wave conversion and waveform shaping: signal pre-processing circuit in the amplifier for the amplified signal could be to reduce the requirements on signal amplitude; wave transformation and wave-shaping circuitry is used to enlarge the signal converted into TTL signals with the microcontroller interface. Set by MCU enables INT0 pin to the work of the internal timer T0 control, so to accurately measure the INT0 pin is added to the pulse width (ie measured pulse signal period). Speed display part of a digital display, the data collected using I2C bus, and through E2PROM to store, thus saving the need microcontroller port lines and peripheral devices, but also simplifies the display part of the software programming.
The program achieved the speed of real-time electric vehicle revealed two buttons can be displayed by controlling the speed or mileage, while adding a speed voice alarm function, make it more humane.
Key words: microcomputer; Hall sensor; digital display;voice alarm; DC / DC converter
II
毕业设计(论文)说明书
目 录
摘 要 ................................................ I Abstract .............................................. II 1 引 言 ................................................ 1 1.1 选题背景 ......................................... 1 1.2 研究意义 ......................................... 1 1.3 研究内容 ......................................... 2 2 总体设计方案 ......................................... 3 3 系统单元模块概述 ..................................... 5 3.1 传感器选择 ....................................... 5 3.2 单片机选型 ....................................... 7 3.3 显示模块选型 ..................................... 8 3.4 报警电路选择 ..................................... 9 3.5 速度算法概述 ..................................... 9 4 系统硬件设计 ........................................ 15 4.1单片机主控电路 .................................. 15 4.1.1 单片机概述 ................................. 15 4.1.2 复位电路 ................................... 17 4.1.3 晶振电路 ................................... 18 4.2 变换电路设计 .................................... 19 4.3 传感器电路设计 .................................. 20 4.4 信号处理电路设计 ................................ 23 4.5 存储器电路设计 .................................. 24 4.5.1 I2C总线概述 ............................... 24 4.5.2 存储器电路 ................................. 25 4.6 报警电路设计 .................................... 27 4.6.1 语音芯片概述 ............................... 27
III
毕业设计(论文)说明书
4.6.2 语音报警电路 ............................... 28 4.7 显示电路设计 .................................... 31 4.8 掉电保护电路设计 ................................ 33 4.9 数据处理过程 .................................... 35 5 系统仿真与分析 ...................................... 37 5.1仿真结果 ........................................ 37 5.2仿真分析 ........................................ 38 6 系统软件设计 ........................................ 39 6.1 系统软件总流程图 ................................ 39 6.2 速度处理子程序 .................................. 40 6.3 显示子程序 ...................................... 41 7 总结与展望 .......................................... 43 致 谢 ................................................ 44 参考文献 .............................................. 45 附录A 程序清单 ........................................ 46 附录B 电路图 .......................................... 57
IV
河南理工大学毕业设计(论文)说明书
1 引 言
1.1 选题背景
在全球倡导绿色环保的大趋势下,我国加大了对车辆排放和噪声的管理,由于电动自行车具有无污染、低噪声和轻便快捷等优点,是一种绿色环保的交通工具。随着我国城市规模的迅速扩大及农村道路的日益改善,长期依靠脚踏自行车的人们将会把目标转向电动自行车,对电动自行车需求也会越来越大。人们对环境的关注以及相关技术的更新,有力地促进了电动自行车的发展。
我国电动车的研究相比欧美国家起步较晚。直到上个世纪90年代中期,我国才掀起开发研究的高潮,但主要集中在上海、北京、广东等地,到90年代后期基本覆盖全国主要经济发达地区如江苏、浙江、山东等省。虽然我国电动车研究起步晚,但从技术角度来看,我们并不落后于世界。我国电动自行车产业基本保持与世界同步发展水平。
1.2 研究意义
传统的机械式车速表是由旋转磁场作用于转动盘,使转动盘连同车速表指针发生同向的偏转。当电磁转矩与弹簧产生的阻力矩平衡时,指针偏转停留在某一角度上。指针偏转角与车速成正比,因而可用其表示车速。
机械式车速表的缺陷是明显的。由于表盘指针偏转程度正比于软轴的转动时产生的磁力,当转速较低的时候,磁力较小,随转速变化波动较大。因此,低速时车速表指针摆动剧烈、测量及显示精度不高。对于发动机后置的车辆,要将车速表指针的偏转动力由变速箱经软轴等传至驾驶室,软轴必然布置的较长,如何将这种长长的转动软轴从结构上布置妥当,肯定是一件十分困难的事情。
1
正在阅读:
单片机测速 毕业设计11-22
高中英语人教版必修二Unit-2知识点汇总及强化练习12-03
2016继续教育创新方法……69分06-29
餐饮业一般执行小企业会计制度08-31
无职党员设岗定责个目标管理责任书03-27
2015年上半年 程序员 上午卷和下午卷 试题和详细答案05-18
舞蹈老师小学作文06-15
土力学题库及答案12-08
中秋节对员工祝福语_中秋节祝福语03-26
中秋送亲人长辈祝福语_中秋节祝福语03-25
- exercise2
- 铅锌矿详查地质设计 - 图文
- 厨余垃圾、餐厨垃圾堆肥系统设计方案
- 陈明珠开题报告
- 化工原理精选例题
- 政府形象宣传册营销案例
- 小学一至三年级语文阅读专项练习题
- 2014.民诉 期末考试 复习题
- 巅峰智业 - 做好顶层设计对建设城市的重要意义
- (三起)冀教版三年级英语上册Unit4 Lesson24练习题及答案
- 2017年实心轮胎现状及发展趋势分析(目录)
- 基于GIS的农用地定级技术研究定稿
- 2017-2022年中国医疗保健市场调查与市场前景预测报告(目录) - 图文
- 作业
- OFDM技术仿真(MATLAB代码) - 图文
- Android工程师笔试题及答案
- 生命密码联合密码
- 空间地上权若干法律问题探究
- 江苏学业水平测试《机械基础》模拟试题
- 选课走班实施方案
- 测速
- 毕业设计
- 单片机
- 民俗博物馆建设项目可行性研究报告
- 2016CPA财管-本量利习题
- 2015年江苏省高等职业院校技能大赛现代物流作业方案设计与实施赛项竞赛规程 - 图文
- 南充市高坪区第三人民医院二级乙等医院实施办法
- 2018海淀区高一地理合格考适应性练习 - 图文
- 2010级 - VB期末试卷(A卷带答案 2011.6)
- 美国文学史复习资料
- 人教版2017-2018学年七年级语文下册期末写作专题复习
- 单元整体教学策略
- 人教版中考复习语文分册基础知识测试卷八年级下册(含答案)
- 员工月度绩效述职报告及评分表(含评价维度)
- 任务驱动型作文:该不该给老人让座?
- 心电监护、中心吸氧及吸引操作 - 图文
- 2第二节 音乐情绪
- 传感器复习题(学生) - 20140617112833
- 国企ERP实施失败案例
- 劳动社保政策与管理实务复习要点
- 人到三十应该弄明白的一些道理
- 统计学 第二章练习题
- 创新创业对大学生产生的积极影响