Sleep regulator

By designing an integrated multi-functional sleep regulator, using piezoelectric cable sensors and STM32F103R8T6 microcontroller, interference-free monitoring and data analysis of human sleep is achieved, and the interference and health impact of the existing technology on the sleep experience is solved, providing a safe and easy-to-operate sleep monitoring solution suitable for home use.

CN222676981UActive Publication Date: 2025-03-28ANHUI UNIVERSITY OF TRADITIONAL CHINESE MEDICINE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420682977.5
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-04-03
Publication Date
2025-03-28
Estimated Expiration
2034-04-03

AI Technical Summary

Technical Problem

The existing sleep regulators mainly rely on EEG technology, which has interference with the sleep experience and has potential impact on the health of the elderly and young children. At the same time, there is a lack of products suitable for home use.

Method used

A sleep regulator integrating the functions of acquisition port, signal amplification module, main control module, networking module and other functions are designed. The piezoelectric cable sensor is placed in the mattress, and data is collected through the STM32F103R8T6 microcontroller and sensor, and the data is synchronized to the server through the WiFi networking function.

Benefits of technology

It realizes accurate monitoring and data analysis of the human body's vital signs activities in the bed, provides interference-free sleep monitoring, is suitable for home environments, and is safe and easy to operate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222676981U_ABST
    Figure CN222676981U_ABST
Patent Text Reader

Abstract

The utility model belongs to the technical field of household equipment, and discloses a sleep regulator, which comprises an integrated board integrated with an acquisition port, a signal amplification module, a master control module, a networking module, a serial port, a reset module, a power supply interface and a voltage stabilization module. Vital sign activities of a person on the mattress are analyzed from the sensor through collection of the microcontroller and the piezoelectric cable sensor, collected data are displayed through the data line, the microcontroller serves as a main controller and is combined with data collection of the piezoelectric cable sensor, and the whole system based on STM32 is formed. Wherein the piezoelectric cable sensor is placed in the mattress and does not cause any influence on the sleeping state and comfort of a human body, and meanwhile, in consideration of the conciseness of the whole equipment, the drawn circuit board is also convenient enough and easy to install, realizes a wireless networking function, synchronizes data to a server, and is convenient to use. Vital sign fluctuation response of the human body in the whole night can be checked on the networked device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model belongs to the technical field of household equipment, and particularly relates to a sleep regulator. Background Art

[0002] A sleep regulator is a device that can monitor and analyze human sleep patterns. It can detect sleep status and sleep quality, help users better understand their sleep conditions, optimize sleep patterns, and improve sleep quality. Modern people generally have the problem of poor sleep quality. Long-term lack of sleep or poor sleep quality will have a negative impact on physical health, work, and study. Therefore, it is of great significance to design and manufacture an effective sleep regulator to improve people's sleep quality and improve people's quality of life. At the same time, the design and implementation research of the sleep regulator based on STM32 not only involves embedded software and hardware design and development, but also involves signal processing algorithms, human-computer interaction, data analysis and visualization technology and other fields. It is an exploration of the training and training methods of practical technical talents. Therefore, this research is meaningful for promoting the development of embedded systems, algorithms and related technologies.

[0003] Currently, most sleep regulators use electroencephalogram (EEG) technology to measure brain electrical activity and provide corresponding visual and auditory feedback based on different brain wave frequencies. This type of sleep regulation head-mounted device based on brain wave signals not only hinders the sleep experience, but the electric wave signals will also have a certain impact on the elderly and young children.

[0004] Currently, most of the mainstream sleep regulators on the market are used in hospitals and clinics, and there are no perfect home-use models. With people's attention to medical health and the support of semiconductor technology, home-related medical equipment is becoming more and more common. In the past, people did not have good enough treatments for insomnia. This convenient, simple, safe, drug-free and easy-to-operate sleep regulator will be suitable for daily life. Utility Model Content

[0005] In order to solve at least one problem in the background technology, the utility model provides a sleep regulator.

[0006] In order to achieve the above purpose, the utility model adopts the following technical solutions:

[0007] A sleep regulator, comprising:

[0008] Integrated board, integrating acquisition port, signal amplification module, main control module, networking module, serial port, reset module, power supply interface and voltage stabilization module;

[0009] The acquisition port is used to receive a voltage signal;

[0010] The signal amplification module is connected to the acquisition port and is used to amplify the voltage signal;

[0011] The main control module is connected to the signal amplification module, and is used to receive the amplified voltage signal and perform secondary filtering;

[0012] The networking module is connected to the main control module, and is used to receive the voltage signal processed by the main control module and send it to the Internet of Things platform;

