Indoor intelligent environment control system
By constructing an Internet of Things (IoT) system with a main control chip and various communication circuits, environmental parameters in the detention room are collected and controlled in real time, solving the problem of independent operation of equipment in the detention facility, realizing intelligent environmental control, improving equipment efficiency and energy utilization, and improving the quality of life of the detainees.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- 王伟
- Filing Date
- 2025-05-06
- Publication Date
- 2026-05-08
AI Technical Summary
Existing indoor intelligent environmental control systems cannot achieve systematization and intelligence in supervised locations, resulting in low efficiency of independent equipment operation, energy waste, and manpower waste. In particular, ceiling fans, fresh air systems, and lighting systems cannot be precisely controlled, affecting the sleep quality and work efficiency of supervised personnel.
An indoor intelligent environmental control system was designed, including a main logic control circuit and an output control terminal circuit. It adopts an Internet of Things system composed of a main control chip, RS485 communication circuit, wireless radio frequency communication interface, Bluetooth communication circuit, and Ethernet communication circuit. It collects temperature, humidity, air quality and illuminance data in real time, and communicates with the host computer through RS485 and Ethernet communication protocols to realize intelligent control of exhaust fans, ceiling fans, air purification devices, fresh air systems and lighting systems.
It enables centralized monitoring and intelligent control of the environment inside the detention room, improves the working efficiency of the equipment, reduces energy waste, ensures the sleep quality and working environment comfort of the detainees, and supports multiple communication methods to ensure smooth communication.
Smart Images

