CN109359721B - Method and system for counting number of people in room - Google Patents

Method and system for counting number of people in room Download PDF

Info

Publication number
CN109359721B
CN109359721B CN201811521064.0A CN201811521064A CN109359721B CN 109359721 B CN109359721 B CN 109359721B CN 201811521064 A CN201811521064 A CN 201811521064A CN 109359721 B CN109359721 B CN 109359721B
Authority
CN
China
Prior art keywords
pin
down counter
decoder
segment decoder
common cathode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811521064.0A
Other languages
Chinese (zh)
Other versions
CN109359721A (en
Inventor
曾建军
韦宝泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
East China Jiaotong University
Original Assignee
East China Jiaotong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by East China Jiaotong University filed Critical East China Jiaotong University
Priority to CN201811521064.0A priority Critical patent/CN109359721B/en
Publication of CN109359721A publication Critical patent/CN109359721A/en
Application granted granted Critical
Publication of CN109359721B publication Critical patent/CN109359721B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06MCOUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
    • G06M1/00Design features of general application
    • G06M1/27Design features of general application for representing the result of count in the form of electric signals, e.g. by sensing markings on the counter drum
    • G06M1/272Design features of general application for representing the result of count in the form of electric signals, e.g. by sensing markings on the counter drum using photoelectric means

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Time Recorders, Dirve Recorders, Access Control (AREA)

Abstract

The invention relates to the technical field of sensors, in particular to a method and a system for counting the number of people in a room. The method comprises the following steps: the two sensing units are used for sensing the ingress and egress of people, and are respectively arranged on two sides of the indoor through opening, the sensing units transmit sensing signals to the control unit, and the control unit counts the number of people through the sensing signals and displays the number of people on the display unit. According to the invention, two sensors are arranged to monitor the ingress and egress of people and count the number of the ingress net people, so that the number of indoor people is obtained, and the statistics is simple and convenient.

Description

Method and system for counting number of people in room
Technical Field
The invention relates to the technical field of sensors, in particular to a method and a system for counting the number of people in a room.
Background
At universities, since a teacher often has students of several classes together when taking class, the number of people is numerous, and the teacher is very wasteful of the time of taking class to let the teacher know in real time whether the number of people is in good order. Meanwhile, the time and place of the lessons in different colleges and different grades are not uniform and fixed, so that a plurality of students who want to learn can only find classrooms capable of learning from one to another because the current number of people in each classroom is not known. This search is annoying to students: on one hand, the classroom finding can waste much precious time, on the other hand, the study of other classmates can be influenced by the fact that the classroom door is not disconnected and closed, and particularly, the heating effect can be reduced when the classroom door is frequently opened and closed in winter. There is no good solution to the above problems, and therefore a classroom people counter capable of automatically detecting the number of people is provided.
Disclosure of Invention
The invention aims at overcoming the defects of the prior art and provides a method and a system for counting the number of people in a room.
A method of counting the number of people in a room, comprising: the two sensing units are used for sensing the ingress and egress of people, and are respectively arranged on two sides of the indoor through opening, the sensing units transmit sensing signals to the control unit, and the control unit counts the number of people through the sensing signals and displays the number of people on the display unit.
Further, the method comprises the step of monitoring the weight of the people entering and exiting the room, and the control unit corrects the number of people entering and exiting the room when the monitored weight exceeds a threshold value or the monitored weight exceeds a threshold value.
A counting system, comprising: the system comprises a first sensor arranged outside an access chamber, a second sensor arranged in the access chamber, a control analysis unit and a display unit; the first inductor is used for inducing that an external person approaches the indoor through hole, the second inductor is used for inducing that an indoor person approaches the indoor through hole, the first inductor and the second inductor are respectively and electrically connected with the control analysis unit, the control analysis unit judges whether a person enters or exits according to the time of signal transmission time of the first inductor and the time of signal transmission time of the second inductor, statistics is carried out on the times of entering or exiting, and the number of indoor persons is displayed on the display unit.
Further, the first sensor is a first photoelectric switch, the second sensor is a second photoelectric switch, the control analysis unit comprises a control circuit board, and the control circuit board comprises a second four-decoder, an AND gate, two tri-state gates, a first decimal up-down counter, a twenty-first up-down counter, a first seven-segment decoder and a second seven-segment decoder; the display unit comprises a first common cathode nixie tube and a second common cathode nixie tube;
The signals of the first photoelectric switch and the second photoelectric switch are connected into a second four-decoder, two output ends of the second four-decoder respectively control the on-off of two tri-state gates, and the two tri-state gates control the counting directions of a first decimal up-down counter and a twenty-first up-down counter; the signals of the first photoelectric switch and the signals of the second photoelectric switch are transmitted to an AND gate, and the signals output by the AND gate are used as clocks of a first decimal up-down counter and a twenty-first decimal up-down counter.
Further, the control circuit board circuit of the invention is composed of a second four-decoder 4555U1, an AND gate 74LS08 U6, a tri-state gate 74LS126U2, a first decimal up-down counter 74LS168 U3, a twenty-first up-down counter 74LS168 U5, a first common cathode nixie tube S1, a second common cathode nixie tube S2, a first seven-segment decoder 74LS48 U4 and a second seven-segment decoder 74LS48 U6, the 1 pin of the first photoelectric switch G1 is connected with the 1 pin of the AND gate 74LS08 U6, the 2 pin of the first photoelectric switch G1 is connected with the GND of the power supply, The 3 pin of the first photoelectric switch G1 is connected with VCC of a power supply, the 1 pin of the second photoelectric switch G2 is connected with the 2 pin of an AND gate 74LS08, the 2 pin of the second photoelectric switch G2 is connected with GND of the power supply, the 3 pin of the second photoelectric switch G2 is connected with VCC of the power supply, the 3 pin of the AND gate 74LS08 U6 is connected with the 2 pin of a first decimal up-down counter 74LS168 U3, the 1 pin of the second four decoder 4555 U1 is connected with GND of the power supply, the 3 pin of the second four decoder 4555 U1 is connected with the 2 pin of the AND gate 74LS08 U6, the 2 pin of the second four decoder 4555 U1 is connected with the 1 pin of the AND gate 74LS08 U6, the 5 pin of the two four decoders 4555 U1 is connected with the 1 pin of the three-state gate 74ls126 U2, the 6 pin of the two four decoders 4555 U1 is connected with the 4 pin of the three-state gate 74ls126 U2, the 2 pin of the three-state gate 74ls126 U2 is connected with the VCC of the power supply, the 5 pin of the three-state gate 74ls126 U2 is connected with the GND of the power supply, the 3 pin of the three-state gate 74ls126 U2 is connected with the 6 pin of the three-state gate 74ls126 U2, the 3 pin of the three-state gate 74ls126 U2 is connected with the 1 pin of the first decimal up-down counter 74ls168 U3, the 6 pin of the three-state gate 74ls126 U2 is connected with the 1 pin of the twenty-second decimal up-down counter 74ls168 U5, Pins 3, 4, 5, 6, 7 and 10 of the first decimal up-down counter 74L 168 U3 are connected with GND of a power supply, pin 9 of the first decimal up-down counter 74L 168 U3 is connected with VCC of the power supply, pin 2 of the first decimal up-down counter 74L 168 U3 is connected with pin 2 of the twenty-first up-down counter 74L 168 U5, pin 15 of the first decimal up-down counter 74L 168 U3 is connected with pin 7 of the twenty-first up-down counter 74L 168 U5, pin 14 of the first decimal up-down counter 74L 168 U3 is connected with pin 7 of the first seven-segment decoder 74L 48 U4, the 13 pin of the first decimal up-down counter 74LS168 U3 is connected with the 1 pin of the first seven-segment decoder 74LS48 U4, the 12 pin of the first decimal up-down counter 74LS168 U3 is connected with the 2 pin of the first seven-segment decoder 74LS48 U4, the 11 pin of the first decimal up-down counter 74LS168 U3 is connected with the 6 pin of the first seven-segment decoder 74LS48 U4, the 3 pin and the 4 pin of the first seven-segment decoder 74LS48 U4 are connected with VCC of a power supply, the 13 pin of the first seven-segment decoder 74LS48 U4 is connected with the a pin of the second common cathode nixie tube S2, The 12 pin of the first seven-segment decoder 74L 48U4 is connected with the b pin of the second common cathode nixie tube S2, the 11 pin of the first seven-segment decoder 74L 48U4 is connected with the c pin of the second common cathode nixie tube S2, the 10 pin of the first seven-segment decoder 74L 48U4 is connected with the d pin of the second common cathode nixie tube S2, the 9 pin of the first seven-segment decoder 74L 48U4 is connected with the e pin of the second common cathode nixie tube S2, the 15 pin of the first seven-segment decoder 74L 48U4 is connected with the f pin of the second common cathode nixie tube S2, the 14 pin of the first seven-segment decoder 74L 4 is connected with the g pin of the second common cathode nixie tube S2, The GND pin of the second common cathode nixie tube S2 is connected with the GND of the power supply, the 3,4, 5 and 6 pins of the twenty-first up-down counter 74LS168 U5 are connected with the GND of the power supply, the 9 pin of the twenty-first up-down counter 74LS168 U5 is connected with the VCC of the power supply, the 7 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 10 pin of the twenty-first up-down counter 74LS168 U5, the 14 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 7 pin of the second seven-segment decoder 74LS48 U6, the 13 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 1 pin of the second seven-segment decoder 74LS48 U6, The 12 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 2 pin of the second seven-segment decoder 74LS48 U6, the 11 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 6 pin of the second seven-segment decoder 74LS48 U6, the 3 pin and the 4 pin of the second seven-segment decoder 74LS48 U6 are connected with VCC of a power supply, the 13 pin of the second seven-segment decoder 74LS48 U6 is connected with the a pin of the first common cathode nixie tube S1, the 12 pin of the second seven-segment decoder 74LS48 U6 is connected with the b pin of the first common cathode nixie tube S1, the 11 pin of the second seven-segment decoder 74LS48 U6 is connected with the c pin of the first common cathode nixie tube S1, The 10 pin of the second seven-segment decoder 74L 48 U6 is connected with the d pin of the first common cathode nixie tube S1, the 9 pin of the second seven-segment decoder 74L 48 U6 is connected with the e pin of the first common cathode nixie tube S1, the 15 pin of the second seven-segment decoder 74L 48 U6 is connected with the f pin of the first common cathode nixie tube S1, the 14 pin of the second seven-segment decoder 74L 48 U6 is connected with the g pin of the first common cathode nixie tube S1, and the GND pin of the first common cathode nixie tube S1 is connected with the GND pin of a power supply.
As another way: the first sensor and the second sensor are photoelectric switches, the control analysis unit is a processor, and the display unit is a display; the device also comprises a weight sensor arranged at the indoor through hole, and the weight sensor is connected with the processor.
The invention has the beneficial effects that: according to the invention, two sensors are arranged to monitor the ingress and egress of people and count the number of the ingress net people, so that the number of indoor people is obtained, and the statistics is simple and convenient.
Drawings
Fig. 1 is a flow chart of the method of the present embodiment.
Fig. 2 is a statistical schematic diagram of the system of the present embodiment.
FIG. 3 is a schematic circuit diagram of a control analysis unit in cooperation with a display monolith.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings. As shown in fig. 1.
Example 1: a method of counting the number of people in a room, comprising: the two sensing units are used for sensing the ingress and egress of people, and are respectively arranged on two sides of the indoor through opening, the sensing units transmit sensing signals to the control unit, and the control unit counts the number of people through the sensing signals and displays the number of people on the display unit.
In the statistics process, people can only turn a circle at an indoor opening (a gate) and do not enter or remove classrooms, and the situation needs to be eliminated; after the two sensing units are arranged, whether a person enters or goes out of a classroom or not can be detected, and the two sensing units are arranged outside and inside an indoor through hole; only when the two sensing units send out sensing signals, the action is calculated to be effective; and the control unit can judge whether the people enter or exit according to the sequence of the induction signals sent by the two induction units, so that the statistics on the number of people is more effective.
Further, the method comprises the step of monitoring the weight of the people entering and exiting the room, and the control unit corrects the number of people entering and exiting the room when the monitored weight exceeds a threshold value or the monitored weight exceeds a threshold value.
Generally, when entering and exiting a classroom, a plurality of people can go together, and of course, the people can enter and exit at the same time; the sensing unit can sense only once at the moment, so that errors occur; at this time, the weight of people entering and exiting the room can be monitored, for example, a weighing meter is placed at the door of the room, and the number of people is estimated through the weighing meter. If the average weight of a common student is N (threshold value), the weighing of a weighing meter is M, and K is N < M < (K+1) N; the number of people in and out is K, and K is a natural number.
Example 2: a counting system, comprising: the system comprises a first sensor arranged outside an access chamber, a second sensor arranged in the access chamber, a control analysis unit and a display unit; the first inductor is used for inducing that an external person approaches the indoor through hole, the second inductor is used for inducing that an indoor person approaches the indoor through hole, the first inductor and the second inductor are respectively and electrically connected with the control analysis unit, the control analysis unit judges whether a person enters or exits according to the time of signal transmission time of the first inductor and the time of signal transmission time of the second inductor, statistics is carried out on the times of entering or exiting, and the number of indoor persons is displayed on the display unit.
When counting the number of people, the technical scheme senses the entry and exit of people according to the first sensor and the second sensor, and only when the first sensor and the second sensor sense the existence of people in sequence, whether the people enter or exit can be judged, for example, the time between signals sent by the two sensors is within 1 second; meanwhile, the ingress and egress of people are judged according to the sequence of the induction signals, and the effective ingress and egress times are counted, wherein the ingress times minus the egress times are the net ingress times, and the net ingress times are the number of internal people. The control analysis unit can be a control IC, a singlechip, a processor and the like; the display unit comprises a nixie tube, a display screen and the like. The sensor may be an infrared sensor.
Further, the first sensor is a first photoelectric switch, the second sensor is a second photoelectric switch, the control analysis unit comprises a control circuit board, and the control circuit board comprises a second four-decoder, an AND gate, two tri-state gates, a first decimal up-down counter, a twenty-first up-down counter, a first seven-segment decoder and a second seven-segment decoder; the display unit comprises a first common cathode nixie tube and a second common cathode nixie tube;
The signals of the first photoelectric switch and the second photoelectric switch are connected into a second four-decoder, two output ends of the second four-decoder respectively control the on-off of two tri-state gates, and the two tri-state gates control the counting directions of a first decimal up-down counter and a twenty-first up-down counter; the signals of the first photoelectric switch and the signals of the second photoelectric switch are transmitted to an AND gate, and the signals output by the AND gate are used as clocks of a first decimal up-down counter and a twenty-first decimal up-down counter.
Working principle: when the photoelectric switch is triggered by no person, the photoelectric switch outputs a low level. When a person enters a classroom, the first photoelectric switch G1 is triggered firstly, the output of the first photoelectric switch G1 is changed from a low level to a high level, then the second photoelectric switch G2 is triggered, the output of the second photoelectric switch G2 is changed from a low level to a high level, when the person leaves the position of the first photoelectric switch G1, the output of the first photoelectric switch G1 is changed from a high level to a low level, when the person leaves the position of the second photoelectric switch G2, the output of the second photoelectric switch G2 is changed from a high level to a low level, and the level changes of the two photoelectric switches G1 and G2 are summarized to be 00-10-11-01-00 when entering; when a person leaves a classroom, the second photoelectric switch G2 is triggered firstly, the output of the second photoelectric switch G2 is changed from a low level to a high level, then the first photoelectric switch G1 is triggered, the output of the first photoelectric switch G1 is changed from a low level to a high level, when the person leaves the position of the second photoelectric switch G2, the output of the second photoelectric switch G2 is changed from a high level to a low level, when the person leaves the position of the first photoelectric switch G1, the output of the first switch G1 is changed from a high level to a low level, and the level changes of the two photoelectric switches G1 and G2 are summarized to be 00-01-11-10-00 when the person enters; before both photoelectric switches detect that a person changes into output level 11, the input level is 10, the output level is 01, signals of the photoelectric switches are connected into the two-four decoder, and the obtained corresponding codes control the on-off of the tri-state gate so as to control the counting direction of the up-down counter. And simultaneously, two paths of switch signals are connected with an AND gate, and the output signal of the AND gate is used as the clock of an up-down counter.
Further, the control circuit board circuit of the invention is composed of a second four-decoder 4555U1, an AND gate 74LS08 U6, a tri-state gate 74LS126U2, a first decimal up-down counter 74LS168 U3, a twenty-first up-down counter 74LS168 U5, a first common cathode nixie tube S1, a second common cathode nixie tube S2, a first seven-segment decoder 74LS48 U4 and a second seven-segment decoder 74LS48 U6, the 1 pin of the first photoelectric switch G1 is connected with the 1 pin of the AND gate 74LS08 U6, the 2 pin of the first photoelectric switch G1 is connected with the GND of the power supply, The 3 pin of the first photoelectric switch G1 is connected with VCC of a power supply, the 1 pin of the second photoelectric switch G2 is connected with the 2 pin of an AND gate 74LS08, the 2 pin of the second photoelectric switch G2 is connected with GND of the power supply, the 3 pin of the second photoelectric switch G2 is connected with VCC of the power supply, the 3 pin of the AND gate 74LS08 U6 is connected with the 2 pin of a first decimal up-down counter 74LS168 U3, the 1 pin of the second four decoder 4555 U1 is connected with GND of the power supply, the 3 pin of the second four decoder 4555 U1 is connected with the 2 pin of the AND gate 74LS08 U6, the 2 pin of the second four decoder 4555 U1 is connected with the 1 pin of the AND gate 74LS08 U6, the 5 pin of the two four decoders 4555 U1 is connected with the 1 pin of the three-state gate 74ls126 U2, the 6 pin of the two four decoders 4555 U1 is connected with the 4 pin of the three-state gate 74ls126 U2, the 2 pin of the three-state gate 74ls126 U2 is connected with the VCC of the power supply, the 5 pin of the three-state gate 74ls126 U2 is connected with the GND of the power supply, the 3 pin of the three-state gate 74ls126 U2 is connected with the 6 pin of the three-state gate 74ls126 U2, the 3 pin of the three-state gate 74ls126 U2 is connected with the 1 pin of the first decimal up-down counter 74ls168 U3, the 6 pin of the three-state gate 74ls126 U2 is connected with the 1 pin of the twenty-second decimal up-down counter 74ls168 U5, Pins 3, 4, 5, 6, 7 and 10 of the first decimal up-down counter 74L 168 U3 are connected with GND of a power supply, pin 9 of the first decimal up-down counter 74L 168 U3 is connected with VCC of the power supply, pin 2 of the first decimal up-down counter 74L 168 U3 is connected with pin 2 of the twenty-first up-down counter 74L 168 U5, pin 15 of the first decimal up-down counter 74L 168 U3 is connected with pin 7 of the twenty-first up-down counter 74L 168 U5, pin 14 of the first decimal up-down counter 74L 168 U3 is connected with pin 7 of the first seven-segment decoder 74L 48 U4, the 13 pin of the first decimal up-down counter 74LS168 U3 is connected with the 1 pin of the first seven-segment decoder 74LS48 U4, the 12 pin of the first decimal up-down counter 74LS168 U3 is connected with the 2 pin of the first seven-segment decoder 74LS48 U4, the 11 pin of the first decimal up-down counter 74LS168 U3 is connected with the 6 pin of the first seven-segment decoder 74LS48 U4, the 3 pin and the 4 pin of the first seven-segment decoder 74LS48 U4 are connected with VCC of a power supply, the 13 pin of the first seven-segment decoder 74LS48 U4 is connected with the a pin of the second common cathode nixie tube S2, The 12 pin of the first seven-segment decoder 74L 48U4 is connected with the b pin of the second common cathode nixie tube S2, the 11 pin of the first seven-segment decoder 74L 48U4 is connected with the c pin of the second common cathode nixie tube S2, the 10 pin of the first seven-segment decoder 74L 48U4 is connected with the d pin of the second common cathode nixie tube S2, the 9 pin of the first seven-segment decoder 74L 48U4 is connected with the e pin of the second common cathode nixie tube S2, the 15 pin of the first seven-segment decoder 74L 48U4 is connected with the f pin of the second common cathode nixie tube S2, the 14 pin of the first seven-segment decoder 74L 4 is connected with the g pin of the second common cathode nixie tube S2, The GND pin of the second common cathode nixie tube S2 is connected with the GND of the power supply, the 3,4, 5 and 6 pins of the twenty-first up-down counter 74LS168 U5 are connected with the GND of the power supply, the 9 pin of the twenty-first up-down counter 74LS168 U5 is connected with the VCC of the power supply, the 7 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 10 pin of the twenty-first up-down counter 74LS168 U5, the 14 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 7 pin of the second seven-segment decoder 74LS48 U6, the 13 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 1 pin of the second seven-segment decoder 74LS48 U6, The 12 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 2 pin of the second seven-segment decoder 74LS48 U6, the 11 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 6 pin of the second seven-segment decoder 74LS48 U6, the 3 pin and the 4 pin of the second seven-segment decoder 74LS48 U6 are connected with VCC of a power supply, the 13 pin of the second seven-segment decoder 74LS48 U6 is connected with the a pin of the first common cathode nixie tube S1, the 12 pin of the second seven-segment decoder 74LS48 U6 is connected with the b pin of the first common cathode nixie tube S1, the 11 pin of the second seven-segment decoder 74LS48 U6 is connected with the c pin of the first common cathode nixie tube S1, The 10 pin of the second seven-segment decoder 74L 48 U6 is connected with the d pin of the first common cathode nixie tube S1, the 9 pin of the second seven-segment decoder 74L 48 U6 is connected with the e pin of the first common cathode nixie tube S1, the 15 pin of the second seven-segment decoder 74L 48 U6 is connected with the f pin of the first common cathode nixie tube S1, the 14 pin of the second seven-segment decoder 74L 48 U6 is connected with the g pin of the first common cathode nixie tube S1, and the GND pin of the first common cathode nixie tube S1 is connected with the GND pin of a power supply.
As another way: the first sensor and the second sensor are photoelectric switches, the control analysis unit is a processor, and the display unit is a display; the device also comprises a weight sensor arranged at the indoor through hole, and the weight sensor is connected with the processor.
The weight sensor is used for sensing the weight of a person when passing through the indoor through hole, and the situation that the distance between a plurality of persons such as shoulder hooking, back hanging, arm holding or arm pulling is very small is not excluded in passing, so that the sensor cannot recognize. At this time, the weight is measured by a weight sensor, analyzed and corrected for the number of people in the room
The indoor through port can be a door; but also other building indentations.
The foregoing is merely exemplary of the present invention, and those skilled in the art should not be considered as limiting the invention, since modifications may be made in the specific embodiments and application scope of the invention in light of the teachings of the present invention.

Claims (3)

1. A method for counting the number of people in a room is characterized in that: it comprises the following steps: the method comprises the steps that people enter and exit through two sensing units, the two sensing units are respectively arranged on two sides of an indoor through hole, sensing signals are transmitted to a control unit by the sensing units, and the control unit counts the number of people through the sensing signals and displays the number of people on a display unit;
The method further comprises the steps of monitoring the weight of people entering and exiting the room, and correcting the number of people entering and exiting the room by the control unit when the monitored weight exceeds a threshold value;
the two sensing units comprise a first sensor and a second sensor; according to the first sensor and the second sensor, the first sensor and the second sensor sense the entering and exiting of people, and only when the first sensor and the second sensor sense the existence of people in sequence, whether the people enter and exit or not can be judged, and the signal interval time sent by the two sensors is within 1 second; meanwhile, judging the ingress and egress of people according to the sequence of the induction signals, and counting the effective ingress or egress times, wherein the ingress times minus the egress times are the number of the internal people;
The first sensor is a first photoelectric switch, the second sensor is a second photoelectric switch, the control analysis unit comprises a control circuit board, and the control circuit board comprises a two-four decoder, an AND gate, two tri-state gates, a first decimal up-down counter, a twenty-first up-down counter, a first seven-segment decoder and a second seven-segment decoder; the display unit comprises a first common cathode nixie tube and a second common cathode nixie tube;
The signals of the first photoelectric switch and the second photoelectric switch are connected into a second four-decoder, two output ends of the second four-decoder respectively control the on-off of two tri-state gates, and the two tri-state gates control the counting directions of a first decimal up-down counter and a twenty-first up-down counter; the signal of the first photoelectric switch and the signal of the second photoelectric switch are transmitted to an AND gate, and the signal which is externally output by the AND gate is used as clocks of a first decimal up-down counter and a twenty-first decimal up-down counter;
The control circuit board circuit consists of a second four-decoder 4555U1, an AND gate 74LS08 U6, a tristate gate 74LS126U2, a first decimal up-down counter 74LS168 U3, a twenty-first up-down counter 74LS168 U5, a first common cathode nixie tube S1, a second common cathode nixie tube S2, a first seven-segment decoder 74LS48 U4 and a second seven-segment decoder 74LS48 U6, the 1 pin of the first photoelectric switch G1 is connected with the 1 pin of the AND gate 74LS08 U6, the 2 pin of the first photoelectric switch G1 is connected with the GND of the power supply, the 3 pin of the first photoelectric switch G1 is connected with the VCC of the power supply, The 1 pin of the second photoelectric switch G2 is connected with the 2 pin of the AND gate 74LS08, the 2 pin of the second photoelectric switch G2 is connected with the GND of the power supply, the 3 pin of the second photoelectric switch G2 is connected with the VCC of the power supply, the 3 pin of the AND gate 74LS08U6 is connected with the 2 pin of the first decimal up-down counter 74LS168 U3, the 1 pin of the second four decoder 4555U1 is connected with the GND of the power supply, the 3 pin of the second four decoder 4555U1 is connected with the 2 pin of the AND gate 74LS08U6, the 2 pin of the second four decoder 4555U1 is connected with the 1 pin of the AND gate 74LS08U6, the 5 pin of the second four decoder 4555U1 is connected with the 1 pin of the three-state gate 74LS126 U2, The 6 pin of the binary four decoder 4555U1 is connected with the 4 pin of the tri-state gate 74ls126U2, the 2 pin of the tri-state gate 74LS126U2 is connected with the VCC of the power supply, the 5 pin of the tri-state gate 74ls126U2 is connected with the GND of the power supply, the 3 pin of the tri-state gate 74ls126U2 is connected with the 6 pin of the tri-state gate 74ls126U2, the 3 pin of the tri-state gate 74ls126U2 is connected with the 1 pin of the first decimal up-down counter 74ls168 U3, the 6 pin of the tri-state gate 74ls126U2 is connected with the 1 pin of the twenty-first up-down counter 74ls168 U5, pins 3, 4, 5, 6, 7 and 10 of the first decimal up-down counter 74LS168U3 are connected with GND of a power supply, pin 9 of the first decimal up-down counter 74LS168U3 is connected with VCC of the power supply, pin 2 of the first decimal up-down counter 74LS168U3 is connected with pin 2 of the twenty-first up-down counter 74LS168 U5, pin 15 of the first decimal up-down counter 74LS168U3 is connected with pin 7 of the twenty-first up-down counter 74LS168 U5, pin 14 of the first decimal up-down counter 74LS168U3 is connected with pin 7 of the first seven-segment decoder 74LS48U4, the 13 pin of the first decimal up-down counter 74LS168 U3 is connected with the 1 pin of the first seven-segment decoder 74LS48 U4, the 12 pin of the first decimal up-down counter 74LS168 U3 is connected with the 2 pin of the first seven-segment decoder 74LS48 U4, the 11 pin of the first decimal up-down counter 74LS168 U3 is connected with the 6 pin of the first seven-segment decoder 74LS48 U4, the 3 pin and the 4 pin of the first seven-segment decoder 74LS48 U4 are connected with VCC of a power supply, the 13 pin of the first seven-segment decoder 74LS48 U4 is connected with the a pin of the second common cathode nixie tube S2, The 12 pin of the first seven-segment decoder 74L 48U4 is connected with the b pin of the second common cathode nixie tube S2, the 11 pin of the first seven-segment decoder 74L 48U4 is connected with the c pin of the second common cathode nixie tube S2, the 10 pin of the first seven-segment decoder 74L 48U4 is connected with the d pin of the second common cathode nixie tube S2, the 9 pin of the first seven-segment decoder 74L 48U4 is connected with the e pin of the second common cathode nixie tube S2, the 15 pin of the first seven-segment decoder 74L 48U4 is connected with the f pin of the second common cathode nixie tube S2, the 14 pin of the first seven-segment decoder 74L 4 is connected with the g pin of the second common cathode nixie tube S2, The GND pin of the second common cathode nixie tube S2 is connected with the GND of the power supply, the 3,4, 5 and 6 pins of the twenty-first up-down counter 74LS168 U5 are connected with the GND of the power supply, the 9 pin of the twenty-first up-down counter 74LS168 U5 is connected with the VCC of the power supply, the 7 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 10 pin of the twenty-first up-down counter 74LS168 U5, the 14 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 7 pin of the second seven-segment decoder 74LS48 U6, the 13 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 1 pin of the second seven-segment decoder 74LS48 U6, The 12 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 2 pin of the second seven-segment decoder 74LS48 U6, the 11 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 6 pin of the second seven-segment decoder 74LS48 U6, the 3 pin and the 4 pin of the second seven-segment decoder 74LS48 U6 are connected with VCC of a power supply, the 13 pin of the second seven-segment decoder 74LS48 U6 is connected with the a pin of the first common cathode nixie tube S1, the 12 pin of the second seven-segment decoder 74LS48 U6 is connected with the b pin of the first common cathode nixie tube S1, the 11 pin of the second seven-segment decoder 74LS48 U6 is connected with the c pin of the first common cathode nixie tube S1, The 10 pin of the second seven-segment decoder 74L 48 U6 is connected with the d pin of the first common cathode nixie tube S1, the 9 pin of the second seven-segment decoder 74L 48 U6 is connected with the e pin of the first common cathode nixie tube S1, the 15 pin of the second seven-segment decoder 74L 48 U6 is connected with the f pin of the first common cathode nixie tube S1, the 14 pin of the second seven-segment decoder 74L 48 U6 is connected with the g pin of the first common cathode nixie tube S1, and the GND pin of the first common cathode nixie tube S1 is connected with the GND pin of a power supply.
2. A counting system, characterized by: comprising the following steps: the system comprises a first sensor arranged outside an access chamber, a second sensor arranged in the access chamber, a control analysis unit and a display unit; the first sensor is used for sensing that an external person approaches the indoor through hole, the second sensor is used for sensing that an indoor person approaches the indoor through hole, the first sensor and the second sensor are respectively and electrically connected with the control analysis unit, the control analysis unit judges whether a person enters or exits according to the time sequence of signal transmission time of the first sensor and the second sensor, statistics is carried out on the times of entering or exiting, and the number of people in the room is displayed on the display unit;
according to the first sensor and the second sensor, the first sensor and the second sensor sense the entering and exiting of people, and only when the first sensor and the second sensor sense the existence of people in sequence, whether the people enter and exit or not can be judged, and the signal interval time sent by the two sensors is within 1 second; meanwhile, judging the ingress and egress of people according to the sequence of the induction signals, and counting the effective ingress or egress times, wherein the ingress times minus the egress times are the number of the internal people;
The first sensor is a first photoelectric switch, the second sensor is a second photoelectric switch, the control analysis unit comprises a control circuit board, and the control circuit board comprises a two-four decoder, an AND gate, two tri-state gates, a first decimal up-down counter, a twenty-first up-down counter, a first seven-segment decoder and a second seven-segment decoder; the display unit comprises a first common cathode nixie tube and a second common cathode nixie tube;
The signals of the first photoelectric switch and the second photoelectric switch are connected into a second four-decoder, two output ends of the second four-decoder respectively control the on-off of two tri-state gates, and the two tri-state gates control the counting directions of a first decimal up-down counter and a twenty-first up-down counter; the signal of the first photoelectric switch and the signal of the second photoelectric switch are transmitted to an AND gate, and the signal which is externally output by the AND gate is used as clocks of a first decimal up-down counter and a twenty-first decimal up-down counter;
The control circuit board circuit consists of a second four-decoder 4555U1, an AND gate 74LS08 U6, a tristate gate 74LS126U2, a first decimal up-down counter 74LS168 U3, a twenty-first up-down counter 74LS168 U5, a first common cathode nixie tube S1, a second common cathode nixie tube S2, a first seven-segment decoder 74LS48 U4 and a second seven-segment decoder 74LS48 U6, the 1 pin of the first photoelectric switch G1 is connected with the 1 pin of the AND gate 74LS08 U6, the 2 pin of the first photoelectric switch G1 is connected with the GND of the power supply, the 3 pin of the first photoelectric switch G1 is connected with the VCC of the power supply, The 1 pin of the second photoelectric switch G2 is connected with the 2 pin of the AND gate 74LS08, the 2 pin of the second photoelectric switch G2 is connected with the GND of the power supply, the 3 pin of the second photoelectric switch G2 is connected with the VCC of the power supply, the 3 pin of the AND gate 74LS08U6 is connected with the 2 pin of the first decimal up-down counter 74LS168 U3, the 1 pin of the second four decoder 4555U1 is connected with the GND of the power supply, the 3 pin of the second four decoder 4555U1 is connected with the 2 pin of the AND gate 74LS08U6, the 2 pin of the second four decoder 4555U1 is connected with the 1 pin of the AND gate 74LS08U6, the 5 pin of the second four decoder 4555U1 is connected with the 1 pin of the three-state gate 74LS126 U2, The 6 pin of the binary four decoder 4555U1 is connected with the 4 pin of the tri-state gate 74ls126U2, the 2 pin of the tri-state gate 74LS126U2 is connected with the VCC of the power supply, the 5 pin of the tri-state gate 74ls126U2 is connected with the GND of the power supply, the 3 pin of the tri-state gate 74ls126U2 is connected with the 6 pin of the tri-state gate 74ls126U2, the 3 pin of the tri-state gate 74ls126U2 is connected with the 1 pin of the first decimal up-down counter 74ls168 U3, the 6 pin of the tri-state gate 74ls126U2 is connected with the 1 pin of the twenty-first up-down counter 74ls168 U5, pins 3, 4, 5, 6, 7 and 10 of the first decimal up-down counter 74LS168U3 are connected with GND of a power supply, pin 9 of the first decimal up-down counter 74LS168U3 is connected with VCC of the power supply, pin 2 of the first decimal up-down counter 74LS168U3 is connected with pin 2 of the twenty-first up-down counter 74LS168 U5, pin 15 of the first decimal up-down counter 74LS168U3 is connected with pin 7 of the twenty-first up-down counter 74LS168 U5, pin 14 of the first decimal up-down counter 74LS168U3 is connected with pin 7 of the first seven-segment decoder 74LS48U4, the 13 pin of the first decimal up-down counter 74LS168 U3 is connected with the 1 pin of the first seven-segment decoder 74LS48 U4, the 12 pin of the first decimal up-down counter 74LS168 U3 is connected with the 2 pin of the first seven-segment decoder 74LS48 U4, the 11 pin of the first decimal up-down counter 74LS168 U3 is connected with the 6 pin of the first seven-segment decoder 74LS48 U4, the 3 pin and the 4 pin of the first seven-segment decoder 74LS48 U4 are connected with VCC of a power supply, the 13 pin of the first seven-segment decoder 74LS48 U4 is connected with the a pin of the second common cathode nixie tube S2, The 12 pin of the first seven-segment decoder 74L 48U4 is connected with the b pin of the second common cathode nixie tube S2, the 11 pin of the first seven-segment decoder 74L 48U4 is connected with the c pin of the second common cathode nixie tube S2, the 10 pin of the first seven-segment decoder 74L 48U4 is connected with the d pin of the second common cathode nixie tube S2, the 9 pin of the first seven-segment decoder 74L 48U4 is connected with the e pin of the second common cathode nixie tube S2, the 15 pin of the first seven-segment decoder 74L 48U4 is connected with the f pin of the second common cathode nixie tube S2, the 14 pin of the first seven-segment decoder 74L 4 is connected with the g pin of the second common cathode nixie tube S2, The GND pin of the second common cathode nixie tube S2 is connected with the GND of the power supply, the 3,4, 5 and 6 pins of the twenty-first up-down counter 74LS168 U5 are connected with the GND of the power supply, the 9 pin of the twenty-first up-down counter 74LS168 U5 is connected with the VCC of the power supply, the 7 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 10 pin of the twenty-first up-down counter 74LS168 U5, the 14 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 7 pin of the second seven-segment decoder 74LS48 U6, the 13 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 1 pin of the second seven-segment decoder 74LS48 U6, The 12 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 2 pin of the second seven-segment decoder 74LS48 U6, the 11 pin of the twenty-first up-down counter 74LS168 U5 is connected with the 6 pin of the second seven-segment decoder 74LS48 U6, the 3 pin and the 4 pin of the second seven-segment decoder 74LS48 U6 are connected with VCC of a power supply, the 13 pin of the second seven-segment decoder 74LS48 U6 is connected with the a pin of the first common cathode nixie tube S1, the 12 pin of the second seven-segment decoder 74LS48 U6 is connected with the b pin of the first common cathode nixie tube S1, the 11 pin of the second seven-segment decoder 74LS48 U6 is connected with the c pin of the first common cathode nixie tube S1, The 10 pin of the second seven-segment decoder 74L 48 U6 is connected with the d pin of the first common cathode nixie tube S1, the 9 pin of the second seven-segment decoder 74L 48 U6 is connected with the e pin of the first common cathode nixie tube S1, the 15 pin of the second seven-segment decoder 74L 48 U6 is connected with the f pin of the first common cathode nixie tube S1, the 14 pin of the second seven-segment decoder 74L 48 U6 is connected with the g pin of the first common cathode nixie tube S1, and the GND pin of the first common cathode nixie tube S1 is connected with the GND pin of a power supply.
3. A counting system according to claim 2, characterized in that: the first sensor and the second sensor are photoelectric switches, the control analysis unit is a processor, and the display unit is a display; the device also comprises a weight sensor arranged at the indoor through hole, and the weight sensor is connected with the processor.
CN201811521064.0A 2018-12-12 2018-12-12 Method and system for counting number of people in room Active CN109359721B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811521064.0A CN109359721B (en) 2018-12-12 2018-12-12 Method and system for counting number of people in room

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811521064.0A CN109359721B (en) 2018-12-12 2018-12-12 Method and system for counting number of people in room

Publications (2)

Publication Number Publication Date
CN109359721A CN109359721A (en) 2019-02-19
CN109359721B true CN109359721B (en) 2024-07-23

Family

ID=65328757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811521064.0A Active CN109359721B (en) 2018-12-12 2018-12-12 Method and system for counting number of people in room

Country Status (1)

Country Link
CN (1) CN109359721B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110263903A (en) * 2019-07-30 2019-09-20 南通理工学院 production line control and counting device and method
CN111161498A (en) * 2020-01-06 2020-05-15 华平智慧信息技术(深圳)有限公司 System and method for monitoring boundary in defined area

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205176952U (en) * 2015-12-01 2016-04-20 潍坊医学院 Classroom number intelligence statistics and display system
CN106545950A (en) * 2015-09-17 2017-03-29 开利公司 A kind of building air-conditioner control system and its control method
CN209086986U (en) * 2018-12-12 2019-07-09 华东交通大学 A kind of occupancy number system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1027228C (en) * 1988-09-01 1995-01-04 沈在爱 Electronic replay device of weiqi match
CN201629064U (en) * 2010-01-25 2010-11-10 北京精仪达盛科技有限公司 Multifunctional embedded development system
CN105719371A (en) * 2016-01-18 2016-06-29 中国矿业大学 Counter for counting number of people in classroom

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106545950A (en) * 2015-09-17 2017-03-29 开利公司 A kind of building air-conditioner control system and its control method
CN205176952U (en) * 2015-12-01 2016-04-20 潍坊医学院 Classroom number intelligence statistics and display system
CN209086986U (en) * 2018-12-12 2019-07-09 华东交通大学 A kind of occupancy number system

Also Published As

Publication number Publication date
CN109359721A (en) 2019-02-19

Similar Documents

Publication Publication Date Title
CN109359721B (en) Method and system for counting number of people in room
Li et al. Intelligent Control Management System and Its Application
CN206959893U (en) Environmental monitoring system
CN105433962A (en) Intelligent psychological teaching and psychological testing experiment device
CN213115923U (en) Classroom intelligence closes window, outage device
CN203989793U (en) Type register for sit-ups
Adjardjah et al. Design and construction of a bidirectional digital visitor counter
CN104320887A (en) Method, device and system for controlling lighting lamps in individual study room
CN208170631U (en) AI intelligent fresh air equipment and AI intelligent environment control system
Zhao et al. Design and implementation of portable sensory system for air pollution monitoring monitoring
CN209086986U (en) A kind of occupancy number system
EP3617933A1 (en) Detecting room occupancy with binary pir sensors
CN209570980U (en) Intelligent access control system
CN109685929A (en) A kind of classroom attendance checking system based on STM32
CN107975908A (en) Opening-closing structure control method, air conditioner and the readable storage medium storing program for executing of air conditioner
CN209231990U (en) A kind of classroom roll-call device
CN110787424A (en) Anti-cheating pull-up intelligent test system and method
CN206209431U (en) SCM Based classroom Temperature Intelligent Control System
CN206413243U (en) A kind of Automatic control system for classroom illumination
CN206174753U (en) Control intelligent window system more
RU140746U1 (en) ALARM DEVICE UNDER PERMISSION CONTROL
CN205563768U (en) Indoor number statistical system based on ultrasonic detection technique
CN109493496A (en) Intelligent access control system
Ghodake et al. Remotely Monitoring Health of the Solar Power System Using Arduino
CN103886662A (en) Design method of system for monitoring number of students in classroom

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant