角度传感器简单应用系统
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
题目:角度传感器简单应用系统
学院:信息电子技术学院
年级:08级
专业:生物医学工程
姓名:黄新
学号:0809024109
指导教师:武俊丽(副教授)
摘要
角度测量是技术测量中的一个重要组成部分,随着生产和科学技术的发展,对产品和零部件角度测量应用越来越广泛,对精度要求也越来越高。特别是在现代工业技术中,角度是机械、仪器仪表和电子产品制造业中的重要几何参数之一,它的准确度直接影响着产品的质量与寿命,因而角度测量在现代工业中占有重要的地位。角度传感器是用来测量固定部件和转动部件之间的旋转角度,广泛应用于动态系统的角度精密测量,如惯性导航、机械控制、无人驾驶飞行器、指挥仪和雷达等系统的方位角或俯仰角测量。
本课题设计一个角度传感器应用系统,该系统能控制倾斜角度,保持水平和显示倾斜角度值等功能。硬件部分主要包括STC89C52单片机最小系统,ULN2003电机驱动电路,SCA60C倾角传感器,电源模块,数码管显示模块等。系统通过角度传感器实时采集角度信号,采用STC89C52单片机控制并产生脉冲信号精确控制步进电机的转速和角度,ULN2003作为电机驱动模块,IO口输出具有时序的脉冲信号作为4相5线步进电机的控制信号,进而驱动28BYJ-48步进电机,使步进电机上的平板随着摆杆的摆动而旋转。系统还可以通过键盘输入系统设置步进电机所要达到的角度值。用数码管显示器显示设置角度值。当步进电机达到设置值时,启动报警装置。此时步进电机停止工作,数码管显示设置角度值。
关键词:角度测量;SCA60C角度传感器;STC89C52单片机
Abstract
Angle measurement is an important part of the technical measurement, and measurement applications with the development of production and science and technology, products and parts more widely and increasingly high precision. Particularly in the modern industrial technology, the angle is one of the important geometrical parameters in machinery, instrumentation, and electronic products manufacturing, its accuracy has a direct impact on the quality of the product life, and thus the angle measurement in modern industry occupies an important status. The angle sensor is used to measure the angle of rotation between the fixed parts and rotating parts are widely used in the dynamic system point of view the precision measurement of the azimuth or elevation, such as inertial navigation, machine control, unmanned aerial vehicles, command analyzer and radar systems angle measurements.
This project is to design an angle sensor applications, the system can control the tilt angle, keeping it level and display tilt angle value.Angle sensor applications STC89C52 microcontroller, precise control of speed and angle of the stepper, the stepper motor on the tablet can swing to the preset angle pulse signal generated by the microcontroller. Stepper motor offset angle sensor real-time monitoring. Angle value is displayed in real time through the digital display. The hardware part including STC89C52 smallest single-chip system, the ULN2003 the motor drive circuit, SCA60C tilt sensor, power supply module, digital tube display module. Real-time acquisition system through the angle sensor angle signal using STC89C52 SCM, ULN2003 as motor drive modules, IO port output timing pulse signal as phase 4 wire stepper motor control signals and then drive 28BYJ-48 stepper motor, so that stepper motor plate and rotate with the swing of the pendulum. The system can also set the stepper motor through the keyboard input system to achieve the angle value. Digital tube display to set the angle value. Reaches the set value when the stepping motor to start the alarm device. The stepper motor to stop working, the digital display to set the angle value.
Keywords: angle measurement; the SCA60 angle sensor; STC89C52 microcontroller