[0013] The serial port is connected to the main control module, and is used to receive the voltage signal processed by the main control module and send it to the local;

[0014] The reset module is connected to the main control module and is used to reset the sleep regulator;

[0015] The power supply interface is used to connect an external power supply to supply power to the integrated board;

[0016] The voltage stabilizing module is connected to the power supply interface and is used to stabilize the voltage after power supply.

[0017] Preferably, the signal amplification module adopts LM324 chip.

[0018] Preferably, the main control module adopts a STM32F103R8T6 microcontroller.

[0019] Preferably, the networking module adopts an ESP8266 chip.

[0020] Preferably, the serial port adopts a SWD interface.

[0021] Preferably, the voltage stabilizing module adopts RT9013-33 chip.

[0022] Preferably, the reset module includes a first circuit and a second circuit;

[0023] One end of the first line is connected to the BOOT0 pin of the STM32F103R8T6 microcontroller, the other end is grounded, and a switch and a resistor are provided in series;

[0024] One end of the second line is connected to the nRST pin of the STM32F103R8T6 microcontroller, and the other end is grounded. A resistor and a switch are sequentially connected in series.

[0025] Preferably, it also includes a piezoelectric cable sensor placed in the mattress, the piezoelectric cable sensor is connected to the collection port, and is used to generate a voltage signal after being compressed and transmit it to the collection port.

[0026] Preferably, the piezoelectric cable sensor comprises an iron core, a piezoelectric film, a copper braided layer and a polyethylene layer from the inside to the outside.

[0027] Preferably, the supply voltage of the external power supply is 5-8V.

[0028] Beneficial effects of the utility model:

[0029] 1. The utility model uses the STM32F103R8T6 microcontroller and the piezoelectric cable sensor to collect data, analyzes the vital signs of people on the mattress from the sensor, and displays the collected data through the data line. The device uses the STM32F103R8T6 microcontroller as the main controller, combined with the piezoelectric cable sensor data collection, to form a whole system based on STM32, wherein the piezoelectric cable sensor is placed in the mattress, which will not cause any impact on the state and comfort of the human body when sleeping, and its accuracy and stability are also excellent enough. It is mainly used to filter the data collected by the sensor. Considering the simplicity of the overall equipment, the drawn circuit board is also convenient and easy to install, realizing the WiFi networking function, synchronizing the data to the server, and the human body's vital signs fluctuation reaction throughout the night can be viewed on the networked device.

[0030] 2. The utility model places a piezoelectric cable sensor in the mattress and then converts the pressure signal into an electrical signal and transmits it to the integrated board. It occupies a small space, is easy to carry, safe and easy to operate, and is suitable for use in a home environment.

[0031] Other features and advantages of the utility model will be described in the following description, and partly become apparent from the description, or understood by implementing the utility model. The purpose and other advantages of the utility model can be realized and obtained by the structures indicated in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the utility model or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 A schematic diagram of the structure of a sleep regulator of the utility model is shown;

[0034] Figure 2 A circuit diagram of a voltage stabilizing module is shown;

[0035] Figure 3 shows a circuit diagram of a reset module;

[0036] Figure 4 shows a structural diagram of a piezoelectric sensor;

[0037] Figure 5 shows a circuit diagram of a signal amplification module;

[0038] Figure 6 A model diagram of a sleep regulator of the utility model is shown.

[0039] In the figure: 1. integrated board; 2. acquisition port; 3. signal amplification module; 4. main control module; 5. networking module; 6. serial port; 7. reset module; 8. power supply interface; 9. voltage stabilizing module; 10. piezoelectric cable sensor; 1001. iron core; 1002. piezoelectric film; 1003. copper braided layer; 1004. polyethylene layer. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the embodiment of the utility model clearer, the technical solution in the embodiment of the utility model will be clearly and completely described below in conjunction with the drawings in the embodiment of the utility model. Obviously, the described embodiment is a part of the embodiment of the utility model, not all of the embodiments. Based on the embodiment of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.

[0041] A sleep regulator, such as Figure 1 and Figure 6 As shown, it includes an integrated board 1, an acquisition port 2, a signal amplification module 3, a main control module 4, a networking module 5, a serial port 6, a reset module 7, a power supply interface 8 and a voltage stabilization module 9. The acquisition port 2, the signal amplification module 3, the main control module 4, the networking module 5, the serial port 6, the reset module 7, the power supply interface 8 and the voltage stabilization module 9 are all integrated on the integrated board 1. The signal amplification module 3 is connected to the acquisition port 2, the main control module 4 is connected to the signal amplification module 3, and the networking module 5 and the reset module 7 are respectively connected to the main control module 4. The voltage stabilization module 9 is connected to the power supply interface 8, so that the power supply 5V is converted into the 3.3V voltage required by the STM32 core board.

