On-off state detection circuit and household electrical appliance
By using reed switches and detection modules in household appliances, and connecting control pins to output different level signals, the problem of detection failure caused by short circuits in reed switches or capacitors is solved, and accurate switching status identification is achieved in fault conditions.
Patent Information
- Application Number
- CN202520306794.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2035-02-24
AI Technical Summary
In existing technologies, when a reed switch or capacitor is short-circuited, the open/closed status of the door of a household appliance cannot be accurately identified, leading to detection failure.
A reed switch and a detection module are used. By controlling the pin connection of the reed switch, different level signals are output to the processor at preset levels to ensure that the processor can recognize the switch status.
Even if the reed switch or detection module malfunctions, it can still accurately identify the on/off status of household appliances, improving the accuracy and reliability of detection and reducing the risk of harm to users.
Smart Images

Figure CN223756873U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technology, and to, but is not limited to, a switch state detection circuit and a household appliance. Background Technology
[0002] With the rapid development of electronic technology, various household appliances have become commonplace in people's lives, such as washing machines, refrigerators, and microwave ovens. Many household appliances are equipped with doors to isolate their interiors from the external environment, and many appliances can only perform certain functions when the door is closed. For example, washing machines generally only run the spin-drying program when the door is closed.
[0003] In related technologies, to enable household appliances with doors to determine whether the door is open or closed, technicians typically incorporate circuitry into the appliance to detect and identify the door's open / closed state. Specifically, common detection circuits usually include a reed switch with a filtering capacitor on one pin. This reed switch pin outputs opposite voltage levels for open and closed states, allowing the processor to determine whether the door is open or closed based on the voltage level signal output from this pin.
[0004] However, in cases where the reed switch or capacitor is short-circuited, the output signal level of the reed switch will not change. In other words, this solution cannot identify the switching state once the reed switch or capacitor is short-circuited. Utility Model Content
[0005] In view of this, the switch state detection circuit and household appliance provided in this application embodiment can accurately identify the open / closed state of the household appliance door even when the reed switch or detection module malfunctions. The switch state detection circuit and household appliance provided in this application embodiment are implemented as follows:
[0006] One aspect of this application provides a switch state detection circuit, applied to a household appliance; the circuit includes:
[0007] A reed switch, comprising a first pin, a second pin, and a third pin, wherein the first pin is used to input a preset level, and the reed switch is configured as follows:
[0008] According to the on / off state of the household appliance, the first pin is controlled to be connected to one of the second pin and the third pin respectively;
[0009] The detection module is connected to the second pin and the third pin respectively, and the detection module is configured as follows:
[0010] Under the action of the preset level, a first target signal is output to a first detection end of a processor of the household appliance, and a second target signal is output to a second detection end of the processor to indicate the switch state of the household appliance to the processor, wherein the first target signal and the second target signal are one of a first level signal and a second level signal, and the first level signal and the second level signal are opposite.
[0011] Optionally, the detection module comprises:
[0012] a first detection unit connected with the second pin, the first detection unit being configured to:
[0013] output the first level signal or the second level signal to the first detection end of the processor under the action of the preset level;
[0014] a second detection unit connected with the third pin, the second detection unit being configured to:
[0015] output the first level signal or the second level signal to the second detection end of the processor under the action of the preset level.
[0016] Optionally, the first detection unit comprises:
[0017] a first capacitor, a first plate of the first capacitor being grounded, and a second plate of the first capacitor being connected with the second pin and the first detection end of the processor respectively;
[0018] the first detection unit is further configured to pull down the voltage of the first detection end of the processor in the case of short circuit of the first capacitor.
[0019] Optionally, in the case of the preset level being a low level, the first detection unit further comprises:
[0020] a first resistor, a first end of the first resistor being connected with the second plate of the first capacitor, and a second end of the first resistor being configured to input a first working voltage;
[0021] a second resistor, a first end of the second resistor being connected with the second plate of the first capacitor and the second pin respectively, and a second end of the second resistor being configured to connect the first detection end of the processor.
[0022] Optionally, in the case of the preset level being a high level, the first detection unit further comprises:
[0023] a third resistor, a first end of the third resistor being connected with the second plate of the first capacitor, and a second end of the third resistor being configured to be grounded.
[0024] a fourth resistor, a first end of the fourth resistor being connected with the second pole plate of the first capacitor and the second pin respectively, and a second end of the fourth resistor being used for connecting the first detection end of the processor.
[0025] Optionally, the second detection unit comprises:
[0026] a second capacitor, a first pole plate of the second capacitor being grounded, and a second pole plate of the second capacitor being connected with the third pin and the second detection end of the processor respectively;
[0027] The second detection unit is further configured to pull down the voltage of the second detection end of the processor in the case that the second capacitor is short-circuited.
[0028] Optionally, in the case that the preset level is a low level, the second detection unit further comprises:
[0029] a fifth resistor, a first end of the fifth resistor being connected with the second pole plate of the second capacitor, and a second end of the fifth resistor being used for inputting a second working voltage;
[0030] a sixth resistor, a first end of the sixth resistor being connected with the second pole plate of the second capacitor and the third pin respectively, and a second end of the sixth resistor being used for connecting the second detection end of the processor;
[0031] Or, in the case that the preset level is a high level, the second detection unit further comprises:
[0032] a seventh resistor, a first end of the seventh resistor being connected with the second pole plate of the second capacitor, and a second end of the seventh resistor being used for grounding;
[0033] an eighth resistor, a first end of the eighth resistor being connected with the second pole plate of the second capacitor and the third pin respectively, and a second end of the eighth resistor being used for connecting the second detection end of the processor.
[0034] Optionally, the detection module comprises:
[0035] a third detection unit connected with the second pin and the third pin respectively, the third detection unit being configured to:
[0036] output the first level signal to the first detection end of the processor of the household appliance in the case that the first pin and the second pin are disconnected, and output the second level signal to the first detection end of the processor in the case that the first pin and the second pin are connected;
[0037] In a case where the first pin and the third pin are disconnected, the first level signal is output to the second detection end of the processor, and in a case where the first pin and the third pin are connected, the second level signal is output to the second detection end of the processor.
[0038] Optionally, the third detection unit at least comprises:
[0039] a latch, a first input end of the latch being connected with the second pin, and the first input end of the latch being used for inputting a third working voltage, a second input end of the latch being connected with the first output end of the latch and the second detection end of the processor respectively, a third input end of the latch being connected with the sixth pin, and the third input end of the latch being used for inputting the third working voltage, and a fourth input end of the latch being connected with the second output end of the latch and the first detection end of the processor respectively;
[0040] The latch is configured to:
[0041] In a case where the first pin and the second pin are disconnected, the first level signal is output to the first detection end of the processor of the household appliance, and in a case where the first pin and the second pin are connected, the second level signal is output to the first detection end of the processor.
[0042] In a case where the first pin and the third pin are disconnected, the first level signal is output to the second detection end of the processor, and in a case where the first pin and the third pin are connected, the second level signal is output to the second detection end of the processor.
[0043] Another aspect of the embodiment of the application also provides a household appliance,
[0044] The household appliance at least comprises:
[0045] a cabinet for forming a storage space;
[0046] a door body rotatably connected with the cabinet, for opening or closing the storage space;
[0047] any of the above switch state detection circuits;
[0048] a processor connected with the switch state detection circuit, configured to receive the first target signal and the second target signal output by the switch state detection circuit, and determine the opening and closing state of the door body based on the first target signal and the second target signal.
[0049] The switch state detection circuit and the household appliance provided by the embodiment of the present application are characterized in that a magnetic reed switch and a detection module are arranged in the circuit, the magnetic reed switch comprises a first pin, a second pin and a third pin, the first pin is used for inputting a preset level, and the detection module is connected with the second pin and the third pin respectively. Specifically, the magnetic reed switch is configured to control the first pin to be connected with one of the second pin and the third pin according to the switch state of the household appliance; the detection module is configured to output a first target signal to a first detection end of a processor of the household appliance and output a second target signal to a second detection end of the processor under the action of the preset level, so as to indicate the switch state of the household appliance to the processor. Moreover, the first target signal and the second target signal are both one of a first level signal and a second level signal.
[0050] As can be seen from the above description, the magnetic reed switch can change the connection relationship among the first pin, the second pin and the third pin when the household appliance is opened or closed. The detection module can output two target signals (i.e. two level signals) to the processor of the household appliance according to the connection relationship between the first pin and the second pin and the connection relationship between the first pin and the third pin, so that the processor can recognize the connection relationship of each pin of the magnetic reed switch.
[0051] Since the two level signals output by the detection module can be high level or low level, the two level signals can have a plurality of different combinations. Even if the magnetic reed switch or the detection module fails, the detection module will not output the same level combination when the household appliance is opened as when the household appliance is closed, or output the same level combination when the household appliance is closed as when the household appliance is closed.
[0052] In this way, even if the magnetic reed switch or the detection module fails, the two level signals output by the detection module can indicate the switch state of the household appliance. Even if the capacitor in the magnetic reed switch or the detection module fails, the processor can accurately recognize the corresponding switch state, thereby solving the technical problems proposed in the background art. BRIEF DESCRIPTION OF DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiments will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0054] Figure 1 A schematic diagram of a household appliance provided by the embodiment of the present application;
[0055] Figure 2 A structure schematic diagram of a first switch state detection circuit provided for an embodiment of the present application is shown in FIG. 1.
[0056] Figure 3 A structure schematic diagram of a second switch state detection circuit provided for an embodiment of the present application is shown in FIG. 2.
[0057] Figure 4 A structure schematic diagram of a third switch state detection circuit provided for an embodiment of the present application is shown in FIG. 3.
[0058] Figure 5 A structure schematic diagram of a fourth switch state detection circuit provided for an embodiment of the present application is shown in FIG. 4.
[0059] Figure 6 A structure schematic diagram of a fifth switch state detection circuit provided for an embodiment of the present application is shown in FIG. 5.
[0060] Figure 7 A structure schematic diagram of a sixth switch state detection circuit provided for an embodiment of the present application is shown in FIG. 6.
[0061] Figure 8 A structure schematic diagram of a seventh switch state detection circuit provided for an embodiment of the present application is shown in FIG. 7.
[0062] Figure 9 A structure schematic diagram of an eighth switch state detection circuit provided for an embodiment of the present application is shown in FIG. 8.
[0063] Figure 10 A structure schematic diagram of a ninth switch state detection circuit provided for an embodiment of the present application is shown in FIG. 9. DETAILED DESCRIPTION
[0064] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the following will further describe the specific technical solutions of the present application with reference to the drawings in the embodiments of the present application. The following embodiments are used to explain the present application, but are not used to limit the scope of the present application.
[0065] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description herein is for describing the embodiments of the present application only and is not intended to limit the present application.
[0066] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.
[0067] It should be noted that the terms "first", "second", and "third" in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific order of the objects. It can be understood that the "first", "second", and "third" can be interchanged in a specific order or sequence as allowed, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0068] In the related art, in order to make the household appliance provided with the door body know whether the current state is a closed door state or an open door state, the related skilled person generally also sets a corresponding circuit in the household appliance to detect and identify the opening and closing state of the door body. Specifically, in a common detection circuit, a reed switch is generally provided, and a filtering capacitor is provided on one pin of the reed switch, and the pin of the reed switch outputs opposite level signals in the open door state and the closed door state, respectively, and the processor can determine whether the current state is an open door or a closed door according to the level signal output by the pin of the reed switch.
[0069] However, in the case of short circuit of the reed switch or the capacitor, the related art solution will have the problem that the level signal output by the reed switch will not change. That is, this solution has the problem that once the reed switch or the capacitor is short-circuited, the opening and closing state cannot be identified.
[0070] Therefore, the embodiments of the present application provide a switching state detection circuit applied to a household appliance. The switching state detection circuit comprises a magnetic reed switch and a detection module. The magnetic reed switch comprises a first pin, a second pin and a third pin. The first pin is configured to input a preset level. The detection module is connected to the second pin and the third pin, respectively. The magnetic reed switch is configured to control the first pin to be connected to one of the second pin and the third pin according to the opening and closing state of the household appliance. The detection module is configured to output a first level signal or a second level signal to a first detection end of a processor of the household appliance and output the first level signal or the second level signal to a second detection end of the processor under the action of the preset level, so as to indicate the opening and closing state of the household appliance to the processor. In this way, the opening and closing state of the door body of the household appliance can be accurately identified even if the magnetic reed switch or the detection module fails.
[0071] The embodiments of the present application take the switching state detection circuit applied to a household appliance as an example for description. However, it does not mean that the embodiments of the present application can only be applied to the detection of the switching state of the household appliance.
[0072] Optionally, the household appliance can include but is not limited to a washing machine (a drum washing machine or a drum washing machine), a refrigerator, and a microwave oven. That is, the household appliance can be any appliance with a door body, and the embodiments of the present application do not limit this.
[0073] Exemplarily, Figure 1 is a schematic diagram of a household appliance provided by an embodiment of the present application, referring to Figure 1 , the household appliance can be Figure 1 , the household appliance can be Figure 1 , the household appliance can be
[0074] Specifically, the household appliance can also include a power supply device, a display device, a refrigeration system, and / or an electric motor and other any possible devices. Moreover, the household appliance can also include any processor with processing, control, identification, operation, etc. functions, which can be any micro control unit or controller in the household appliance, and the present application is not limited thereto.
[0075] The switch state detection circuit provided by the present application is explained in detail as follows.
[0076] Figure 2 is a structural schematic diagram of a switch state detection circuit provided by the present application, and the circuit 300 can be applied to any household appliance described above.
[0077] Specifically, referring to Figure 2 , the present application provides a switch state detection circuit, and the circuit 300 includes:
[0078] The magnetic reed switch 301 includes a first pin A1, a second pin A2, and a third pin A3, the first pin A1 is used for inputting a preset level, and the magnetic reed switch 301 is configured to:
[0079] According to the switch state of the household appliance, the first pin A1 is connected to one of the second pin A2 and the third pin A3.
[0080] The detection module 302 is connected to the second pin A2 and the third pin A3 respectively, and the detection module 302 is configured to:
[0081] Under the action of the preset level, the first target signal is output to the first detection end of the processor of the household appliance, and the second target signal is output to the second detection end of the processor, so as to indicate the switch state of the household appliance to the processor.
[0082] Moreover, the first end and the second end of the detection module 302 can be connected to the second pin A2 and the third pin A3 respectively, and the third end and the fourth end of the detection module 302 can be connected to the first detection end and the second detection end of the processor respectively.
[0083] Generally, the first detection end of the processor corresponds to the second pin A2, and the second detection end of the processor corresponds to the third pin A3.
[0084] Optionally, the magnetic reed switch 301 is a dry reed tube, specifically an electric switch that can be turned on or off by changing a magnetic field. The first pin A1 can serve as a common end of the magnetic reed switch 301, and under the action of a magnetic field around the magnetic reed switch 301, the first pin A1 can be connected to the second pin A2, or the first pin A1 can be connected to the third pin A3.
[0085] For example, the household appliance can be provided with a magnet capable of generating a magnetic field, which can be arranged on the door body of the household appliance. Specifically, when the household appliance is in a closed state, the magnetic field generated by the magnet in the household appliance is close to the magnetic reed switch 301, so that the reed in the magnetic reed switch 301 is magnetized. When the magnetic field strength is large enough, the reed in the magnetic reed switch 301 will be attracted together, so that the magnetic reed switch 301 can be turned on; when the household appliance is in an open state, the magnetic field generated by the magnet in the household appliance is away from the magnetic reed switch 301, so that the reed in the magnetic reed switch 301 gradually demagnetizes. When the magnetic field strength is small, the reed in the magnetic reed switch 301 will separate, so that the magnetic reed switch 301 can be turned off.
[0086] For another example, when the household appliance is in an open state, the first pin A1 can be connected to the second pin A2 (for example, when the magnetic reed switch 301 is turned off); when the household appliance is in a closed state (for example, when the magnetic reed switch 301 is turned on), the first pin A1 can be connected to the third pin A3.
[0087] Alternatively, when the household appliance is in an open state, the first pin A1 can be connected to the third pin A3 (for example, when the magnetic reed switch 301 is turned off); when the household appliance is in a closed state (for example, when the magnetic reed switch 301 is turned on), the first pin A1 can be connected to the second pin A2. The specific arrangement can be determined according to actual needs, which is not limited in the embodiments of the present application.
[0088] Optionally, the preset level can be any possible level signal, for example, the preset level can be a low level or a high level. The embodiments of the present application do not make any limitation in this regard.
[0089] Optionally, the detection module 302 can be any circuit or module capable of outputting two level signals to the processor according to the switching state of the household appliance and / or the switching state of the magnetic reed switch 301.
[0090] The switching state of the household appliance specifically refers to the switching state of the door body of the household appliance, that is, indicating whether the household appliance is open or closed.
[0091] Specifically, in the case that the magnetic reed switch 301 is not faulty and works normally, the level signal output by the detection module 302 to the processor can be determined by the preset level. For example, if the preset level is high, in the case that the first pin A1 and the second pin A2 are connected, the preset level is applied to the second pin A2 through the first pin A1, so that the detection module 302 can output a high level signal to the detection end of the processor corresponding to the second pin A2; in the case that the first pin A1 and the second pin A2 are not connected, the preset level cannot be applied to the second pin A2, and at this time the detection module 302 can output a low level signal to the detection end of the processor corresponding to the second pin A2.
[0092] In addition, if the preset level is low, in the case that the first pin A1 and the second pin A2 are connected, the preset level is applied to the second pin A2 through the first pin A1, so that the detection module 302 can output a low level signal to the detection end of the processor corresponding to the second pin A2; in the case that the first pin A1 and the second pin A2 are not connected, the preset level cannot be applied to the second pin A2, and at this time the detection module 302 can output a high level signal to the detection end of the processor corresponding to the second pin A2.
[0093] Similarly, the detection module 302 can output a signal to the detection end of the processor corresponding to the third pin A3 in the same way as described above, and the embodiments of the present application will not be described here.
[0094] Generally, the detection module 302 can have filtering and other functions to make the level signal output by the detection module 302 to the processor as stable, accurate and reliable as possible, and in this case, the detection module 302 can include a capacitor. The detection module 302 can also have current limiting, voltage dividing and other functions to avoid damaging the port of the processor as much as possible, and in this case, the detection module 302 can include a resistor.
[0095] Optionally, the first target signal and the second target signal can be level signals. For example, the first target signal and the second target signal are each one of a first level signal and a second level signal. That is, the first target signal can include the first level signal or the second level signal, and the second target signal can also include the first level signal or the second level signal. Moreover, the first level signal and the second level signal can be low level signals or high level signals.
[0096] Specifically, the first level signal and the second level signal are opposite. Moreover, the levels of the first level signal and the second level signal can be set according to actual needs, and generally, only need to be opposite under the condition that the reed switch 301 and the detection module 302 are both normal. That is, if the first level signal is low, then the second level signal is high; if the first level signal is high, then the second level signal is low. The embodiment of the present application does not make any limitation in this regard.
[0097] Moreover, when the detection module 302 outputs a signal to the processor, two target signals (i.e., two level signals) can be output to the first detection end and the second detection end of the processor at the same time. Specifically, one level signal can be output to the first detection end and the second detection end of the processor through the third end and the fourth end of the detection module 302, respectively, to indicate whether the first pin A1 and the second pin A2 are connected and whether the first pin A1 and the third pin A3 are connected, respectively, so as to facilitate the processor to determine the switch state of the reed switch 301 and the household appliance according to the two level signals received from the detection module 302.
[0098] For example, assuming that the first level signal is high and the second level signal is low, under the condition that the household appliance is opened and the reed switch 301 and the detection module 302 are both normal, the detection module 302 can output the first level signal to the first detection end of the processor and output the second level signal to the second detection end of the processor; under the condition that the household appliance is closed, the detection module 302 can output the second level signal to the first detection end of the processor and output the first level signal to the second detection end of the processor.
[0099] For another example, under the condition that the reed switch 301 is not faulty and can work normally, the reed switch 301 can be configured to connect the first pin A1 and the second pin A2 and disconnect the first pin A1 and the third pin A3 when the household appliance is opened, and disconnect the first pin A1 and the second pin A2 and connect the first pin A1 and the third pin A3 when the household appliance is closed. Alternatively, the reed switch 301 can be configured to disconnect the first pin A1 and the second pin A2 and connect the first pin A1 and the third pin A3 when the household appliance is opened, and connect the first pin A1 and the second pin A2 and disconnect the first pin A1 and the third pin A3 when the household appliance is closed. The configuration can be set according to actual needs, and the embodiment of the present application does not make any limitation in this regard.
[0100] It should be noted that, for example, if the first detection end of the processor corresponds to the second pin A2 of the magnetic reed switch 301, and the second detection end of the processor corresponds to the third pin A3 of the magnetic reed switch 301, then, under normal circumstances of the magnetic reed switch 301 and the detection module 302, when the household appliance is in an open door state (when the magnetic reed switch 301 is off), the detection module 302 can output a high-level first level signal to the first detection end of the processor and a low-level second level signal to the second detection end of the processor; when the household appliance is in a closed door state (when the magnetic reed switch 301 is on), the detection module 302 can output a low-level second level signal to the first detection end of the processor and a high-level first level signal to the second detection end of the processor. In this way, the processor can determine the current switching state of the magnetic reed switch 301 and / or the household appliance according to the level combination of the signals received by the first detection end and the second detection end.
[0101] Based on the above example, if the first detection end of the processor receives a high-level first level signal and the second detection end receives a low-level second level signal, the processor can determine that the first pin A1 and the second pin A2 are currently connected, the first pin A1 and the third pin A3 are currently not connected, and further determine that the household appliance is currently in an open door state; if the first detection end of the processor receives a low-level second level signal and the second detection end receives a high-level first level signal, the processor can determine that the first pin A1 and the second pin A2 are currently not connected, the first pin A1 and the third pin A3 are currently connected, and further determine that the household appliance is currently in a closed door state.
[0102] However, in actual application, the magnetic reed switch 301 may fail, causing short circuits between the pins, which may cause the first pin A1 of the magnetic reed switch 301 to be continuously connected to the second pin A2 or the third pin A3, regardless of whether the household appliance is in an open door state or a closed door state.
[0103] For example, continuing with the above example, if the first pin Al and the second pin A2 of the magnetic reed switch 301 are short-circuited, the first pin Al and the second pin A2 are continuously connected, which can cause the detection module 302 to continuously output the first level signal of high level to the first detection end of the processor regardless of whether the household appliance is in the open door state or the closed door state; if the first pin Al and the third pin A3 of the magnetic reed switch 301 are short-circuited, the first pin Al and the third pin A3 are continuously connected, which can cause the detection module 302 to continuously output the first level signal of high level to the second detection end of the processor regardless of whether the household appliance is in the open door state or the closed door state.
[0104] However, since the detection module 302 can output a level signal to the first detection end and the second detection end of the processor of the household appliance at the same time, the processor can receive two level signals at the same time. For example, even if the second pin A2 is short-circuited with the first pin Al, the detection module 302 outputs the first level signal of high level to the first detection end of the processor and the second level signal of low level to the second detection end of the processor when the household appliance is in the open door state; the detection module 302 outputs the first level signal of high level to the first detection end of the processor and the first level signal of high level to the second detection end of the processor when the household appliance is in the closed door state.
[0105] Even if the third pin A3 is short-circuited with the first pin Al, the detection module 302 outputs the first level signal of high level to the first detection end of the processor and the first level signal of high level to the second detection end of the processor when the household appliance is in the open door state; the detection module 302 outputs the second level signal of low level to the first detection end of the processor and the first level signal of high level to the second detection end of the processor when the household appliance is in the closed door state.
[0106] In this way, the processor can receive two level signals of different level combinations when the switch state of the household appliance changes, so as to determine the current switch state of the household appliance. Specifically, based on the above example, if the level signal received by the first detection end of the processor is the first level signal of high level and the level signal received by the second detection end of the processor is the second level signal of low level in the initial state; then, after the level signals received by the processor change, if the level signals received by the first detection end and the second detection end of the processor are both the first level signal of high level, the processor can determine that the second pin A2 is currently short-circuited with the first pin Al and the household appliance is currently in the closed door state.
[0107] It can be seen that in the switch state detection circuit 300 provided in the embodiment of the present application, even if one of the second pin A2 and the third pin A3 of the magnetic reed switch 301 is short-circuited with the first pin A1, the processor can determine the current switch state of the household appliance based on the two signals output by the detection module 302, and can also determine the pin of the magnetic reed switch 301 that is currently short-circuited.
[0108] It should be noted that since the detection module 302 can include a ground capacitor for filtering the first detection end or the second detection end of the processor, respectively, in the case of a short circuit of the ground capacitor, the detection module 302 can continuously output a low-level signal to the corresponding detection end of the processor regardless of whether the household appliance is in the open-door state or the closed-door state.
[0109] However, in the embodiment of the present application, even if the ground capacitor for filtering the first detection end of the processor is short-circuited, the detection module 302 outputs a low-level second signal to the first detection end of the processor and a low-level second signal to the second detection end of the processor when the household appliance is in the open-door state, and outputs a low-level second signal to the first detection end of the processor and a high-level first signal to the second detection end of the processor when the household appliance is in the closed-door state.
[0110] Even if the ground capacitor for filtering the second detection end of the processor is short-circuited, the detection module 302 outputs a high-level first signal to the first detection end of the processor and a low-level second signal to the second detection end of the processor when the household appliance is in the open-door state, and outputs a low-level second signal to the first detection end of the processor and a low-level second signal to the second detection end of the processor when the household appliance is in the closed-door state.
[0111] In this way, the processor can receive two level signals of different level combinations when the switch state of the household appliance changes, so as to determine the current switch state of the household appliance. Specifically, based on the above example, if the level signals received by the first detection end and the second detection end of the processor are low-level second signals in the initial state, and then after the level signals received by the processor change, if the level signal received by the first detection end of the processor is a low-level second signal and the level signal received by the second detection end of the processor is a high-level first signal, the processor can determine that the ground capacitor for filtering the first detection end of the processor is short-circuited and that the household appliance is currently in the closed-door state.
[0112] It can be seen that, in the switch state detection circuit 300 provided in the embodiment of the present application, even if one of the second pin A2 and the third pin A3 of the magnetic reed switch 301 is short-circuited with the first pin A1, the processor can determine the current switch state of the household appliance based on the two level signals output by the detection module 302, and can also determine the pin of the magnetic reed switch 301 that is currently short-circuited.
[0113] It should be understood that the above examples are provided for the purpose of explaining and illustrating the circuit 300 provided in the present application, and do not represent that the circuit 300 provided in the present application can only be set in the above manner. In actual application, a person skilled in the art can make any possible adjustment according to actual needs. Moreover, other any possible embodiments can be derived with reference to the above examples. The embodiment of the present application does not limit this.
[0114] In the embodiment of the present application, the magnetic reed switch 301 and the detection module 302 are arranged in the circuit 300, and the magnetic reed switch 301 includes the first pin A1, the second pin A2 and the third pin A3, the first pin is used for inputting a preset level; the detection module 302 is connected with the second pin A2 and the third pin A3 respectively. Specifically, the magnetic reed switch 301 is configured to control the first pin A1 to be connected with one of the second pin A2 and the third pin A3 according to the switch state of the household appliance; the detection module 302 is configured to output a first target signal to a first detection end of a processor of the household appliance and output a second target signal to a second detection end of the processor under the action of the preset level, so as to indicate the switch state of the household appliance to the processor. Moreover, the first target signal and the second target signal are both one of the first level signal and the second level signal.
[0115] As can be seen from the above description, the magnetic reed switch 301 can change the connection relationship between the first pin A1, the second pin A2 and the third pin A3 when the household appliance is opened or closed. The detection module 302 can output two target signals (i.e. two level signals) to the processor of the household appliance according to the connection relationship between the first pin A1 and the second pin A2 and the connection relationship between the first pin A1 and the third pin A3, so that the processor can recognize the connection relationship of each pin of the magnetic reed switch 301.
[0116] Since the two level signals output by the detection module 302 can be high or low, the two level signals can have a plurality of different combinations. Even if the magnetic reed switch 301 or the detection module 302 has some faults, the detection module 302 will not output the same level combination when the household appliance is opened as when the household appliance is closed, or output the same level combination when the household appliance is closed as when the household appliance is closed.
[0117] In this way, even if the magnetic reed switch 301 or the detection module 302 has a fault, the two level signals output by the detection module 302 can indicate the opening and closing state of the household appliance. The processor can accurately identify the corresponding opening and closing state even if the capacitor in the magnetic reed switch 301 or the detection module 302 has a fault.
[0118] In this way, the accuracy and reliability of detecting the opening and closing state can be improved. When the circuit 300 is applied to a household appliance, the household appliance can be prevented from running in a situation where there is a safety risk due to the inability to accurately determine the opening and closing state of the door body of the household appliance, thereby reducing the risk of injury to the user.
[0119] In one possible implementation, referring to Figure 3 The detection module 302 includes:
[0120] The first detection unit 3021 connected to the second pin A2, the first detection unit 3021 being configured to:
[0121] Under the action of the preset level, output the first level signal or the second level signal to the first detection end of the processor.
[0122] The second detection unit 3022 connected to the third pin A3, the second detection unit 3022 being configured to:
[0123] Under the action of the preset level, output the first level signal or the second level signal to the second detection end of the processor.
[0124] In this embodiment, the specific structures of the first detection unit 3021 and the second detection unit 3022 can be the same or different.
[0125] In general, the first detection unit 3021 is also connected to the first detection end of the processor, that is, the first detection unit 3021 corresponds to the first detection end of the processor and the second pin A2 respectively. The second detection unit 3022 is also connected to the second detection end of the processor, that is, the first detection unit 3021 corresponds to the first detection end of the processor and the second pin A2 respectively.
[0126] Exemplarily, the first detection unit 3021 outputs a first level signal to the processor of the household appliance in the case of low level enablement, and outputs a second level signal to the processor in the case of high level enablement.
[0127] In addition, the second detection unit 3022 outputs the second level signal to the processor in the case of low level enablement, and outputs the first level signal to the processor in the case of high level enablement of the second detection unit 3022.
[0128] Optionally, the low level enablement of the first detection unit 3021 can refer to any one or more of the following possible cases: the case where the preset level is low level and the first pin A1 and the second pin A2 are connected (at this time, the preset level of low level is applied to the second pin A2 through the first pin A1); the case where the preset level is high level and the first pin A1 and the second pin A2 are disconnected (at this time, the preset level of high level cannot be applied to the second pin A2); the case where a ground capacitor for filtering in the first detection unit 3021 is short-circuited (at this time, the first detection end of the processor is grounded through the ground capacitor).
[0129] The high level enablement of the first detection unit 3021 can refer to any one or more of the following possible cases: the case where the preset level is high level and the first pin A1 and the second pin A2 are connected (at this time, the preset level of high level is applied to the second pin A2 through the first pin A1); the case where the preset level is low level and the first pin A1 and the second pin A2 are disconnected (at this time, the preset level of low level cannot be applied to the second pin A2).
[0130] Optionally, the low level enablement of the second detection unit 3022 can refer to any one or more of the following possible cases: the case where the preset level is low level and the first pin A1 and the third pin A3 are connected (at this time, the preset level of low level is applied to the third pin A3 through the first pin A1); the case where the preset level is high level and the first pin A1 and the third pin A3 are disconnected (at this time, the preset level of high level cannot be applied to the third pin A3); the case where a ground capacitor for filtering in the second detection unit 3022 is short-circuited (at this time, the second detection end of the processor is grounded through the ground capacitor).
[0131] The high level enable of the second detection unit 3022 can refer to any one or more of the following possible cases: the preset level is high level, and the first pin A1 and the third pin A3 are connected (at this time, the preset level of high level is applied to the third pin A3 through the first pin A1); the preset level is low level, and the first pin A1 and the third pin A3 are disconnected (at this time, the preset level of low level cannot be applied to the third pin A3).
[0132] For a clearer explanation, the specific circuit structure of the first detection unit 3021 and the second detection unit 3022 is exemplarily described below.
[0133] In a possible implementation manner, referring to Figure 4 , the first detection unit 3021 comprises:
[0134] The first capacitor C1 has a first plate connected to the ground, and a second plate connected to the second pin A2 and the first detection end of the processor respectively.
[0135] The first detection unit 3021 is further configured to pull down the voltage of the first detection end of the processor in the case that the first capacitor C1 is short-circuited.
[0136] Optionally, the first capacitor C1 can be any possible capacitor, which can be specifically used for filtering the level signal output to the first detection end of the processor.
[0137] Further, referring to Figure 4 , the second plate of the first capacitor C1 and the first detection end of the processor can further input a corresponding working voltage.
[0138] In addition, the working voltage input by the second plate of the first capacitor C1 can be adjusted according to the preset level, for example, if the preset level is high level, the working voltage input by the first capacitor C1 can be 0V voltage; if the preset level is low level, the working voltage input by the first capacitor C1 can be any voltage that can be recognized as a high level signal by the processor. The embodiments of the present application do not limit this.
[0139] Exemplarily, if the preset level is low level, the first detection unit 3021 will output a low level signal to the first detection end of the processor in the case that the first capacitor C1 is not short-circuited and the first pin A1 and the second pin A2 are connected; and the first detection unit 3021 will output a high level signal to the first detection end of the processor in the case that the first capacitor C1 is not short-circuited and the first pin A1 and the second pin A2 are not connected.
[0140] If the preset level is high, the first detection unit 3021 outputs a high level signal to the first detection end of the processor when the first capacitor C1 is not short-circuited and the first pin A1 is connected to the second pin A2; and the first detection unit 3021 outputs a low level signal to the first detection end of the processor when the first capacitor C1 is not short-circuited and the first pin A1 is not connected to the second pin A2.
[0141] Irrespective of whether the preset level is high or low, if the first capacitor C1 is short-circuited, the first detection end of the processor is grounded through the first capacitor C1, that is, the first detection unit 3021 continuously outputs a low level signal to the first detection end of the processor.
[0142] In this way, the first detection unit 3021 can output a corresponding level signal to the first detection end of the processor according to the connection relationship between the first pin A1 and the second pin A2 and the short-circuit state of the first capacitor C1, so that the processor can identify the connection relationship between the first pin A1 and the second pin A2 and the switch state of the household appliance.
[0143] In a possible implementation, referring to Figure 5 If the preset level is low, the first detection unit 3021 can further include:
[0144] The first resistor R1 has a first end connected to the second plate of the first capacitor C1, and a second end for inputting a first working voltage.
[0145] In this case, the first detection unit 3021 can further include:
[0146] The second resistor R2 has a first end connected to the second plate of the first capacitor C1 and the second pin A2 respectively, and a second end for connecting the first detection end of the processor.
[0147] Optionally, the first resistor R1 can be a voltage dividing resistor or a current limiting resistor to protect the first detection end of the processor from being damaged, and the first resistor R1 can also be used to reduce electromagnetic interference.
[0148] Optionally, the first working voltage can be any voltage that can be recognized as a high level signal by the processor. For example, if the first detection end of the processor can recognize a voltage greater than 3V as a high level signal, the first working voltage can be any voltage greater than 3V.
[0149] Optionally, the second resistor R2 can be a current limiting resistor to reduce the current value flowing through the first detection unit 3021, thereby protecting the first detection end of the processor from being damaged.
[0150] It can be understood that, since the preset level is low and the second end of the first resistor R1 is used to input the first working voltage, in the case that the first pin A1 and the second pin A2 are connected, the first detection end of the processor is pulled low by the preset level through the first detection unit 3021, the second pin A2 and the first pin A1, that is, the first detection unit 3021 outputs a low level signal to the first detection end of the processor.
[0151] In the case that the first pin A1 and the second pin A2 are not connected, the first detection end of the processor is pulled high by the first working voltage input through the first resistor R1, that is, the first detection unit 3021 outputs a high level signal to the first detection end of the processor.
[0152] In addition, in the case that the first capacitor C1 is short-circuited, then the first detection end of the processor is grounded through the first capacitor C1. At this time, the first detection unit 3021 will continue to output a low level signal to the first detection end of the processor.
[0153] It is worth noting that in this way, the first detection unit 3021 can output corresponding level signals to the first detection end of the processor according to the connection relationship between the first pin A1 and the second pin A2 and the short-circuit state of the first capacitor C1, so that the processor can identify the connection relationship between the first pin A1 and the second pin A2 and the switch state of the household appliance. Moreover, under the action of the first resistor R1 and / or the second resistor R2, the stability and safety of the signal output by the first detection unit 3021 can be improved.
[0154] In a possible implementation manner, referring to Figure 6 In the case that the preset level is high (that is, VCC0 in the above formula), the first detection unit 3021 can further include: Figure 6
[0155] A third resistor R3, a first end of the third resistor R3 is connected with the second plate of the first capacitor C1, and a second end of the third resistor R3 is used to be grounded.
[0156] In this case, the first detection unit 3021 can further include:
[0157] A fourth resistor R4, a first end of the fourth resistor R4 is connected with the second plate of the first capacitor C1 and the second pin A2 respectively, and a second end of the fourth resistor R4 is used to connect the first detection end of the processor.
[0158] Optionally, the third resistor R3 can be used as a current-limiting resistor to protect the first detection end of the processor, and the third resistor R3 can also be used to reduce electromagnetic interference.
[0159] Optionally, because the second end of the third resistor R3 is grounded, in this case, the working voltage of the second plate of the first capacitor C1 and the first detection end of the processor can be regarded as 0.
[0160] Optionally, the fourth resistor R4 can be used as a current limiting resistor to reduce the current value flowing through the first detection unit 3021, thereby protecting the first detection end of the processor from being damaged.
[0161] It can be understood that, because the preset level is a low level and the second end of the third resistor R3 is grounded, in the case where the first pin A1 and the second pin A2 are connected, the first detection end of the processor is pulled high by the preset level through the first detection unit 3021, the second pin A2 and the first pin A1, that is, the first detection unit 3021 outputs a high level signal to the first detection end of the processor.
[0162] In the case where the first pin A1 and the second pin A2 are not connected, the first detection end of the processor is grounded through the third resistor R3, that is, the first detection unit 3021 outputs a low level signal to the first detection end of the processor.
[0163] In addition, in the case where the first capacitor C1 is short-circuited, the first detection end of the processor is grounded through the first capacitor C1. At this time, the first detection unit 3021 continuously outputs a low level signal to the first detection end of the processor.
[0164] It is worth noting that in this way, the first detection unit 3021 can output a corresponding level signal to the first detection end of the processor according to the connection relationship between the first pin A1 and the second pin A2 and the short-circuit state of the first capacitor C1, so that the processor can identify the connection relationship between the first pin A1 and the second pin A2 and the switch state of the household appliance. Moreover, under the action of the third resistor R3 and / or the fourth resistor R4, the stability and safety of the signal output by the first detection unit 3021 can be improved.
[0165] As can be seen from the above, the circuit 300 provided by the embodiment of the present application provides a plurality of structures of the first detection unit 3021, and a person skilled in the related art can select and set according to actual needs, that is, the circuit 300 has higher diversity and flexibility.
[0166] In a possible implementation manner, continuing to refer to Figure 4 , the second detection unit 3022 includes:
[0167] The second capacitor C2, the first plate of the second capacitor C2 is grounded, and the second plate of the second capacitor C2 is connected with the third pin A3 and the second detection end of the processor respectively.
[0168] The second detection unit 3022 is also configured to pull down the voltage of the second detection end of the processor in the case that the second capacitor C2 is short-circuited.
[0169] Optionally, the second capacitor C2 can be any possible capacitor, and can be specifically configured to filter the level signal output to the second detection end of the processor.
[0170] Further, continuing to refer to Figure 4 , the second plate of the second capacitor C2 and the second detection end of the processor can also input a corresponding working voltage.
[0171] In addition, the working voltage input to the second plate of the second capacitor C2 can be adjusted according to the preset level, for example, if the preset level is a high level, the working voltage input to the second capacitor C2 can be 0V; if the preset level is a low level, the working voltage input to the second capacitor C2 can be any voltage that can be recognized as a high level signal by the processor. The embodiments of the present application do not make any limitation in this regard.
[0172] For example, if the preset level is a low level, in the case that the second capacitor C2 is not short-circuited and the first pin A1 and the third pin A3 are connected, the second detection unit 3022 will output a low level signal to the second detection end of the processor; in the case that the second capacitor C2 is not short-circuited and the first pin A1 and the third pin A3 are not connected, the second detection unit 3022 will output a high level signal to the second detection end of the processor.
[0173] If the preset level is a high level, in the case that the second capacitor C2 is not short-circuited and the first pin A1 and the third pin A3 are connected, the second detection unit 3022 will output a high level signal to the second detection end of the processor; in the case that the second capacitor C2 is not short-circuited and the first pin A1 and the third pin A3 are not connected, the second detection unit 3022 will output a low level signal to the second detection end of the processor.
[0174] No matter whether the preset level is a high level or a low level, if the second capacitor C2 is short-circuited, the first detection end of the processor will be grounded through the first capacitor C1, that is, the second detection unit 3022 will continuously output a low level signal to the second detection end of the processor.
[0175] In this way, the second detection unit 3022 can output a corresponding level signal to the first detection end of the processor according to the connection relationship between the first pin A1 and the third pin A3 and the short-circuit state of the second capacitor C2, so as to enable the processor to identify the connection relationship between the first pin A1 and the third pin A3 and the switch state of the household appliance.
[0176] In a possible implementation manner, referring toFigure 7 In the case that the preset level is low, the second detecting unit 3022 can further comprise:
[0177] a fifth resistor R5, a first end of the fifth resistor R5 is connected with the second plate of the second capacitor C2, and a second end of the fifth resistor R5 is used for inputting the second working voltage.
[0178] In this case, the second detecting unit 3022 can further comprise:
[0179] a sixth resistor R6, a first end of the sixth resistor R6 is connected with the second plate of the second capacitor C2 and the third pin A3 respectively, and a second end of the sixth resistor R6 is used for connecting the second detecting end of the processor;
[0180] Optionally, the fifth resistor R5 can be a voltage dividing resistor or a current limiting resistor, so as to protect the second detecting end of the processor from being damaged, and the fifth resistor R5 can also be used for reducing electromagnetic interference.
[0181] Optionally, the second working voltage can be any voltage which can be recognized as a high level signal by the processor. For example, if the first detecting end of the processor can recognize a voltage greater than 3.3V as a high level signal, then the second working voltage can be any voltage greater than 3.3V.
[0182] Optionally, the sixth resistor R6 can be a current limiting resistor, so as to reduce the current value flowing through the second detecting unit 3022, and thus protect the second detecting end of the processor from being damaged.
[0183] It can be understood that, since the preset level is low and the second end of the fifth resistor R5 is used for inputting the second working voltage, in the case that the first pin A1 and the third pin A3 are connected, the second detecting end of the processor is pulled low by the preset level through the second detecting unit 3022, the third pin A3 and the first pin A1, that is, the second detecting unit 3022 outputs a low level signal to the second detecting end of the processor.
[0184] In the case that the first pin A1 and the third pin A3 are not connected, the second detecting end of the processor is pulled high by the second working voltage inputted through the fifth resistor R5, that is, the second detecting unit 3022 outputs a high level signal to the second detecting end of the processor.
[0185] In addition, in the case that the second capacitor C2 is short-circuited, then the second detecting end of the processor is grounded through the second capacitor C2. At this time, the second detecting unit 3022 will continuously output a low level signal to the second detecting end of the processor.
[0186] It is worth mentioning that in this way, the second detection unit 3022 can output corresponding level signals to the second detection end of the processor according to the connection relationship between the first pin A1 and the third pin A3 and the short circuit state of the second capacitor C2, so that the processor can identify the connection relationship between the first pin A1 and the third pin A3 and the switch state of the household appliance.
[0187] In addition, under the action of the fifth resistor R5 and / or the sixth resistor R6, the stability and safety of the signal output by the second detection unit 3022 can be improved.
[0188] For example, continuing to refer to Figure 5 and Figure 7 , it is assumed that in the case that the magnetic reed switch 301, the first detection unit 3021 and the second detection unit 3022 are all normal, when the household appliance is opened, the first pin A1 and the second pin A2 are connected, and the first pin A1 and the third pin A3 are disconnected; when the household appliance is closed, the first pin A1 and the second pin A2 are disconnected, and the first pin A1 and the third pin A3 are connected.
[0189] In the case that the preset level is low, the level signals output by the first detection unit 3021 and the second detection unit 3022 to the first detection end and the second detection end of the processor can be as shown in the following table based on the short circuit state of the first capacitor C1 and the second capacitor C2:
[0190]
[0191] In addition, based on the short circuit state between the pins of the magnetic reed switch 301, the level signals output by the first detection unit 3021 and the second detection unit 3022 to the first detection end and the second detection end of the processor can be as shown in the following table:
[0192]
[0193] It can be understood that “0” in the above table represents a low level signal, and “1” represents a high level signal. As can be seen, even if the first capacitor C1 or the second capacitor C2 is short-circuited (or one of the second pin A2 and the third pin A3 is short-circuited with the first pin A1), the first detection unit 3021 and the second detection unit 3022 can still send different signal combinations to the processor according to the switch state of the household appliance, and the signal combination indicating that the household appliance is closed is different from the signal combination indicating that the household appliance is opened. In this way, it is possible to avoid the problem that the processor misrecognizes or cannot recognize the switch state of the household appliance in the case of short circuit fault of part of the capacitors or part of the pins of the magnetic reed switch 301.
[0194] In a possible implementation manner, referring to Figure 8, the preset level is high (i.e. Figure 8 The second detection unit 3022 can further include:
[0195] A seventh resistor R7, a first end of the seventh resistor R7 is connected with the second plate of the second capacitor C2, and a second end of the seventh resistor R7 is grounded.
[0196] In this case, the second detection unit 3022 can further include:
[0197] An eighth resistor R8, a first end of the eighth resistor R8 is connected with the second plate of the second capacitor C2 and the third pin A3 respectively, and a second end of the eighth resistor R8 is connected with the second detection end of the processor.
[0198] Optionally, the seventh resistor R7 can be a current-limiting resistor to protect the second detection end of the processor, and the seventh resistor R7 can also be used to reduce electromagnetic interference.
[0199] Optionally, because the second end of the seventh resistor R7 is grounded, in this case, the working voltage input to the second plate of the second capacitor C2 and the second detection end of the processor can be considered as 0.
[0200] Optionally, the eighth resistor R8 can be a current-limiting resistor to reduce the current value flowing through the second detection unit 3022, thereby protecting the first detection end of the processor from being damaged.
[0201] It can be understood that, because the preset level is low, and the second end of the seventh resistor R7 is grounded, in the case that the first pin A1 and the third pin A3 are connected, the second detection end of the processor is pulled high by the preset level through the second detection unit 3022, the third pin A3 and the first pin A1, i.e., the second detection unit 3022 outputs a high-level signal to the second detection end of the processor.
[0202] In the case that the first pin A1 and the third pin A3 are not connected, the second detection end of the processor is grounded through the seventh resistor R7, i.e., the second detection unit 3022 outputs a low-level signal to the second detection end of the processor.
[0203] In addition, in the case that the second capacitor C2 is short-circuited, then the second detection end of the processor is grounded through the second capacitor C2. At this time, the second detection unit 3022 will continuously output a low-level signal to the second detection end of the processor.
[0204] It is worth mentioning that in this way, the second detection unit 3022 can output corresponding level signals to the second detection end of the processor according to the connection relationship between the first pin A1 and the third pin A3 and the short circuit state of the second capacitor C2, so that the processor can identify the connection relationship between the first pin A1 and the third pin A3 and the switch state of the household appliance. Moreover, under the action of the seventh resistor R7 and / or the eighth resistor R8, the stability and safety of the signal output by the second detection unit 3022 can be improved.
[0205] For example, continuing to refer to Figure 6 and Figure 8 , it is assumed that in the case that the magnetic reed switch 301, the first detection unit 3021 and the second detection unit 3022 are all normal, when the household appliance is opened, the first pin A1 and the second pin A2 are connected, and the first pin A1 and the third pin A3 are disconnected; when the household appliance is closed, the first pin A1 and the second pin A2 are disconnected, and the first pin A1 and the third pin A3 are connected.
[0206] In the case that the preset level is a high level, the level signals output by the first detection unit 3021 and the second detection unit 3022 to the first detection end and the second detection end of the processor can be as shown in the following table based on the short circuit state of the first capacitor C1 and the second capacitor C2:
[0207]
[0208] In addition, based on the short circuit state between the pins of the magnetic reed switch 301, the level signals output by the first detection unit 3021 and the second detection unit 3022 to the first detection end and the second detection end of the processor can be as shown in the following table:
[0209]
[0210] It can be understood that “0” in the above table represents a low level signal, and “1” represents a high level signal. As can be seen, even if the first capacitor C1 or the second capacitor C2 is short-circuited (or one of the second pin A2 and the third pin A3 is short-circuited with the first pin A1), the first detection unit 3021 and the second detection unit 3022 can still send different signal combinations to the processor according to the switch state of the household appliance, and the signal combination indicating that the household appliance is closed is different from the signal combination indicating that the household appliance is opened. In this way, it is possible to avoid the problem that the processor misrecognizes or cannot recognize the switch state of the household appliance in the case of short circuit fault of part of the capacitors or part of the pins of the magnetic reed switch 301.
[0211] As can be seen, the circuit 300 provided by the embodiment of the present application provides a plurality of structures of the second detection unit 3022, and a person skilled in the art can select and set according to actual needs, that is, the circuit 300 has higher diversity and flexibility.
[0212] In a possible implementation, referring to Figure 9 The detection module 302 comprises:
[0213] The third detection unit 3023 connected with the second pin A2 and the third pin A3 respectively, the third detection unit 3023 is configured to:
[0214] In the case that the first pin A1 and the second pin A2 are disconnected, the first detection end of the processor of the household appliance is outputted with the first level signal, and in the case that the first pin A1 and the second pin A2 are connected, the first detection end of the processor is outputted with the second level signal.
[0215] In the case that the first pin A1 and the third pin A3 are disconnected, the second detection end of the processor is outputted with the first level signal, and in the case that the first pin A1 and the third pin A3 are connected, the second detection end of the processor is outputted with the second level signal.
[0216] Optionally, when the detection module 302 comprises the third detection unit 3023, the above-mentioned preset level can be a low level. Specifically, the first pin A1 of the magnetic reed switch 301 can be grounded.
[0217] Optionally, the third detection unit 3023 can be any module or circuit with a latching function, and the embodiment of the present application does not limit this.
[0218] In the embodiment, the first level signal and the second level signal are opposite. Moreover, since the preset level can be a low level, the first level signal can be a low level signal, and the second level signal can be a high level signal.
[0219] Exemplarily, taking the magnetic reed switch 301 configured to connect the first pin A1 and the second pin A2 and disconnect the first pin A1 and the third pin A3 when the household appliance is opened, and disconnect the first pin A1 and the second pin A2 and connect the first pin A1 and the third pin A3 when the household appliance is closed as an example.
[0220] Then, the third detection unit 3023 can output the second level signal to the first detection end of the processor of the household appliance and output the first level signal to the second detection end of the processor when the household appliance is opened, and output the first level signal to the first detection end of the processor and output the second level signal to the second detection end of the processor when the household appliance is closed. In this way, the processor can accurately identify the opening and closing state of the household appliance.
[0221] If the first pin A1 and the second pin A2 are short-circuited, the third detection unit 3023 can continuously output the second level signal to the first detection end of the processor. In this case, the third detection unit 3023 can output the second level signal to the first detection end of the processor of the household appliance and output the first level signal to the second detection end of the processor when the household appliance is opened, and output the second level signal to the first detection end and the second detection end of the processor when the household appliance is closed.
[0222] If the first pin A1 and the third pin A3 are short-circuited, the third detection unit 3023 can continuously output the second level signal to the second detection end of the processor. In this case, the third detection unit 3023 can output the second level signal to the first detection end and the second detection end of the processor of the household appliance when the household appliance is opened, and output the first level signal to the first detection end and output the second level signal to the second detection end of the processor when the household appliance is closed.
[0223] In this way, the third detection unit 3023 can output corresponding level signals to the first detection end of the processor according to the connection relationship between the first pin A1 and the second pin A2 and the connection relationship between the first pin A1 and the third pin A3, so that the processor identifies the connection relationship between the first pin A1, the second pin A2 and the third pin A3 and the opening and closing state of the household appliance.
[0224] Exemplarily, taking the case that the preset level is a low level, the first level signal is a low level and the second level signal is a high level as an example. Based on the short-circuiting conditions between the pins of the magnetic reed switch 301, the level signals output by the third detection unit 3023 to the first detection end and the second detection end of the processor can be as shown in the following table:
[0225]
[0226] It can be understood that "0" in the above table represents a low-level signal, and "1" represents a high-level signal. It can be seen that even if one of the second pin A2 and the third pin A3 is short-circuited with the first pin A1, the third detection unit 3023 can send different signal combinations to the processor according to the switch state of the household appliance, and the signal combination indicating that the household appliance is closed is different from the signal combination indicating that the household appliance is open. In this way, it is possible to avoid the problem of processor misidentification or inability to identify the switch state of the household appliance in the case of a short-circuit fault of part of the capacitor or part of the magnetic reed switch 301.
[0227] In a possible implementation, referring to Figure 10 , the third detection unit 3023 at least includes:
[0228] a latch S, a first input terminal of the latch S is connected with the second pin A2, and the first input terminal of the latch S is used to input a third working voltage (such as V3 shown in Figure 10 ), a second input terminal of the latch S is connected with a first output terminal of the latch S and a second detection terminal of the processor respectively, a third input terminal of the latch S is connected with the sixth pin, and the third input terminal of the latch S is used to input the third working voltage, and a fourth input terminal of the latch S is connected with a second output terminal of the latch S and a first detection terminal of the processor respectively;
[0229] The latch S is configured to:
[0230] output the first level signal to the first detection terminal of the processor of the household appliance in the case that the first pin A1 and the second pin A2 are disconnected, and output the second level signal to the first detection terminal of the processor in the case that the first pin A1 and the second pin A2 are connected;
[0231] output the first level signal to the second detection terminal of the processor in the case that the first pin A1 and the third pin A3 are disconnected, and output the second level signal to the second detection terminal of the processor in the case that the first pin A1 and the third pin A3 are connected.
[0232] Optionally, the latch S can be a unit or circuit with a latching function composed of any possible device. For example, the latch S can include a plurality of NAND logic circuits, and the embodiments of the present application do not limit this.
[0233] In the embodiment, the third working voltage can be any voltage that can be identified as a high-level input by the latch S and the NAND logic circuit in the latch S.
[0234] Specifically, continuing to refer to Figure 10The first input terminal of the first NAND logic unit Y1 is connected with the second pin A2 of the magnetic reed switch 301, the second input terminal of the first NAND logic unit Y1 is connected with the output terminal of the second NAND logic unit Y2 and the second detection terminal of the processor respectively, and the output terminal of the first NAND logic unit Y1 is connected with the first input terminal of the second NAND logic unit Y2 and the first detection terminal of the processor respectively.
[0235] The first input terminal of the first NAND logic unit Y1 is connected with the second pin A2 of the magnetic reed switch 301, the second input terminal of the first NAND logic unit Y1 is connected with the output terminal of the second NAND logic unit Y2 and the second detection terminal of the processor respectively, and the output terminal of the first NAND logic unit Y1 is connected with the first input terminal of the second NAND logic unit Y2 and the first detection terminal of the processor respectively.
[0236] The second input terminal of the second NAND logic unit Y2 is connected with the third pin A3 of the magnetic reed switch 301.
[0237] Alternatively, the first NAND logic unit Y1 and the second NAND logic unit Y2 are both the combination of AND gate and NOT gate, and specifically, the AND operation is performed first, and then the NOT operation is performed. The basic logic function of the first NAND logic unit Y1 and the second NAND logic unit Y2 is that when all the input terminals input high level, a low level signal is output; when at least one input terminal inputs low level, a high level signal is output.
[0238] It can be understood that, in the case that the second pin A2 is connected with the first pin A1, the first input terminal of the first NAND logic unit Y1 is grounded through the second pin A2 and the first pin A1, and at this time, the first input terminal of the first NAND logic unit Y1 can be regarded as inputting low level. In the case that the second pin A2 is disconnected with the first pin A1, the first input terminal of the first NAND logic unit Y1 is pulled high by the third working voltage, and at this time, the first input terminal of the first NAND logic unit Y1 can be regarded as inputting high level. Similarly, the relationship between the second NAND logic unit Y2 and the third working voltage can be referred to the above description, and the embodiments of the present application will not be described herein.
[0239] Therefore, by setting the first NAND logic unit Y1 and the second NAND logic unit Y2, the latch S can realize the above-mentioned configured function.
[0240] It is worth mentioning that, since the third detection unit 3023 and the latch S have the function of latching, the mechanical jitter that may exist in the circuit 300 can be eliminated, so as to improve the stability of the third detection unit 3023 and the level signal output from the third detection unit 3023 to the processor.
[0241] In one possible manner, continuing to refer to Figure 10 The ninth resistor R9, the tenth resistor R10, the third capacitor C3 and the fourth capacitor C4.
[0242] Wherein, the ninth resistor R9 and the tenth resistor R10 can be used as current limiting resistors. The third capacitor C3 and the fourth capacitor C4 can be used as filter capacitors. The specific connection relationship is shown in the figure, and the embodiments of the present application will not be repeated here.
[0243] It is worth noting that in the present embodiment, the third capacitor C3 and the fourth capacitor C4 serve to reduce voltage operating fluctuations to ensure voltage stability. Even if the third capacitor C3 and the fourth capacitor C4 are damaged, the impact on the circuit is relatively small, and generally will not have a substantial impact on the function of the third detection unit 3023, so that the processor cannot recognize the switching state of the household appliance due to the short circuit of the third capacitor C3 and the fourth capacitor C4.
[0244] Based on the foregoing embodiments, the embodiments of the present application also provide a household appliance, which can be any possible appliance such as a washing machine, a refrigerator, a microwave oven, etc., and the structure thereof can be as shown in Figure 1 .
[0245] Specifically, the household appliance can further include:
[0246] a cabinet for forming a storage space.
[0247] a door body rotatably connected with the cabinet for opening or closing the storage space.
[0248] and the switching state detection circuit 300 provided by any of the above embodiments.
[0249] The processor connected with the switching state detection circuit 300 is configured to receive the first target signal and the second target signal output by the switching state detection circuit 300, and determine the switching state of the door body based on the first target signal and the second target signal.
[0250] Those skilled in the art can understand that Figure 1 the structure shown in the figure is only a block diagram of part of the structure of the household appliance, and does not constitute a limitation on the household appliance to which the scheme of the present application is applied. The specific household appliance can include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.
[0251] It should be understood that every feature described hereinabove in relation to one embodiment or a certain aspect of the application can be combined with one or more other features described hereinabove in relation with another embodiment or another aspect of the application, unless specifically stated otherwise. It should also be understood that every part of this specification can be combined with every other part of this specification, unless specifically stated otherwise.
[0252] The term "and / or", as used herein, merely describes association between associated objects, and can represent three conditions: A and / or B; both A and B; or, A and B. The term "comprising" as used herein is intended to represent the terms "includes", "includes but not limited to", "including", "including but not limited to" or "including at least", "including but not limited to" but not limited to, and should not be interpreted as indicating "consisting of".
[0253] It should be noted that the terms "comprising", "including", "containing", "have" or "including", or any other similar term as used herein are intended to be taken in a non-exclusive sense, that is, in the sense of "including, but not limited to", and should not be interpreted as being limited to named elements. It will be appreciated that devices of the application can comprise several "means" for performing the same function, although such "means" can be referred to herein as a single "means". Thus, the singular
[0254] The features disclosed in the several product embodiments of the present application can be combined with each other, as long as there is no conflict, to obtain new product embodiments.
[0255] The above description is merely the preferred embodiments of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present application, which should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
[0256] The above description is merely the preferred embodiments of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present application, which should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A switching state detection circuit, characterized by comprising: The application is applied to household appliances; the circuit comprises: A magnetic reed switch comprising a first pin, a second pin and a third pin, the first pin being used for inputting a preset level, the magnetic reed switch being configured to: According to the switch state of the household appliance, the first pin is connected to one of the second pin and the third pin respectively; A detection module connected to the second pin and the third pin respectively, the detection module being configured to: Under the action of the preset level, output a first target signal to a first detection end of a processor of the household appliance and output a second target signal to a second detection end of the processor to indicate the switch state of the household appliance to the processor, wherein the first target signal and the second target signal are both one of a first level signal and a second level signal, and the first level signal and the second level signal are opposite.
2. The switch state detection circuit of claim 1, wherein, The detection module comprises: A first detection unit connected to the second pin, the first detection unit being configured to: Under the action of the preset level, output the first level signal or the second level signal to the first detection end of the processor; A second detection unit connected to the third pin, the second detection unit being configured to: Under the action of the preset level, output the first level signal or the second level signal to the second detection end of the processor.
3. The switch status detection circuit of claim 2, wherein, The first detection unit comprises: A first capacitor, a first plate of the first capacitor being grounded, and a second plate of the first capacitor being connected to the second pin and the first detection end of the processor respectively; The first detection unit is further used for pulling down the voltage of the first detection end of the processor in the case of short circuit of the first capacitor.
4. The switch status detection circuit of claim 3, wherein, In the case that the preset level is a low level, the first detection unit further comprises: A first resistor, a first end of the first resistor being connected to the second plate of the first capacitor, and a second end of the first resistor being used for inputting a first working voltage; A second resistor, a first end of the second resistor being connected to the second plate of the first capacitor and the second pin respectively, and a second end of the second resistor being used for connecting the first detection end of the processor.
5. The switch status detection circuit of claim 3, wherein, In the case that the preset level is a high level, the first detection unit further comprises: A third resistor, a first end of the third resistor being connected to the second plate of the first capacitor, and a second end of the third resistor being used for grounding; A fourth resistor, a first end of the fourth resistor being connected to the second plate of the first capacitor and the second pin respectively, and a second end of the fourth resistor being used for connecting the first detection end of the processor.
6. The switch status detection circuit of claim 2, wherein, The second detection unit comprises: A second capacitor, a first plate of the second capacitor being grounded, and a second plate of the second capacitor being connected to the third pin and the second detection end of the processor respectively; The second detection unit is further used for pulling down the voltage of the second detection end of the processor in the case of short circuit of the second capacitor.
7. The switch status detection circuit of claim 6, wherein, In the case that the preset level is a low level, the second detection unit further comprises: a fifth resistor, a first end of the fifth resistor being connected with the second plate of the second capacitor, and a second end of the fifth resistor being used for inputting a second working voltage; a sixth resistor, a first end of the sixth resistor being connected with the second plate of the second capacitor and the third pin respectively, and a second end of the sixth resistor being used for connecting a second detection end of the processor; Alternatively, in the case that the preset level is a high level, the second detection unit further comprises: a seventh resistor, a first end of the seventh resistor being connected with the second plate of the second capacitor, and a second end of the seventh resistor being used for grounding; an eighth resistor, a first end of the eighth resistor being connected with the second plate of the second capacitor and the third pin respectively, and a second end of the eighth resistor being used for connecting the second detection end of the processor.
8. The switch status detection circuit of claim 1, wherein, The detection module comprises: a third detection unit connected with the second pin and the third pin respectively, the third detection unit being configured to: output the first level signal to a first detection end of a processor of the household appliance in the case that the first pin and the second pin are disconnected, and output the second level signal to the first detection end of the processor in the case that the first pin and the second pin are connected; output the first level signal to a second detection end of the processor in the case that the first pin and the third pin are disconnected, and output the second level signal to the second detection end of the processor in the case that the first pin and the third pin are connected.
9. The switch status detection circuit of claim 8, wherein, The third detection unit at least comprises: a latch, a first input end of the latch being connected with the second pin, and a first input end of the latch being used for inputting a third working voltage, a second input end of the latch being connected with a first output end of the latch and a second detection end of the processor respectively, a third input end of the latch being connected with the sixth pin, and a third input end of the latch being used for inputting the third working voltage, and a fourth input end of the latch being connected with a second output end of the latch and a first detection end of the processor respectively; The latch is configured to: output the first level signal to a first detection end of a processor of the household appliance in the case that the first pin and the second pin are disconnected, and output the second level signal to the first detection end of the processor in the case that the first pin and the second pin are connected; output the first level signal to a second detection end of the processor in the case that the first pin and the third pin are disconnected, and output the second level signal to the second detection end of the processor in the case that the first pin and the third pin are connected.
10. A domestic appliance characterized in that, The household appliance at least comprises: a cabinet for forming a storage space; a door body rotatably connected with the cabinet, for opening or closing the storage space; the switch state detection circuit according to any one of the preceding claims 1-9; A processor connected with the switch state detection circuit is configured to receive the first target signal and the second target signal output by the switch state detection circuit, and determine the switch state of the door body based on the first target signal and the second target signal.