【正文】
S13: the elevator to the third floor internal selection button, the button is pressed said elevator passengers to go to the third floor, SCM according to the signal control elevator。 S14: Elevator internal selection to the four floor button, the button is pressed said elevator passengers going to the four floor, SCM according to the signal control elevator。 S15: Elevator internal selection to the five floor button, the button is pressed said elevator passengers going to the five floor, SCM according to the signal control elevator。 S16: Elevator internal selection to the six floor button, the button is pressed said elevator passengers going to the six floor, SCM according to the signal control elevator。 The keyboard circuit as shown in figure 2: 4 Fig. 2 overall plans the smallest singlechip system design If the circuit group reset circuit and clock circuit two parts, wherein the reset circuit using a bination key manual reset and automatic poweron reset, the circuit in Figure 3 ( left) shows: 9 feet for the MCU reset. The clock circuit as shown in Figure 3 ( right) shows: crystal oscillator is used in 12MHZ, XATL2 and XATL1 were 18 and 19 feet of scm. Fig. 3 overall plans 5 display circuit design This circuit uses a 8 digital tube display, from 74ls245 to drive 8 digital tube display elevator to arrive the number of floors and the operational status of the elevator, wherein the digital tube of 6 feet ( DP ) bright said elevator at this point in the uplink, if not bright said elevator in the downlink. microcontroller P2 port as the output port and the output activelow. The circuit shown in figure 4: Fig. 4 overall plans motor positive inversion of control In this design in order to facilitate the motor positive and negative use two light tube to represent, as shown in Figure 5 : the use of SCM P0 port output port to drive the luminous tube, as is the P0 to add resistance, in which L1 light indicates the motor forward, L2 lights, L3 light indicates that the motor reverse motor stop, while the elevator door. L3 out that the elevator door, elevator running L1 and L2 must have a bright, to express elevator uplink and downlink Fig. 5 overall plans 6 system software design Because the design of the keyboard matrix to replace the outgoing select button, which is the direction of the elevator call button and choose according to these keys to decide, so the chip to scan the keyboard constantly to get the call state. In order to control the operation of the lift. The keyboard matrix scanning is an important part of the software design of the system, in addition to the storage key information of each layer to keyboard scan, and then pare and elevator operation, to determine whether the response of each layer of the call ( elevator only in response to the same direction, finally call ) is floor display part, this design is through a delay circuit to display the location of the elevator. The software design includes the following sections: The initialization procedure so that the digital display 1 indicates that the elevator in a building, and the L3 light that elevator door etc. Others entered the elevator。 The main program mainly includes: The judge passengers into the elevator selection which floor, to control the elevator operation according to the judgement of the situation。 The elevator to scan the keyboard constantly in the process of operation, thus to judge each floor has no call request,。 The call request elevator response only in the running process of the same direction。 Realtime display of elevator location and running state ( uplink / downlink )。 The door has a delay to ensure passengers out of / into the elevator。 Software flow diagram is shown in figure 6: 7 overall plans 4 Summary and the experience Through the prehensive training based on MCU, let I learned the previous knowledge with prehensive application. This for me, is not only a practice, more is to test the knowledge of their previous. I found that I need to know, and learn a lot of knowledge. Let my own shortings were found from this practice, application software on a variety of learning at the same time, let me have a deeper understanding of knowledge. Found, only theoretical knowledge is not enough, there is a considerable gap between theory and application. Also let us experience what have grandiose aims but puny abilities, empty talk. Through this internship, I learned a lot of ② not learn things. This practice means to us is very important, let us from the new understanding to their position. In the practice, also carry forward our team spirit, and ability to cooperate. Under the teacher39。s enthusiastic guidance, believe that we have entered a new stage. Reference [1] Shi Lei Cheung Kwok Keung Altium Designer 8 Chinese circuit design, Tsinghua University press, 2021 8 [2] Li Zhaoqing. Singlechip microputer principle and Interface Technology ( Third Edition ). Beihang University press, 2021 [3] Zhang Daming. Single chip microputer control technology and its application [ M ] . Beijing: Mechanical Industry Press, 2021 9 基于單片機(jī)控制的電梯控制器 摘 要: 本設(shè)計基于單片機(jī)來控制電器中各部分的使用,采用數(shù)碼管來實時顯示樓層的位置及方向,利用兩個發(fā)光二極管來代替電機(jī),通過單片機(jī)控制發(fā)光管的亮和滅來實現(xiàn)電機(jī)的正反轉(zhuǎn),通過定時器延時來校驗電梯的位置。 關(guān)鍵詞: 電梯 AT89S51 LED 顯示 電機(jī)正反轉(zhuǎn)控制 樓層校驗 1 引言 隨著 人們生活水平的不斷提高和國名經(jīng)濟(jì)的迅速發(fā)展。各大城市建筑物在不斷向高層化發(fā)展。因此 電梯在我們的生活中起著舉足輕重的作用 。 電梯已不僅是一種生產(chǎn)環(huán)節(jié)中的重要設(shè)備 ,更是一種人們頻繁乘用的交通運 輸設(shè)備 。因此電梯控制技術(shù)也在不斷的進(jìn)步和完善,常用的控制技術(shù)主要的有兩種技術(shù):基于 PLC 控制和基于單片機(jī)控制兩大技術(shù)。用 PLC 控制的電梯性能可靠、穩(wěn)定,但是造價太高?;趩纹瑱C(jī)控制的電梯可以大大的降低成本而且運行也較可靠,所以現(xiàn)在電梯控制中大多數(shù)采用單片機(jī)控制。 2 總體設(shè)計方案 設(shè)計思路 本次設(shè)計的 基本 思想是采用 AT89s51 單片機(jī)作為核心, 利用其豐富的 I/O 接口與外圍電路配合進(jìn)行控制。采用定時器延時來控制電梯的位置校驗,采用 8 位 LED 靜態(tài)顯示來實時顯示電梯所在樓層,并用 74ls245 來驅(qū)動 LED 顯示。采用行列式鍵盤矩陣作為外呼內(nèi)選電路,由于是 6 層樓,故選用 4 4 矩陣鍵盤。當(dāng)電梯到達(dá)目的樓層時電機(jī)停止,此時即可進(jìn)、出乘客,乘客進(jìn)入電梯之后可選擇去哪一層,然后電梯根據(jù)乘客的選擇判斷去哪一層,繼續(xù)運行。