Embedded intelligent switch control system based on dual-mode detection

By adopting dual-mode detection technology in the intelligent switch control system, combining infrared and sound modules, the problems of high false trigger rate and high energy consumption in complex environments are solved, and higher scenario adaptability and response efficiency are achieved.

CN120122535AActive Publication Date: 2025-06-10联想长风科技(北京)有限公司

Patent Information

Application Number
CN202510269882.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-07
Publication Date
2025-06-10
Estimated Expiration
2045-03-07

AI Technical Summary

Technical Problem

Due to the single triggering method, traditional intelligent switch control systems have high false triggering rate, high energy consumption and poor scenario adaptability in complex environments.

Method used

An embedded intelligent switch control system based on dual-mode detection is adopted to build a dual-mode control channel through collaborative infrared modules and sound modules, design a driving logic program, and write it to the main control chip to establish a connection with infrared and sound sensors, realize error-time detection and signal determination, and generate switch switching instructions.

Benefits of technology

It reduces the false trigger rate and energy consumption in complex environments, improves scenario adaptability, and improves the intelligence and response efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120122535A_ABST
    Figure CN120122535A_ABST
Patent Text Reader

Abstract

The invention provides an embedded intelligent switch control system based on dual-mode detection, and relates to the technical field of intelligent control, and the system comprises a driving logic program building module which is responsible for configuring an infrared and sound cooperative dual-mode control channel; the main control sensing establishing module is responsible for writing driving logic into a main control chip and is connected with an infrared sensor and a sound sensor; the signal judgment module is responsible for driving the sensor to detect and judge the signal in a staggered manner and generating a switching instruction; and the switch state switching module is responsible for controlling the relay to switch the switch state according to the instruction. The technical problems that in the prior art, a traditional switch control system is high in false triggering rate, high in energy consumption and poor in scene adaptability due to a single triggering mode in a complex environment are solved, and the purposes that the false triggering rate and the energy consumption in the complex environment are reduced by judging a time zone and a flexible calibration mechanism through combination of infrared and sound dual-mode detection are achieved; and the scene adaptability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent control, and particularly to an embedded intelligent switch control system based on dual-mode detection. Background Art

[0002] In the field of smart home, as a key device connecting users and home appliances, the performance and intelligence level of smart switches are directly related to the convenient experience of users and the overall efficiency of the home system. Most traditional smart switch control systems rely on a single triggering method, such as infrared remote control or voice recognition. These methods have exposed many limitations in practical applications. For example, in complex environments (such as high noise or strong light interference), it is difficult for a single detection mode to accurately identify user operations, resulting in system response delays or misoperations. In addition, the energy consumption management efficiency of traditional systems is low, and long-term operation will shorten the device life and increase the maintenance cost. Summary of the Invention

[0003] This application provides an embedded intelligent switch control system based on dual-mode detection, aiming to solve the technical problems in the prior art that traditional switch control systems have a high mis-triggering rate, high energy consumption, and poor scene adaptability due to a single triggering method in complex environments.

[0004] The embedded intelligent switch control system based on dual-mode detection disclosed in this application includes: a driving logic program establishment module for configuring a dual-mode control channel and determining a driving logic program based on the dual-mode control channel, where the dual-mode control channel is formed by collaborating with an infrared module and a sound module; a main control sensing establishment module for writing the driving logic program based on the dual-mode control channel into the main control chip and establishing a connection between the main control chip and the front-end sensor, where the front-end sensor is an infrared sensor and a sound sensor; a signal determination module for the main control chip to drive the front-end sensor to perform staggered detection and signal determination according to the driving logic program and generate a switch switching instruction; and a switch state switching module for controlling the relay to switch the switch state according to the switch switching instruction.

[0005] One or more technical solutions provided in this application have at least the following beneficial effects:

[0006] By integrating the infrared and sound modules to build a dual-mode control channel, and accordingly designing a driving logic program which is written into the main control chip. At the same time, connections with infrared and sound sensors are established. The main control chip, based on the driving logic, commands the sensors to perform staggered detection and signal determination, and then generates switch switching instructions, which are used to control the relay, thereby realizing the switching of the switch state and improving the intelligence and response efficiency of the system. Generally speaking, through the combination of infrared and sound dual-mode detection to judge the time zone and the flexible calibration mechanism, the false triggering rate and energy consumption in complex environments are reduced, and the scene adaptability is improved.

