《电子线路综合设计》 课 程 设 计 说 明 书 题目:__自行车测速________ 摘 要 本设计主要阐述一种基于单片机与霍尔传感器等元件的测速仪设计。以AT89C51单片机为核心,实现对自行车里程、速度、时间、等参数的测量,并能简单的将里程及速度用 1602 实时显示。在本文中详细介绍了测速仪的硬件电路和软件设计。硬件部分利用霍尔传感器将每秒内的脉冲数传入单片机系统,然后自 行 车 测 速 仪 的 设 计 说 明 书 --第 1页自 行 车 测 速 仪 的 设 计 说 明 书 --第 1页经单片机系统计算处理并将过处理结果送1602 显示。软件的设计采用模块化结构,使程序的逻辑关系更加简洁。使硬件在软件的控制下协调运作。仿真,所设计的硬件电路及软件程序是正确的,实际的硬件电路中也基本上能够满足设计要求。 关键词:里程/速度,时间,霍尔元件,单片机,1602 Abstract This design mainly elaborated based on MCU and Hall element of speed instrument design. Take STC MCU as the core, Hall element speed, realizes to the bicycle mileage, speed, time measurement, and a simple bicycle mileage and speed with the 1602 real time display. The hardware part using the Hall element will bike per second pulse number of incoming MCU system, and then by the single chip microcomputer system calculation processing and processing result to the 1602 display. Program design in order to facilitate the expansion and the change, the software design uses the modular structure, make the logic relations more concise. Make hardware tocoordinatethe operation under the software control. Simulation experiments show that the designed hardware circuit and software program are correct, practical hardware circuit also basically can satisfy the design requirement, but due to the knowledge, in practice there are still some problems in the hardware circuit. Keywords: Mileage / speed,time, Hall element, MCU, 1602 1.设计要求: (1) 对自行车进行实时速度的测量,显示出速度值。 (2)...