background image

                          

               

      单片机控制四层教学电梯

[摘要]:本系统采用两片单片机(89C52)作为内外招信号的检测和控制核心。

内外招使用按键按下与否带来的电平的改变来控制对应的单片机输入或输
出口工作。楼层检测使用反射式红外传感器;轿厢负载采用精密压力传感
器;速度控制采用易控的步进电机外加微小误差转子;在竖井的侧面固定
了轨道以防止轿厢的晃动。基于这些完备而可靠的硬件设计,使用了一套
独特的软件算法,实现了电机在运动和加速经及减速过程的精确控制。

[关键词]:单片机;步进电机;A/D转换;555定时器;传感器;C语言编程;
流程图

[Abstract]

 

: Inside and outside this system uses two piece of monolithic integrated 

circuits (89C52) to take the move of signal examination and the control core. The 
inside and outside move of use pressed key presses down the level change which or 
not brings to control corresponding the monolithic integrated circuit input or the outlet 
work. Floor examination use reflection type infrared sensor; The sedan theater box 
load uses the precise pressure transmitter; The speed control uses easily to control 
step-by-steps the electrical machinery in addition light error rotor; Fixed the track in 
the shaft side to prevent the sedan theater box rocking. Based on these complete and 
reliable hardware design, has used a set of unique software algorithm, has realized the 
electrical machinery in the movement and the acceleration after and the moderating 
process accuracy control.

[Keywords] : MCS-51.89C52.   Step-by-steps   the   electrical   machinery;   A/D 
transformation; 555 timers; Schmitt trigger; Sensor; C language programming; Flow 
chart

1

B        

     

    C

A                  D

F                   G

E                     H

                  D

电梯间竖井部分由有

机玻璃粘成无上盖板的六面
体 ABCDEFGH ,高度 AE

为 1.2m ;电梯桥厢模型 J

通过滑轮悬挂并由电动机 M

牵引,可在电梯间竖井模型
的空间内上下运动。该电梯
间竖井模型每隔 20cm 自下

向上分成 4 层,其楼层编号

如图所示。