Intelligent curtain and illumination automatic control device based on mattress pressure sensing
Through the combination of mattress pressure sensor and light sensor, the intelligent linkage of automatic control of curtains and lighting systems has been solved, and the user experience and energy utilization efficiency have been improved.
Patent Information
- Application Number
- CN202422832630.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2034-11-20
AI Technical Summary
Existing smart curtains and lighting systems require manual or voice control, are complex in operation, and cannot be automatically adjusted according to user status, affecting user experience and energy utilization efficiency.
The mattress pressure sensor is used to detect user status changes, combine the light sensor to automatically control curtains and lighting, and intelligent linkage is achieved through the STM32F103C8T6 microcontroller and related circuits, including the curtain driving mechanism and lighting sensing mechanism.
It realizes intelligent linkage between automatic adjustment of curtains and lighting, improves user convenience and energy saving, and is suitable for modern smart home environments.
Smart Images

Figure CN223260077U_ABST
Abstract
Description
Technical Field
[0001] The utility model belongs to the field of smart home, and in particular relates to an intelligent curtain and lighting automatic control device based on mattress pressure sensing. Background Art
[0002] Existing smart curtains and lighting systems mostly require manual or voice control, making them complex and inconvenient. This is especially true at night, when users still need to manually turn off the lights after going to bed, potentially leaving them in the dark and disrupting their restful sleep. Furthermore, users are unable to immediately access natural light or fluorescent lighting upon waking, hindering their ability to awaken. To address this issue, an automatic control device is proposed that intelligently links curtains and lighting by detecting changes in the user's position on the mattress.
[0003] In the prior art, the Chinese patent CN210144431U published on March 17, 2020 discloses a smart curtain based on bed surface gravity sensing. The opening and closing of the curtain can be controlled by starting the motor. It is easy to use. At the same time, when people leave the bed, the curtain will automatically open, and when people return to the bed, the curtain will automatically close, avoiding the operation steps and facilitating people's use, but it does not propose to control the lighting switch based on light data; the Chinese patent CN113175641B published on July 27, 2021 discloses a smart home lighting control device for the bedroom, which senses the light intensity through a light sensor, converts the light intensity value into a light control switch and brightness adjustment signal, and adjusts the illumination value of the lighting equipment, but does not propose to control the opening and closing of curtains based on pressure sensing data.
[0004] Therefore, it is necessary to design and develop an intelligent curtain and lighting automatic control device based on mattress pressure sensing to address the above problems. Utility Model Content
[0005] The purpose of the utility model is to address the problems existing in the prior art and provide an intelligent curtain and lighting automatic control device based on mattress pressure sensing. By setting a control mechanism, a mattress pressure sensing mechanism, a curtain driving mechanism, and a lighting sensing mechanism, the curtain and lighting can be automatically adjusted, and the "light turns off when going to bed and turns on when leaving bed" function can be achieved, thereby improving life convenience and saving energy.
[0006] In order to achieve the above purpose, the technical solution adopted by the present utility model is as follows:
[0007] An intelligent curtain and lighting automatic control device based on mattress pressure sensing includes a control mechanism, a mattress pressure sensing mechanism, a curtain drive mechanism, and a lighting sensing mechanism. The mattress pressure sensing mechanism includes a pressure sensor and an amplifying sampling chip, while the lighting sensing mechanism includes a light sensor and a bidirectional thyristor control circuit. The curtain drive mechanism, pressure sensor, amplifying sampling chip, light sensor, and bidirectional thyristor control circuit are all connected to the control mechanism, and the pressure sensor is connected to the amplifying sampling chip. The mattress pressure sensing mechanism detects pressure changes on the mattress, the curtain drive mechanism controls the curtain opening and closing, and the lighting sensing mechanism senses light intensity to control the lighting.
[0008] Furthermore, the control mechanism adopts an STM32F103C8T6 single-chip microcomputer, and the PA1 and PA2 ports of the STM32F103C8T6 single-chip microcomputer are connected to the amplification sampling chip; the PB4, PA4, PA5, PA6 and PA7 ports of the STM32F103C8T6 single-chip microcomputer are connected to the curtain driving mechanism; the PB8 and PB9 ports of the STM32F103C8T6 single-chip microcomputer are connected to the light sensor; and the PA3 port of the STM32F103C8T6 single-chip microcomputer is connected to the bidirectional thyristor control circuit.
[0009] Furthermore, the pressure sensor adopts a YZC131 pressure sensor, and the amplification sampling chip adopts an HX711 amplification sampling chip; the YZC131 pressure sensor and the HX711 amplification sampling chip are electrically connected.
[0010] Furthermore, the DOUT pin of the HX711 amplifying and sampling chip is connected to the PA1 port of the control mechanism, and the PD_SCK pin of the HX711 amplifying and sampling chip is connected to the PA2 port of the control mechanism.
[0011] Furthermore, the pressure data of the YZC131 pressure sensor is transmitted to the INNA and INPA pins of the HX711 amplification sampling chip through a bridge structure.
[0012] Furthermore, the curtain drive mechanism adopts a stepper motor driver chip DRV8825 and a stepper motor 42BYG015. The DIR pin of the stepper motor driver chip DRV8825 is used to connect to the PA4 port of the control mechanism; when the DIR pin is connected to a high level, the stepper motor rotates forward and the curtain automatically closes; when the DIR pin is connected to a low level, the stepper motor reverses and the curtain automatically opens.
[0013] Furthermore, the light sensor is a BH1750 light sensor, which is connected to the PB8 and PB9 ports of the control mechanism through SCL and SDA pins.
[0014] Furthermore, the built-in TIMER timer of the STM32F103C8T6 microcontroller has a timer interrupt function, which is used to automatically turn on the fluorescent lamp auxiliary lighting when the indoor light intensity is insufficient, and automatically turn off after a preset time.
[0015] Compared with the prior art, the beneficial effects of the present invention are:
[0016] 1. This utility model proposes an intelligent curtain and lighting automatic control device based on mattress pressure sensing. The mattress pressure sensor transmits pressure data to the control mechanism, which then drives the automatic opening and closing of the curtain, effectively improving the user's life convenience.
[0017] 2. The utility model proposes an intelligent curtain and lighting automatic control device based on mattress pressure sensing. Through the light sensor, it can automatically control the switching of lights according to the light data, thereby realizing the convenient operation of "lights off when going to bed and lights on when leaving bed". It can effectively save energy, has low power consumption, is easy to install, and is suitable for modern smart home environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 This is a schematic structural diagram of an intelligent curtain and lighting automatic control device based on mattress pressure sensing in the present invention;
[0020] Figure 2 This is a circuit diagram of a mattress pressure sensing mechanism in an intelligent curtain and lighting automatic control device based on mattress pressure sensing in the present invention;
[0021] Figure 3 This is a circuit diagram of a control mechanism in an intelligent curtain and lighting automatic control device based on mattress pressure sensing in the present invention;
[0022] Figure 4 This is a schematic diagram of the curtain driving mechanism circuit of an intelligent curtain and lighting automatic control device based on mattress pressure sensing in the present invention;
[0023] Figure 5The utility model is a circuit diagram of a lighting sensor mechanism of a smart curtain and lighting automatic control device based on mattress pressure sensing. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0025] The utility model provides an intelligent curtain and lighting automatic control device based on mattress pressure sensing, such as Figure 1 As shown, it includes: a control mechanism, a mattress pressure sensing mechanism, a curtain driving mechanism, and a lighting sensing mechanism; the mattress pressure sensing mechanism includes a pressure sensor and an amplifying sampling chip, and the lighting sensing mechanism includes a light sensor and a bidirectional thyristor control circuit; the curtain driving mechanism, pressure sensor, amplifying sampling chip, light sensor, and bidirectional thyristor control circuit are all connected to the control mechanism, and the pressure sensor is connected to the amplifying sampling chip.
[0026] The embodiment of the present invention also provides a circuit diagram of a mattress pressure sensing mechanism, as shown in FIG. Figure 2 As shown, when the mattress pressure sensing mechanism detects a pressure change, the YZC131 pressure sensor in the mattress pressure sensing mechanism transmits the pressure data to the HX711 amplification and sampling chip via a bridge circuit structure. Data stability is improved by adjusting the values of resistors R1, R2, and capacitors C1, C2. The capacitors are used for filtering, and the resistors for voltage division. In this embodiment, the data collected by the HX711 amplification and sampling chip is output to the control module via the DOUT pin. The YZC131 pressure sensor has high sensitivity and stability, enabling real-time and accurate detection of pressure changes on the mattress.
[0027] The present invention also provides a circuit diagram of a control mechanism. Figure 3 As shown, the microcontroller model used is STM32F103C8T6. When ports PA1 and PA2 receive data input from the mattress pressure sensor mechanism, ports PB4, PA4, PA5, PA6 and PA7 simultaneously output control data. The curtain drive mechanism receives the control data and drives the curtain to automatically open and close based on the pressure data judgment result. At the same time, ports PB8 and PB9 receive light data from the light sensor BH1750. After judgment, they control the BT137 bidirectional thyristor control circuit of the lighting sensor mechanism through port PA3 to realize the switching of the fluorescent lamp.
[0028] Specifically, when someone lies on the mattress, the pressure increases, the PA3 port of the ST103M32FC8T6 microcontroller outputs a low level to drive the fluorescent lamp to turn off, and the PA4 port outputs a high level to drive the curtains to close; when the person leaves the mattress, the pressure decreases, the PA4 port of the STM32F103C8T6 microcontroller outputs a low level to drive the curtains to open. If the light intensity detected at the same time is small, the PA3 port outputs a high level to drive the fluorescent lamp to turn on, and after the built-in TIMER timer of the STM32F103C8T6 microcontroller counts for 15 minutes, the PA3 port is controlled to output a low level to drive the fluorescent lamp to turn off.
[0029] The present invention also provides a circuit diagram of a curtain drive mechanism. Figure 4 As shown, the curtain drive mechanism uses a stepper motor to automatically open or close the curtains. The stepper motor driver chip is the DRV8825, and the stepper motor is the 42BYG015. The DIR pin of the DRV8825 is connected to the PA4 port of the control mechanism. The PA5, PA6, and PA7 pins are connected to the M0, M1, and M2 pins of the DRV8825, respectively, to control the microstepping mode of the stepper motor 42BYG015. The PB4 port is connected to the STEP pin to control the speed of the stepper motor 42BYG015. When the DIR pin of the DRV8825 is high, the stepper motor rotates forward, automatically closing the curtains. When the DIR pin is low, the stepper motor rotates reversely, automatically opening the curtains.
[0030] The embodiment of the present utility model also provides a circuit diagram of the lighting sensor mechanism, such as Figure 5 As shown, the BH1750 light sensor transmits light data to the control unit via an IIC interface. Resistor R7 provides current limiting protection, and capacitor C8 filters out high-frequency interference, ensuring the stability of the output data. In this embodiment, the BH1750 light sensor is connected to the PB8 and PB9 ports of the STM32F103C8T6 microcontroller via the SCL and SDA pins. This sensor features high-precision and wide-range light detection capabilities, enabling real-time and accurate measurement of ambient light intensity. Furthermore, the bidirectional thyristor circuit BT137 receives data from the control module by controlling the PA3 port. Current limiting protection via resistor R6 ensures the BT137's stable operation. In this embodiment, when the PA3 port outputs a high level, the BT137 conducts, illuminating the bulb when connected to a 220V power source. When the PA3 port outputs a low level, the BT137 turns off, turning the bulb off. The BT137's bidirectional conduction characteristics enable this circuit to efficiently and stably control the light switch.
[0031] The following is an explanation of the working principle of the intelligent curtain and lighting automatic control device based on mattress pressure sensing provided by the utility model:
[0032] The utility model provides an intelligent curtain and lighting automatic control device based on mattress pressure sensing. The device detects pressure changes when a user gets into or out of bed in real time through a pressure sensing mechanism under the mattress, and transmits the pressure data to a control mechanism. The PA1 and PA2 ports of an ST103M32FC8T6 single-chip microcomputer in the control mechanism receive the pressure data, the PB4, PA4, PA5, PA6, and PA7 ports are connected to a curtain drive mechanism, and the PB8 and PB9 ports receive light data. The PA3 port of the ST103M32FC8T6 single-chip microcomputer controls the turning on and off of fluorescent lamps, and the PA4 port of the ST103M32FC8T6 single-chip microcomputer drives the opening and closing of curtains. Ultimately, the device realizes intelligent adjustment of "the light turns off when the user goes to bed and turns on when the user gets out of bed" and drives the opening and closing of curtains, thereby improving life convenience and saving energy.
[0033] Finally, it should be noted that the above specific embodiments are merely representative examples of the present invention. Obviously, the present invention is not limited to the above specific embodiments and is susceptible to numerous variations. Any simple modifications, equivalent variations, and modifications to the above specific embodiments based on the technical essence of the present invention shall be deemed to fall within the scope of protection of the present invention.
Claims
1. An intelligent curtain and lighting automatic control device based on mattress pressure sensing, characterized in that: include: control mechanism, mattress pressure sensing mechanism, curtain drive mechanism, and lighting sensing mechanism; The mattress pressure sensing mechanism includes a pressure sensor and an amplifying sampling chip, and the lighting sensing mechanism includes a light sensor and a bidirectional thyristor control circuit; the curtain driving mechanism, pressure sensor, amplifying sampling chip, light sensor and bidirectional thyristor control circuit are all connected to the control mechanism, and the pressure sensor is connected to the amplifying sampling chip.
2. The intelligent curtain and lighting automatic control device based on mattress pressure sensing according to claim 1, characterized in that: The control mechanism adopts an STM32F103C8T6 single-chip microcomputer, and the PA1 and PA2 ports of the STM32F103C8T6 single-chip microcomputer are connected to the amplification sampling chip; the PB4, PA4, PA5, PA6 and PA7 ports of the STM32F103C8T6 single-chip microcomputer are connected to the curtain driving mechanism; the PB8 and PB9 ports of the STM32F103C8T6 single-chip microcomputer are connected to the light sensor; and the PA3 port of the STM32F103C8T6 single-chip microcomputer is connected to the bidirectional thyristor control circuit.
3. The intelligent curtain and lighting automatic control device based on mattress pressure sensing according to claim 2, characterized in that: The pressure sensor adopts YZC131 pressure sensor, and the amplification sampling chip adopts HX711 amplification sampling chip.
4. The intelligent curtain and lighting automatic control device based on mattress pressure sensing according to claim 3 is characterized in that: The DOUT pin of the HX711 amplifying and sampling chip is connected to the PA1 port of the control mechanism, and the PD_SCK pin of the HX711 amplifying and sampling chip is connected to the PA2 port of the control mechanism.
5. The intelligent curtain and lighting automatic control device based on mattress pressure sensing according to claim 3 is characterized in that: The pressure data of the YZC131 pressure sensor is transmitted to the INNA and INPA pins of the HX711 amplification sampling chip through a bridge structure.
6. The intelligent curtain and lighting automatic control device based on mattress pressure sensing according to claim 1, characterized in that: The curtain driving mechanism adopts the stepper motor driving chip DRV8825 and the stepper motor 42BYG015.
7. The intelligent curtain and lighting automatic control device based on mattress pressure sensing according to claim 2, characterized in that: The light sensor is a BH1750 light sensor, which is connected to the PB8 and PB9 ports of the control mechanism via the SCL and SDA pins.
8. The intelligent curtain and lighting automatic control device based on mattress pressure sensing according to claim 1, characterized in that: It also includes the built-in TIMER timer of the STM32F103C8T6 microcontroller for timing interruption of lighting.
Citation Information
Patent Citations
Smart home lighting control device for the bedroom
CN113175641B
Intelligent curtain based on bed surface gravity induction
CN210144431U