- 53
- 0
- 约2.28万字
- 约 45页
- 2016-12-11 发布于贵州
- 举报
基于单片机的自行车测速系统设计
摘 要
随着科技的迅速发展,单片机的应用也越来越广泛,并带动传统控制检测技术不断更新。现在的里程表大多是电子式的,用数码管或液晶显示器即时显示,显示更加直观。电子式里程表采用接触车速传感器代替软轴传动,可使里程表的安装位置不受距离限制,进一步有效地克服了机械式里程表中的诸多不足。
方案采用了一种以单片机STC89C52为主控机,使用光电传感器进行自行车里程、速度测量的装置。传感器将不同车速产生的不同频率的脉冲信号输入到单片机进行控制与计算,再采用LCD液晶显示模块进行显示,使得自行车的速度与里程数据能直观的显示给使用者。
本设计主要包括自行车轮脉冲采集、键盘输入和数据显示等部分,主程序用C语言编写,完成各项功能及数据的处理。本里程表的设计具有结构简单,成本低廉,显示清晰,稳定可靠等优点。并且可以进行扩充,更方便于使用者。
关键词 光电传感器,单片机,液晶显示器,测速
The Design of bicycle speed measuring system
based on single chip microcomputer
ABSTRACT
With the rapid development of technology, more and more widespread application of microcomputer, promote the traditional control detection technology constantly updated. Most of the current electronic odometer, and with the LED digital tube or LCD display real-time, display more intuitive. Electronic odometer flexible shaft using the contact speed sensor instead of driving, mileage tables can be installed without distance limitations, and further to effectively overcome the mechanical disadvantages of mileage in the table.
The plan adopts the system and configuration of combining the microcontroller STC89C52 as the main control computer ,using the photoelectric sensor bicycle odometer, speed measuring devices. when Different speed pulse signals of different frequencies produced by sensor are input into the microcontroller,after its calculation, liquid crystal will display the datas, making the bikes speed and distance data visually to the user.
The design includes a bike wheel pulse acquisition, keyboard input and data display section, the main program using C language, This paper first needed to milestones design of equipment in detail, on the problems existing in the design, explained And then to hardware and software design and implementation of the part made earnest analysis, Then presented system modeling process and the corresponding system based on this model, the control simulation, and the simulation results are compared.
KEY WORDS odometer ph
原创力文档

文档评论(0)