Energy-saving control method of portable intelligent instrument
By using the MCU detection and switch button and switching the working mode in the portable intelligent sensor instrument to solve the problem of high power consumption in the existing technology, the reduction of cost and power consumption, and the battery service life of the existing technology, the battery life span Extension.
Patent Information
- Application Number
- CN202411476725.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-01-24
AI Technical Summary
Existing portable intelligent sensing instruments consume high power in standby state, resulting in short battery life and high cost.
An energy-saving control method is used to detect the triggering of the power on/off button through the MCU to control the portable smart instrument to start up and switch working modes. It emits infrared signals in high-speed working mode and stops transmitting infrared signals in low-speed working mode to reduce power consumption.
On the premise of convenient user experience, the cost and power consumption are reduced, the standby time is extended by more than 10 times, and the service life of the battery is greatly increased.
Smart Images

Figure CN119356180A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of energy saving and consumption reduction, and more specifically, to an energy saving control method for a portable intelligent instrument. Background Art
[0002] At present, most general intelligent sensing instruments on the market are powered by 220V AC power after rectification and voltage stabilization to 5V. The cost of this application instrument is very high and it is difficult to carry it with you.
[0003] Ordinary portable intelligent sensing instruments, in standby mode, power consumption is between 350ua and 450ua for a long time, or even higher, and the battery life is extremely short. Although it can reduce power consumption to a certain extent, it often cannot satisfy users.
[0004] There are also portable intelligent sensing instruments, which can reduce the standby current to below 10ua, but most of these instruments use standard MCU control or dual MCU control, and the cost is also high. Summary of the invention
[0005] In view of the above problems existing in the prior art, the present invention provides an energy-saving control method for a portable intelligent instrument, which reduces costs and power consumption while facilitating user experience, extends the standby time by more than 10 times, and greatly increases the battery life.
[0006] As a first aspect of the present invention, a method for controlling energy saving of a portable intelligent instrument is provided, which is applied to an energy saving control circuit of the portable intelligent instrument, wherein the energy saving control circuit of the portable intelligent instrument comprises an MCU and a power button, wherein the MCU and the power button are connected; wherein the method for controlling energy saving of the portable intelligent instrument comprises the following steps: Step S1: When the MCU detects that the power button is triggered, it controls the portable intelligent instrument to turn on; Step S2: After the portable intelligent instrument is turned on, the MCU is controlled to enter a high-speed working mode, the MCU starts to transmit an infrared signal, and then it is determined whether the MCU receives the infrared signal; Step S3: when the MCU does not receive the infrared signal, the MCU is controlled to enter the low-speed working mode and run for a period of time. After the low-speed working mode is completed, the MCU is controlled to exit the low-speed working mode, and then return to step S2 to enter the high-speed working mode; wherein, during the low-speed working mode, the MCU stops emitting infrared signals; Step S4: After receiving the infrared signal, the MCU is controlled to maintain the high-speed working mode and output a high-level signal to drive the portable intelligent instrument to work.
[0007] Furthermore, the fourth pin of the MCU is connected to the power button, the fifth pin of the MCU is connected to the portable intelligent instrument, the seventh pin of the MCU transmits an infrared signal, and the second pin of the MCU receives an infrared signal.
[0008] Furthermore, when the MCU detects that the power button is triggered, the portable intelligent instrument is controlled to be turned on, and further includes: Send a binary 00100001 signal to the 06 address PORT register in the MCU to set the second pin and the fourth pin of the MCU to input mode; send a binary 11011110 signal to the 0B address PHCON register in the MCU to turn on the internal pull-up of the second pin and the fourth pin of the MCU, so that the second pin and the fourth pin of the MCU are normally in a high level state; when the power button is pressed, the fourth pin of the MCU is connected to the ground, so that the state of the fourth pin of the MCU is pulled from the high level state to the low level state; The high and low level states of the fourth pin of the MCU are detected cyclically. When the fourth pin of the MCU is detected to be in a low level state, it is considered that the power button is pressed, thereby controlling the portable intelligent instrument to enter the power-on state, and the MCU starts to enter the high-speed working mode.
[0009] Furthermore, the step S3 further includes: When the MCU does not receive the infrared signal, a binary 00000011 signal is sent to the SYSM-system working mode control register at the BANK1-0EH address in the MCU to control the MCU to enter the low-speed working mode and run for a period of time; After the low-speed working mode is completed, a binary 00000000 signal is sent to the SYSM-system working mode control register at the BANK1-0EH address in the MCU to control the MCU to exit the low-speed working mode, and then return to step S2 to return to the high-speed working mode, and control the seventh pin of the MCU to transmit an infrared signal, and then determine whether the second pin of the MCU receives the infrared signal.
[0010] Furthermore, the step S4 further includes: When the second pin of the MCU receives an infrared signal, the MCU is controlled to maintain the high-speed working mode, and the fifth pin of the MCU is controlled to output a high-level signal to drive the portable intelligent instrument to enter a working state, and continuously detect whether the second pin of the MCU receives an infrared signal.
[0011] Furthermore, the triggering mode of the power button is single click, multiple clicks or long press.
[0012] The energy-saving control method of a portable intelligent instrument provided by the present invention has the following beneficial effects: on the premise of facilitating user experience, it reduces costs, reduces power consumption, extends the standby time by more than 10 times, and greatly increases the service life of the battery. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present invention, but do not constitute a limitation of the present invention.
[0014] Figure 1 The present invention provides a flow chart of the energy-saving control method of the portable intelligent instrument.
[0015] Figure 2 This is a flow chart of a specific implementation of the energy-saving control method for a portable intelligent instrument provided by the present invention.
[0016] Figure 3 This is a structural diagram of the energy-saving control circuit of the portable intelligent instrument provided by the present invention. DETAILED DESCRIPTION
[0017] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation method, structure, characteristics and effects of the energy-saving control method of a portable intelligent instrument proposed by the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0019] In this embodiment, a method for controlling energy saving of a portable intelligent instrument is provided, which is applied to an energy saving control circuit of a portable intelligent instrument, such as Figure 3 As shown, the energy-saving control circuit of the portable intelligent instrument includes an MCU and a power button, and the MCU is connected to the power button; wherein, Figure 1 Please also refer to Figure 2 , the energy-saving control method of the portable intelligent instrument comprises the following steps: Step S1: When the MCU detects that the power button is triggered, it controls the portable intelligent instrument to turn on; Step S2: After the portable intelligent instrument is turned on, the MCU is controlled to enter a high-speed working mode, the MCU starts to transmit an infrared signal, and then it is determined whether the MCU receives the infrared signal; Step S3: when the MCU does not receive the infrared signal, the MCU is controlled to enter the low-speed working mode and run for a period of time. After the low-speed working mode is completed, the MCU is controlled to exit the low-speed working mode, and then return to step S2 to enter the high-speed working mode; wherein, during the low-speed working mode, the MCU stops transmitting infrared signals, and the working current of the single-chip microcomputer can be reduced to between 4ua and 5ua at one time, and the length of the low-speed working mode can be controlled by the single-chip microcomputer program; Step S4: After receiving the infrared signal, the MCU is controlled to maintain the high-speed working mode and output a high-level signal to drive the portable intelligent instrument to work.
[0020] Preferably, the fourth pin of the MCU is connected to the power button, the fifth pin of the MCU is connected to the portable intelligent instrument, the seventh pin of the MCU transmits infrared signals, and the second pin of the MCU receives infrared signals. The first pin of the MCU is a power supply terminal, the second pin is an infrared signal receiving terminal, the third pin is empty, the fourth pin is an instrument power switch terminal, the fifth pin is an instrument working output terminal, the sixth pin is empty, the seventh pin is an infrared signal transmitting terminal, and the eighth pin is a ground terminal.
[0021] Preferably, when the MCU detects that the power button is triggered, controlling the portable intelligent instrument to turn on also includes: In the single-chip computer program, a binary signal of 00100001 is sent to the PORT register at address 06 in the MCU to set the second pin and the fourth pin of the MCU to input mode; a binary signal of 11011110 is sent to the PHCON register at address 0B in the MCU to turn on the internal pull-up of the second pin and the fourth pin of the MCU, so that the second pin and the fourth pin of the MCU are normally in a high-level state; when the power button is pressed, the fourth pin of the MCU is connected to the ground, so that the state of the fourth pin of the MCU is pulled from a high-level state to a low-level state; The single-chip computer program detects the high and low level states of the fourth pin of the MCU in a 1MS cycle. When it is detected that the fourth pin of the MCU is in a low level state, it is considered that the power button is pressed, thereby controlling the portable intelligent instrument to enter the power-on state, and the MCU starts to enter the high-speed working mode. The seventh pin of the MCU starts to emit infrared signals, and the second pin of the MCU is detected in a 1MS cycle to see if it has received an infrared signal.
[0022] It should be noted that due to the sensitivity of the PCB, in order to prevent misjudgment of the fourth pin, a debounce operation will be performed on the fourth pin to ensure that the power-on state will only be entered after the button is pressed; there are usually three power-on button modes: single-click (press once), long press (press and hold for many seconds), and multi-click (double-click, triple-click, quadruple-click), which can be changed according to user needs.
[0023] Preferably, the step S3 further includes: When the instrument does not sense an obstacle, that is, the second pin of the MCU does not receive the infrared signal, it means that the portable intelligent instrument does not need to work, and a binary 00000011 signal is sent to the SYSM-system operating mode control register at the BANK1-0EH address in the MCU to control the MCU to enter the low-speed operating mode and run for a period of time; in the low-speed operating mode, the oscillator frequency of the MCU is reduced to 15KHZ, which greatly reduces the operating power consumption of the MCU. At this time, the seventh pin of the MCU stops emitting infrared signals, and it needs to run for a period of time in the low-speed operating mode. The time can be controlled by the program. The length of the low-speed operating mode will affect the overall standby power consumption of the MCU. The longer the low-speed operating mode is, the lower the standby power consumption is; of course, the length of the low-speed operating mode will also affect the sensitivity of the intelligent sensor. The longer the low-speed operating mode is, the lower the sensitivity is. Therefore, the time of the low-speed operating mode needs to be adjusted and controlled in the program according to the PCB circuit and actual application.
[0024] After the low-speed working mode is completed, a binary 00000000 signal is sent to the SYSM-system working mode control register at the BANK1-0EH address in the MCU to control the MCU to exit the low-speed working mode, and then return to step S2 to return to the high-speed working mode, and control the seventh pin of the MCU to transmit an infrared signal, and then determine whether the second pin of the MCU receives the infrared signal.
[0025] Preferably, the step S4 further includes: When the instrument senses an obstacle, the second pin of the MCU will receive an infrared signal, control the MCU to maintain the high-speed working mode, control the fifth pin of the MCU to output a high-level signal to drive the portable intelligent instrument into the working state, and continuously detect whether the second pin of the MCU receives an infrared signal.
[0026] Preferably, there are various ways to power on and off, such as buttons, toggle switches, touch, light sensing, etc. The present invention selects a more common power-on mode: button mode. The trigger mode of the power on and off button is single click, multiple clicks or long press.
[0027] It should be noted that the portable intelligent instrument may be a human body sensing lamp, a human body sensing hand sanitizer machine, a human body sensing dryer, etc.
[0028] The energy-saving control method for a portable intelligent instrument provided by the embodiment of the present invention reduces costs and power consumption while facilitating user experience, and extends the standby time by more than 10 times, thereby greatly increasing the service life of the battery.
[0029] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this profession can make some changes or modifications to equivalent embodiments of equivalent changes using the technical contents disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of the technical solution of the present invention.
Claims
1. A portable intelligent instrument energy saving control method, characterized in that: An energy-saving control circuit applied to a portable intelligent instrument, the energy-saving control circuit of the portable intelligent instrument comprises an MCU and a power button, the MCU and the power button are connected; wherein the energy-saving control method of the portable intelligent instrument comprises the following steps: Step S1: When the MCU detects that the power button is triggered, it controls the portable intelligent instrument to turn on; Step S2: After the portable intelligent instrument is turned on, the MCU is controlled to enter a high-speed working mode, the MCU starts to transmit an infrared signal, and then it is determined whether the MCU receives the infrared signal; Step S3: when the MCU does not receive the infrared signal, the MCU is controlled to enter the low-speed working mode and run for a period of time. After the low-speed working mode is completed, the MCU is controlled to exit the low-speed working mode, and then return to step S2 to enter the high-speed working mode; wherein, during the low-speed working mode, the MCU stops emitting infrared signals; Step S4: After receiving the infrared signal, the MCU is controlled to maintain the high-speed working mode and output a high-level signal to drive the portable intelligent instrument to work.
2. The energy-saving control method of a portable intelligent instrument according to claim 1, characterized in that: The fourth pin of the MCU is connected to the power button, the fifth pin of the MCU is connected to the portable intelligent instrument, the seventh pin of the MCU transmits an infrared signal, and the second pin of the MCU receives an infrared signal.
3. The energy-saving control method of a portable intelligent instrument according to claim 2, characterized in that: When the MCU detects that the power button is triggered, the portable intelligent instrument is controlled to be turned on, further comprising: Send a binary 00100001 signal to the 06 address PORT register in the MCU to set the second pin and the fourth pin of the MCU to input mode; send a binary 11011110 signal to the 0B address PHCON register in the MCU to turn on the internal pull-up of the second pin and the fourth pin of the MCU, so that the second pin and the fourth pin of the MCU are normally in a high level state; when the power button is pressed, the fourth pin of the MCU is connected to the ground, so that the state of the fourth pin of the MCU is pulled from the high level state to the low level state; The high and low level states of the fourth pin of the MCU are detected cyclically. When the fourth pin of the MCU is detected to be in a low level state, it is considered that the power button is pressed, thereby controlling the portable intelligent instrument to enter the power-on state, and the MCU starts to enter the high-speed working mode.
4. The energy-saving control method of a portable intelligent instrument according to claim 2, characterized in that: The step S3 further includes: When the MCU does not receive the infrared signal, a binary 00000011 signal is sent to the SYSM-system working mode control register at the BANK1-0EH address in the MCU to control the MCU to enter the low-speed working mode and run for a period of time; After the low-speed working mode is completed, a binary 00000000 signal is sent to the SYSM-system working mode control register at the BANK1-0EH address in the MCU to control the MCU to exit the low-speed working mode, and then return to step S2 to return to the high-speed working mode, and control the seventh pin of the MCU to transmit an infrared signal, and then determine whether the second pin of the MCU receives the infrared signal.
5. The energy-saving control method of a portable intelligent instrument according to claim 2, characterized in that: The step S4 further includes: When the second pin of the MCU receives an infrared signal, the MCU is controlled to maintain the high-speed working mode, and the fifth pin of the MCU is controlled to output a high-level signal to drive the portable intelligent instrument to enter a working state, and continuously detect whether the second pin of the MCU receives an infrared signal.
6. The energy-saving control method of a portable intelligent instrument according to claim 1, characterized in that: The triggering mode of the power button is single click, multiple clicks or long press.