[0007] The above description is only an overview of the technical solution of this application. In order to be able to understand the technical means of this application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of this application more obvious and understandable, the following specifically gives the specific implementation manners of this application. Brief Description of the Drawings

[0008] Figure 1 This application provides a schematic structural diagram of an embedded intelligent switch control system based on dual-mode detection for an embodiment of this application.

[0009] Figure 2 This application provides a schematic execution flow diagram of a dual-mode drive management module in an embedded intelligent switch control system based on dual-mode detection for an embodiment of this application.

[0010] Description of the reference numerals: Driving logic program establishment module 10, main control sensor establishment module 20, signal determination module 30, switch state switching module 40. Detailed Description of the Invention

[0011] This application provides an embedded intelligent switch control system based on dual-mode detection, which solves the technical problems of high false triggering rate, high energy consumption and poor scene adaptability of traditional switch control systems in the prior art due to a single triggering method in complex environments.

[0012] After introducing the basic principle of this application, the following will specifically introduce various non-limiting implementation manners of this application in combination with the accompanying drawings of the specification.

[0013] As Figure 1 shown, this application provides an embedded intelligent switch control system based on dual-mode detection, and the system includes:

[0014] A driving logic program establishment module 10, configured to configure a dual-mode control channel and determine a driving logic program based on the dual-mode control channel, wherein the dual-mode control channel is formed by collaborating with an infrared module and a sound module.

[0015] Specifically, the drive logic program establishment module 10 of the present application is used to construct a control channel for dual-mode collaborative detection of infrared and sound, and complete the establishment of an efficient and reliable dual-mode detection mechanism through the organic combination of hardware configuration and software logic.

[0016] Exemplarily, this module first configures the HC-SR501 pyroelectric sensor as the infrared detection unit to monitor the human body infrared radiation signal in real time. At the same time, it integrates an electret microphone and an LM393 comparator to form a sound detection unit for collecting and analyzing the ambient sound wave characteristics. At the software level, the module establishes the core logic of infrared signal priority triggering, that is, when an effective infrared signal is detected, a 2-second timing window is immediately started, and the sound detection function is activated within this window period. It is required that an effective sound signal lasting more than 1 second (such as two clapping sounds with a pulse interval less than 500 ms) can be determined as an effective trigger. In addition, the module also has a built-in low-power optimization strategy. When there is no effective infrared signal, the main control chip enters the deep sleep state, and only the always-on detection function of the infrared module is retained to reduce the overall power consumption of the system. Through the collaborative work of the above hardware configuration and software logic, the drive logic program establishment module successfully constructs an efficient and reliable dual-mode detection control channel, providing a reliable logical basis for subsequent signal determination and switch control.

[0017] The main control sensing establishment module 20 is used to write the drive logic program based on the dual-mode control channel into the main control chip and establish the connection between the main control chip and the front-end sensors, where the front-end sensors are infrared sensors and sound sensors.

[0018] Among them, the connection between the main control chip of the main control sensing establishment module and the front-end monitoring device includes: establishing the connection between the infrared sensor and the infrared module, and establishing the connection between the sound sensor and the sound module.

[0019] It should be understood that the main control sensing establishment module 20 of the present application is used to implement the hardware deployment and connection configuration of the dual-mode control channel, and complete the construction of the hardware architecture of the entire detection system by writing the drive logic program into the main control chip and establishing its connection with the front-end sensors.

[0020] Specifically, the module first burns the drive logic program based on the dual-mode control channel into the main control chip (using the STM32F030 Cortex-M0 core, meeting the requirements of low power consumption and real-time performance), and then establishes a physical connection between the main control chip and the front-end sensors. Among them, the front-end sensors include an infrared sensor (such as the HC-SR501 pyroelectric sensor) and a sound sensor (such as an electret microphone + LM393 comparator). In terms of connection configuration, the module realizes the docking of the infrared sensor and the infrared module through GPIO pins, and connects the output signal of the HC-SR501 to the PA0 pin of the main control chip to trigger an interrupt for waking up; at the same time, it establishes a connection between the sound sensor and the sound module through the analog input channel, and connects the output signal of the LM393 comparator to the PA1 pin of the main control chip for sound feature detection. In addition, the module is also configured with a necessary power management circuit to ensure the stable operation of each sensor in the low-power mode. Through the above hardware deployment and connection configuration, the main control sensing establishment module successfully realizes the hardware architecture construction of the dual-mode detection system, providing a reliable hardware foundation for subsequent signal acquisition and processing.

