Disclosure of Invention
The utility model aims to: an intelligent classroom management system based on a wireless communication technology is provided, and is suitable for open management of classrooms of colleges and universities.
In order to achieve the purpose, the utility model adopts the following technical scheme:
an intelligent classroom management system based on a wireless communication technology comprises a people number detection unit and a lighting lamp control unit, wherein the people number detection unit comprises a single chip microcomputer, and a key module I, a clock module, a dot matrix display module and an infrared induction module which are connected with the single chip microcomputer I; the lighting lamp control unit comprises a second single chip microcomputer, and a human body induction module and a lighting module which are connected with the second single chip microcomputer; the single chip microcomputer I is in communication connection with the single chip microcomputer II, and a power supply unit is arranged to supply power to the people number detection unit and the lighting lamp control unit.
On the basis of the above scheme and as a preferable scheme of the scheme: the infrared sensing module comprises a first infrared sensor S3 and a second infrared sensor S4 which are connected with the single chip microcomputer I.
On the basis of the above scheme and as a preferable scheme of the scheme: the human body induction module comprises an infrared pyroelectric sensor connected with the second single chip microcomputer.
On the basis of the above scheme and as a preferable scheme of the scheme: the lighting module at least comprises a high-brightness LED driving part or an alternating current control part; the high-brightness LED driving part comprises a first triode Q1, the base electrode of the first triode Q1 is connected with a second single chip microcomputer, the emitting electrode of the first triode Q1 is connected with the power supply unit, and the collecting electrode of the first triode Q2 is connected with a first illuminating lamp LED 2; the alternating current electric control part comprises a relay and a second triode Q2 with a base electrode connected with the second singlechip, an emitting electrode of the second triode Q2 is connected with the power supply unit, and a collecting electrode is connected with a battery coil of the relay.
On the basis of the above scheme and as a preferable scheme of the scheme: the number detection unit further comprises a first buzzer driving module, the first buzzer driving module comprises a buzzer and a third triode Q3 with a base connected with the first single chip microcomputer, an emitting electrode of the third triode Q3 is connected with the power supply unit, and a collecting electrode of the third triode Q3 is connected with the buzzer.
On the basis of the above scheme and as a preferable scheme of the scheme: the model STC8F2K16S2 is selected as the first single chip microcomputer, and a ceramic chip capacitor C1 is connected between a power supply input pin VCC and a grounding pin GND of the first single chip microcomputer in series.
On the basis of the above scheme and as a preferable scheme of the scheme: the display terminal unit is powered by a power supply unit, the third single chip microcomputer is in communication connection with the first single chip microcomputer and the second single chip microcomputer, and the OLED display screen is connected with the third single chip microcomputer.
On the basis of the above scheme and as a preferable scheme of the scheme: the display terminal unit further comprises a second key module connected with the third singlechip.
On the basis of the above scheme and as a preferable scheme of the scheme: the communication connection is a wireless communication connection.
On the basis of the above scheme and as a preferable scheme of the scheme: the wireless communication connection carries out wireless data communication based on the NRF24L01 chip.
The utility model has the beneficial effects that:
the intelligent classroom management system based on the wireless communication technology is suitable for open management of classrooms of colleges and universities.
Attendance statistics and illumination energy-saving control can be automatically carried out. The classroom lamp can be automatically turned off when the student leaves the classroom and forgets to turn off the classroom lamp, so that the serious waste of resources is avoided, and the aim of saving energy is fulfilled. The number of people coming in and going out of the classroom can be automatically counted, the attendance statistics of the number of the students is realized, and the statistical result of the number of the students is displayed through the dot matrix display module.
The control of the classroom lamp for illumination can also be switched between automatic or manual modes, so that manual switching of the classroom lamp is realized.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
Referring to fig. 1 to 21, an intelligent classroom management system based on wireless communication technology includes a people number detection unit and a lighting lamp control unit; the number detection unit is used for detecting the number of people entering or leaving a classroom and the total number of people in the classroom, and the lighting lamp control unit is used for controlling the lighting of the classroom and automatically or manually switching on or off the classroom lamp. And further setting a display terminal unit for displaying information such as the number of people in the classroom and the on-off state of a classroom lamp.
As shown in fig. 1, the intelligent classroom management system based on the wireless communication technology comprises a people number detection unit and a lighting lamp control unit, wherein the people number detection unit is shown in fig. 2, and the people number detection unit comprises a single chip microcomputer, a key module I connected with the single chip microcomputer, a clock module, a dot matrix display module and an infrared induction module; the lighting lamp control unit is shown in figure 3 and comprises a second single chip microcomputer, and a human body induction module and a lighting module which are connected with the second single chip microcomputer; the single chip microcomputer I is in communication connection with the single chip microcomputer II, and a power supply unit is arranged to supply power to the people number detection unit and the lighting lamp control unit.
The intelligent classroom management system based on the wireless communication technology is suitable for open management of classrooms of colleges and universities. The singlechip bears design logic and is used for controlling the operation of the whole system and ensuring the realization of functions. The communication connection between the first single chip microcomputer and the second single chip microcomputer is wireless communication connection, and the wireless communication connection is based on an NRF24L01 chip to carry out wireless data communication. Set up an NRF24L01 chip in number of people detecting element and illumination lamp control unit respectively for can carry out the receiving and dispatching data through NRF24L01 chip through two simulation SPI communication protocols of singlechip one and singlechip between singlechip two.
The arrangement of the NRF24L01 chip in the people number detection unit is as shown in FIG. 9, and since the required power supply of the NRF24L01 chip is 3.3V and the single chip microcomputer system is 5V, the 3.3V voltage regulator of AMS1117 is used for converting 5V into 3.3V for the NRF24L01 chip. The 10uF capacitor in the figure is used for filtering and increasing the stability of the working voltage. The chip belongs to SPI communication protocol, utilizes singlechip IO port simulation SPI communication protocol to receive and dispatch data.
The first single chip microcomputer is arranged as shown in figure 5, the model of the first single chip microcomputer is STC8F2K16S2, and the first single chip microcomputer is internally integrated with a crystal oscillator parameter adjusting function, so that an external crystal oscillator circuit is not required to be connected. The minimum system circuit of the singlechip can be built as long as the working power supply is switched on, which is very convenient and reduces the hardware cost. The working voltage is connected into the ceramic chip capacitor C1 in a mode that the ceramic chip capacitor C1 is connected between a power supply input pin VCC and a grounding pin GND of the single chip microcomputer I in series, and the ceramic chip capacitor 104 can play a role in filtering high-frequency clutter signals, so that the anti-jamming capability of the single chip microcomputer circuit is improved. As shown in fig. 13, the second type of the single chip microcomputer is STC8F1K08S2, and the special crystal oscillation parameter adjusting function is integrated in the second type of the single chip microcomputer, so that an external crystal oscillation circuit is not needed, a minimum system circuit of the single chip microcomputer can be built by only switching on a working power supply, and the hardware cost is very convenient and reduced. The single-chip microcomputer belongs to a 16-pin single-chip microcomputer, has few IO ports, and is particularly suitable for circuit control of a small single-chip microcomputer system.
The KEY module I is used for setting system working parameters, and as shown in fig. 6, the KEY module I comprises four KEYs of KEY1, KEY2, KEY3 and KEY4, the KEYs are respectively connected with ports P20, P21, P22 and P23 of the single chip microcomputer I, and the control system can be set to be internally connected with P20 and grounded so as to detect low level when the KEY1 is pressed. When KEY1 is released, the single chip microcomputer P20 is suspended, and the IO port of the single chip microcomputer is suspended and is defaulted to be at a high level, so that the high level is detected. Whether the key is pressed or not can be judged according to the difference of the detected high and low levels, and other keys are also based on the same detection principle, but the contents of different execution programs of the keys are different.
The clock module is shown in fig. 7, and provides a clock signal for the people number detection unit, the core device is a DS1302 clock chip, and the 32.768K crystal oscillator provides a walk-time clock signal for the clock chip. 3.3V is a button battery, and belongs to a standby battery. This button cell battery will always have the DS1302 operational even if the system +5V is powered down. The power failure of the system during travel is not lost, and the system can continue to travel normally. The communication interfaces are respectively connected with the ports of the single chip microcomputer P32, P33 and P34. And the pull-up resistor of 10K ensures the stability of communication between the clock chip and the singlechip. The power supply of the module, the module of the intelligent classroom management system based on the wireless communication technology and all components is supplied by a power supply unit.
The infrared sensing module is shown in fig. 8, and the infrared sensing module comprises a first infrared sensor S3 and a second infrared sensor S4 which are connected with the single chip microcomputer. The first infrared sensor S3 and the second infrared sensor S4 may be diffuse reflection type infrared sensors of the kirschner brand or opposite type infrared sensors. The first infrared sensor S3 and the second infrared sensor S4 are shown to be connected to the first one of the singlechips P36 and P37, respectively, one mounted outside the door frame and one mounted inside the door frame. If the student enters the classroom, the detection logic is that the student is detected S3 first, and then S4. If the student leaves the classroom, the detection logic is S4 first and S3 second. Therefore, the total number of students can be judged, and the time that the students arrive in a classroom and the time that the students leave the classroom can be judged by matching the clock module, so that attendance records such as the number of late arriving students, the number of early exiting students and the like can be judged.
The dot matrix display module is shown in fig. 11, and is used for displaying system time information and displaying the number of students in a classroom. A16X 64 dot matrix screen module is used as a core module, an ABCD is a data display control end and is connected to P00 to PP03 of a single chip microcomputer I, a R1 is a red dot matrix control end and is connected to P04, and the dot matrix screen is single red, so that a R2 green dot matrix control end and G1 and G2 green dot matrix control ends do not need to be connected. E is a dot matrix latch pin connected to P05 of the singlechip I, and RCK and CLK are clock data control ports connected to P06 and P07 respectively.
As shown in fig. 2, the people number detecting unit is further provided with a first buzzer driving module, referring to fig. 10, the first buzzer driving module includes a buzzer and a third triode Q3 with a base connected to the first singlechip, an emitter of the third triode Q3 is connected to the power supply unit, and a collector is connected to the buzzer. Furthermore, by adopting a triode driving mode, when the P3.5 of the single chip microcomputer outputs a low level, a triode with the model of S8550 of a third triode Q3 is conducted, the CE electrode of the triode is in a saturated state and is regarded as a conducting wire, and the active buzzer sounds when being electrified; when the output of the singlechip I P3.5 is high level, the triode is cut off, the CE electrode of the triode is in a cut-off state, the triode is regarded as open circuit, and the active buzzer does not sound. Through the control mode, the buzzing driving module I can be used for system prompt tones.
The lighting lamp control unit is used for controlling lighting of a classroom and automatically or manually switching on and off a classroom lamp. The setting mode of the second single chip microcomputer refers to fig. 13, the second single chip microcomputer is used for setting the control logic of illumination, and actively or passively executing the switching of the classroom lamp for illumination. Wherein human response module is used for the human judgement in the classroom, and the cooperation number detecting element carries out the human judgement in the classroom with control classroom lamp whether or not. The lighting module is used for implementing the switching of the classroom lamp according to the instruction of the second judging and executing singlechip.
The human body induction module is shown in fig. 14, and the human body induction module comprises an infrared pyroelectric sensor S6 connected with a second single chip microcomputer. Infrared pyroelectric sensor S6 is human infrared sensor, and output high level when sensing someone, LED4 is lighted, and this LED4 plays indicative function for the show has or not human testing result to the classroom, for example LED4 is lighted when having someone, and R5 is 470 ohm' S current-limiting resistance, prevents that the electric current is too big to burn out the LED lamp. The triode S8050 arranged in the figure is switched on, the grounding of the port P37 is detected to be low level, when people cannot be sensed, the infrared of a human body can delay a short period of time to output the low level, the triode S8050 arranged in the figure is cut off, the single chip P37 is suspended and detected to be high level, and the single chip can judge whether people exist through detecting the high-low level state of the port P37.
The control of the lighting module on the classroom lamp comprises two sets of setting modes, wherein one mode is that the lighting module is integrated into the module per se and is used for lighting the classroom lamp through a high-brightness LED2, the other mode is that the relay is controlled, a lighting circuit of the classroom lamp is additionally arranged according to the requirement, and the on-off of the lighting circuit of the classroom lamp is controlled through the relay.
When the lighting module is arranged, the lighting module at least comprises one of a high-brightness LED driving part (the lighting module is integrated into the lighting module) or an alternating current control part (a relay is controlled).
As shown in fig. 16, the highlight LED driving part includes a first transistor Q1, a base of the first transistor Q1 is connected to the second one-chip microcomputer, an emitter of the first transistor Q1 is connected to the power supply unit, and a collector of the first transistor Q2 is connected to the first illumination lamp LED 2; in the figure, the first triode Q1 is a triode S8550, the triode S8550 is used for driving a 7135 constant current chip, when the second singlechip P17 outputs a low level, the triode S8550 is conducted, the 7135 chip is powered on, the highlight LED2 is lighted, and the working voltage of the highlight LED2 is 3.7V, while the system voltage of the second singlechip is 5V, which cannot be directly connected. If a current limiting resistor is used for voltage reduction, the resistor is heated, because the power of the high-brightness LED lamp is larger. Moreover, the temperature variation of the resistance heating can cause the driving current not to be constant, and the light emitting brightness of the LED lamp is not constant easily. In order to solve the problem, a 7135 chip is adopted, which can constantly maintain the driving current and can not cause the instability of the driving current due to the temperature change.
As shown in fig. 17, the ac control portion includes a relay K1 and a second transistor Q2 with a base connected to the second one-chip microcomputer, an emitter of the second transistor Q2 is connected to the power supply unit, and a collector is connected to the battery coil of the relay. In the figure, the on-off of 220V ac power is controlled by a relay. When the second singlechip P36 outputs low level, the LED5 as an indicator light is lighted, which indicates that the relay is in a working state with a coil electrified, wherein the second triode Q2 (triode S8550) conducts the relay for attracting, then two ends of the terminals 1 and 2 of the relay K1 are connected, and the terminal S7 is lighted if the lamp load is connected to obtain 220V alternating current. When P36 outputs high level, triode S8550 cuts off relay power off, and both ends of terminals 1 and 2 of relay K1 are disconnected, and the lamp load does not work.
As shown in fig. 15, which is a schematic diagram of the NRF24L01 chip connected to the second one-chip microcomputer, the NRF24L01 chip is connected to the ports P30 to P35 of the second one-chip microcomputer. The AMS1117 of the NRF24L01 chip is used as a 3.3V voltage regulator.
Referring to fig. 1, the intelligent classroom management system based on the wireless communication technology further includes a display terminal unit having an OLED display screen and a third single chip microcomputer, the display terminal unit is powered by a power supply unit, as shown in fig. 4, the third single chip microcomputer is in communication connection with the first single chip microcomputer and the second single chip microcomputer, wherein the communication connection is also wireless communication connection, the wireless communication connection is based on an NRF24L01 chip to perform wireless data communication, and an NRF24L01 chip is provided to connect the third single chip microcomputer. The OLED display screen is connected with the third single chip microcomputer. The structure is shown in fig. 20, the OLED display screen is used for displaying time information, people number information and the like sent by the people number detection unit, in the figure, pins 1 and 2 are connected with the working power supply, pins 3 and 4 are IIC communication interfaces which are respectively connected with P37 and P36 of the third singlechip, and the display of the OLED display screen is controlled by simulating an IIC communication protocol through a port of the singlechip.
Furthermore, the display terminal unit also comprises a second key module connected with the third singlechip. The parameter setting is carried out on the display terminal unit or the on-off control is carried out on the classroom lamp illuminating the lamp control unit.
As shown in fig. 19, a power-on lock module is further provided for the display terminal unit, and fig. 19 is a circuit configuration diagram of the power-on lock module. In the figure, when KEY1 is pressed, the D2 diode is turned on, the PMOS transistor is turned on, and VIN and 7.4V positions are turned on. The power supply unit supplies power, if the KEY1 is released, the PMOS tube is cut off, the power supply unit powers off the display terminal unit, but the display terminal unit cannot be locked, and the P17 port of the single chip microcomputer is required to participate. If KEY1 is pressed, the PMOS tube conducts the system to work. The singlechip normally works, if the singlechip writes a program to enable the port P17 to output a high level, the triode S8050 is conducted, so that the lower part of the PMOS tube is always a low level, and if the KEY1 is loosened, the lower part of the PMOS tube is not influenced to be the low level all the time. Thus, the PMOS tube is always conducted, and the system is always in a point state. Therefore, the KEY1 can be combined with the single chip to control the on-off, and the advantage of more flexible and convenient on-off is achieved. For example, the power-on of the battery can be realized by pressing the KEY1 for a long time, the system parameters can be set by pressing the KEY1 for a short time, and the power-off of the battery can be realized by pressing the KEY for a long time and the system can be turned off at regular time, so that the battery can be turned off at regular time even if a user forgets to turn off the power supply after finishing the use, and the battery is protected from being damaged due to over-discharge.
And a second buzzing driving module and a second key module can be arranged for the display terminal unit similarly by referring to the arrangement of the lighting lamp control unit.
The power supply unit can directly purchase an external power supply with 220V alternating current transformation 5V direct current and 3.3V direct current. Meanwhile, a power supply unit can be arranged by itself. The power supply unit has a plurality of modules, including a first power supply module for supplying power to the people number detection unit as shown in fig. 12, a second power supply module for supplying power to the illumination lamp control unit as shown in fig. 18, and a third power supply module for supplying power to the display terminal unit as shown in fig. 21. The main power supplies of the first power supply module, the second power supply module and the third power supply module can be purchased from existing vendor products.
In summary, the intelligent classroom management system based on the wireless communication technology comprises a number detection unit and a lighting lamp control unit, and can further be provided with a display terminal unit. The number of people in a classroom is monitored by the number detection unit, whether a human body exists in the classroom is further judged by the lighting lamp control unit, and the classroom lamp is controlled to be turned on or off. The number detection unit is provided with a dot matrix display module for displaying the number condition of the classroom. The number of people monitored by the number of people detection unit and the classroom lamp switch condition controlled by the lighting lamp control unit can be reflected to the display terminal unit, and the classroom lamp is controlled to be switched on and off through the display terminal unit in a logic setting mode. After the time relation of the class schedule is set by the single chip microcomputer, the late arrival, early exit, head to head, real arrival and other data of the classroom can be judged and fed back to the display terminal unit to be displayed through the OLED display screen.
The intelligent classroom management system based on the wireless communication technology is high in practicability and low in cost. Is suitable for popularization and application.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and equivalent alternatives or modifications according to the technical solution of the present invention and the inventive concept thereof should be covered by the scope of the present invention.