Queuing system based on 51 single chip microcomputer

1. Design content

It is composed of STC89C52 single-chip microcomputer + key module + LCD1602 LCD screen + buzzer call module + power supply.
Specific functions:
1. The host completes the calling number by pressing the button, and the LCD1602 LCD screen displays the called number and service counter number; at the same time, the buzzer The device sounds to remind customers to receive service;
2. The slave machine presses the button to obtain the number, and realizes the queuing number taking function through serial communication;
3. The slave machine can also display its own queue number and the current waiting number in real time Number of people.

2. Design plan

In order to realize the design of the queuing system based on 51 single chip microcomputer, this article will realize the following design requirements:

(1) The slave machine can take numbers in real time, which is better in reality;

(2) Directly and clearly display the customer queuing number;

(3) The host completes the call by pressing the button, the LCD1602 LCD screen displays the called number and the counter number of the service; at the same time, the buzzer sounds to remind the customer to receive the service;

(4) Simple operation, complete function and high accuracy.

Based on the points listed above, this design uses STC89C52 microcontroller to control LCD1602 LCD module, key module, buzzer module, power module and other external circuits to realize the design of master and slave. The specific design block diagram is shown in Figure 2.1 Show.

Figure 2.1 Block diagram of overall design


 

3. Hardware design ideas

Figure 3.1 shows the hardware design of this system. Specifically, the host and slave hardware circuits are composed of the following modules:

(1) The smallest single-chip microcomputer system. It is used to drive and control other modules to realize the overall function. It uses STC89C52 single-chip microcomputer as the core chip, supplemented by reset circuit and crystal oscillator circuit.

(2) Button module. The master key is composed of four matrix keys, representing different counters; the slave key is composed of one key, which is used for customers to get numbers;

(3) Display module. The host computer displays the called number and service counter number through the LCD1602 LCD display; the slave displays its own queue number through the LCD1602 LCD display;

(4) Buzzer module. To remind customers to receive services;

(5) Power module. Used to power the entire system.

Figure 3.1 Block diagram of hardware design


 

4. Software design ideas

According to the design requirements of this article, on the basis of the hardware circuit design in Chapter 3, specific functions that need to be realized through software programming:

(1) Drive each module to work, realize the clear display of LCD1602, and realize the buzzer reminder;

(2) Button setting function. Realize the functions of host customer calling and slave number taking;

(3) Realization of display function. Realize the host LCD1602 to display the called number and counter number, and the slave LCD1602 to display the number and queue number;

(4) Serial communication. Realize the serial communication between the master and the slave, and the slave sends the number data to the master.

The specific design process is shown in Figure 4.1.

Figure 4.1 Set program design flow


 

 

All materials include programs (notes), AD schematic diagrams, protues simulation, reference papers, program explanations, simulation explanations, simulation videos, schematic explanations, introductions to the use of materials, etc., the most comprehensive network! ! ( Https://www.cirmall.com/circuit/18402 )

For more MCU design and information, please pay attention to the WeChat public account "Electronic Engineer Growth Diary"! !

 

Guess you like

Origin blog.csdn.net/weixin_41017942/article/details/107588129