基于单片机自行车测速及防盗系统设计
无需注册登录,支付后按照提示操作即可获取该资料.
基于单片机自行车测速及防盗系统设计(任务书,开题报告,论文10000字)
摘 要
自行车曾经仅仅是人们代步的工具。随着国内经济的快速发展,人民生活条件不断改善,自行车运动逐渐发展成为人们休闲娱乐、健身锻炼的一种选择。当人们使用自行车作为休闲锻炼的工具时,需要知道自行车的实时速率和已行驶里程,当自行车停放时,人们希望实时监测车辆状态,防止自行车被盗。本论文介绍的具有防盗功能的自习车速度里程表能够达到人们的要求。本文主要介绍一种基于霍尔元件、单片机和数码管的具有防盗功能的自行车速度里程表的设计。以 STC89C52RC 单片机为处理器,A44E 霍尔传感器监测车轮转数,数码管实时显示自行车速度或里程,达到对自行车速度/里程实时测量和显示的要求。使用振动传感器实时监测自行车状况,能够在感应到自行车发生振动时,激活蜂鸣器报警。本文全面阐述了具有防盗功能的自行车速度里程表的硬件电路设计和软件程序设计。硬件设计使用霍尔元件把轮胎每转一周的脉冲数输入单片机内部,接着单片机处理该信号之后送达显示。软件部分进行模块化设计。程序使用C语言编写。本系统硬件电路设计简单,各子程序具有良好的可读性和通用性,切合要求。
关键词:里程/速度;霍尔元件;单片机;数码管显示
Bike speed system design based on single chip
Abstract
Bicycle once is just people walking tools, With the rapid development of the domestic economy, people's living conditions continue to improve, cycling gradually developed into an option for recreation, fitness exercise. When people use the bicycle as a tool for leisure exercise, you need to know the rate of bicycle and traveled distance in real time, when the bicycle is parked, people want to monitor the status of vehicle in real time, to prevent bicycle theft. Self-study with anti-theft car odometer speed function described in this paper can achieve the requirements of people. This paper describes the speed of the bicycle anti-theft function based on the Hall element, microcontrollers and digital odometer design. In STC89C52RC MCU processor, A44E Hall sensors monitor wheel rotation, digital real-time display bicycle speed or mileage, to bicycle speed / mileage real-time measurement and display requirements. Real-time monitoring using a vibration sensor bicycles situation can occur when the vibration sensor to the bicycle, activate the buzzer alarm. This paper describes the overall hardware design and software design speed of the bicycle odometer with anti-theft function. Hardware design using a Hall element to the number of pulses per revolution of the tire input internal microcontroller, then microcontroller processes the signal after the service display. Software part of a modular design. Program using C language. The system hardware circuit design is simple, each subroutine has good readability and versatility to meet the requirements.
Key Words: Mileage/speed; Hall element; Single chip microcomputer; digital display
目录
摘 要 I
绪论 1
概述 1
智能自行车发展现状及前景展望 1
第一章 系统方案论证与分析 3
1.1主要任务及内容 3
1.2 任务分析与实现 3
1.3硬件方案论证及元器件选择 4
1.3.1测速传感器选择 4
1.3.2振动传感器选择 5
1.3.3处理芯片选择 5
1.4 软件方案设计 6
第二章 硬件电路设计 7
2.1 概述 7
2.2 系统总电路图 8
2.3 单片机简介 8
2.3.1 单片机的引脚功能介绍 9
2.4单片机外围电路的设计 10
2.4.1 时钟电路的设计 10
2.4.2 复位电路的设计 11
2.5霍尔检测电路设计 12
2.5.1 双电压比较器LM393 12
2.6 振动检测电路设计 13
2.7 显示电路的设计 14
2.8报警电路设计 16
第三章 软件程序设计 18
3.1 概述 18
3.2 总体程序设计 18
3.3 显示子程序的设计 19
3.4 中断子程序设计 20
3.5 布防按键子程序设计 21
3.6 报警子程序设计 22
第四章 系统的软硬件调试 24
4.1 硬件系统调试 24
4.2软件系统调试 25
结 语 26
参考文献 27
致 谢 29
附录 1 硬件实物图 30