1、西安航空职业技术学院 基于单片机的自行车测速仦 基于单片机自行车测速仪 【 摘要 】 随着居民生活水平的不断提高,自行车不再仅仅是普通的运输、代步的工具,而是成为人们娱乐、休闲、锻炼的首选。自行车的速度里程表能够满足人们最基本的需求,让人们能清楚地知道当前的速度、里程等物理量。本论文主要阐述一种基于霍尔元件的自行车的速度里程表的设计。以 AT89C51 单片机为核心, A44E 霍尔传感器测转数,实现对自行车里程 /速度的测量统计,采用 24C02 实现在系统掉电的时候保存里程信息,并能将自行车的里程数及速度用 LED 实时显示。文章详细介绍了自行车的速度里程表的硬 件电路和软件设计。硬件部分
2、利用霍尔元件将自行车每转一圈的脉冲数传入单片机系统,然后单片机系统将信号经过处理送显示。软件部分用汇编语言进行编程,采用模块化设计思想。该系统硬件电路简单,子程序具有通用性,完全符合设计要求。 关键字: 里程 /速度 ; 霍尔元件;单片机; LCD 显示 西安航空职业技术学院 基于单片机的自行车测速仦 Abstract: As living standards improve, bicycle is no longer just a regular transport, travel tools, but become the first choice for entertainment, r
3、ecreation, exercise. Bike speed odometer to meet the most basic needs of the people, so that people can know the current speed, distance and other physical quantities. This paper focuses on a bicycle speed odometer design based on Hall element. AT89C52 MCU core, A44E Hall sensor measuring speed, ena
4、bling the bicycle mileage/speed measurement and statistics, by the 24C02 method when the systems power save mileage information, to your bike mileage and speed LED display in real time. Article details the speed odometer hardware circuit and software design of the bike. Hardware parts using Hall ele
5、ments bike number of pulses per turn around incoming MCU system and signal to show in single chip microcomputer system. Software programming in Assembly language, is modular in design. The system hardware circuit is simple, child program has the versatility, fully meet the design requirements. Key w
6、ords: Mileage / speed; Hall element; Single chip microcomputer; LCD 西安航空职业技术学院 基于单片机的自行车测速仦 目录 1 绪论 . 1 1.1 课题研究的目的和意义 . 1 1.2 课题的发展概况 . 1 1.3 研究的主要内容 . 2 2 系统总体方案设计 . 2 2.1 系统方案 . 2 2.2 单片机选择 . 3 2.3 时钟芯片选择 . 3 2.4 温度传感器选择 . 错误!未定义书签。 2.5 测速传感器选择 . 错误!未定义书签。 2.6 显示器选择 . 错误!未定义书签。 3 系统硬件设计 . 5 3.1 单
7、片机外围 电路设计 . 错误!未定义书签。 3.1.1 单片机介绍 . 5 3.1.2 单片机外围电路图 . 错误!未定义书签。 3.1.3 时钟电路的设计 . 错误!未定义书签。 3.1.4 复位电路的设计 . 错误!未定义书签。 3.2 时钟模版的设计 . 错误!未定义书签。 3.2.1 时钟芯片介绍 . 错误!未定义书签。 3.2.2 DS1302 硬件连接图 . 错误!未定义书签。 3.3 温度模块设计 . 错误!未定义书签。 3.3.1 温度传感器介绍 . 错误!未定义书签。 3.3.2 DS18B20 硬件连接图 . 错误!未定义书签。 3.4 速度模块设计 . 错误!未定义书签。 3.4.1 霍尔简介 . 9 3.4.2 霍尔传感器的测温原理 . 9 3.5 显示模块设计 . 错误!未定义书签。 3.5.1 LCD 芯片介绍 . 错误!未定义书签。 3.5.2 LCD 硬件连接图 . 错误!未定义书签。