Key module, cleaner with same, control method and storage medium
By detecting the contact resistance value of the cleaner key module to judge the artificial operation, the problem of accidentally triggering the buttons in transportation or backpack and power exhaustion is solved, and higher safety and battery life are achieved.
Patent Information
- Application Number
- CN202310810091.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-03
- Publication Date
- 2025-01-07
AI Technical Summary
The buttons of existing cleaners are easily triggered by accident when they are squeezed by abnormally during transportation or backpack, resulting in exhaustion of power and affecting the safety of use.
A key module is designed to determine whether it is artificially operated by detecting the contact resistance value of the outer surface of the key mechanism. The electrical appliance is only started when the resistance value is greater than or equal to the preset threshold value to avoid non-human operational error triggering and power exhaustion. The module includes conductive parts and metal contacts, combined with a double judgment mechanism to ensure the reliability and safety of the buttons.
It effectively avoids false triggering and power exhaustion caused by non-human operations, and improves the use safety and battery life of the cleaner.
Smart Images

Figure CN119275016A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the technical field of electrical equipment, and in particular to a key module and a cleaner, a control method, and a storage medium having the same. Background Art
[0002] In housework, cleaners can help people clean dust, hair, stains, etc. efficiently and quickly, bringing great convenience to daily life.
[0003] As one of the components for starting the cleaner, the button plays an important role. At present, the related technology uses physical buttons to trigger the cleaner to work. However, in this way, the button circuit is abnormally squeezed during transportation or in a backpack, which will cause false triggering and serious power consumption, affecting the normal use of the cleaner and easily causing safety hazards. Summary of the invention
[0004] In view of the above-mentioned defects or deficiencies in the related art, it is desired to provide a button module and a cleaner, a control method, and a storage medium having the same, which can avoid false triggering and serious power consumption of non-human operation buttons and improve safety.
[0005] In a first aspect, the present disclosure provides a key module for controlling the startup of an electrical appliance, the key module comprising:
[0006] A first button mechanism;
[0007] A circuit board, the circuit board includes a control module; wherein, when the first button mechanism is subjected to an external force, the first button mechanism is electrically connected to the circuit board, the control module detects the contact resistance value of the outer surface of the first button mechanism, and when the contact resistance value is greater than or equal to a preset threshold, controls the electrical appliance to start; when the contact resistance value is less than the preset threshold, keeps the electrical appliance from starting. The advantage of such a setting is that, since the human body itself is a conductor, that is, it has resistance, the control module on the circuit board can determine whether it is a human-operated button based on the contact resistance value of the outer surface of the first button mechanism detected, that is, when the contact resistance value is greater than or equal to the preset threshold, it is determined that it is a human-operated button, and controls the electrical appliance to start, thereby being able to largely avoid the false triggering and serious power consumption of non-human-operated buttons, ensuring safety.
[0008] Optionally, in some embodiments of the present disclosure, the first key mechanism includes a key body and a conductive member disposed on the key body;
[0009] The circuit board is provided with metal contacts corresponding to the conductive member, which are used to be electrically connected to the conductive member when the key body is subjected to external force. The advantages of such a setting are simple structure, high sensitivity, and convenient miniaturization of the key module.
[0010] Optionally, in some embodiments of the present disclosure, the button module further includes:
[0011] The second button mechanism is arranged on the circuit board and is located below the button body; when the button body is subjected to external force, the button body presses the second button mechanism, and the control module controls the start of the electrical appliance according to the pressing state and the contact resistance value. The advantage of such an arrangement is that by stacking two button mechanisms, that is, the first button mechanism is located above the second button mechanism, the two parameters of the contact resistance value of the outer surface of the first button mechanism and the pressing state of the second button mechanism can be combined to achieve double judgment, which has high reliability.
[0012] Optionally, in some embodiments of the present disclosure, the conductive member includes a first conductive member and a second conductive member, the first conductive member and the second conductive member are respectively located on both sides of the key body, the metal contact includes a first metal contact and a second metal contact, the first metal contact and the second metal contact are respectively located on both sides of the second key mechanism; or, the conductive member is arranged around the key body, and the metal contact is arranged around the second key mechanism. The advantage of such an arrangement is that the conductive member can evenly disperse the external force on the key body, so that the key body will not easily warp up at the end due to unbalanced force, thereby extending the service life, and at the same time, the conductive member and the metal contact can be well and firmly electrically connected without offset.
[0013] Optionally, in some embodiments of the present disclosure, the height of the conductive part is greater than the height of the second button mechanism and is less than the distance between the button body and the second button mechanism. Therefore, when the button body is not subjected to external force, accidental contact between the conductive part and the metal contact can be avoided. When the key body is subjected to external force, the conductive part and the metal contact can be quickly electrically connected, thereby improving reliability.
[0014] Optionally, in some embodiments of the present disclosure, a reset member is further provided between the first button mechanism and the second button mechanism, thereby providing sufficient pushing force to facilitate the button mechanism to quickly return to the starting position.
[0015] Optionally, in some embodiments of the present disclosure, the reset member is a spring; the spring is sleeved on the second button mechanism, and the bottom is fixed to the circuit board. The advantage of such a setting is simple structure and low cost.
[0016] Optionally, in some embodiments of the present disclosure, the control module includes a control chip, a resistance detection unit and a start-up unit;
[0017] The first input end of the resistance detection unit is connected to the power supply, the second input end of the resistance detection unit is connected to the first end of the control chip, the third end of the resistance detection unit is grounded, and the fourth end of the resistance detection unit is connected to the first end of the second button mechanism; the first end of the start unit is connected to the power supply, the second end of the start unit is connected to the second end of the control chip, the third end of the start unit is connected to the second end of the second button mechanism, and the fourth end of the start unit is connected to the third end of the control chip. The advantage of this setting is that the resistance detection unit can quickly detect the contact resistance value of the outer surface of the first button mechanism, so that the control chip can control the electrical appliance to start through the start unit according to the comparison result of the contact resistance value and the preset threshold value, which is efficient and convenient.
[0018] Optionally, in some embodiments of the present disclosure, the resistance detection unit includes the first metal contact, the second metal contact, a first resistor and a capacitor;
[0019] The first metal contact is connected to the power supply, the second metal contact is respectively connected to the first end of the control chip, the first end of the first resistor and the first end of the capacitor, the second end of the first resistor is grounded, the second end of the capacitor is grounded and connected to the first end of the second button mechanism.
[0020] Optionally, in some embodiments of the present disclosure, the startup unit includes a second resistor, a third resistor, a field effect transistor, a fourth resistor and a fifth resistor;
[0021] The first end of the second resistor and the first end of the field effect transistor are both connected to the power supply, the first end of the third resistor is connected to the second end of the control chip, the second end of the third resistor is respectively connected to the second end of the second resistor and the second end of the field effect transistor, the third end of the field effect transistor is connected to the first end of the fourth resistor, the second end of the fourth resistor is respectively connected to the first end of the fifth resistor and the third end of the control chip, and the second end of the fifth resistor is connected to the second end of the second button mechanism.
[0022] In a second aspect, the present disclosure provides a cleaner, comprising a cleaning body, a battery and a motor disposed in the cleaning body, and a key module as described in any one of the first aspects; the battery and the motor are respectively connected to the circuit board, and the first key mechanism is located on the outer surface of the cleaning body. Since the key module of the cleaner can determine whether it is a manually operated key based on the contact resistance value detected on the outer surface of the first key mechanism, it can greatly avoid the false triggering and serious power consumption of non-human operated keys, thereby ensuring safety.
[0023] Optionally, in some embodiments of the present disclosure, the circuit board further includes a charging module, a temperature detection module, a power detection module, a voltage stabilizing module, and a motor driving module respectively connected to the control module; the temperature detection module is used to detect the temperature of the battery; the power detection module is used to detect the power of the battery; the control module is also used to control the charging module to charge the battery according to the temperature and the power; the voltage stabilizing module is used to stabilize the voltage during the operation of the battery; the motor driving module is used to drive the motor to work. The advantage of this arrangement is that it improves the endurance of the cleaner, while ensuring charging safety and extending the service life.
[0024] In a third aspect, the present disclosure provides a method for controlling a key module, the method being used for the key module described in any one of the first aspects, the method comprising:
[0025] Detecting a contact resistance value of an outer surface of the first key mechanism;
[0026] When the contact resistance value is greater than or equal to a preset threshold, controlling the electrical appliance to start;
[0027] When the contact resistance value is less than the preset threshold value, the electrical appliance is kept not started. Thus, it is possible to determine whether the key is manually operated based on the contact resistance value detected on the outer surface of the first key mechanism, thereby greatly avoiding false triggering and serious power consumption of non-human operated keys, ensuring safety.
[0028] In a fourth aspect, the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the control method described in the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0030] Figure 1A structural block diagram of a key module provided in an embodiment of the present disclosure;
[0031] Figure 2 A schematic cross-sectional structure diagram of a key module provided in an embodiment of the present disclosure;
[0032] Figure 3 A pin diagram of a control chip provided in an embodiment of the present disclosure;
[0033] Figure 4 A schematic diagram of a partial circuit structure of a control module provided in an embodiment of the present disclosure;
[0034] Figure 5 A schematic cross-sectional structure diagram of a cleaner provided by an embodiment of the present disclosure;
[0035] Figure 6 A structural block diagram of a cleaner provided by an embodiment of the present disclosure;
[0036] Figure 7 A structural block diagram of another cleaning device provided by an embodiment of the present disclosure;
[0037] Figure 8 A structural block diagram of another cleaning device provided by an embodiment of the present disclosure;
[0038] Fig. 9 A flowchart of a method for controlling a key module provided in an embodiment of the present disclosure.
[0039] Reference numerals:
[0040] 10-button module, 11-first button mechanism, 111-button body, 112-conductive member, 1121-first conductive member, 1122-second conductive member, 1123-metal column, 1124-protrusion, 12-circuit board, 121-control module, 1211-control chip, 1212-resistance detection unit, 1213-starting unit, 122-metal contact, 1221-first metal contact, 1222-second metal contact, 123-charging module, 124-temperature detection module, 125-power detection module, 126-voltage stabilizing module, 127-motor drive module, 128-display board terminal, 13-second button mechanism, 14-reset member, 20-cleaner, 21-cleaning body, 22-battery, 23-motor, 24-display board. DETAILED DESCRIPTION
[0041] In order to enable those skilled in the art to better understand the disclosed solution, the technical solution in the disclosed embodiment will be clearly and completely described below in conjunction with the drawings in the disclosed embodiment. Obviously, the described embodiment is only a part of the disclosed embodiment, not all of the embodiments. Based on the embodiments in the disclosed embodiment, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the disclosed embodiment.
[0042] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present disclosure 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 numbers used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described can be implemented in sequences other than those illustrated or described herein.
[0043] In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not explicitly listed or inherent to these processes, methods, products, or apparatuses.
[0044] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other. Figures 1 to 9 The key module, the cleaner, the control method and the storage medium provided by the embodiments of the present disclosure are described in detail.
[0045] Please refer to Figure 1 , which is a structural block diagram of a key module provided by an embodiment of the present disclosure. The key module 10 includes a first key mechanism 11 and a circuit board 12, and the circuit board 12 includes a control module 121. Among them, when the first key mechanism 11 is subjected to external force, the first key mechanism 11 is electrically connected to the circuit board 12, and the control module 121 detects the contact resistance value of the outer surface of the first key mechanism 11, and when the contact resistance value is greater than or equal to a preset threshold, controls the electrical appliance to start; when the contact resistance value is less than the preset threshold, keeps the electrical appliance from starting. Since the human body itself is a conductor, that is, it has resistance, the control module 121 on the circuit board 12 can determine whether it is a manually operated key according to the contact resistance value of the outer surface of the first key mechanism 11 detected, that is, when the contact resistance value is greater than or equal to the preset threshold, it is determined that it is a manually operated key, and controls the electrical appliance to start, thereby greatly avoiding the false triggering and serious power consumption of non-human operated keys, ensuring safety.
[0046] Optionally, in the embodiment of the present disclosure, the first key mechanism 11 includes but is not limited to a key body 111 and a conductive member 112 disposed on the key body 111, and a metal contact 122 corresponding to the conductive member 112 is disposed on the circuit board 12, which is used to be electrically connected to the conductive member 112 when the key body 111 is subjected to an external force. The advantages of such a setting are simple structure, high sensitivity, and convenience for miniaturization of the key module 10.
[0047] Optionally, the embodiments of the present disclosure can control the start of the electrical appliance by an electrical signal. Alternatively, some embodiments of the present disclosure can also be combined with the second button mechanism 13 to control the start of the electrical appliance, such as Figure 2 As shown, the key module 10 also includes a second key mechanism 13, which is arranged on the circuit board 12 and is located below the key body 111. Therefore, when the key body 111 is subjected to external force, the key body 111 can press the second key mechanism 13, so that the control module 121 controls the start of the electrical appliance according to the pressing state and the contact resistance value. The advantage of this arrangement is that by stacking the two key mechanisms, that is, the first key mechanism 11 is located above the second key mechanism 13, the two parameters of the contact resistance value of the outer surface of the first key mechanism 11 and the pressing state of the second key mechanism 13 can be combined to achieve double judgment, and the reliability is strong.
[0048] Optionally, in some embodiments of the present disclosure, the conductive member 112 may include a first conductive member 1121 and a second conductive member 1122, the first conductive member 1121 and the second conductive member 1122 are respectively located on both sides of the key body 111, and the metal contact 122 may include a first metal contact 1221 and a second metal contact 1222, the first metal contact 1221 and the second metal contact 1222 are respectively located on both sides of the second key mechanism 13. Alternatively, in other embodiments of the present disclosure, the conductive member 112 is arranged around the key body 111, and the metal contact 122 is arranged around the second key mechanism 13. The advantage of such an arrangement is that the conductive member 112 can evenly disperse the external force on the key body 111, so that the key body 111 will not easily tilt up due to unbalanced force, thereby extending the service life, and at the same time, the conductive member 112 and the metal contact 122 can be well and firmly electrically connected without offset.
[0049] Furthermore, in the disclosed embodiment, the height (h1) of the conductive member 112 is greater than the height (h2) of the second button mechanism 13, and is less than the distance (d) between the button body 111 and the second button mechanism 13, thereby preventing the conductive member 112 from accidentally contacting the metal contact 122 when the button body 111 is not subjected to external force, and enabling the conductive member 112 to be quickly electrically connected to the metal contact 122 when the button body 111 is subjected to external force, thereby improving reliability. For example, the conductive member 112 may be a metal column 1123, and the advantage of such a setting is that it is convenient for processing and manufacturing, and reduces production costs. For another example, the bottom end of the metal column 1123 may also be provided with a protrusion 1124, and the protrusion 1124 is integrally formed with the metal column 1123, thereby being more solid and greatly extending the service life.
[0050] Optionally, in the embodiments of the present disclosure, a reset member 14 is further provided between the first button mechanism 11 and the second button mechanism 13, thereby providing sufficient push force to facilitate the button mechanism to quickly return to the starting position. For example, the reset member 14 can be a spring, which is sleeved on the second button mechanism 13 and fixed to the circuit board 12 at the bottom. The advantage of such a setting is that the structure is simple and the cost is low. Alternatively, in some embodiments of the present disclosure, the bottom of the button body 111 is made of elastic material, and the button mechanism can also be reset in this case.
[0051] Optionally, the control module 121 in the embodiment of the present disclosure includes but is not limited to a control chip 1211, a resistance detection unit 1212, and a start unit 1213. Among them, the first input terminal (A1) of the resistance detection unit 1212 is connected to the power supply (VDD), the second input terminal (A2) of the resistance detection unit 1212 is connected to the first terminal (AD_KEY) of the control chip 1211, the third terminal (A3) of the resistance detection unit 1212 is grounded (GND), and the fourth terminal (A4) of the resistance detection unit 1212 is connected to the first terminal (B1) of the second key mechanism 13; and the first terminal (D1) of the start unit 1213 is connected to the power supply (VDD), the second terminal (D2) of the start unit 1213 is connected to the second terminal (OPEN_IO) of the control chip 1211, the third terminal (D3) of the start unit 1213 is connected to the second terminal (B2) of the second key mechanism 13, and the fourth terminal (D4) of the start unit 1213 is connected to the third terminal (KEY1) of the control chip 1211. The advantage of this arrangement is that the resistance detection unit 1212 can quickly detect the contact resistance value of the outer surface of the first button mechanism 11, so that the control chip 1211 can control the electrical appliance to start through the start unit 1213 based on the comparison result between the contact resistance value and the preset threshold, which is efficient and convenient.
[0052] For example, Figure 3 As shown, for example, in some embodiments of the present disclosure, the control chip 1211 may be a BF7615BM28 chip; Figure 4 As shown, in some embodiments of the present disclosure, the resistance detection unit 1212 includes but is not limited to a first metal contact 1221, a second metal contact 1222, a first resistor R1 and a capacitor C1, wherein the first metal contact 1221 is connected to a power supply (VDD), the second metal contact 1222 is respectively connected to a first end (AD_KEY) of the control chip 1211, a first end (a1) of the first resistor R1 and a first end (a2) of the capacitor (C1), a second end (a3) of the first resistor R1 is grounded (GND), a second end (a4) of the capacitor C1 is grounded (GND), and is connected to a first end (B1) of the second key mechanism 13; still as shown in FIG. Figure 4 As shown in the figure as an example, in some embodiments of the present disclosure, the startup unit 1213 includes but is not limited to a second resistor R2, a third resistor R3, a field effect transistor Q1, a fourth resistor R4 and a fifth resistor R5, wherein the first end (d1) of the second resistor R2 and the first end (d2) of the field effect transistor Q1 are both connected to the power supply (VDD), the first end (d3) of the third resistor R3 is connected to the second end (OPEN_IO) of the control chip 1211, the second end (d4) of the third resistor R3 is respectively connected to the second end (d5) of the second resistor R2 and the second end (d6) of the field effect transistor Q1, the third end (d7) of the field effect transistor Q1 is connected to the first end (d8) of the fourth resistor R4, the second end (d9) of the fourth resistor R4 is respectively connected to the first end (d10) of the fifth resistor (R5) and the third end (KEY1) of the control chip (1211), and the second end (d11) of the fifth resistor R5 is connected to the second end (B2) of the second key mechanism 13.
[0053] The key module provided in the embodiment of the present disclosure determines whether the key is manually operated based on the contact resistance value detected on the outer surface of the first key mechanism through the control module on the circuit board. That is, when the contact resistance value is greater than or equal to a preset threshold, it is determined that the key is manually operated, and the electrical appliance is controlled to start, thereby greatly avoiding false triggering and serious power consumption of non-human operation keys, ensuring safety.
[0054] Based on the above examples, please refer to Figure 5 and Figure 6 , are respectively a cross-sectional structural diagram and a structural block diagram of a cleaning device provided in an embodiment of the present disclosure. The cleaning device 20 includes a cleaning body 21, a battery 22 disposed in the cleaning body 21, a motor 23 and Figures 1 to 4 In the key module 10 of the corresponding embodiment, the battery 22 and the motor 23 are respectively connected to the circuit board 12, and the first key mechanism 11 is located on the outer surface of the cleaning body 21. For example, the cleaner 20 can be a rechargeable handheld cleaning brush or a vacuum cleaner.
[0055] Alternatively, if Figure 7As shown, in the disclosed embodiment, the circuit board 12 also includes a charging module 123, a temperature detection module 124, a power detection module 125, a voltage stabilizing module 126 and a motor driving module 127, which are respectively connected to the control module 121. For example, the voltage stabilizing module 126 may include a low drop-out regulator (LDO) circuit. Among them, the temperature detection module 124 can detect the temperature of the battery 22; the power detection module 125 can detect the power of the battery 22; the control module 121 can control the charging module 123 to charge the battery 22 according to the temperature and power; the voltage stabilizing module 126 can stabilize the voltage during the operation of the battery 22; and the motor driving module 127 can drive the motor 23 to work. The advantage of this arrangement is that it improves the endurance of the cleaner 20, while ensuring charging safety and extending the service life.
[0056] Alternatively, if Figure 8 As shown, the cleaner 20 in the disclosed embodiment also includes a display panel 24 arranged on the outer surface of the cleaning body 21, and the display panel 24 is connected to the display panel terminal 128 of the circuit board 12, thereby being able to intuitively display the power level, motor gear and charging status, which is clear at a glance and greatly enhances the user's good experience.
[0057] The cleaner provided by the embodiment of the present disclosure can largely avoid false triggering and serious power consumption of non-human-operated buttons, since the button module of the cleaner can determine whether it is a manually-operated button based on the contact resistance value detected on the outer surface of the first button mechanism, thereby ensuring safety.
[0058] Based on the above examples, please refer to Fig. 9 , which is a flow chart of a control method of a key module provided by an embodiment of the present disclosure. The method can be used for Figures 1 to 4 The key module 10 of the corresponding embodiment specifically includes the following steps:
[0059] S101, detecting a contact resistance value of an outer surface of a first key mechanism.
[0060] For example, Figures 2 to 4 As shown in the figure, the initial state of the OPEN_IO port is high level, and the KEY1 port is low level. When a person presses a finger, the first conductive member 1121 of the first key mechanism 11 contacts the first metal contact 1221 of the circuit board 12, and the second conductive member 1122 contacts the second metal contact 1222. At the same time, the second key mechanism 13 is pressed, and the finger resistance, the first resistor R1 and the ground terminal GND form a detection loop.
[0061] S102, when the contact resistance value is greater than or equal to a preset threshold, the control device starts.
[0062] For example, the AD_KEY port is a detection channel, that is, when the contact resistance value is greater than or equal to the preset threshold, it is determined that the human operation key condition is met. At this time, the OPEN_IO port is switched to a low level, and the field effect tube Q1 is turned on, so that the KEY1 port becomes a high level. Furthermore, the KEY1 port generates a rising edge, which means that the key is triggered. At this time, the field effect tube Q1 can be turned off to reduce power consumption, so that the appliance starts and performs the corresponding operation.
[0063] S103, when the contact resistance value is less than the preset threshold value, the electrical appliance is kept not started.
[0064] It should be noted that if the contact resistance value is less than the preset threshold, it indicates that the button is not operated manually. At this time, the electrical appliance is kept from starting, thereby avoiding false triggering.
[0065] The control method of the button module provided in the embodiment of the present disclosure utilizes the fact that the human body is a conductor, that is, has the property of resistance, to detect the contact resistance value of the outer surface of the first button mechanism to determine whether the button is manually operated, and when the contact resistance value is greater than or equal to a preset threshold, the cleaner is controlled to start, thereby greatly avoiding false triggering and serious power consumption of non-human operated buttons, thereby ensuring safety.
[0066] As another aspect, the present disclosure provides a computer-readable storage medium for storing one or more programs, which can be executed by one or more processors to implement the aforementioned Fig. 9 The steps of the control method of the corresponding embodiment.
[0067] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0068] In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms. The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0069] In addition, each functional module in each embodiment of the present disclosure may be integrated into a processing unit, or each module may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
[0070] Based on such understanding, the technical solution of the present disclosure, in essence, or the part that contributes to the prior art, or the whole or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the control method of each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store programs.
[0071] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure 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. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. A key module for controlling the start of an electrical appliance, characterized in that: The key module (10) comprises: A first key mechanism (11); A circuit board (12), wherein the circuit board (12) comprises a control module (121), When the first button mechanism (11) is subjected to an external force, the first button mechanism (11) is electrically connected to the circuit board (12), and the control module (121) detects the contact resistance value of the outer surface of the first button mechanism (11), and when the contact resistance value is greater than or equal to a preset threshold value, controls the electrical appliance to start; when the contact resistance value is less than the preset threshold value, keeps the electrical appliance from starting.
2. The key module according to claim 1, characterized in that: The first key mechanism (11) comprises a key body (111) and a conductive member (112) arranged on the key body (111); The circuit board (12) is provided with a metal contact (122) corresponding to the conductive member (112) and is used to electrically connect to the conductive member (112) when the key body (111) is subjected to an external force.
3. The key module according to claim 2, characterized in that: The key module (10) further comprises: A second button mechanism (13), wherein the second button mechanism (13) is arranged on the circuit board (12) and is located below the button body (111); when the button body (111) is subjected to an external force, the button body (111) presses the second button mechanism (13), and the control module (121) controls the start-up of the electrical appliance according to the pressing state and the contact resistance value.
4. The key module according to claim 3, characterized in that: The conductive member (112) comprises a first conductive member (1121) and a second conductive member (1122), the first conductive member (1121) and the second conductive member (1122) are respectively located on two sides of the key body (111), the metal contact (122) comprises a first metal contact (1221) and a second metal contact (1222), the first metal contact (1221) and the second metal contact (1222) are respectively located on two sides of the second key mechanism (13); Alternatively, the conductive member (112) is arranged around the key body (111), and the metal contact (122) is arranged around the second key mechanism (13).
5. The key module according to claim 3, characterized in that: The height (h1) of the conductive member (112) is greater than the height (h2) of the second key mechanism (13), and is smaller than the distance (d) between the key body (111) and the second key mechanism (13).
6. The key module according to claim 3, characterized in that: A reset member (14) is also provided between the first key mechanism (11) and the second key mechanism (13).
7. The key module according to claim 6, characterized in that: The reset member (14) is a spring; the spring is sleeved on the second key mechanism (13), and the bottom of the spring is fixed to the circuit board (12).
8. The key module according to any one of claims 4 to 7, characterized in that: The control module (121) comprises a control chip (1211), a resistance detection unit (1212) and a start-up unit (1213); The first input end (A1) of the resistance detection unit (1212) is connected to a power supply (VDD), the second input end (A2) of the resistance detection unit (1212) is connected to a first end (AD_KEY) of the control chip (1211), the third end (A3) of the resistance detection unit (1212) is grounded (GND), and the fourth end (A4) of the resistance detection unit (1212) is connected to a first end (B1) of the second key mechanism (13); the first end (D1) of the start-up unit (1213) is connected to the power supply (VDD), the second end (D2) of the start-up unit (1213) is connected to a second end (OPEN_IO) of the control chip (1211), the third end (D3) of the start-up unit (1213) is connected to a second end (B2) of the second key mechanism (13), and the fourth end (D4) of the start-up unit (1213) is connected to a third end (KEY1) of the control chip (1211).
9. The key module according to claim 8, characterized in that: The resistance detection unit (1212) comprises the first metal contact (1221), the second metal contact (1222), a first resistor (R1) and a capacitor (C1); The first metal contact (1221) is connected to the power supply (VDD), the second metal contact (1222) is respectively connected to the first end (AD_KEY) of the control chip (1211), the first end (a1) of the first resistor (R1) and the first end (a2) of the capacitor (C1), the second end (a3) of the first resistor (R1) is grounded (GND), the second end (a4) of the capacitor (C1) is grounded (GND), and is connected to the first end (B1) of the second key mechanism (13).
10. The key module according to claim 8, characterized in that: The startup unit (1213) comprises a second resistor (R2), a third resistor (R3), a field effect transistor (Q1), a fourth resistor (R4) and a fifth resistor (R5); The first end (d1) of the second resistor (R2) and the first end (d2) of the field effect transistor (Q1) are both connected to the power supply (VDD); the first end (d3) of the third resistor (R3) is connected to the second end (OPEN_IO) of the control chip (1211); the second end (d4) of the third resistor (R3) is respectively connected to the second end (d5) of the second resistor (R2) and the second end (d6) of the field effect transistor (Q1); the third end (d7) of the field effect transistor (Q1) is connected to the first end (d8) of the fourth resistor (R4); the second end (d9) of the fourth resistor (R4) is respectively connected to the first end (d10) of the fifth resistor (R5) and the third end (KEY1) of the control chip (1211); and the second end (d11) of the fifth resistor (R5) is connected to the second end (B2) of the second key mechanism (13).
11. A cleaning device, characterized in that: The cleaner (20) comprises a cleaning body (21), a battery (22) arranged in the cleaning body (21), a motor (23) and a key module (10) according to any one of claims 1 to 10; the battery (22) and the motor (23) are respectively connected to the circuit board (12), and the first key mechanism (11) is located on the outer surface of the cleaning body (21).
12. The cleaning device according to claim 11, characterized in that The circuit board (12) further comprises a charging module (123), a temperature detection module (124), a power detection module (125), a voltage stabilization module (126), and a motor drive module (127) respectively connected to the control module (121); the temperature detection module (124) is used to detect the temperature of the battery (22); the power detection module (125) is used to detect the power of the battery (22); the control module (121) is also used to control the charging module (123) to charge the battery (22) according to the temperature and the power; the voltage stabilization module (126) is used to stabilize the voltage during the operation of the battery (22); and the motor drive module (127) is used to drive the motor (23) to operate.
13. A method for controlling a key module, characterized in that: The method is used for the key module (10) according to any one of claims 1 to 10, and the method comprises: Detecting the contact resistance value of the outer surface of the first key mechanism (11); When the contact resistance value is greater than or equal to a preset threshold, controlling the electrical appliance to start; When the contact resistance value is less than the preset threshold value, the electrical appliance is kept not started.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the control method described in claim 13.