[0042] In the working state, the acquisition port 2 receives the voltage signal, and then the signal amplification module 3 amplifies the voltage signal, and then the main control module 4 receives the amplified voltage signal and performs secondary filtering; then the networking module 5 receives the voltage signal processed by the main control module 4 and sends it to the Internet of Things platform; at the same time, the serial port 6 can also receive the voltage signal processed by the main control module 4 and send it to the local. All the above steps are performed in a cycle every millisecond. If there is a problem, the switch of the reset module 7 can be pressed to reset the sleep regulator.

[0043] In addition, the integrated board 1 is connected to an external power supply through a power supply structure 8, and the voltage of the external power supply can be 5V to 8V. Subsequently, the current is stabilized by a voltage stabilizing module 9 to make the voltage consistent with the working voltage of other electronic components on the integrated board 1.

[0044] Furthermore, the signal amplification module 3 adopts an LM324 chip.

[0045] It should be noted that the piezoelectric cable sensor 10 used in this utility is a very sensitive pressure detection sensor, which uses the piezoelectric effect to convert mechanical compression deformation into electrical signals, and normally generates a 0.1V to 0.3V voltage signal. This signal needs to be amplified by the hardware circuit signal before signal acquisition. After experimental research, it was found that the common op amp chip LM324 meets the needs of this project very well, and can amplify low-level signals to higher levels for effective signal transmission and processing. The chip contains four independent op amps, which must be supported by appropriate external components (such as resistors and capacitors).

[0046] In the signal amplification circuit, since LM324 uses 3.3V voltage, the 78M05 linear voltage regulator chip is selected to output 5V from the power supply 12V. This 5V voltage is also used as the input of the subsequent 3.3V voltage regulator circuit. The JP1 pin is connected to the piezoelectric cable sensor 10. The LM324 can amplify the signal and adjust the amplification factor by changing the resistance of the sliding rheostat RP1. The noise elimination is not adjusted by hardware circuit, but a more flexible filtering algorithm is used to implement it in software. After the signal is amplified by LM324, it is output through the two pin ports A_OUT1 and D_OUT1. At this time, A_OUT1 and D_OUT1 are connected to the reserved ports A0 and A1 on the circuit board. A0 and A1 are directly connected to the PA0 and PA1 pins of STM32. The amplified signal can be read using the ADC reading function. Figure 5 It is a fixed use of LM324 signal amplifier chip, and the specific amplification factor depends on RP1.

[0047] In addition, in order to reduce the interference caused by the main control power supply and the common ground, the signal amplifier circuit uses a separate 78M05 as a 5V voltage regulator to provide voltage for the circuit, and the signal amplifier circuit GND is isolated from the main control end GND using a 0Ω inductor.

[0048] Furthermore, the main control module 4 adopts a STM32F103R8T6 microcontroller.

[0049] It should be noted that the STM32 F103R8T6 uses the Cortex-M3 core and supports a variety of tool chains and related programming languages, such as Keil, IAR, GCC, SDCC, etc., with a low development threshold. In addition, ST provides a wealth of software libraries and development tools to facilitate programmers to develop and debug applications.

[0050] Furthermore, the networking module 5 adopts an ESP8266 chip.

[0051] It should be noted that ESP8266 is a low-cost, high-performance, easy-to-use Wi-Fi chip. The ESP8266 chip integrates a Tensilica L106 32-bit microcontroller with WiFi function, which can achieve Internet connection through a serial communication interface. The ESP8266 chip itself has an integrated Wi-Fi module, which can connect the device to the Internet via Wi-Fi, and perform operations such as web page access and data transmission. It is very suitable for the development of Internet of Things (IoT) applications. Work as a Wi-Fi client and connect to wireless network devices such as routers. Since the main control chip does not have its own networking function, in this design, the main control chip will calculate the collected data, and then send it to ESP8266 through serial communication, and randomly upload it to the cloud server.

[0052] Furthermore, the serial port 6 adopts a SWD interface.

[0053] It should be noted that the SWD interface is an ARM standard debugging and programming interface that supports high-speed debugging, programming, and simulation. SWDIO (Serial Wire Debug Input / Output) is a single-wire debugging interface signal, mainly used to transmit debugging data. SWCLK (Serial Wire Debug Clock) is a debugging clock signal, mainly used for synchronous data transmission. The two lines SWDIO and SWCLK together form the SWD interface, which is a low-speed, low-power debugging interface suitable for embedded system debugging and programming. In this way, only ordinary J-Link or ST-Link can be used for program download, and related Debug tests can also be performed. In addition, a serial port interface is added on this basis, which can be used for serial port 6 download and data transmission.