Figure CN121995812A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent monitoring technology, and in particular to an indoor intelligent environmental control system. Background Technology
[0002] Indoor intelligent environmental control systems are an important part of the construction of "smart supervision". Due to factors such as the large area of the prison area and the old and complex building structure, the development of intelligent environmental control systems is relatively lagging behind. In particular, there are many devices in the prison room. Exhaust fans, ceiling fans, air purification devices, fresh air systems and lighting systems work independently and cannot fully realize the functions of systematization and intelligence. The current situation is that exhaust fans, ceiling fans, air purification equipment, fresh air systems and lighting systems all need to be manually switched on and off, and there is a lack of sensor monitoring data. If the timing of switching is not well grasped, it will easily lead to low work efficiency, energy waste and manpower waste. Among them, (1) when ceiling fans and fresh air systems are used for cooling, they cannot be precisely controlled according to the temperature of the prison room. (2) The lighting system has problems such as the brightness not being adjustable during the day and night and the need for manual switching. This not only wastes energy, but also causes poor sleep quality of the supervised personnel and fatigue of the staff due to frequent switching. (3) Air purification equipment cannot be based on the air quality in the prison room. If the timing of switching is not well grasped, the expected effect cannot be achieved, resulting in energy waste.
[0003] Currently, various new types of sensors are constantly being developed, providing an opportunity for the development of indoor intelligent environmental control systems and laying the hardware foundation for intelligent and systematic devices. Applying more intelligent and human-centered design concepts to the prison cell IoT system can achieve better monitoring and energy-saving control of the prison cell environment.
[0004] To address the problem that existing intelligent environmental control systems fail to incorporate intelligent design based on the actual conditions of regulatory sites, resulting in a relatively low level of intelligent management in regulatory cell environmental control systems, this invention proposes a technical solution. Summary of the Invention
[0005] To address the aforementioned technical problems, this invention proposes an indoor intelligent environmental control system. The technical solution of this invention is implemented as follows:
[0006] An indoor intelligent environment control system includes a main logic control circuit and an output control terminal circuit;
[0007] The main logic control circuit includes a main control chip, RS485 communication circuit (I), RS485 communication circuit (II), LCD display circuit, crystal oscillator, SPI FLASH, power on / off circuit, DC-DC power supply circuit, RTC backup battery, RST reset button, SWDUSART1, input control circuit, linear voltage regulator circuit, power input circuit, multi-sensor interface, wireless radio frequency communication interface (I), wireless radio frequency communication interface (II), Bluetooth communication circuit, Ethernet communication circuit, and RS485 interface.
[0008] The output control circuit includes a microcontroller, an optocoupler circuit, a thyristor module, a four-channel LED dimming controller, and several high-power rail relays.
[0009] The main control chip is connected to the crystal oscillator, the SPI FLASH, the RST reset button, the SWD USART1, the LCD display circuit, the RS485 communication circuit (I), the RS485 communication circuit (II), the input control circuit, the Bluetooth communication circuit, and the Ethernet communication circuit.
[0010] The RS485 communication circuit (a) is connected to the RS485 interface;
[0011] The RS485 communication circuit (II) is connected to the multi-sensor interface;
[0012] The wireless radio frequency communication circuit is connected to the RS485 communication circuit (I) and the RS485 communication circuit (II);
[0013] The RS485 interface is connected to the RS485 communication circuit (a);
[0014] The microcontroller is connected to the RS485 communication circuit (II), the optocoupler circuit, and the thyristor module;
[0015] The optocoupler circuit includes optocoupler relays U20, U21, U22, and U23.
[0016] The optocoupler circuit connects high-power rail relay J1, high-power rail relay J2, high-power rail relay J3 and high-power rail relay J4.
[0017] Among them, high-power rail relays J1, J2, and J3 are connected to the air purification system, and high-power rail relay J4 is connected to the cooling system.
[0018] The RS485 communication circuit (II) is connected to the four-channel LED dimming controller;
[0019] The four-channel LED dimming controller is used to connect to the lighting system;
[0020] The microcontroller controls the thyristor module via PWM connection.
[0021] The thyristor module is connected to the cooling system.
[0022] Preferably, pins 3 and 4 of the main control chip are connected to the X2 terminals of the crystal oscillator;
[0023] Pin 5 of the main control chip is connected to pin 1 of the crystal oscillator X1, and pin 6 of the main control chip is connected to pin 3 of the crystal oscillator X1.
[0024] Pin 7 of the main control chip is connected to KEY1 in the RST reset button, and the other end of KEY1 in the RST reset button is connected to GND;
[0025] Pin 33 of the main control chip is connected to pin 1 of chip U18 in SPI FLASH, pin 2 of U18 is connected to pin 35 of the main control chip, pin 5 of U18 is connected to pin 36 of the main control chip, and pin 6 of U18 is connected to pin 34 of the main control chip.
[0026] Pin 49 of the main control chip is connected to pin 1 of H1 in SWD USART1; pin 4 of H1 in SWD USART1 is connected to pin 46 of the main control chip.
[0027] Pin 14 of the main control chip is connected to pin 10 of the LCD display circuit CN1 through resistor R26; pin 15 of the main control chip is connected to pin 11 of the LCD display circuit CN1 through resistor R25; pin 21 of the main control chip is connected to pin 9 of the LCD display circuit CN1 through resistor R27; pin 20 of the main control chip is connected to pin 12 of the LCD display circuit CN1 through resistor R24; and pin 23 of the main control chip is connected to pin 8 of the LCD display circuit CN1 through resistor R28.
[0028] Pin 26 of the main control chip is connected to LED3 via resistor R23 to serve as the backlight power supply for the LCD screen.
[0029] Pin 16 of the main control chip is connected to the base of transistor Q2 in RS485 communication circuit (I) through resistor R36. The emitter of transistor Q2 is connected to pins 2 and 3 of chip U16 in RS485 communication circuit (I). Pin 17 of the main control chip is connected to pin 1 of chip U16 through resistor R35.
[0030] Pin 7 of chip U16 is connected to GND through resistor R39, and chip U16 is connected to GND through diode D4, and then to pin 1 of RS485 interface P1 through resistor R12; pin 6 of chip U16 is connected to GND through resistor R20, and chip U16 is connected to GND through diode D5, and then to pin 2 of RS485 interface P1 through resistor R40.
[0031] Pin 42 of the main control chip is connected to the base of transistor Q1 in RS485 communication circuit (II) through resistor R9; pin 43 of the main control chip is connected to pin 1 of chip U2 through resistor R7; pin 7 of chip U2 is connected to GND through resistor R13 and diode D1, and then to pin 3 of CN3 and CN4 in the multi-sensor interface through resistor R12; pin 6 of chip U2 is connected to GND through resistor R20 and diode D2, and then to pin 2 of CN3 and CN4 in the multi-sensor interface through resistor R13.
[0032] Preferably, in the wireless radio frequency communication circuit (I) CN8, pin 1 is connected to GND, pin 2 is connected to the power supply DC24V+, pin 3 is connected to pin 7 of chip U16, and pin 4 is connected to pin 6 of chip U16.
[0033] Wireless radio frequency communication circuit (II) Connect pin 1 of CN9 to GND, pin 2 to power supply DC24V+, pin 3 to pin 7 of chip U2, and pin 4 to pin 6 of chip U2.
[0034] Preferably, pin 20 of the Bluetooth communication circuit U24 is connected to VDD via R4 and to GND via C37; pin 1 of U24 is connected to VDD and to GND via C38; pin 8 of U24 is connected to pin 52 of the main control chip; pin 9 of U24 is connected to pin 51 of the main control chip; and pins 13 and 15 of U24 are connected to GND.
[0035] Preferably, pins 3, 4, and 6 of the Ethernet communication circuit U5 are connected to VDD via R55; pin 8 of U5 is connected to pin 29 of the main control chip; pin 9 of U5 is connected to pin 30 of the main control chip; pins 7 and 13 of U5 are connected; pins 12 and 16 of U5 are connected; pins 14 and 15 of U5 are connected to VDD; pin 10 of U5 is connected to GND; and pin 11 of U5 is connected to VDD.
[0036] Preferably, pin 1 of RS485 interface P1 is connected to pin 7 of chip U16, and pin 2 of RS485 interface P1 is connected to pin 6 of chip U16.
[0037] Preferably, in the multi-sensor interface, pin 1 of CN3 and CN4 is connected to the power supply DC24V+, pin 4 of CN3 and CN4 is connected to GND, pin 3 of CN3 and CN4 is connected to pin 7 of chip U2, and pin 2 of CN3 and CN4 is connected to pin 6 of chip U2.
[0038] Preferably, pin 37 of the main control chip is connected to pin 1 of button U10 in the input control circuit;
[0039] Pin 38 of the main control chip is connected to pin 1 of button U7 in the input control circuit;
[0040] Pin 39 of the main control chip is connected to pin 1 of button U8 in the input control circuit;
[0041] Pin 40 of the main control chip is connected to pin 1 of button U9 in the input control circuit;
[0042] Pin 51 of the main control chip is connected to pin 1 of button U12 in the input control circuit;
[0043] Pin 52 of the main control chip is connected to pin 1 of button U13 in the input control circuit;
[0044] Pin 53 of the main control chip is connected to pin 1 of button U14 in the input control circuit;
[0045] Pin 7 of chip U1 is connected to pin 1 of button U11 in the input control circuit.
[0046] Preferably, in the power-on / off circuit, the DC5V power supply is connected to pin 1 of chip U1 in the power-on / off circuit, and is connected to pin 4 of chip U1 through resistor R1;
[0047] Pin 6 of chip U1 is connected to pin 1 of chip U4 in the power-on / off circuit;
[0048] Pin 7 of chip U1 is connected to pin 1 of button U11 in the input control circuit;
[0049] Pin 4 of chip U4 is connected to power supply VCC, and then connected to GND through capacitor C4;
[0050] Pin 6 of chip U4 is connected to a DC 5V power supply.
[0051] In the power-on / off circuit, the DC5V power supply is connected to GND through capacitor C1.
[0052] Preferably, in the DC-DC power supply circuit, pin 1 of chip U15 is connected to the negative terminal of diode D3, and is simultaneously connected to power supply DC5V (OUT) through inductor L1;
[0053] DC5V(OUT) is connected to GND through capacitor C20;
[0054] Pin 2 of chip U15 is connected to GND through resistor R34;
[0055] Pin 3 of chip U15 is connected to GND through capacitor C22 and resistor R31;
[0056] Pin 4 of chip U15 is connected to GND via R30 and to the DC5V (OUT) power supply via R29;
[0057] Pin 5 of chip U15 is connected to GND;
[0058] Pin 6 of chip U15 is connected to GND via R33;
[0059] Pin 7 of chip U15 is connected to GND through capacitor C19, and then to GND through resistors R32 and R34, and then to DC24V+.
[0060] Preferably, pin 1 of CN6 in the power supply circuit is connected to the positive terminal of capacitor C17G;
[0061] In the power supply circuit, pin 2 of CN6 is connected to GND, the negative terminal of capacitor C17, the negative terminal of capacitor C15, and is connected to pin 1 of power supply circuit CN6 through capacitor C18, and to pin 3 of power supply circuit CN6 through capacitor C16.
[0062] In the power supply circuit, pin 3 of CN6 is connected to the positive terminal of diode D6; the negative terminal of diode D6 is connected to the DC24V+ power supply.
[0063] Pin 4 of the power supply circuit CN6 is connected to the DC5V power supply.
[0064] Preferably, in the linear voltage regulator circuit, pin 1 of chip LDO1 is connected to power supply VCC and connected to GND through capacitor C29;
[0065] Pin 2 of chip LDO1 is connected to GND;
[0066] Pin 5 of chip LDO1 is connected to power supply VDD, and then connected to GND through capacitor C30 and diode D8.
[0067] The advantages of this invention are as follows:
[0068] 1. Construct an indoor intelligent environmental control system to achieve centralized monitoring of noise, illuminance, temperature, humidity, and air quality, and to achieve intelligent control of exhaust fans, ceiling fans, air purification devices, fresh air systems, and lighting systems, overcoming the problems of independent operation of equipment in the monitoring room, low efficiency, and energy waste.
[0069] 2. Real-time temperature data collection enables coordinated and intelligent operation of ceiling fans and fresh air systems, overcoming the drawbacks of untimely and labor-intensive manual switching.
[0070] 3. Real-time humidity data collection enables the exhaust fan to intervene accurately and work effectively, overcoming the problem that exhaust fans are only used to remove odors, which is not very useful and wastes energy.
[0071] 4. Real-time air quality data collection enables timely operation of exhaust fans and precise operation of air purification equipment, overcoming the problems of low utilization rate and energy waste of exhaust fans and air purification equipment.
[0072] 5. Real-time acquisition of illuminance sensor data, precise setting and control of normal illuminance values, accurate regulation of indoor illuminance, overcoming the shortcomings of uncontrollable illuminance in existing lighting systems.
[0073] 6. Real-time acquisition of illuminance sensor data; when the illuminance exceeds a certain value, the control circuit automatically shuts off; when the illuminance falls below a certain value, the control circuit automatically turns on, overcoming the drawback of requiring manual switching.
[0074] 7. By setting midday and nighttime sleep periods, the control circuit automatically adjusts the lighting to a soft intensity when the sleep period begins, overcoming the impact of indoor lighting on the sleep quality of the monitored personnel, while ensuring the visibility requirements for video surveillance and manual patrols.
[0075] 8. Real-time acquisition of noise sensor data; when abnormal noise occurs during midday or nighttime sleep periods, the control circuit automatically turns on and adjusts the indoor illuminance to a bright state, enabling video surveillance and manual patrols to identify the noise faster and more accurately.
[0076] 9. Communicates with the host computer via RS485 circuit, using the MODBUS-RTU standard protocol, and uploads real-time monitoring data of cell illuminance, noise, temperature, humidity, and air quality to the host computer (computer) for centralized collection, display, and control of indoor environmental parameters.
[0077] 10. Communicates with the host computer via RS485 circuit, adopts the MODBUS-RTU standard protocol, receives control commands from the host computer in real time, and controls the working status of the indoor exhaust fan, ceiling fan, air purification device, fresh air system, and lighting system in the cell in real time.
[0078] 11. It communicates with the host computer via RS485 circuit, adopts the MODBUS-RTU standard protocol, and sets a different address for each cell, so that control commands can control all cells or a single cell.
[0079] 12. By connecting the wireless radio frequency communication module, the environmental monitoring data in the monitoring room is wirelessly transmitted to the main logic control circuit.
[0080] 13. By connecting the wireless radio frequency communication module to communicate with the host computer, real-time wireless communication can be achieved, which can be one-to-one or one-to-many.
[0081] 14. Through Bluetooth communication circuit, it can communicate with other small devices in the cell that cannot be reached by wire, so as to realize full coverage network communication of devices in the cell.
[0082] 15. Communicate with the host computer via Ethernet communication circuit, and use MODBUS gateway and MQTT / TCP protocol to upload monitoring data of cell illuminance, noise, temperature, humidity and air quality to the host computer in real time, so as to centrally collect, display and control indoor environmental parameters.
[0083] 16. Communicates with the host computer via Ethernet communication circuit, using MODBUS gateway and MQTT / TCP protocol, to receive control commands from the host computer in real time and control the working status of the indoor exhaust fan, ceiling fan, air purification device, fresh air system, and lighting system in the cell in real time.
[0084] 16. Communicates with the host computer via Ethernet communication circuit, using MODBUS gateway and MQTT / TCP protocol. Each cell is assigned a different network address, enabling control commands to control all cells or a single cell.
[0085] 17. The four-channel LED dimming control module is controlled by RS485 circuit to achieve stepless dimming control of the lamp group in the monitoring room from 0 to 256 levels, making automatic dimming more precise and avoiding energy waste.
[0086] 18. Connect an optocoupler relay to the port of the STM32F103RCT6 microcontroller, and then connect the optocoupler relay to a high-power DIN rail relay to control the exhaust fan, air purification device, and fresh air system.
[0087] 19. Connect a thyristor voltage regulator module via the STM32F103RCT6 microcontroller port to control multiple ceiling fans simultaneously, with adjustable speeds.
[0088] 20. In this invention, the microcontroller in the output control circuit can be a central control chip in the main logic control circuit or an independent control chip. Those skilled in the art can choose different technical solutions based on actual scenario requirements and system computing power requirements. The above embodiments do not exceed the scope described in this invention. Attached Figure Description
[0089] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only one embodiment of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0090] Identical parts are indicated by the same reference numerals. It should be noted that the terms "front," "rear," "left," "right," "up," and "down" used in the following description refer to directions in the accompanying drawings, while the terms "bottom surface," "top surface," "inner," and "outer" refer to directions toward or away from the geometric center of a specific part, respectively.
[0091] Figure 1 This is a circuit diagram of the main logic control circuit in an embodiment of the present invention;
[0092] Figure 2 This is a block diagram of the output control terminal circuit in an embodiment of the present invention. Detailed Implementation
[0093] The technical solutions of the present invention will now be clearly and completely described with reference to the embodiments and accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0094] Unless otherwise defined, all technical and scientific terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains; the terminology used in the detailed description is for the purpose of describing particular embodiments only and is not intended to limit the invention; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.
[0095] In the description of specific embodiments of the present invention, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present invention, "multiple" means two or more, unless otherwise explicitly defined.
[0096] In this invention, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this invention can be combined with other embodiments.
[0097] In the description of the embodiments of this invention, the term "and / or" is merely a description of the relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, in this invention, the character " / " generally indicates that the preceding and following associated objects have an "or" relationship.
[0098] The embodiments of the present invention will be described in more detail below through examples. It should be noted that the embodiments of the present invention are not limited to these examples.
[0099] In one specific embodiment, an indoor intelligent environment control system includes a main logic control circuit and an output control terminal circuit.
[0100] like Figure 1 As shown, the main logic control circuit includes a main control chip, an RS485 communication circuit (I), an RS485 communication circuit (II), an LCD display circuit, a crystal oscillator, an SPI FLASH, a power-on / off circuit, a DC-DC power supply circuit, an RTC backup battery, an RST reset button, an SWD USART1, an input control circuit, a linear voltage regulator circuit, a power input circuit, a multi-sensor interface, a wireless radio frequency communication interface (I), a wireless radio frequency communication interface (II), a Bluetooth communication circuit, an Ethernet communication circuit, and an RS485 interface.
[0101] The output control circuit includes a microcontroller, an optocoupler circuit, a thyristor module, a 4-channel LED dimming controller, and several high-power rail relays.
[0102] Pin 1 of the main control chip is connected to the cathode of diode D7 and the positive terminal of the power supply. The negative terminal of the power supply is connected to GND, and the positive terminal of diode D7 is connected to the power supply VDD through resistor R44.
[0103] Pins 3 and 4 of the main control chip are connected to the X2 terminals of the crystal oscillator.
[0104] Pin 3 of the main control chip is connected to GND via capacitor C27.
[0105] Pin 4 of the main control chip is connected to GND via C28.
[0106] Pin 5 of the main control chip is connected to pin 1 of crystal oscillator X1, pin 6 of the main control chip is connected to pin 3 of crystal oscillator X1, pins 4 and 2 of crystal oscillator X1 are connected to GND, pins 1 and 4 of crystal oscillator X1 are connected through capacitor C25, and pins 2 and 3 of crystal oscillator X1 are connected through capacitor C26.
[0107] Pin 7 of the main control chip is connected to VDD through resistor R45 and to GND through capacitor C31.
[0108] Pin 7 of the main control chip is connected to KEY1 in the RST reset button, and the other end of KEY1 in the RST reset button is connected to GND.
[0109] Pin 12 of the main control chip is connected to GND through resistor R50.
[0110] Pin 13 of the main control chip is connected to GND through capacitor C32, and pin 13 of the main control chip is connected to power supply VDD through ferrite bead L2.
[0111] Pin 33 of the main control chip is connected to pin 1 of U18 in the SPI FLASH, and pin 1 of U18 in the SPI FLASH is connected to the power supply VDD through R47.
[0112] In SPIFLASH, pin 2 of U18 is connected to pin 35 of the main control chip, and is connected to the power supply VDD through resistor R46.
[0113] In the SPIFLASH, pin 3 of chip U18 is connected to the power supply VDD. Pin 4 of chip U18 is connected to GND.
[0114] In SPIFLASH, pin 5 of U18 is connected to pin 36 of the main control chip, and is connected to the power supply VDD through resistor R49.
[0115] In the SPIFLASH, pin 6 of chip U18 is connected to pin 34 of the main control chip, and is connected to the power supply VDD through resistor R48.
[0116] In SPIFLASH, pins 7 and 8 of chip U18 are connected to power supply VDD.
[0117] Pin 49 of the main control chip is connected to pin 1 of H1 in SWD USART1.
[0118] In SWD USART1, pin 2 of H1 is connected to the power supply VDD.
[0119] Pin 3 of H1 in SWD USART1 is connected to GND. Pin 4 of H1 in SWD USART1 is connected to pin 46 of the main control chip.
[0120] Pin 14 of the main control chip is connected to pin 10 of the LCD display circuit CN1 via resistor R26; pin 15 of the main control chip is connected to pin 11 of the LCD display circuit CN1 via resistor R25; pin 21 of the main control chip is connected to pin 9 of the LCD display circuit CN1 via resistor R27; pin 20 of the main control chip is connected to pin 12 of the LCD display circuit CN1 via resistor R24; and pin 23 of the main control chip is connected to pin 8 of the LCD display circuit CN1 via resistor R28.
[0121] Pin 7 of the LCD display circuit CN1 is connected to VDD, pin 6 of the LCD display circuit CN1 is connected to GND, pins 4 and 5 of the LCD display circuit CN1 are connected through capacitor C13, and pins 2 and 3 of the LCD display circuit CN1 are connected through capacitor C12.
[0122] Pin 1 of the LCD display circuit CN1 is connected to GND through capacitor C10, and connected to power supply VDD through capacitors C10 and C14.
[0123] Pin 26 of the main control chip is connected to LED3 via resistor R23 to serve as the backlight power supply for the LCD screen.
[0124] In this embodiment, the main logic control circuit uses two RS485 communication circuits, a Bluetooth communication circuit, an Ethernet communication circuit, and a wireless radio frequency communication circuit to construct an Internet of Things system in the monitoring room.
[0125] The main logic control circuit communicates with the host computer via RS485 communication circuit (I). Specifically:
[0126] Pin 16 of the main control chip is connected to the base of transistor Q2 in RS485 communication circuit (I) through resistor R36. Power supply VCC is connected to the positive terminal of LED5 through resistor R36. The negative terminal of LED5 is connected to the base of transistor Q2 through resistor R36. The emitter of transistor Q2 is connected to pins 2 and 3 of chip U16 in RS485 communication circuit (I). The collector of transistor Q2 is connected to GND.
[0127] Pin 17 of the main control chip is connected to pin 1 of chip U16 through resistor R35.
[0128] In the RS485 communication circuit (I), the power supply VCC is connected to the positive terminal of LED4 through resistor R36, and the negative terminal of LED4 is connected to pin 1 of chip U16 through resistor R35.
[0129] The power supply VCC of the RS485 communication circuit (I) is connected to the emitter of transistor Q2 through resistor R41, and is also connected to pins 2 and 3 of chip U16.
[0130] The power supply VCC of the RS485 communication circuit (I) is connected to GND through capacitor C24.
[0131] Pin 8 of chip U16 is connected to the power supply VCC of RS485 communication circuit (I).
[0132] Pin 5 of chip U16 is connected to GND.
[0133] Pin 7 of chip U16 is connected to GND through resistor R39. Chip U16 is connected to GND through diode D4, and then connected to pin 1 of RS485 interface P1 through resistor R12.
[0134] Pin 6 of chip U16 is connected to GND through resistor R20. Chip U16 is connected to GND through diode D5, and then connected to pin 2 of RS485 interface P1 through resistor R40.
[0135] The main logic control circuit communicates with the multi-sensor interface and the four-channel LED dimming controller via RS485 communication circuit (II). Specifically:
[0136] Pin 42 of the main control chip is connected to the base of transistor Q1 in RS485 communication circuit (II) through resistor R9.
[0137] In RS485 communication circuit (II), the power supply VCC is connected to the positive terminal of LED2 through resistor R11. The negative terminal of LED2 is connected to the base of transistor Q1 through resistor R9. The emitter of transistor Q1 is connected to pins 2 and 3 of chip U2 in RS485 communication circuit (II). The collector of transistor Q1 is connected to GND.
[0138] Pin 43 of the main control chip is connected to pin 1 of chip U2 through resistor R7. The power supply VCC of RS485 communication circuit (II) is connected to the positive terminal of LED1 through resistor R10. The negative terminal of LED1 is connected to pin 1 of chip U2 through resistor R7.
[0139] The power supply VCC of the RS485 communication circuit (II) is connected to the emitter of transistor Q1 through resistor R8, and is also connected to pins 2 and 3 of chip U2.
[0140] The power supply VCC of the RS485 communication circuit (II) is connected to GND through capacitor C9.
[0141] Pin 8 of chip U2 is connected to power supply VCC.
[0142] Pin 5 of chip U2 is connected to GND.
[0143] Pin 7 of chip U2 is connected to GND through resistor R13 and diode D1, and then to pin 3 of sensor wiring circuit CN3 and CN4 through resistor R12.
[0144] Pin 6 of chip U2 is connected to GND through resistor R20 and diode D2, and then to pin 2 of sensor wiring circuit CN3 and CN4 through resistor R13.
[0145] The advantage of using dual RS485 communication modules in this embodiment is that it avoids mutual interference between data transmission and reception when there are many bus devices.
[0146] Wireless radio frequency communication circuit (I) Connect pin 1 of CN8 to GND, pin 2 to power supply DC24V+, pin 3 to pin 7 of chip U16, and pin 4 to pin 6 of chip U16.
[0147] Wireless radio frequency communication circuit (II) Connect pin 1 of CN9 to GND, pin 2 to power supply DC24V+, pin 3 to pin 7 of chip U2, and pin 4 to pin 6 of chip U2.
[0148] In this embodiment, the wireless radio frequency communication circuit (I) is used to connect to the host computer, and the wireless radio frequency communication circuit (II) is used to connect to external devices.
[0149] In the Bluetooth communication circuit U24, pin 20 is connected to VDD via R4 and to GND via C37; pin 1 of U24 is connected to VDD and to GND via C38; pin 8 of U24 is connected to pin 52 of the main control chip; pin 9 of U24 is connected to pin 51 of the main control chip; and pins 13 and 15 of U24 are connected to GND.
[0150] In the Ethernet communication circuit U5, pins 3, 4, and 6 are connected to VDD via R55. Pin 8 of U5 is connected to pin 29 of the main control chip, pin 9 of U5 is connected to pin 30 of the main control chip, pins 7 and 13 of U5 are connected, pins 12 and 16 of U5 are connected, pins 14 and 15 of U5 are connected to VDD, pin 10 of U5 is connected to GND, and pin 11 of U5 is connected to VDD.
[0151] This embodiment uses wired Ethernet communication and RS485 communication as the main means, and wireless radio frequency communication interface (I), wireless radio frequency communication interface (II) and Bluetooth communication circuit as auxiliary means to achieve the purpose of intelligent networking of all cells in the supervision site and intelligent networking of cells. It can fit more application scenarios, especially for the renovation of old prisons and has important practical significance.
[0152] In this embodiment, pin 1 of RS485 interface P1 is connected to pin 7 of chip U16, and pin 2 of RS485 interface P1 is connected to pin 6 of chip U16.
[0153] This embodiment, based on the wired Ethernet and RS485 communication network of all cells in the supervision site, also implements wireless radio frequency communication and Bluetooth communication network as backups, ensuring uninterrupted communication through multiple means.
[0154] In this embodiment, pin 1 of CN3 and CN4 in the multi-sensor interface is connected to the power supply DC24V+, pin 4 of CN3 and CN4 in the multi-sensor interface is connected to GND, pin 3 of CN3 and CN4 in the multi-sensor interface is connected to pin 7 of chip U2, and pin 2 of CN3 and CN4 in the multi-sensor interface is connected to pin 6 of chip U2.
[0155] In this embodiment, the multi-sensor interface is used to connect sensors, including light intensity sensors, noise sensors, temperature and humidity sensors, etc.
[0156] Pins 19, 32, 48, and 64 of the main control chip are connected to GND through capacitors C33, C34, C35, and C36.
[0157] Pins 18, 31, 47, and 63 of the main control chip are connected to GND.
[0158] Pin 37 of the main control chip is connected to pin 1 of button U10 in the input control circuit, and pin 3 of button U10 is connected to GND.
[0159] Pin 38 of the main control chip is connected to pin 1 of button U7 in the input control circuit, and pin 3 of button U7 is connected to GND.
[0160] Pin 39 of the main control chip is connected to pin 1 of button U8 in the input control circuit, and pin 3 of button U8 is connected to GND.
[0161] Pin 40 of the main control chip is connected to pin 1 of button U9 in the input control circuit, and pin 3 of button U9 is connected to GND.
[0162] Pin 51 of the main control chip is connected to pin 1 of button U12 in the input control circuit, and pin 3 of button U12 is connected to GND.
[0163] Pin 52 of the main control chip is connected to pin 1 of button U13 in the input control circuit, and pin 3 of button U13 is connected to GND.
[0164] Pin 53 of the main control chip is connected to pin 1 of button U14 in the input control circuit, and pin 3 of button U14 is connected to GND.
[0165] Pin 7 of chip U1 is connected to pin 1 of button U11 in the input control circuit, and pin 3 of button U11 is connected to GND.
[0166] In the power-on / off circuit, the DC5V power supply is connected to pin 1 of chip U1 in the power-on / off circuit, and is connected to pin 4 of chip U1 through resistor R1.
[0167] Pin 8 of chip U1 is connected to GND. Pin 6 of chip U1 is connected to pin 1 of chip U4 in the power-on / off circuit.
[0168] Pin 7 of chip U1 is connected to pin 1 of button U11 in the input control circuit.
[0169] Pin 2 of chip U4 is connected to GND.
[0170] Pin 4 of chip U4 is connected to power supply VCC, and then connected to GND through capacitor C4.
[0171] Pin 6 of chip U4 is connected to a DC 5V power supply.
[0172] In the power-on / off circuit, the DC5V power supply is connected to GND through capacitor C1.
[0173] In the DC-DC power supply circuit, pin 1 of chip U15 is connected to the negative terminal of diode D3, and is also connected to the DC5V (OUT) power supply through inductor L1.
[0174] DC5V(OUT) is connected to GND through capacitor C20.
[0175] Pin 2 of chip U15 is connected to GND through resistor R34.
[0176] Pin 3 of chip U15 is connected to GND through capacitor C22 and resistor R31.
[0177] Pin 4 of chip U15 is connected to GND via R30 and to the DC5V (OUT) power supply via R29.
[0178] Pin 5 of chip U15 is connected to GND.
[0179] Pin 6 of chip U15 is connected to GND via R33.
[0180] Pin 7 of chip U15 is connected to GND through capacitor C19, and then to GND through resistors R32 and R34, and then to DC24V+.
[0181] In the power supply circuit, pin 1 of CN6 is connected to the positive terminal of capacitor C17G.
[0182] In the power supply circuit, pin 2 of CN6 is connected to GND, the negative terminal of capacitor C17, the negative terminal of capacitor C15, and is connected to pin 1 of CN6 in the power supply circuit through capacitor C18, and to pin 3 of CN6 in the power supply circuit through capacitor C16.
[0183] In the power supply circuit, pin 3 of CN6 is connected to the anode of diode D6. The cathode of diode D6 is connected to the DC24V+ power supply.
[0184] Pin 4 of the power supply circuit CN6 is connected to the DC5V power supply.
[0185] In the linear voltage regulator circuit, pin 1 of chip LDO1 is connected to the power supply VCC, and then connected to GND through capacitor C29.
[0186] Pin 2 of chip LDO1 is connected to GND.
[0187] Pin 5 of chip LDO1 is connected to power supply VDD, and then connected to GND through capacitor C30 and diode D8.
[0188] like Figure 2 As shown, the microcontroller is connected to the RS485 communication circuit (II), the optocoupler circuit, and the thyristor module.
[0189] The optocoupler circuit includes optocoupler relays U20, U21, U22, and U23.
[0190] The optocoupler circuit connects high-power rail relays J1, J2, J3, and J4.
[0191] Among them, high-power rail relays J1, J2, and J3 are connected to the air purification system, and high-power rail relay J4 is connected to the cooling system.
[0192] RS485 communication circuit (II) connects to a four-channel LED dimming controller.
[0193] A four-channel LED dimming controller is used to connect to a lighting system.
[0194] The microcontroller controls the thyristor module via PWM.
[0195] The thyristor module is connected to the cooling system.
[0196] In this embodiment, by inputting control commands, the four-channel LED dimming controller outputs a pulse voltage of 0-24V, enabling stepless brightness adjustment of the lamps from 0 to 256 levels. This results in more precise control of illuminance in the monitoring room and centralized control of lighting equipment within the Internet of Things system.
[0197] In this embodiment, the on / off state of the optocoupler relay is controlled by pins 9, 10, 11, and 24 of the main control chip, so as to achieve the purpose of controlling large voltage with small voltage and controlling AC with DC.
[0198] This embodiment uses DC voltage to control the activation of a high-power AC relay, thereby controlling the operation or shutdown of a single high-power electrical device, thus achieving unified control of electrical devices within the Internet of Things system.
[0199] In this embodiment, pin 8 of the main control chip outputs in PWM mode to realize different power outputs of the thyristor module, adjust the power of high-power electrical equipment in the cell, thereby realizing unified control of electrical equipment in the Internet of Things system, and solving the problem of many high-power electrical devices and difficulty in rewiring in old cell rooms.
[0200] It should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. An indoor intelligent environmental control system, characterized in that, Includes the main logic control circuit and the output control terminal circuit; The main logic control circuit includes a main control chip, RS485 communication circuit (I), RS485 communication circuit (II), LCD display circuit, crystal oscillator, SPI FLASH, power on / off circuit, DC-DC power supply circuit, RTC backup battery, RST reset button, SWDUSART1, input control circuit, linear voltage regulator circuit, power input circuit, multi-sensor interface, wireless radio frequency communication interface (I), wireless radio frequency communication interface (II), Bluetooth communication circuit, Ethernet communication circuit, and RS485 interface. The output control circuit includes an optocoupler circuit, a silicon controlled rectifier module, a 4-channel LED dimming controller, and several high-power rail relays. The main control chip is connected to the crystal oscillator, the SPI FLASH, the RST reset button, the SWD USART1, the LCD display circuit, the RS485 communication circuit (I), the RS485 communication circuit (II), the input control circuit, the Bluetooth communication circuit, and the Ethernet communication circuit. The RS485 communication circuit (a) is connected to the RS485 interface; The RS485 communication circuit (II) is connected to the multi-sensor interface; The wireless radio frequency communication circuit is connected to the RS485 communication circuit (I) and the RS485 communication circuit (II); The RS485 interface is connected to the RS485 communication circuit (a); The microcontroller is connected to the RS485 communication circuit (II), the optocoupler circuit, and the thyristor module; The optocoupler circuit connects high-power rail relay J1, high-power rail relay J2, high-power rail relay J3 and high-power rail relay J4. Among them, high-power rail relays J1, J2, and J3 are connected to the air purification system, and high-power rail relay J4 is connected to the cooling system. The RS485 communication circuit (II) is connected to the four-channel LED dimming controller; The four-channel LED dimming controller is used to connect to the lighting system; The microcontroller controls the thyristor module via PWM connection. The thyristor module is connected to the cooling system.
2. The indoor intelligent environment control system according to claim 1, characterized in that, Pins 3 and 4 of the main control chip are connected to the X2 terminals of the crystal oscillator; Pin 5 of the main control chip is connected to pin 1 of the crystal oscillator X1, and pin 6 of the main control chip is connected to pin 3 of the crystal oscillator X1. Pin 7 of the main control chip is connected to KEY1 in the RST reset button via R45, and the other end of KEY1 in the RST reset button is connected to GND. Pin 33 of the main control chip is connected to pin 1 of chip U18 in SPI FLASH, pin 2 of U18 is connected to pin 35 of the main control chip, pin 5 of U18 is connected to pin 36 of the main control chip, and pin 6 of U18 is connected to pin 34 of the main control chip. Pin 49 of the main control chip is connected to pin 1 of H1 in SWD USART1; pin 4 of H1 in SWD USART1 is connected to pin 46 of the main control chip. Pin 14 of the main control chip is connected to pin 10 of the LCD display circuit CN1 through resistor R26; pin 15 of the main control chip is connected to pin 11 of the LCD display circuit CN1 through resistor R25; pin 21 of the main control chip is connected to pin 9 of the LCD display circuit CN1 through resistor R27; pin 20 of the main control chip is connected to pin 12 of the LCD display circuit CN1 through resistor R24; and pin 23 of the main control chip is connected to pin 8 of the LCD display circuit CN1 through resistor R28. Pin 26 of the main control chip is connected to LED3 via resistor R23 to serve as the backlight power supply for the LCD screen. Pin 16 of the main control chip is connected to the base of transistor Q2 in RS485 communication circuit (I) through resistor R36. The emitter of transistor Q2 is connected to pins 2 and 3 of chip U16 in RS485 communication circuit (I). Pin 17 of the main control chip is connected to pin 1 of chip U16 through resistor R35. Pin 7 of chip U16 is connected to GND through resistor R39, and chip U16 is connected to GND through diode D4, and then to pin 1 of RS485 interface P1 through resistor R12; pin 6 of chip U16 is connected to GND through resistor R20, and chip U16 is connected to GND through diode D5, and then to pin 2 of RS485 interface P1 through resistor R40. Pin 42 of the main control chip is connected to the base of transistor Q1 in RS485 communication circuit (II) through resistor R9; pin 43 of the main control chip is connected to pin 1 of chip U2 through resistor R7; pin 7 of chip U2 is connected to GND through resistor R13 and diode D1, and then to pin 3 of CN3 and CN4 in the multi-sensor interface through resistor R12; pin 6 of chip U2 is connected to GND through resistor R20 and diode D2, and then to pin 2 of CN3 and CN4 in the multi-sensor interface through resistor R13.
3. The indoor intelligent environment control system according to claim 1, characterized in that, In the wireless radio frequency communication circuit (I), pin 1 of CN8 is connected to GND, pin 2 is connected to the power supply DC24V+, pin 3 is connected to pin 7 of chip U16, and pin 4 is connected to pin 6 of chip U16. Wireless radio frequency communication circuit (II) CN9: pin 1 is connected to GND, pin 2 is connected to power supply DC24V+, pin 3 is connected to pin 7 of chip U2, and pin 4 is connected to pin 6 of chip U2. Pin 20 of the Bluetooth communication circuit U24 is connected to VDD via R4 and to GND via C37. Pin 1 of U24 is connected to VDD and to GND via C38. Pin 8 of U24 is connected to pin 52 of the main control chip, and pin 9 of U24 is connected to pin 51 of the main control chip. Pins 13 and 15 of U24 are connected to GND.
4. The indoor intelligent environment control system according to claim 1, characterized in that, The Ethernet communication circuit U5 has pins 3, 4, and 6 connected to VDD via R55. Pin 8 of U5 is connected to pin 29 of the main control chip, pin 9 of U5 is connected to pin 30 of the main control chip, pins 7 and 13 of U5 are connected, pins 12 and 16 of U5 are connected, pins 14 and 15 of U5 are connected to VDD, pin 10 of U5 is connected to GND, and pin 11 of U5 is connected to VDD.
5. The indoor intelligent environment control system according to claim 1, characterized in that, Pin 1 of RS485 interface P1 is connected to pin 7 of chip U16, and pin 2 of RS485 interface P1 is connected to pin 6 of chip U16; in the multi-sensor interface, pin 1 of CN3 and CN4 is connected to power supply DC24V+, pin 4 of CN3 and CN4 is connected to GND, pin 3 of CN3 and CN4 is connected to pin 7 of chip U2, and pin 2 of CN3 and CN4 is connected to pin 6 of chip U2.
6. The indoor intelligent environment control system according to claim 1, characterized in that, Pin 37 of the main control chip is connected to pin 1 of button U10 in the input control circuit; Pin 38 of the main control chip is connected to pin 1 of button U7 in the input control circuit; Pin 39 of the main control chip is connected to pin 1 of button U8 in the input control circuit; Pin 40 of the main control chip is connected to pin 1 of button U9 in the input control circuit; Pin 51 of the main control chip is connected to pin 1 of button U12 in the input control circuit; Pin 52 of the main control chip is connected to pin 1 of button U13 in the input control circuit; Pin 53 of the main control chip is connected to pin 1 of button U14 in the input control circuit; Pin 7 of chip U1 is connected to pin 1 of button U11 in the input control circuit.
7. The indoor intelligent environment control system according to claim 1, characterized in that, In the power-on / off circuit, the DC5V power supply is connected to pin 1 of chip U1 in the power-on / off circuit, and is connected to pin 4 of chip U1 through resistor R1. Pin 6 of chip U1 is connected to pin 1 of chip U4 in the power-on / off circuit; Pin 7 of chip U1 is connected to pin 1 of button U11 in the input control circuit; Pin 4 of chip U4 is connected to power supply VCC, and then connected to GND through capacitor C4; Pin 6 of chip U4 is connected to a DC 5V power supply. In the power-on / off circuit, the DC5V power supply is connected to GND through capacitor C1.
8. The indoor intelligent environment control system according to claim 1, characterized in that, In the DC-DC power supply circuit, pin 1 of chip U15 is connected to the negative terminal of diode D3, and is also connected to power supply DC5V (OUT) through inductor L1. DC5V(OUT) is connected to GND through capacitor C20; Pin 2 of chip U15 is connected to GND through resistor R34; Pin 3 of chip U15 is connected to GND through capacitor C22 and resistor R31; Pin 4 of chip U15 is connected to GND via R30 and to the DC5V (OUT) power supply via R29; Pin 5 of chip U15 is connected to GND; Pin 6 of chip U15 is connected to GND via R33; Pin 7 of chip U15 is connected to GND through capacitor C19, and then to GND through resistors R32 and R34, and then to DC24V+.
9. The indoor intelligent environment control system according to claim 1, characterized in that, In the power supply circuit, pin 1 of CN6 is connected to the positive terminal of capacitor C17G; In the power supply circuit, pin 2 of CN6 is connected to GND, the negative terminal of capacitor C17, the negative terminal of capacitor C15, and is connected to pin 1 of power supply circuit CN6 through capacitor C18, and to pin 3 of power supply circuit CN6 through capacitor C16. In the power supply circuit, pin 3 of CN6 is connected to the positive terminal of diode D6; the negative terminal of diode D6 is connected to the DC24V+ power supply. Pin 4 of the power supply circuit CN6 is connected to the DC5V power supply.
10. The indoor intelligent environment control system according to claim 1, characterized in that, In the linear voltage regulator circuit, pin 1 of chip LDO1 is connected to power supply VCC and then connected to GND through capacitor C29. Pin 2 of chip LDO1 is connected to GND; Pin 5 of chip LDO1 is connected to power supply VDD, and then connected to GND through capacitor C30 and diode D8.