




免费预览已结束,剩余4页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
外文翻译Digital Meter for Measuring Rotational SpeedAbstract A digital meter for measuring the rotational speed is introduced in this paper. It is controlled by an MCS-51 series single-chip microcomputer 8032. It contains the following features: rational design, high accuracy, wide measurability range and powerful function and dependability. Moreover, it is very nimble and convenient to use. The work principle is presented in detail in the paper and the block diagram and program flowchart are given as well.Key works: digital measuring apparatus; rotation speed; single-chip micro-computerThe rotor speed control system of industry is one of the important parameters. Mechanical tachometer measuring speed, the rotor contact with the measured object must be to get the synchronous speed, through the internal gear shift instruction after the pointer speed with the size of the header. Use of mechanical tachometer measured object can interfere with movement, especially when measured rotor mass is very small, speed tables on the rotor pressure is not a small additional load, which affects the measurement accuracy. This paper describes a 8032 single-chip microcomputer as the core to the non-contact Digital Tachometer. 1 speed measuring principle The gun speed-sensitive devices with infrared sensors, launched by the specialized infrared detection devices, while receiving reflected back from the measured object infrared, photoelectric conversion into electrical pulses through the signal, does not affect the rotation of the object. Tubes and pipes are fixed in the detection of acceptable shelf, through the lens focus, semi-transparent film not only to the reflected infrared light fired rotating objects, they can rotate the object by the reflected infrared light through the translucent membrane back fired for management. Along the circumference of a rotating body even paste some reflection paper, it directed reflection infrared to receive the reflected acceptance of the infrared control. Photovoltaic conversion shown in Figure In the optical triode 3DU5C adding an appropriate bias, when 3DU5C by infrared irradiation, at the conduction state, A point for the low level, 3DG6 end, B point is high; when no infrared radiation, the photoelectric transistor closed A high point presentation, so 3DG6 low collector point B, B point of the pulse signal through the inverter 1,2 plastic, and then the door 3 RP, frequency and speed will be proportional to the size of the corresponding changes The speed pulse signal. Speed pulse signal into the 8032 microcontroller timer / counter, through the microcontroller to calculate speed software processing. Figure 1 Schematic photoelectric conversionWhen the machine used in the measurement speed M / T method and timing method were used. M/T M / T method is the detection time Tc, the time according to speed pulse m1 and m2 to calculate the speed pulse. If a fixed period Tc, the total time taken and pulse rotation pulse fp fcs Pulse on m1 and m2, timing pulse frequency f, rotor output pulses per revolution for the p, the speed n = 60fm1 / pm2 (r / min). Such as the speed measured over 1 s pulses for the m1, rotor output pulse number per revolution, that great number of p, the speed n = 60m1 / p (r / min). 2 hardware speed measurement instrument Figure 2 constitute the grounds of speed 8032 MCU measuring circuit. 8032 is MCS-51 series single chip, compared with the common 8031 chip, a feature more than 8032 strong T2 timer / counters and 128 bytes of internal RAM, which T2 counter with 16-bit auto-reload and capture, can for timer / counter with, but also used as a baud rate generator. The system used for time T2, which take into account regular pulse, regular pulse signal directly from the 8032 chip address latch signal ALE client leads, and through the 74LS74 dual D flip-flop frequency, was two points. When using 6 MHz crystal oscillator, the time pulse frequency fc is 0.5 MHz. T0 accrual speed pulse counter fp, T1 time pulse counter for taking into account fc, trigger DFF1, DFF2 and 1,2,3,4 component count and gate control circuit, can also start and stop counters T0 and T1. P0 port to allow control through the end of 8D with latch 74LS377 extends an 8-bit output, as a five segment LED digital display of the data line selection code. P3.0, P3.1 access switches S1 and S4, S1 for the very few P set selector switch, S4 input pulse for the very few keys. P3.2 and P3.3 are connected S2 and S3 switch, S2 switch method for the speed selection key; select the use of M / T method speed, or velocity measurement with time. S3 for the speed frequency select switch, to select the measuring speed or frequency measurements. When using regular method to measure the speed, the system can be easily measured by measuring the frequency. 3 software design and anti-interference measures System programming includes the main program, interrupt procedures, code conversion routines, display routines, etc. The hardware structure of two measurement methods are identical, but different software process, to set the speed through the P3.2 port approach. The following two measurement methods were discussed works. M / T method, first of all by the end of 8032 the P1.1 output start pulse signal, the start pulse cleared DFF1 and DFF2 two triggers, so that Q1 ended output low, blocking the door 2,3,4, Q- 1 side open the door for the high one, and trigger DFF2 the Q-2-ended output is high, ready for the start of work. When the speed pulse signal fp receives the rising edge, the flip-flop DFF1 turn, Q-1 is low, blocking the door 1, Q1 is high, open the door 2,3,4, so that start time T2, m1, m2 and started counting. In the interrupt program, the P1.2 8032 ended output pulse signal to stop, set bit trigger DFF2, Q-2 low-side outputs, blocking the door 2,3,4, T0, T1 and stop counting. Interrupt the program while reading speed signal pulses and timing signal pulses m1 m2, in the main program, in accordance with m1, m2, P and f calculated speed n = 60fm1/pm2, and converted to BCD code sent to the digital look-up table display, complete a data collection and display. In the regular method, due to the timing signal generated 1 s, while the maximum time the system 131 ms, it is the law in time to take 10 consecutive 100 ms time method, when the time to 100 ms, the timer T2 overflow interrupt to the 8032 application. Interrupt in the interrupt process of the cumulative number of times, if the cumulative number of times until they break 10, not to make any operation on the return, T2 to the next 100ms the time, T0 to count speed pulse, when the interrupt when the number reached 10 in interrupt the program, set bit P1.2, stop counting, and reading the count value T0 m1, corresponding in the main program to calculate the speed of operation, and converted to BCD code, send LED display. Time here with 16-bit counter with auto-loading feature of the T2 counter, when T2 overflow interrupt the same time, the counter counts automatically reload the initial value, continue to regularly. So its time is continuous, without interruption and response procedures for dealing with the impact of disruption. If not overloaded by features such as timers T0 or T1, then when the timer overflow, it should be in response to failure, reset the timer interrupt program, the initial value. Timer timing is intermittent, the impact of timing accuracy, thereby affecting measurement precision. Visible by 8032 in the T2 counter timer is a feature of the system, it can significantly improve measurement precision. The guns range in 0-49r/min accuracy up to 0.1 r / min, at 50-99 999r/min range of accuracy up to 1 r / min. The gun can measure the number of different pole pulse generator pulse occurs, such as infrared detectors above, when changing the rotating body attached to the amount of reflection paper, issued by the rotor per revolution pulse number p is also changed accordingly, At this point, if still in accordance with the procedures in the original p value calculation, calculation error will be. Therefore, the system provides very few of the features set the scene: P3.0 I take very few set selector switch, when P3.0 is high time that need to set the pole, then the system waiting for input into the mouth by the P3.1 pulse signal, each pulse makes the system very few register value plus 1, and displayed in the LED digital tube. Velocity measurement at the time, and when not to n = 60m1 / p the operators directly to the speed of 1 s pulses m1 transformed into BCD code shows that the value obtained is obviously the input pulse frequency. Therefore, the system set up speed frequency options. P3.3 port access speed frequency select switch S3, when P3.3 is high time that test frequency. Meanwhile, the system software has set a number of logical fault diagnosis functions, such as speeds above 99 999 r / min, the system will display PPPPP, that go beyond the scope of this gun is measured, and as if the M / T velocity measurement, the Select the measurement frequency, it shows EEEEE, prompts the user error and so on. As the gun is generally in the industrial field in the working environment of sources of interference, so in the design, using anti-jamming measures, such as power supply filtering, decoupling, pay attention to the trend of ground, then the locations and other hardware interference approach to CPU, RAM self-test, software redundancy, software, software such as anti-jamming technology trap. Figure 2 Circuit Digital Speed Meter中文翻译数字式转速测量仪摘要 介绍了一种以MCS-51系列单片机8032为控制主体的数字式转速测量仪。该测量仪具有设计合理、精度高、测速范围宽、功能强、可靠性好、使用灵活方便等特点。文中详细介绍了该仪表的工作原理,给出了它的硬件原理图和软件流程图。关键词:数字式测量仪器;转速;单片机转动体的速度是工业测控系统中的重要参数之一。机械式转速表在测量转速时,必须将转轴接触被测物体,以获得同步转速,通过内部齿轮变速后用表头指针指示转速大小。使用机械式转速表会干扰被测物体的运动,特别是当被测转动体质量很小时,测速表对转动体施加的压力就是一个不小的附加负载,这影响测量的准确性。本文介绍一种以8032单片微机为核心的测速仪。1 转速测量仪原理本测速仪的测速敏感器件采用红外线传感器,由专门的探测装置发射红外线,同时接受从被测物体反射回来的红外线,通过光电转换变为电脉冲信号,不影响物体的转动。发射管和接受管都固定在探测架上,通过透镜聚焦,半透明膜既能使反射的红外光线射向转动物体,又能使由转动物体反射回来的红外线通过半透明膜射向接受管。在转动体上沿圆周均匀贴上若干反射纸,它能定向反射红外线,使接受管接受到反射回来的红外线。光电转换原理见图1。在光电三极管3DU5C上加一适当偏压,当3DU5C受红外线照射时,处于导通状态,A点为低压电平,3DG6截止,B点为高电平;当没有红外线照射时,光电三极管截止,A点呈现高电平,使3DG6集电极B点为低电平,B点的脉冲信号经过反相器1、2的整形,再经门3反相,便得到频率与转速大小相应成比例变化的转速脉冲信号。转速脉冲信号送入8032单片机的定时/计数器,经过单片机的软件处理计算出转速。图1 光电转换原理图本机在测量转速时采用了M/T法和定时法两种方法。M/T法是在检测时间Tc内,根据转速脉冲m1和计时脉冲m2来计算转速。如在固定周期Tc内,计取转动脉冲fp和计时脉冲fc的脉冲个数分别为m1和m2,计时脉冲的频率为f,转动体每转输出的脉冲数为p,则转速n=60fm1/pm2(r/min)。定时法是在给定的时间间隔1 s内,对转速脉冲进行计数。如在1 s内测得的转速脉冲数为m1,转动体每转输出的脉冲个数,即极数为p,则转速n=60m1/p(r/min)。2 转速测量仪的硬件结构图2为由8032单片机构成的转速测量仪电路图。8032属于MCS-51系列单片机,与常用的8031芯片相比,8032多了一个功能较强的T2定时/计数器和128字节内部RAM,其中T2计数器具有16位自动重载和捕获能力,既可作定时/计数用,又可作为波特率发生器用。本系统T2用于定时,即计取定时脉冲信号,定时脉冲信号直接从8032芯片的地址锁存信号端ALE引出,并经过74LS74双D触发器两分频后获得。当晶振采用6 MHz时,定时脉冲的频率fc为0.5 MHz。T0计数器计取转速脉冲fp,T1计数器用于计取定时脉冲fc,触发器DFF1,DFF2和与门1,2,3,4组成计数控制电路,能使T0和T1计数器同时启停。系统采用动态显示方式。P0口通过带允许控制端的8D锁存器74LS377扩展了一个8位输出口,作为5位LED数码管显示的段选码数据线。P1.3-P1.75根口线作为五位LED显示的位选线。P3.0、P3.1接S1和S4开关,S1为极数P设定选择开关,S4为极数输入脉冲键。P3.2和P3.3分别接S2和S3开关,S2开关为测速方法选择键,选择用M/T法测速,还是用定时法测速。S3为转速/频率选择开关,用来选择测转速还是测频率。当用定时法测转速时,系统可以很方便地测出所测频率。3 软件设计及抗干扰措施系统的程序设计主要包括主程序、中断程序、代码转换子程序、显示子程序等。两种测速方法硬件结构完全相同,只是软件流程不同,通过P3.2口来设定测速方法。下面分别论述两种测速方法的工作原理。M/T法中,首先由8032的P1.1端输出启动脉冲信号,该启动脉冲清零DFF1和DFF2两个触发器,使Q1端输出低电平,封锁门2、3、4,Q-1端为高电平打开门1,而触发器DFF2的Q-2端输出为高电平,为启动工作做好准备。当接受到转速脉冲信号fp的上升沿时,触发器DFF1翻转,Q-1为低电平,封锁门1,Q1为高电平,打开门2、3、4,从而使T2开始定时,m1,m2同时开始计数。当T2定时到100 ms时,向8032申请中断。在中断程序中,8032的P1.2端输出停止脉冲信号,置位触发器DFF2,Q-2端输出低电平,封锁门2、3、4,T0、T1同时停止计数。同时在中断程序中读出转速信号脉冲数m1和定时信号脉冲数m2,在主程序中根据m1、m2,P和f算出转速n=60fm1/pm2,并转换为BCD码,查表送至数码管显示,完成一次数据的采集和显示。在定时法中,由于要产生1 s的定时信号,而本系统中定时最大值为131 ms,故在定时法中,采取连续定时10次100 ms的方法,当到了100 ms定时时,定时器T2溢出向8032申请中断。在中断程序中对中断次数进行累计,如果累计中断次数未到10次,则不作任何运算就返回,T2继续下一次的100ms的定时,T0继续计数转速脉冲,当中断次数达到10次时,在中断程序中,置位P1.2,停止计数,并且读出T0的计数值m1,在主程序中进行相应运算算出转速,并转换为BCD码,送LED显示。这里定时计数器采用了具有16位自动重装载功能的T2计数器,当T2溢出产生中断的同时,计数器自动重载计数初值,继续定时。因此它的定时是连续的,不受响应中断和处理中断程序的影响。而如果采用没有重载功能的定时器如T0或T1,则当定时器溢出时,须在响应中断后,在中断程序中重置定时器初值。定时器的定时是断续的,影响定时精度,继而影响测速精度。可见采用8032中的T2计数器定时是本系统一个特点,它能显著提高测速精度。本测
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 访问控制模型研究-洞察及研究
- 2025年性安全教育常识测试题及答案
- 就业政策区域差异研究-洞察及研究
- 出差行车安全知识培训课件
- 陕西省司法考试司法制度考试题(附答案)
- 出差安全培训交底课件
- 2025物业服务委托管理标准合同范本
- 出国企业安全培训课件
- 出入院流程课件
- 出入量记录课件
- 心理学基础(第2版) 课件 第7章 学习
- 2023年普通高等学校招生全国统一考试(全国乙卷)文综历史试题附答案
- 边坡作业安全教育培训
- 印染工厂设计
- ktv安全消防管理制度
- 公司贷款流程
- 血透患者高血钾的护理
- 医疗卫生机构安全生产标准化管理规范
- 心内科出科汇报
- 生成式人工智能课件
- 2025年园林绿化养护管理方案范本(四)
评论
0/150
提交评论