[0054] Furthermore, the voltage stabilizing module 9 adopts the RT9013-3.3 chip; specifically, Figure 2 As shown in the figure, it is a voltage stabilization circuit. The RT9013-3.3 chip includes IN, GND, EN, OUT and NC pins. Figure 2 VCC is the positive pole of DC power, GND is ground, and +3.3v means providing a stable 3.3v voltage for the STM32 microcontroller. Figure 2 Five parallel circuits are set on the positive bus and the negative bus between VCC and GND. Starting from the leftmost side, the first parallel circuit is set with a polarized capacitor C51, the second parallel circuit is set with a non-polarized capacitor C52, the third parallel circuit is set with a polarized capacitor C53, the fourth parallel circuit is set with a non-polarized capacitor C54, and the fifth parallel circuit is set with a resistor R51 and a red diode LED51 connected in series in sequence.

[0055] In the voltage stabilization circuit, the input voltage of the IN pin of RT9013-3.3 is up to 7V, and the output of the OUT pin is fixed at 3.3V, which is the function of this chip. The four capacitors in the circuit are conventional matching capacitors, which perform filtering and other functions.

[0056] It should be noted that the chips used in this utility model are STM32 and ESP8266, and their applicable working voltage is 3.3V. In order to reduce the required voltage, this design uses the RT9013-3.3 voltage regulator chip. It uses CMOS technology, has low static current (only 1.3uA) and high efficiency and stable working characteristics. In order to obtain stable voltage and maximum current output, the design uses 10uF tantalum capacitors and 0.1uF chip capacitors for filtering at the 5~8V input end and 3.3 output end respectively. At the same time, a red LED lamp bead is added at the output end, which can intuitively observe whether the 3.3V voltage is successfully output.

[0057] Furthermore, the reset module includes a first circuit and a second circuit, such as Figure 3 As shown:

[0058] One end of the first line is connected to the BOOT0 pin (voltage is 3.3v) of the STM32F103R8T6 microcontroller, and the other end is grounded, and is provided with a switch SW1 and a resistor R11 connected in series in sequence;

[0059] One end of the second line is connected to the nRST pin (voltage is 3.3v) of the STM32F103R8T6 microcontroller, and the other end is grounded. A resistor R12 and a switch SW2 are sequentially connected in series.

[0060] Furthermore, the sleep regulator further includes a piezoelectric sensor 10 placed in the mattress, and the piezoelectric cable sensor 10 is connected to the acquisition port 2, and is used to generate a voltage signal after being compressed and transmit it to the acquisition port 2. Specifically, Figure 4 As shown, the piezoelectric cable sensor 10 comprises an iron core 1001 , a piezoelectric film 1002 , a copper braided layer 1003 and a polyethylene layer 1004 from the inside to the outside.

[0061] It should be noted that the piezoelectric cable sensor 10 can be placed in a mattress, and then the human body presses on the piezoelectric cable sensor 10 to generate voltage, and the magnitude of the voltage usually depends on factors such as the properties of the piezoelectric material, the area and thickness of the electrode, and the magnitude of the strain. Generally speaking, the voltage generated by the piezoelectric cable sensor 10 is relatively low, usually between a few microvolts and a few hundred millivolts. Assuming that a cable sensor is used to measure an external force of 1N, its length d is 10CM, and the material characteristic constant of the sensor is generally 0.25pC / N, then the charge generated is calculated as:

[0062] Q=F*d=1N*0.1m*0.25pC / N=0.0025pC

[0063] So the voltage generated is:

[0064] V=Q / C=0.0025pC / 20pF=0.125mV, where C is the capacitance.

[0065] It should be noted that, in the software design of the utility model, in the main program of the code: the first step is to use the HAL library to first select the GPIO to be used according to the needs and initialize it, and assign different functions such as AD, timing, and serial port functions to different GPIO ports in the code. After the GPIO initialization is completed, the initial check of ESP8266 is performed. If the WiFi connection is successful, the string "WiFiinit success" will be printed through the serial port, and then enter the While loop. In the loop, the piezoelectric cable sensor 10 data is continuously collected at an interval of 200ms. After the collection, the data is filtered, checked and verified accordingly, and then the data is sent to the computer display interface and ESP8266 through the serial port.