[0021] The signal determination module 30 is used for the main control chip to drive the front-end sensors to perform staggered detection and signal determination according to the drive logic program, and generate a switch switching instruction.

[0022] Furthermore, when the signal determination module 30 executes the staggered detection and signal determination of driving the front-end sensors, it is also used to execute the following steps:

[0023] P31: Obtain an infrared signal, where the infrared signal is detected and obtained by the infrared sensor; P32: If the infrared signal is a user detection signal, start a timing window, where the timing window has a first time interval; P33: Drive the sound sensor to perform sound source perception within the timing window and receive a sound signal; P34: Judge whether to execute switch switching control according to the sound signal.

[0024] Optionally, the signal determination module 30 of the present application is used to realize the timing control and logical determination of the dual-mode detection signal. By executing the drive logic program through the main control chip, it drives the front-end sensors to perform staggered detection and signal determination, and finally generates a switch switching instruction. Specifically, based on the STM32F030 main control chip, the module sequentially executes the following steps according to the preset drive logic program:

[0025] First, the module reads the output signal of the infrared sensor (HC-SR501) in real time through the PA0 pin to determine whether there is effective human infrared radiation. The HC-SR501 sensor focuses the infrared radiation emitted by the human body through a Fresnel lens and converts it into an electrical signal for output. When a high-level signal is detected, the module determines it as a user detection signal, indicating that there may be human activities. Then, the module filters the infrared signal to exclude false triggers caused by environmental temperature changes or small animal activities, ensuring the accuracy of detection.

[0026] Next, the obtained infrared signal is judged. If the signal is recognized as a user detection signal, that is, it indicates that a human body has entered the detection range, a timing window with a specific time interval (such as 2 seconds) will be immediately started. The setting of this timing window is based on the statistical analysis of the human body's action response time to ensure that the system can capture the user's operation intention within a reasonable time range. Further, when starting the timing window, the module records the current system time and initializes the timer to provide a time reference for subsequent sound detection. The start of the timing window marks the transition of the system from the infrared detection stage to the sound detection stage.

[0027] Within the timing window, the module activates the sound sensor (such as an electret microphone + LM393 comparator) through the PA1 pin to collect environmental sound wave signals, that is, sound signals. The electret microphone converts the sound wave into an electrical signal, and the LM393 comparator amplifies and shapes the signal to output high and low level signals. The module analyzes the characteristics of the sound signal in real time, including parameters such as the sound duration and pulse interval. Further, the module uses a digital filtering algorithm to process the sound signal to filter out environmental noise (such as wind noise, electrical noise, etc.) to ensure the accuracy of detection. Next, the module compares the processed sound signal with the preset trigger condition (such as two clapping sounds and the pulse interval is less than 500 ms) to determine whether it meets the standard of an effective sound signal.

[0028] Further, the module makes a logical determination based on the characteristics of the sound signal. If an effective sound signal lasting more than 1 second (such as two clapping sounds and the pulse interval is less than 500 ms) is detected, a switch switching instruction will be generated to control the execution of the corresponding switch action. Before executing the switch switching instruction, the module will verify the status of the infrared signal again to ensure the consistency of dual-mode detection and avoid false triggers. If no effective sound signal is detected, it is determined as an invalid trigger, and the system returns to the standby state, and the main control chip enters the low-power mode, waiting for the next trigger of the infrared signal.

[0029] Through the timing control and logical determination of the above steps, the signal determination module 30 has successfully achieved the collaborative detection and accurate determination of infrared and sound dual-mode signals, providing a reliable decision basis for switch control. This misaligned detection mechanism effectively avoids the limitations of a single detection mode and significantly improves the anti-interference ability and detection accuracy of the system.

