没有合适的资源?快使用搜索试试~ 我知道了~
自行车速度里程实时显示系统设计报告(含电路原理图和程序).doc
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 3 浏览量
2023-06-19
20:22:01
上传
评论
收藏 5.45MB DOC 举报
温馨提示
试读
32页
自行车速度里程实时显示系统设计报告(含电路原理图和程序).doc
资源推荐
资源详情
资源评论
I
自行车速度里程实时显示系统设计
随着时代的发展,机动车的数量越来越多,由于机动车的动力是汽油,而汽油的燃
烧会直接向空气中排放二氧化碳等有害气体,导致空气污染越来越严重,是我们吸入的
空气中有毒。为了减少有毒气体的排放,是我们的空气稍微清新点,在不是特别需要情
况下,人们在尽量减少机动车辆的使用。此时自行车成为人们旅游代步必不可少的工具
工具。一方面自行车的使用无有毒气体的排放,不会对空气造成污染,另一方面骑自行
车还可以起到锻炼身体的作用。因此对自行车速度里程实时显示系统的设计的研究显得
尤为重要。
自行车速度里程实时显示系统设计完成后可以对当时你骑车速度与里程进行准确
的反映。自行车速度里程实时显示系统是以单片机为核心,采用霍尔传感器非接触式侧
电机转速,其中传感器接受到的的信息在 LCD1602 液晶上进行显示。LCD1602 液晶上
行显示速度,下行对里程进行显示。其中的电机的速度是可调的,因为电机的电路中连
接滑动变阻器,通过移动滑动变阻器的阻片改变电路中的电阻大小,可以改变电路中的
电流,从而改变电机两端的电压。电机的速度随着电压的改变,速度随之进行改变。
本设计的 C 语言程序在 keil 软件中进行编译的,keil 软件对 C 语言提供了编译与调
试的环境。对我们编译 C 语言非常有帮助。对 keil 软件很好地把握对我们编写 C 语言
大有裨益。其中设计的硬件部分是由单片机、电路板、LCD 显示、霍尔传感器等组成。
对这些元件的焊接需要有良好的焊接功底,通过这次的焊接对我们焊接的技术有一个很
好地锻炼。是我们对于元件的焊接有了一定的了解。对我们日后的学习以及工作都很有
帮助。
关键词:电阻;单片机;传感器;LCD 显示。
II
Abstract
With the development of the times, more and more the number of moter vehicles,driving
force is due to the combustion of gasoline and gasoline, direct emissions of carbon dioxide
and other harmful gases into the air, causing air pollution is becoming more and more serious,
the air we breathe in the poisonous. In order to reduce the emission of toxic gases and made
our air a little fresh, especially in case of need not, people use to reduce motor vehicle.The
bicycle has become an essential tool for people to travel the riding instead of walking tool.
The use of a bicycle no toxic gases, will not cause pollution to the air, on the other hand,
riding a bike can also play the role of physical exercise. The bicycle speedometer real-time
display of system design is particularly important.
The speed of the bicycle mileage display system designed can accurately reflect the
time you ride on the speed and mileage. The speed of the bicycle mileage display system
based on single-chip microcomputer as the core, adopts the non-contact speed non-contact
sensor side Holz, where in the sensor to receive the information displayed on the LCD1602
LCD1602 liquid crystal display speed of up link,down link mileage display.The motor speed
is adjustable, because the connection of sliding rheostat motor circuit, through the barrier of
mobile sliding rheostat resistance to change the size of the circuit, can change the current in
the circuit, the voltage to change the motor at both ends. The speed of the moter with
voltage changes, the speed will change.
The design of the C language program is compiled in keil software, keil software
provides the environment compile and debug on the C language. Compile C language is very
helpful to us. On the keil software, a good grasp of C language be of great advantage to us.
The design of the hardware part is composed of a single chip, circuit board, LCD display
Holzer sensor etc.. Of these elements need to have a good knowledge of welding,welding to
us through this welding technology has a good exercise. We are the components of the
welding of a certain understanding. Are very helpful to our future study and work.
Key word: single chip microcomputer; sensor; resistance; LCD display.
III
目 录
1 绪论 ................................................................................................1
1.1 研究背景及目的 ........................................................................................1
1.2 研究方法.....................................................................................................1
2 系统总体方案设计 ...........................................................................................2
2.1 系统分析 ....................................................................................................2
2.1.1 电机转速的测量....................................................................................................2
2.1.2 电机转速的处理....................................................................................................3
2.1.3 电机转速的显示.....................................................................................................3
2.2 设计思路和方案 ........................................................................................3
2.3 系统的构成 ................................................................................................4
2.3.1 原理框图....................................................................................................................5
3 硬件电路设计 .................................................................................6
3.1 电源电路 ....................................................................................................6
3.2 单片机最小系统 ........................................................................................6
3.2.1 复位电路................................................................................................................7
3.2.2 晶振电路.................................................................................................................7
3.2.3 P0 口的上位电阻.....................................................................................................8
3.2.4 31 脚 EA/Vpp 接电源..............................................................................................8
3.3 LCD 显示模块 .....................................................................................................8
3.4 系统硬件设计 ......................................................................................................9
4 系统软件设计.......................................11
4.1 程序设计流程图 ......................................................................................11
4.2 应用程序设计 ..........................................................................................12
5 联调与测试………………………………………………………13
5.1 仿真............................................................................................................13
5.2 硬件调试与焊接.........................................................................................15
5.2.1 调试.......................................................................................................................15
5.2.2 焊接注意事项..........................................................................................................18
IV
结论 ...............................................................................................19
参考文献 .......................................................................................20
附录 A ..............................................................................................21
附录 B...............................................................................................22
附录 C................................................................................................23
附录 D................................................................................................24
1
1 绪 论
1.1 研究背景及目的
随着社会的进步,科技的发展,机动车的数量越来越多,但机动车排放的也逐渐污染着
我们的生活的环境.这一点令我们十分不满意.此时由于自行车队空气无污染,在一定程度
上骑自行车还可以锻炼身体。因此自行车不但是代步的工具,而且是成为人们休闲、锻
炼和娱乐的首选。对自行车的速度里程实时显示系统的研究显得尤为重要,自行车的速
度里程可以让人们骑车的时候了解到最基本的信息。从而对自己汽车的速度与体力的控
制有很好的把握。
自行车速度里程实时显示系统的核心是 AT89C51,其中霍尔传感器测电机转数,实
现对自行车速度与里程的测量统计,将自行车的速度里用 LCD 实时显示出来。电路中
连接滑动变阻器可以改变电路中电阻值的大小,则电机两端电压得到改变从而改变电机
速度。
1.2 研究方法
测量电机转子速度的方法很多,但多数比较复杂。现在本设计利用元件如:万用板、
AT89C51 单片机、40 脚 IC 座、液晶显示屏、电阻、3144 霍尔传感器、12M 晶振和电
容等。通过用导线和焊锡将这些元件连接在一起构成一个自行车速度里程实时显示系统
的模拟电路。其中 AT89C51 的主控电路为单片机目的是进行测速,可以使用简单的脉
冲计数法。只要电机转轴每旋转一周,就会产生固定的多个或一个脉冲,将所得的脉冲
送入单片机内即可进行计算,即可获得电机转速的信息,霍尔传感器非接触式测电机转
速,测量数据通过液晶显示屏显示出来。LCD1602 液晶上行显示当前的速度,下行显示
里程。因为电路中连接了滑动变阻器,通过移动滑动变阻器可以改变电机的速度。
当我们给电机供电后,此时液晶显示屏将有数据显示出来,数据为 0。当我们按下
开关电机便开始转动,液晶显示器便开始显示速度与里程。
剩余31页未读,继续阅读
资源评论
快乐无限出发
- 粉丝: 1137
- 资源: 7276
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功