Puzhong V2 7-person majority voter 51 single-chip microcomputer simulation proteus

7 Majority Voting Device
Requirements:
(1) Set the 14 keys of the matrix keyboard as the keys of the 7 voters, among which 2 keys for each person, respectively as
the "agree" key and "opposition" key;
set 1 The independent button is used as the voting start button;
two digital tubes are used to display timing information,
two digital tubes are used to display "agree" and the number of approval, and
two digital tubes are used to display "no" and the number of opposition.

(2) Only when the moderator presses the start button can you vote, otherwise the voting button information will not be received.

(3) When the voting start button is pressed, a 10-second countdown will begin. At this time, the digital tube will display the countdown information.
At the same time , each time you press the "Yes" button or the "No" button, the corresponding digital tube displays A (agree) and the
cumulative number of O (opposite) and opposing cumulative number, the end of the countdown means the end of voting.

(4) When the voting start button is pressed (that is, voting starts) and when the countdown ends (that is, voting ends), the buzzer will sound
once, and the result displayed by the digital tube is the final voting result. Among the 7 votes, "Yes" votes ≥ 4
votes means pass. At this time, the timer digital tube displays "P"; otherwise, it fails, and the timer digital tube displays
"F".

The program must be connected to the development board to realize the simulation.

Insert picture description here

Guess you like

Origin blog.csdn.net/x1131230123/article/details/108611708