[0030] Further, when the signal determination module 30 executes the determination of whether to perform switch switching control based on the sound signal, it is further configured to perform the following steps:

[0031] P34-1: Set a second time interval, where the second time interval is less than the first time interval; P34-2: Identify the effective frequency band of the sound signal, determine whether it meets the second time interval, and if so, generate the switch switching instruction.

[0032] Specifically, when the signal determination module 30 of the present application executes the determination of whether to perform switch switching control based on the sound signal, it further refines the determination logic of the sound signal. By setting the second time interval and identifying the effective frequency band, the accuracy and reliability of the switch switching instruction are ensured.

[0033] First, the module sets a shorter second time interval (e.g., 500 ms) within the timing window (the first time interval). The setting of this time interval is based on the analysis of user operation habits to ensure that the system can quickly respond to valid sound signals while avoiding misoperations caused by environmental noise or accidental triggers. Also, the start time of the second time interval is synchronized with the start time of the timing window. When the module starts the timing window, it initializes the timer of the second time interval to provide a time reference for subsequent sound signal determination.

[0034] Next, the module performs frequency band analysis on the sound signal to identify its effective frequency band. Specifically, the spectrum analysis of the sound signal can be performed by the fast Fourier transform (FFT) algorithm to extract its frequency characteristics. The frequency of the sound signal is compared with the preset effective frequency band (e.g., 1 kHz to 4 kHz) to determine whether it belongs to the effective frequency band. If the frequency of the sound signal falls within the effective frequency band, the analysis of its duration is continued to determine whether the duration of the sound signal meets the second time interval (i.e., whether it is completed within 500 ms). If the duration of the sound signal is within the second time interval and the frequency characteristics meet the preset conditions, the module determines it as a valid trigger signal and generates a switch switching instruction. If the duration of the sound signal exceeds the second time interval or the frequency characteristics do not meet the preset conditions, the module determines it as an invalid trigger signal, and the system returns to the standby state.

[0035] Through the above steps, the signal determination module 30 further optimizes the determination logic of the sound signal. By setting the second time interval and identifying the effective frequency band, the detection accuracy and anti-interference ability of the system can be significantly improved. This dual determination mechanism ensures the accurate generation of the switch switching instruction, avoids misoperations caused by environmental noise or false triggers, and thus improves the reliability of the system and the user experience.

[0036] Furthermore, when the signal determination module 30 identifies the effective frequency band of the sound signal and determines whether it meets the second time interval, if the infrared signal is not a user detection signal, the timing window is not started for sound source perception.

[0037] In a possible embodiment of the present application, when the signal determination module 30 of the present application identifies the effective frequency band of the sound signal and determines whether it meets the second time interval, a cooperative determination mechanism of the infrared signal is further introduced to ensure that the detection logic of the system is more rigorous and reliable.

[0038] If during the sound signal detection process, the module detects that the infrared signal becomes low level, indicating that there is no effective human body infrared radiation in the current environment, the sound signal detection process can be immediately terminated, and the timing window is not started for sound source perception. The system state is reset to the standby mode, and the main control chip enters the low-power state, waiting for the next trigger of the infrared signal. This design is based on the cooperative logic of dual-mode detection, ensuring that the system generates a switch switching instruction only when both the infrared signal and the sound signal meet the conditions. The dual cooperative determination of the infrared signal and the sound signal is realized, effectively avoiding misoperations caused by false triggers of a single signal. This design not only improves the detection accuracy of the system but also enhances the anti-interference ability of the system, ensuring that the generation of the switch switching instruction is more reliable and accurate.

[0039] The switch state switching module 40 is used to control the relay to switch the switch state according to the switch switching instruction.

[0040] It should be understood that the switch state switching module 40 of the present application is used to control the relay to perform the switch state switching operation according to the switch switching instruction generated by the signal determination module 30, so as to realize the opening or closing of the electrical equipment. This module ensures the accuracy and reliability of the switch switching through the cooperative work of the main control chip and the relay.

[0041] First, the module receives the switch switching instruction from the signal determination module 30 through the GPIO pin of the main control chip (such as STM32F030). This instruction is generated based on the dual-mode detection logic of infrared and sound, ensuring that it is triggered only when an effective user operation is detected.