[0066] The utility model uses a filtering algorithm and a piezoelectric cable voltage value calculation algorithm

[0067] Due to the instability of analog circuits, power supply interference, and sensor noise, the analog signal obtained may be subject to certain noise interference, resulting in signal instability and insufficient precision, which requires filtering. Common piezoelectric cable sensor 10 filtering algorithms include the following: mean filtering algorithm, median filtering algorithm, and impulse response filtering algorithm. Considering power consumption and timing consumption, the mean filtering algorithm is selected in the design. It is a relatively simple filtering method, which takes the average value of a certain amount of signal as the output data after filtering. This algorithm can eliminate white noise and high-frequency noise.

[0068] The specific working process of the sleep instrument of the utility model is as follows:

[0069] 1. First, use the power supply interface 8 to power the entire working board. The author connects a 5V battery. The 5V connected to the integrated board 1 must first pass through the voltage regulator module 9 before flowing to the entire integrated board 1.

[0070] 2. Download the written program to integrated board 1 through serial port 6.

[0071] 3. Above Figure 4 The piezoelectric cable sensor 10 can continuously generate voltage only when subjected to external force, and then collect the voltage signal to the integrated board 1 through the collection port 2 .

[0072] 4. The voltage signal will first pass through the signal amplifier module 3 for preliminary signal amplification and filtering, and then the data will be connected to the main control module 4 after hardware amplification.

[0073] 5. After the main control module 4 is powered normally and receives the data from the signal amplification module 3, it will write software in the program to filter it twice. Then it will run the written graphics display code, networking code, etc.

[0074] 6. After the main control module 4 processes the data in a series of steps, it sends it to two locations. One is to the serial port 6 for display, which is convenient for system debugging and observing the original data. The second is to the networking module 5.

[0075] 7. After the networking module 5 receives the data, it will run the networking code, connect to WIFI and then send the received data to the cloud server.

[0076] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A sleep regulator, characterized in that: include: An integrated board (1) integrates a collection port (2), a signal amplification module (3), a main control module (4), a networking module (5), a serial port (6), a reset module (7), a power supply interface (8) and a voltage stabilization module (9); The acquisition port (2) is used to receive a voltage signal; The signal amplification module (3) is connected to the acquisition port (2) and is used to amplify the voltage signal; The main control module (4) is connected to the signal amplification module (3) and is used to receive the amplified voltage signal and perform secondary filtering; The networking module (5) is connected to the main control module (4) and is used to receive the voltage signal processed by the main control module (4) and send it to the Internet of Things platform; The serial port (6) is connected to the main control module (4) and is used to receive the voltage signal processed by the main control module (4) and send it to the local; The reset module (7) is connected to the main control module (4) and is used to reset the sleep regulator; The power supply interface (8) is used to connect an external power supply to supply power to the integrated board (1); The voltage stabilizing module (9) is connected to the power supply interface (8) and is used to stabilize the voltage after power supply.

2. A sleep regulator according to claim 1, characterized in that: The signal amplification module (3) adopts the LM324 chip.

3. A sleep regulator according to claim 1, characterized in that: The main control module (4) adopts an STM32F103R8T6 microcontroller.

4. A sleep regulator according to claim 1, characterized in that: The networking module (5) adopts the ESP8266 chip.

5. The sleep regulating device according to claim 1, characterized in that: The serial port (6) adopts a SWD interface.

6. The sleep regulating device according to claim 1, characterized in that: The voltage stabilizing module (9) adopts the RT9013-33 chip.

7. The sleep regulating device according to claim 3, characterized in that: The reset module (7) comprises a first circuit and a second circuit; One end of the first line is connected to the BOOT0 pin of the STM32F103R8T6 microcontroller, the other end is grounded, and a switch and a resistor are provided in series; One end of the second line is connected to the nRST pin of the STM32F103R8T6 microcontroller, and the other end is grounded. A resistor and a switch are sequentially connected in series.

8. A sleep regulating device according to any one of claims 1 to 7, characterized in that: It also comprises a piezoelectric cable sensor (10) placed in the mattress, the piezoelectric cable sensor (10) being connected to the collection port (2) and being used for generating a voltage signal after being compressed and transmitting the voltage signal to the collection port (2).

9. The sleep regulating device according to claim 8, characterized in that: The piezoelectric cable sensor (10) comprises, from the inside to the outside, an iron core (1001), a piezoelectric film (1002), a copper braided layer (1003) and a polyethylene layer (1004).

10. The sleep regulating device according to claim 8, characterized in that: The supply voltage of the external power supply is 5-8V.