[0042] Next, after receiving a valid switch switching instruction, the module outputs a high-level signal through the GPIO pin (such as PA2) of the main control chip to drive the coil of the relay (such as SRD-05VDC-SL-C) to be energized. After the relay is energized, its internal contacts switch from the normally open state to the normally closed state, or from the normally closed state to the normally open state, thus realizing the turning on or off of the electrical equipment. When driving the relay, the module adopts delay control technology to ensure the stable switching of the relay contacts and avoid contact jitter caused by instantaneous current fluctuations.

[0043] After the relay completes the switch switching, the module reads the status feedback signal of the relay through the GPIO pin of the main control chip to confirm whether the switch switching is successful. If the switching is successful, the module stores the current switch status information in the register of the main control chip and updates the system status. If the switching fails, the module will re-attempt to drive the relay and generate a fault alarm signal after multiple attempts fail, prompting the user to check the system status. After completing the switch switching operation, the module switches the main control chip to the low-power mode and waits for the trigger of the next switch switching instruction.

[0044] Through the above steps, the switch state switching module 40 realizes the efficient control of the relay and ensures the accurate switching of the switch state. This design not only improves the response speed and reliability of the system but also provides a convenient operation experience for users.

[0045] Furthermore, as Figure 2 shown, the system further includes a dual-mode drive management module 50 for performing the following steps:

[0046] P51: Set the low-power consumption control mode, where the low-power consumption control mode is the continuous operation state of the infrared module and the sleep state of the main control chip; P52: Control the infrared sensor to perform continuous sensing detection according to the infrared module and receive infrared signals; P53: Interpret the infrared signals and perform dual-mode drive management according to the signal status.

[0047] Optionally, the dual-mode drive management module 50 of the present application is used to optimize the energy consumption management and dual-mode detection logic of the system. By setting the low-power consumption control mode, it coordinates the working states of the infrared module and the main control chip to ensure that the system can still efficiently perform infrared and sound dual-mode detection under low-power conditions.

[0048] First, the module sets the low-power consumption control mode through the power management unit (PMU) of the main control chip (such as STM32F030). In this mode, the infrared module (such as HC-SR501) remains in a continuous operation state, detecting the infrared signals in the environment in real time, while the main control chip enters the sleep state and is only awakened when an effective infrared signal is detected. This design can effectively reduce the overall power consumption of the system and extend the service life of the device. Moreover, the module configures the low-power timer (LPTIM) of the main control chip to ensure that it can be awakened at regular intervals even in the sleep state to check the working status of the infrared module.

[0049] Next, in the low-power consumption control mode, the module controls the infrared sensor to perform continuous sensing detection through the GPIO pin (such as PA0) of the main control chip. The infrared sensor detects the infrared radiation in the environment in real time and outputs the detection result in the form of high and low level signals. The module reads the infrared signal through the GPIO pin and transmits it to the main control chip for interpretation. At the same time, during the detection process of the infrared sensor, noise filtering technology is adopted to eliminate the interference signals in the environment and ensure the accuracy of the detection result.

[0050] Furthermore, the received infrared signal is interpreted to determine whether it is a valid user detection signal. If the infrared signal is high level, it indicates that effective human infrared radiation is detected, and the module immediately wakes up the main control chip, starts the timing window (the first time interval) and enters the sound signal detection stage. If the infrared signal is low level, it indicates that no valid user is detected, and the module continues to maintain the low-power consumption control mode, and the main control chip continues to sleep. At the same time, when the module interprets the infrared signal, it adopts the signal state machine logic to ensure more accurate determination of the infrared signal and avoid false triggering caused by environmental interference.

[0051] Through the above steps, the dual-mode drive management module 50 realizes the efficient operation of the system under low-power consumption conditions. By coordinating the working states of the infrared module and the main control chip, it ensures the accuracy and reliability of the dual-mode detection logic. This design not only reduces the power consumption of the system but also improves the response speed and user experience of the system.

[0052] Furthermore, when the dual-mode drive management module 50 executes the dual-mode drive management according to the signal state, it is also used to execute the following steps:

[0053] P53-1: If the signal state is not a user detection signal, the main control chip has no response; P53-2: If the signal state is a user detection signal, wake up the main control chip and execute the dual-mode drive management.

[0054] In a possible embodiment of the present application, when the dual-mode drive management module 50 of the present application executes dual-mode drive management according to the signal state, the determination logic of the infrared signal is further refined to ensure that the system can respond quickly when detecting an effective user operation and maintain a low-power state when there is no user operation.

[0055] Specifically, when the module decodes the infrared signal, if it determines that the signal state is a non-user detection signal (i.e., the infrared signal is at a low level), it indicates that there is no effective human body infrared radiation in the current environment. At this time, the module does not perform any operation, the main control chip continues to remain in the sleep state, and the infrared module continues to perform continuous sensing detection. This design effectively avoids the system wake-up caused by environmental interference or false triggering, and further reduces the power consumption of the system.

[0056] When the module decodes the infrared signal, if it determines that the signal state is a user detection signal (i.e., the infrared signal is at a high level), it indicates that effective human body infrared radiation is detected. At this time, the module immediately wakes up the main control chip, starts a timing window (the first time interval) and enters the sound signal detection stage. During the sound signal detection process, the module collects the environmental sound signal through the microphone and performs frequency-domain analysis and energy detection on it to determine whether there is an effective sound source. If the sound signal meets the preset conditions (such as the energy exceeding the threshold and the frequency being within the effective range), the module generates a switch switching instruction to control the relay to perform the switch state switching. If the sound signal does not meet the conditions, the module resets the system state to the standby mode, and the main control chip enters the sleep state again.

[0057] Through the above steps, the accurate determination and response to the infrared signal are realized, ensuring that the system can be quickly woken up and execute the dual-mode detection logic when detecting an effective user operation, and maintaining a low-power state when there is no user operation. This design not only improves the detection efficiency and accuracy of the system, but also further optimizes the energy consumption management of the system, providing users with a more intelligent and energy-saving usage experience.

[0058] Furthermore, when the dual-mode drive management module 50 wakes up the main control chip and executes dual-mode drive management, it is also used to perform the following steps:

[0059] P53-21: Introduce a judgment time zone, where the judgment time zone is greater than the first time interval; P53-22: Wake up the main control chip, and according to the judgment time zone, the main control chip executes the drive logic program to perform dual-mode drive response; P53-23: If there is no response, the main control chip enters the sleep state.

[0060] It should be understood that when the dual-mode drive management module 50 of the present application wakes up the main control chip and executes dual-mode drive management, the concept of judging time zone is further introduced to optimize the system's response logic and energy consumption management. The judging time zone is a time window, the length of which is greater than the first time interval, and is used to ensure that the system has enough time to complete the dual-mode detection and response operations after the main control chip wakes up.

[0061] Specifically, after the module wakes up the main control chip, it first sets a judging time zone. The length of the judging time zone is greater than the first time interval (i.e., the timing window started after infrared signal detection) to ensure that the main control chip has enough time to complete the dual-mode detection and response operations. The specific length of the judging time zone can be configured according to the actual application scenario, for example, set to 5 seconds or 10 seconds. The introduction of the judging time zone can effectively avoid misjudgment or missed judgment caused by insufficient detection time, and improve the detection accuracy and reliability of the system.

[0062] Within the judging time zone, the module wakes up the main control chip and executes the drive logic program to perform dual-mode drive response. Specifically, the main control chip first starts sound signal detection, collects ambient sound signals through a microphone, and performs frequency-domain analysis and energy detection on them to determine whether there is a valid sound source. If the sound signal meets the preset conditions (such as the energy exceeding the threshold and the frequency within the valid range), the module generates a switch switching instruction to control the relay to perform the switch state switching. If the sound signal does not meet the conditions, the module continues to wait until the judging time zone ends. Moreover, the module adopts dynamic threshold adjustment technology within the judging time zone to adjust the detection threshold of the sound signal in real time according to the ambient noise level to ensure the accuracy of the detection results.

[0063] If no valid sound source is detected within the judging time zone, the module resets the system state to the standby mode, and the main control chip enters the sleep state again. This design effectively reduces the power consumption of the system and avoids energy waste caused by long-term wake-up.

[0064] Furthermore, the system further includes a sensitivity calibration module 60, which is used to perform the following steps:

[0065] P61: Set a preset sensitivity; P62: Configure the calibration method, where the calibration method includes Bluetooth remote calibration and physical proximal calibration; P63: According to any one of the calibration methods, with the preset sensitivity as the target, perform sensitivity calibration of the switch control.

[0066] Optionally, the sensitivity calibration module 60 of the present application is used to accurately calibrate the detection sensitivity of the system to ensure that the system can accurately detect user operations under different environmental conditions. This module realizes flexible adjustment of the switch control sensitivity by setting a preset sensitivity and supporting two methods of Bluetooth remote calibration and physical proximal calibration.

[0067] Specifically, the module first sets preset sensitivities according to the application scenario and user requirements. The preset sensitivities include an infrared detection sensitivity and a sound detection sensitivity, which are used to control the detection thresholds of the infrared module and the microphone respectively. For example, the infrared detection sensitivity can be set to a detection distance (such as 3 meters or 5 meters), and the sound detection sensitivity can be set to an energy threshold (such as 50 dB or 60 dB). The setting of the preset sensitivities can be completed through the register configuration of the main control chip and stored in a non-volatile memory (such as EEPROM) so that the calibration results can still be maintained after the system restarts.

[0068] Moreover, the module supports two calibration methods: Bluetooth remote calibration and physical proximal calibration. Among them, for Bluetooth remote calibration, a connection is established between the Bluetooth module (such as HC-05) and a mobile terminal (such as a smart phone), and the user can adjust the sensitivity parameters of infrared and sound detection on the mobile terminal through a dedicated application. The module receives calibration instructions through the Bluetooth communication protocol and updates the register configuration of the main control chip. For physical proximal calibration, through physical buttons or knobs on the system, the user can directly adjust the sensitivity parameters of infrared and sound detection. The module reads the status of the physical buttons or knobs through GPIO pins and updates the register configuration of the main control chip.

[0069] Furthermore, the module performs sensitivity calibration for switch control with the preset sensitivities as the target according to the selected calibration method. In the Bluetooth remote calibration mode, the module receives calibration instructions sent by the mobile terminal through the Bluetooth module, parses the instruction content and updates the detection thresholds of the infrared module and the microphone. For example, if the user adjusts the infrared detection sensitivity to 5 meters, the module updates the detection distance parameter of the infrared module to 5 meters. In the physical proximal calibration mode, the module reads the status of the physical buttons or knobs through GPIO pins and adjusts the detection thresholds of the infrared module and the microphone according to the user operation. For example, if the user rotates the knob to increase the sound detection sensitivity, the module adjusts the energy threshold of the microphone to a higher value.

[0070] After calibration is completed, the module stores the updated sensitivity parameters in the non-volatile memory and generates a calibration log for subsequent analysis and optimization of the system performance. An adaptive algorithm can be adopted during the calibration process to dynamically adjust the sensitivity parameters according to the ambient noise level and user operation habits to ensure the accuracy and practicality of the calibration results.

[0071] Through the above steps, the sensitivity calibration module 60 achieves precise calibration of the system detection sensitivity, supports two methods of Bluetooth remote calibration and physical proximal calibration, and provides a flexible and convenient calibration experience for users. This design not only improves the detection accuracy and adaptability of the system, but also further enhances the intelligence and user-friendliness of the system.

[0072] In summary, the embedded intelligent switch control system based on dual-mode detection provided by the embodiments of the present application has the following technical effects:

[0073] This system integrates infrared and sound modules, collaboratively constructs a dual-mode control channel, and accordingly carefully designs a driving logic program, which is accurately written into the main control chip. At the same time, a close connection is established between the main control chip and the front-end infrared and sound sensors. According to the preset driving logic, the main control chip cleverly commands the front-end sensors to perform staggered detection, accurately determines the signals, and thus quickly generates switch switching instructions. These instructions are then used to precisely control the relay to achieve flexible switching of the switch state. Generally speaking, through the combination of infrared and sound dual-mode detection to judge time zones and a flexible calibration mechanism, the false triggering rate and energy consumption in complex environments are reduced, and the scene adaptability is improved.

[0074] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments shown herein, but rather will be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. Embedded intelligent switch control system based on dual-mode detection, characterized in that: The system comprises: A driving logic program establishment module is used to configure a dual-mode control channel and determine a driving logic program based on the dual-mode control channel, wherein the dual-mode control channel is established by coordinating an infrared module and a sound module; A main control sensor establishment module, used to write the driving logic program based on the dual-mode control channel into the main control chip, and establish a connection between the main control chip and the front-end sensor, wherein the front-end sensor is an infrared sensor and a sound sensor; A signal determination module, used for the main control chip to drive the front-end sensor to perform time-staggered detection and signal determination according to the driving logic program, and generate a switch switching instruction; The switch state switching module is used to control the relay to switch the switch state according to the switch switching instruction.

2. The embedded intelligent switch control system based on dual-mode detection according to claim 1, characterized in that: When executing the staggered detection and signal determination of driving the front-end sensor, the signal determination module is further used to: Acquire an infrared signal, where the infrared signal is detected and acquired by the infrared sensor; If the infrared signal is a user detection signal, start a timing window, wherein the timing window has a first time interval; Driving the sound sensor to perform sound source perception within the timing window and receive sound signals; According to the sound signal, it is determined whether to execute the switch switching control.

3. The embedded intelligent switch control system based on dual-mode detection as claimed in claim 2, characterized in that: When the signal determination module determines whether to perform switch switching control according to the sound signal, it is also used to: Setting a second time interval, wherein the second time interval is shorter than the first time interval; The effective frequency band of the sound signal is identified, and it is determined whether the second time interval is satisfied. If so, the switch switching instruction is generated.

4. The embedded intelligent switch control system based on dual-mode detection as claimed in claim 3, characterized in that: When the signal determination module identifies the effective frequency band of the sound signal and determines whether the second time interval is met, if the infrared signal is not a user detection signal, the timing window is not started for sound source perception.

5. The embedded intelligent switch control system based on dual-mode detection according to claim 1, characterized in that: The connection between the main control chip of the main control sensing establishment module and the front-end monitoring device includes: establishing a connection between the infrared sensor and the infrared module, and establishing a connection between the sound sensor and the sound module.

6. The embedded intelligent switch control system based on dual-mode detection according to claim 1, characterized in that: The system further comprises a dual-mode drive management module, which is used for: Setting a low energy consumption control mode, wherein the low energy consumption control mode is a continuous operation state of the infrared module and a sleep state of the main control chip; According to the infrared module, controlling the infrared sensor to perform continuous sensing detection and receive infrared signals; The infrared signal is interpreted and dual-mode driving management is performed according to the signal status.

7. The embedded intelligent switch control system based on dual-mode detection as claimed in claim 6, characterized in that: When executing the dual-mode drive management according to the signal state, the dual-mode drive management module is further used to: If the signal state is not a user detection signal, the main control chip does not respond; If the signal state is a user detection signal, the main control chip is awakened to perform dual-mode drive management.

8. The embedded intelligent switch control system based on dual-mode detection according to claim 7, characterized in that: When waking up the main control chip and performing dual-mode drive management, the dual-mode drive management module is also used to: Introducing a judgment time zone, wherein the judgment time zone is greater than the first time interval; Waking up the main control chip, and according to the determined time zone, the main control chip executes the driving logic program to perform a dual-mode driving response; If there is no response, the main control chip enters a sleep state.

9. The embedded intelligent switch control system based on dual-mode detection according to claim 1, characterized in that: The system further comprises a sensitivity calibration module, configured to: Set preset sensitivity; Configure a calibration method, wherein the calibration method includes Bluetooth remote calibration and physical near-end calibration; According to any of the calibration methods, sensitivity calibration of switch control is performed with the preset sensitivity as a target.

Citation Information

Patent Citations

  • Smart home control method and device and computer-readable storage medium

    CN108427310A

  • Low-power intelligent garbage can control system and method

    CN110442063A

  • Method for reducing standby power consumption of television, television and storage medium

    CN110933345A

  • Office electric appliance intelligent automatic switch system device

    CN204229167U

  • Intelligent switch control device

    CN217543706U

Cited By

  • Switch control method, device, equipment, medium and program product

    CN120728885A

  • Signal acquisition and display system and method of bimodal sensor array

    CN120970696A