Automatic flushing device, urinal and automatic flushing method
By using a gradient sensing module in the urinary sensing device, the signal strength is adjusted through an adjustable resistor unit and an operational amplifier, the problem of insufficient induction sensitivity is solved, and more accurate user sensing and lower energy consumption automatic flush response is achieved.
Patent Information
- Application Number
- CN202410913218.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-11-12
AI Technical Summary
The existing urinary sensing devices have insufficient sensitivity to users under the requirements of energy saving, resulting in poor response to the automatic flushing function, especially when users are wearing dark clothes, resulting in misjudgment and increased energy consumption.
Using a gradient sensing module, through the combination of adjustable resistor unit and operational amplifier, the initial detection signal is emitted and the resistance size is adjusted according to the return signal, gradually enhancing the signal strength to ensure induction accuracy, while avoiding the increase in energy consumption of high signal strength for a long time and improving Sensitivity sensitivity.
Under the requirements of energy saving, the sensing sensitivity of the induction device to users is significantly improved, the misjudgment situation is reduced, the automatic flushing response effect of the urinal is improved, the service life of the equipment is extended and energy consumption is reduced.
Smart Images

Figure CN118933128A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of sanitary ware, and in particular to an automatic flushing device, a urinal and an automatic flushing method. Background Art
[0002] Urinal is a sanitary device that combines modern technology and convenience. It is usually equipped with various intelligent functions to provide a more comfortable and convenient use experience. Urinals are usually equipped with automatic flushing function to improve the convenience of use.
[0003] In the related art, a sensing device installed in a urinal is often used to sense the presence of a user so that an automatic flushing operation can be performed when the user leaves. However, under the requirement of energy saving, the sensing device will be interfered by various factors such as the user wearing dark clothes, and it is often unable to accurately sense the user, resulting in a poor response effect of the automatic flushing function. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to provide an automatic flushing device, a urinal and an automatic flushing method, aiming to improve the sensing sensitivity of the sensing device to the user under energy-saving requirements, thereby improving the automatic flushing response effect of the urinal.
[0005] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application provides an automatic flushing device, comprising:
[0006] A gradient sensing module, the gradient sensing module includes an adjustable resistance unit and an operational amplifier, one end of the adjustable resistance unit is electrically connected to the input end of the operational amplifier, the output end of the operational amplifier is electrically connected to the signal transmitter, and the signal transmitter is used to send a detection signal;
[0007] A control unit, the control unit includes a first signal output terminal, a signal receiving terminal and a control terminal, the first signal output terminal is electrically connected to the other end of the adjustable resistance unit to send an electrical signal to the adjustable resistance unit; the control terminal is electrically connected to the adjustable resistance unit to adjust the resistance of the adjustable resistance unit; the signal receiving terminal is electrically connected to the signal receiver to receive a return signal of the detection signal;
[0008] A flushing unit, the flushing unit is electrically connected to the second signal output terminal of the control unit;
[0009] Among them, the operational amplifier amplifies the electrical signal flowing through the adjustable resistance unit and outputs it to the signal transmitter, so that the signal transmitter sends out a detection signal; when the detection signal reaches a preset condition after being sent out, the control unit reduces the resistance of the adjustable resistance unit to obtain an updated adjustable resistance unit, and re-sends the electrical signal to the updated adjustable resistance unit, so that the signal transmitter sends out an enhanced detection signal, and uses the control unit to control the flushing state of the flushing unit according to the return signal of the detection signal.
[0010] In some embodiments, the adjustable resistor unit includes a plurality of adjustable resistors connected in parallel or in series, and each adjustable resistor is controlled by a corresponding resistor switch.
[0011] In some embodiments, the automatic flushing device further includes a power adapter component and a voltage conversion component electrically connected to each other, the power adapter component is connected to the mains, and the voltage conversion component is electrically connected to the control unit and the flushing unit, respectively.
[0012] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application provides a urinal, comprising the automatic flushing device of the above-mentioned first aspect.
[0013] To achieve the above object, a third aspect of the embodiment of the present application provides an automatic flushing method, including the automatic flushing device of the first aspect and the urinal of the second aspect. The automatic flushing method includes:
[0014] Based on the electrical signal sent by the control unit, an initial detection signal is sent to the target area, wherein the initial detection signal is obtained by amplifying the electrical signal flowing through the adjustable resistance unit by the operational amplifier and inputting it into the signal transmitter;
[0015] When the preset condition is met after the initial detection signal is sent, the control unit reduces the resistance of the adjustable resistance unit to obtain an updated adjustable resistance unit, and re-sends an enhanced detection signal to the target area, wherein the enhanced detection signal is obtained by the operational amplifier amplifying the electrical signal flowing through the updated adjustable resistance unit and inputting it into the signal transmitter;
[0016] Based on the signal receiver receiving the return signal corresponding to the enhanced detection signal, the flushing state of the flushing unit is controlled according to the return signal.
[0017] In some embodiments, reducing the resistance of the adjustable resistance unit by the control unit to obtain an updated adjustable resistance unit, and re-sending the enhanced detection signal to the target area, includes:
[0018] In response to the preset condition being met, the control unit closes the resistance switch corresponding to any adjustable resistor in the adjustable resistor unit that is in an open state, so as to reduce the resistance of the adjustable resistor unit to obtain an updated adjustable resistor unit, wherein the adjustable resistor unit includes a plurality of adjustable resistors connected in series;
[0019] In response to the completion of the update of the adjustable resistance unit, an enhanced detection signal is re-issued to the target area, wherein the signal strength of the enhanced detection signal is greater than the signal strength of the initial detection signal.
[0020] In some embodiments, after the signal receiver receives the return signal corresponding to the enhanced detection signal, the method further includes:
[0021] If the return signal indicates that the object to be determined is not detected under the corresponding signal strength, the control unit continues to reduce the resistance of the adjustable resistance unit to obtain an updated adjustable resistance unit, and sends a re-enhanced detection signal to the target area again to obtain an updated return signal;
[0022] If the updated return signal indicates that the object to be determined is detected at the corresponding signal strength, the detection interval is determined based on the two return signals;
[0023] The detection signal is repeatedly emitted multiple times within the detection interval to determine the change degree value. When the change degree value is continuously higher than a preset sensitivity threshold within a preset time threshold, the object to be determined is determined to be a target use object.
[0024] In some embodiments, repeatedly transmitting the detection signal multiple times within the detection interval to determine the change degree value includes:
[0025] Calculate the difference between any return signal from the detection interval and a preset default signal to obtain a real-time signal corresponding to the currently detected object to be determined;
[0026] The difference between two real-time signals adjacent in time is calculated to obtain the change degree values corresponding to the multiple return signals.
[0027] In some embodiments, the sensitivity threshold is determined by the following steps, comprising:
[0028] Obtaining a lower limit signal representing a minimum distance of a signal transmitter;
[0029] Calculate the difference between the default signal and the lower limit signal to obtain the initial threshold;
[0030] The ratio between the initial threshold and the preset attenuation factor is calculated to obtain the sensitivity threshold.
[0031] In some embodiments, before sending an initial detection signal to the target area based on the electrical signal sent by the control unit, the method further includes:
[0032] Get the initial detection instructions;
[0033] In response to the initial detection instruction, all the resistance switches are controlled to be in a closed state to form an initial electrical signal at a maximum intensity; and the signal transmitter is controlled to transmit the initial electrical signal to determine the size of the initial area;
[0034] Taking a preset area ratio as a constraint condition, a transition area is determined based on an initial area and a target area, and a detection signal is emitted in the transition area, wherein the area size of the transition area is between the initial area and the target area.
[0035] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the method of the third aspect when executing the computer program.
[0036] To achieve the above objectives, the fifth aspect of an embodiment of the present application proposes a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method of the third aspect is implemented.
[0037] The present application proposes an automatic flushing device, a urinal and an automatic flushing method. The method sends an initial detection signal to a target area based on an electrical signal sent by a control unit, wherein the initial detection signal is obtained by amplifying the electrical signal flowing through an adjustable resistance unit by an operational amplifier and inputting it into a signal transmitter; when a preset condition is met after the initial detection signal is sent, the control unit reduces the resistance of the adjustable resistance unit to obtain an updated adjustable resistance unit, and re-sends an amplified detection signal to the target area, wherein the amplified detection signal is obtained by amplifying the electrical signal flowing through the updated adjustable resistance unit by the operational amplifier. The signal is input to the signal transmitter to obtain the signal; in this way, the automatic flushing device avoids emitting a detection signal with high signal strength for a long time to achieve the energy-saving requirement. The control unit reduces the corresponding total resistance of the adjustable resistance unit to emit a detection signal stronger than the initial detection signal, thereby reducing the misjudgment situation such as the return signal failing to return smoothly due to the user wearing dark clothes, thereby improving the sensing sensitivity of the sensing device to the user under the energy-saving requirement; based on the signal receiver receiving the return signal corresponding to the amplified detection signal, the flushing state of the flushing unit is controlled according to the return signal, thereby better improving the automatic flushing response effect of the urinal. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1This is a schematic diagram of an optional module structure of an automatic flushing device provided in one embodiment of the present application;
[0039] Figure 2A This is a schematic diagram of an optional signal transmitter structure of an automatic flushing device provided by an embodiment of the present application;
[0040] Figure 2B It is a schematic diagram of an optional signal receiver structure of an automatic flushing device provided by an embodiment of the present application;
[0041] Figure 3 It is a schematic diagram of an optional gradient sensing module of an automatic flushing device provided in one embodiment of the present application;
[0042] Figure 4 It is a schematic diagram of an optional control unit of an automatic flushing device provided in one embodiment of the present application;
[0043] Figure 5 This is another optional module structure diagram of an automatic flushing device provided by an embodiment of the present application;
[0044] Figure 6 This is a schematic diagram of an optional voltage conversion component structure of an automatic flushing device provided by an embodiment of the present application;
[0045] Figure 7 This is an optional flow chart of an automatic flushing method provided by an embodiment of the present application;
[0046] Figure 8 This is a schematic diagram of an optional application scenario of the automatic flushing method provided by an embodiment of the present application;
[0047] Fig. 9 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0048] Figure numerals: gradient sensing module 110 , adjustable resistance unit 111 , operational amplifier 112 , control unit 120 , flushing unit 130 , signal transmitter 141 , signal receiver 142 , power adapter component 151 , voltage conversion component 152 , valve unit 160 . DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0052] Urinal is a sanitary device that combines modern technology and convenience. It is usually equipped with various intelligent functions to provide a more comfortable and convenient use experience. Urinals are usually equipped with automatic flushing function to improve the convenience of use.
[0053] In the related art, a sensing device installed in a urinal is often used to sense the presence of a user so that an automatic flushing operation can be performed when the user leaves. However, under the requirement of energy saving, the sensing device will be interfered by various factors such as the user wearing dark clothes, and it is often unable to accurately sense the user, resulting in a poor response effect of the automatic flushing function.
[0054] For example, an automatic flushing device is installed in a urinal, and an infrared sensing transmitter and an infrared sensing receiver are provided in the automatic flushing device. Usually, the infrared sensing transmitter transmits an infrared signal based on a pre-set fixed distance, and the infrared sensing receiver receives a return signal corresponding to the infrared signal to intelligently detect whether there is a user using the toilet in front of the urinal. However, when the user wears dark clothes, the dark clothes will absorb part of the infrared signal and thus fail to generate a return signal, resulting in the automatic flushing device being unable to detect the presence of the user. One method is to increase and change the pre-set fixed distance so that the infrared sensing transmitter continues to emit a signal with a high signal strength to ensure that the infrared sensing receiver can successfully receive the return signal. However, this method will increase the energy consumption of the automatic flushing device, which does not meet the energy-saving requirements.
[0055] Based on this, the embodiments of the present application provide an automatic flushing device, a urinal and an automatic flushing method, which aim to improve the sensing sensitivity of the sensing device to the user under energy-saving requirements, thereby improving the automatic flushing response effect of the urinal.
[0056] In order to better understand the automatic flushing device, urinal and automatic flushing method provided in the embodiments of the present application, the automatic flushing device is first described (for the convenience of description, it may also be referred to as "device" below). Figure 1 As shown, Figure 1 : is an optional module structure diagram of an automatic flushing device provided in an embodiment of the present application. Specifically, the device in the embodiment of the present application includes:
[0057] A gradient sensing module 110, the gradient sensing module 110 includes an adjustable resistance unit 111 and an operational amplifier 112, one end of the adjustable resistance unit 111 is electrically connected to the input end of the operational amplifier 112, and the output end of the operational amplifier 112 is electrically connected to the signal transmitter 141, and the signal transmitter 141 is used to send a detection signal;
[0058] The control unit 120 includes a first signal output terminal, a signal receiving terminal and a control terminal. The first signal output terminal is electrically connected to the other end of the adjustable resistance unit 111 to send an electrical signal to the adjustable resistance unit 111; the control terminal is electrically connected to the adjustable resistance unit 111 to adjust the resistance of the adjustable resistance unit 111; the signal receiving terminal is electrically connected to the signal receiver 142 to receive a return signal of the detection signal;
[0059] A flushing unit 130, the flushing unit 130 is electrically connected to the second signal output terminal of the control unit 120;
[0060] Among them, the operational amplifier 112 amplifies the electrical signal flowing through the adjustable resistance unit 111 and outputs it to the signal transmitter 141, so that the signal transmitter 141 sends a detection signal; when the detection signal reaches a preset condition after being sent, the control unit 120 reduces the resistance of the adjustable resistance unit 111 to obtain an updated adjustable resistance unit 111, and re-sends the electrical signal to the updated adjustable resistance unit 111, so that the signal transmitter 141 sends an enhanced detection signal, and uses the control unit 120 to control the flushing state of the flushing unit 130 according to the return signal of the detection signal.
[0061] In an embodiment of the present application, in order to enable the automatic flushing device to still sense the user while requiring energy saving, the resistance of the adjustable resistance unit 111 is adjusted so that the signal transmitter 141 emits a gradient-enhanced detection signal. In this way, the automatic device can sense the user based on the gradient-enhanced detection signal while avoiding the increase in energy consumption caused by emitting a high-signal-strength detection signal for a long time.
[0062] The detection signal is transmitted through the signal transmitter 141, propagates in the target area, and is reflected after encountering an "obstacle" to form a return signal. The return signal is received by the signal receiver 142, and the control unit 120 analyzes the return signal to determine whether there is a user in the target area who wants to use the urinal.
[0063] Furthermore, when the signal transmitter 141 is an infrared transmitter, the detection signal it transmits is an infrared signal, and accordingly, the signal receiver 142 is an infrared receiver; when the signal transmitter 141 is an ultrasonic transmitter, the detection signal it transmits is an ultrasonic signal, and accordingly, the signal receiver 142 is an ultrasonic receiver. Of course, the signal transmitter 141 can also be a radar wave transmitter, as long as the detection signal it transmits can be "reflected" and received by the signal receiver 142 of the corresponding type. The embodiment of the present application does not limit the specific types of the signal transmitter 141 and the signal receiver 142.
[0064] For example, when the signal receiver 142 and the signal transmitter 141 use infrared signals as the receiving and sending signals, Figure 2A As shown, Figure 2A This is a schematic diagram of the structure of an optional signal transmitter 141 of an automatic flushing device provided by an embodiment of the present application, wherein an electrical signal with sufficient energy is connected to the I RPOWER terminal to emit a stable infrared signal; the resistor R3 limits the current size to protect the transmitting tube from being damaged by excessive current; the diode LED1 is used for circuit protection or other signal adjustment functions; these components work together to enable the signal transmitter 141 to successfully transmit infrared signals.
[0065] Furthermore, if Figure 2B As shown, Figure 2B This is a schematic diagram of the structure of an optional signal receiver 142 of an automatic flushing device provided by an embodiment of the present application, wherein, when an infrared signal is irradiated to the signal receiver 142, it converts the optical signal into an electrical signal, and after being amplified and processed by the integrated circuit OPDAOP, it is output to the subsequent circuit or device through components such as the diode LED2, so that the signal receiver 142 realizes the infrared signal receiving function; in addition, the capacitor C7 is used to realize functions such as filtering, decoupling, and charge storage, thereby making the electrical signal flowing through more stable; the resistor R1 is used to limit the current flowing into the subsequent circuit or component to prevent excessive current from damaging the signal receiver 142.
[0066] It should be noted that the specific connection method of each component in the signal transmitter 141 and the signal receiver 142 can be adaptively adjusted according to actual conditions, and the embodiments of the present application do not make specific restrictions on this.
[0067] In some embodiments, the adjustable resistor unit 111 includes a plurality of adjustable resistors connected in parallel or in series, and each adjustable resistor is controlled by a corresponding resistor switch.
[0068] like Figure 3 As shown, Figure 3It is a schematic diagram of an optional gradient sensing module 110 of an automatic flushing device provided by an embodiment of the present application. It can be understood that the adjustable resistance unit 111 includes a plurality of adjustable resistors, each of which is connected in series, and each adjustable resistor is connected to a corresponding resistance switch. When any resistance switch is closed, the resistance value of the adjustable resistance unit 111 decreases, and the current flowing through the adjustable resistance unit 111 increases, thereby making the detection signal intensity emitted by the signal transmitter 141 greater; and the current increases with the increase in the number of closed resistance switches. For example, adjustable resistor 1, adjustable resistor 2, adjustable resistor 3 and adjustable resistor 4 are controlled by resistance switch 1, resistance switch 2, resistance switch 3 and resistance switch 4 respectively. When all resistance switches are closed, the resistance corresponding to the adjustable resistance unit 111 is a total resistance A; when all resistance switches are opened, the resistance corresponding to the adjustable resistance unit 111 is a total resistance B; when resistance switch 1 is opened and other resistance switches are closed, the resistance corresponding to the adjustable resistance unit 111 is a total resistance C; wherein, total resistance A<total resistance C<total resistance B.
[0069] Furthermore, multiple adjustable resistors in the adjustable resistor unit 111 can also be connected in parallel. In this case, when any resistance switch is closed, the corresponding adjustable resistor is short-circuited, which is equivalent to not being connected to the adjustable resistor unit 111. The total resistance of the adjustable resistor unit 111 increases, and the current flowing through the adjustable resistor unit 111 decreases, thereby reducing the strength of the detection signal emitted by the signal transmitter 141; and the current decreases as the number of resistance switches closed increases.
[0070] It should be noted that the connection method of the multiple adjustable resistors in the adjustable resistor unit 111 can be selected according to actual conditions, and the multiple adjustable resistors can also be connected to the adjustable resistor unit 111 in a mixed manner of series and parallel connection. The relationship between the opening and closing state of the resistance switch and the total resistance value of the adjustable resistor unit 111 changes with the different connection methods of the multiple adjustable resistors. It can be adjusted according to actual conditions, and the embodiments of the present application do not impose specific restrictions.
[0071] The resistance switch may be a transistor, a diode, an optical coupler, or other components that can switch a circuit on and off. The transistor may be a negative-positive-negative transistor (NPN transistor), a positive-positive-negative transistor (PNP transistor), a field effect transistor, a bipolar transistor, etc.; the diode may be a light-emitting diode, a photodiode, etc.; the optical coupler may be composed of a light-emitting diode and a photosensitive diode; of course, the specific type of the resistance switch may be selected according to actual conditions, and the embodiment of the present application does not limit it.
[0072] Furthermore, in addition to the multiple adjustable resistors, the adjustable resistor unit 111 may also include a protective resistor, one end of which is connected to the multiple adjustable resistors and the other end is grounded, so as to protect the adjustable resistor unit 111 and prevent the adjustable resistor unit 111 from being damaged by excessive current. The specific resistance value of the protective resistor and the number of connected protective resistors can be set according to actual conditions, and the embodiments of the present application do not impose specific restrictions.
[0073] The operational amplifier 112 is used to perform signal operations and signal filtering on the electrical signal output from the control unit 120, and transmit the processed electrical signal through the signal transmitter 141 connected thereto. The operational amplifier 112 is connected to the adjustable resistance unit 111. When the total resistance value corresponding to the adjustable resistance unit 111 becomes smaller, the electrical signal processed by the operational amplifier 112 becomes larger. When the total resistance value corresponding to the adjustable resistance unit 111 becomes larger, the electrical signal processed by the operational amplifier 112 becomes smaller. The operational amplifier 112 cooperates with the adjustable resistance unit 111 to realize the enhancement and weakening processing of the electrical signal by the gradient sensing module 110, so that the signal transmitter 141 emits a detection signal with a gradient change in signal strength.
[0074] Furthermore, one end of the adjustable resistance unit 111 is connected to the control unit 120; the other end of the adjustable resistance unit 111 can be connected to one of the input ends of the operational amplifier 112, or can be connected to the output end of the operational amplifier 112. When the other end of the adjustable resistance unit 111 is connected to the output end of the operational amplifier 112, the adjustable resistance unit 111 and the operational amplifier 112 form a closed-loop system, which helps to reduce output fluctuations caused by external interference or internal noise, thereby improving the stability of the automatic flushing device; the other input end of the operational amplifier 112 is grounded. Of course, the specific connection method between the adjustable resistance unit 111 and the operational amplifier 112 can be set according to actual conditions, and the embodiments of the present application are not limited thereto.
[0075] Among them, the operational amplifier 112 can be a general-purpose operational amplifier 112, such as LM358 (dual operational amplifier), LM324 (quad operational amplifier) and LF356 operational amplifier 112 with field effect transistor as input stage; or, it can also be a high-speed operational amplifier 112, such as LM318, μA715 and other models of operational amplifier 112; of course, the operational amplifier 112 can also be selected according to actual conditions, and the embodiments of the present application are not limited. It should be noted that, depending on the selection of the operational amplifier 112, it will have corresponding different connection methods with the adjustable resistance unit 111, which will not be repeated here.
[0076] Among them, the control unit 120 usually also has a timing function. Otherwise, the control unit 120 will be additionally connected to a timing unit to record the state of the return signal, so as to determine whether the detected object is the target user object based on the time of the recorded state. This part will be described in detail in the subsequent automatic flushing method. Furthermore, the control unit 120 can be a microcontroller, a single-chip microcomputer or a digital signal processor. The specific type of the control unit 120 can be selected according to the actual situation, and the embodiment of the present application does not limit it.
[0077] like Figure 4 As shown, Figure 4 This is a schematic diagram of an optional control unit 120 of an automatic flushing device provided by an embodiment of the present application, wherein VSS, AVSS: ground pins, used to provide a reference voltage; AVDD, VDD: power pins, providing the required voltage for the control unit 120 and other components; ISINK: pins related to current sensing or power control; IN1, IN2: input pins (signal input terminals), used to receive external signals or voltages; OUT2, OUT I: output pins (signal output terminals), used to drive external devices or provide voltage / current outputs; DACOUT: digital-to-analog conversion pin, used to convert digital signals into analog signals; PGND: protective ground pin, used for certain circuit parts that require additional protection; HBVDD, HBVSS: power and ground pins related to specific hardware modules (such as high-voltage parts); VM: pin related to voltage measurement or monitoring.
[0078] In addition, the remaining pins are input / output pins (control end) related to the control function. Some of the pins will be explained here, for example, OPDAx: pins related to analog-to-digital converter (ADC) or digital-to-analog converter (DAC); ANx: analog input pin for receiving analog signals; SCK, SCL: clock pins for synchronous data transmission; SDO, SDI, SDA: serial data pins for transmitting data; TX, RX: transmit and receive pins for serial communication; I NT: interrupt pin for notifying the microcontroller when a specific event occurs; I CSx: may be a pin related to the internal clock system; OCDx: may be a pin related to debugging or on-chip debug (OCD); where x represents any number.
[0079] It should be noted that the specific function and name of each pin may vary depending on the model, application and development environment of the control unit 120. The embodiments of the present application are only provided for illustrative purposes and do not specifically limit the pins of the control unit 120.
[0080] In some embodiments, Figure 5 As shown, Figure 5 This is another optional module structure schematic diagram of the automatic flushing device provided by an embodiment of the present application, wherein the automatic flushing device also includes a power adapter component 151 and a voltage conversion component 152 that are electrically connected to each other, the power adapter component 151 is connected to the mains, and the voltage conversion component 152 is electrically connected to the control unit 120 and the flushing unit 130, respectively.
[0081] Among them, the power adapter component 151 is electrically connected to the voltage conversion component 152, and the power adapter component 151 is used to convert the alternating current (AC) connected to the mains into direct current (DC) that can be used by the automatic flushing device; and the power adapter component 151 also includes an overload protection and short-circuit protection circuit to prevent the automatic flushing device from being damaged due to overcurrent or short circuit, while protecting the safety of the user.
[0082] Furthermore, the power adapter component 151 may include components such as a transformer and a rectifier that can convert voltage and manage current. The specific settings can be made according to actual conditions, and the embodiments of the present application do not limit this.
[0083] Among them, the voltage conversion component 152 is connected to the control unit 120 and the flushing unit 130. Since the voltages required by the control unit 120 and the flushing unit 130 are different, the voltage conversion component 152 can further convert the direct current from the power adapter component 151 to provide different power supply voltages for the control unit 120 and the flushing unit 130 respectively.
[0084] The control unit 120 can also be connected to the flushing unit 130 through the valve unit 160, and the valve unit 160 includes an electromagnetic valve that controls the opening and closing of the flushing unit 130; when the electromagnetic valve is opened, the flushing unit 130 enters the working state; when the electromagnetic valve is opened, the flushing unit 130 enters the working state. Of course, the valve unit 160 can also include other components that control the opening and closing of the flushing unit 130, which can be set according to actual conditions, and the embodiment of the present application does not limit it.
[0085] like Figure 6 As shown, Figure 6 This is a schematic diagram of the structure of an optional voltage conversion component 152 of an automatic flushing device provided by an embodiment of the present application, wherein CN1 is a voltage conversion control chip, and when the current from the power adapter component 151 enters through the IN terminal of the voltage conversion component 152U2, the converted voltage is output from the OUT terminal; C1 and C2 are both capacitors, R12 is a resistor, and PGND is a protective ground wire to ensure that the voltage conversion component 152U2 can successfully complete the voltage conversion.
[0086] Furthermore, the voltage conversion component 152 can be a voltage stabilizer, a DC-DC converter, or other components that can adjust the voltage conversion according to the load demand. The specific setting can be based on actual conditions, and the embodiment of the present application does not limit it.
[0087] The embodiment of the present application also provides a urinal, and the automatic flushing device proposed in the embodiment of the present application can be arranged in the urinal to realize the automatic flushing function of the urinal. Generally, the automatic flushing device will send detection signals with different signal strengths from the signal transmitter 141, for example, multiple detection signals change in a gradient to detect the current environment, and determine the flushing state of the automatic flushing device according to the return signal corresponding to the detection signal.
[0088] In another embodiment, the automatic flushing device can also be provided in the smart toilet to realize the automatic flushing function of the smart toilet based on the automatic flushing method proposed in the embodiment of the present application.
[0089] After understanding the automatic flushing device proposed in the embodiment of the present application, the automatic flushing method proposed in the embodiment of the present application is described next.
[0090] In the embodiment of the present application, the automatic flushing device will be described from the perspective of the automatic flushing device. The automatic flushing method (for the convenience of description, it can also be referred to as the "method") is applied to the automatic flushing device proposed in the embodiment of the present application, such as Figure 7 As shown, Figure 7 is an optional flow chart of an automatic flushing method provided by an embodiment of the present application. Figure 7The method in the embodiment may include but is not limited to steps 101 to 103. It should be noted that the present embodiment Figure 7 The order of step 101 to step 103 is not specifically limited, and the order of steps can be adjusted or some steps can be reduced or added according to actual needs.
[0091] Step 101, sending an initial detection signal to the target area based on the electrical signal sent by the control unit, wherein the initial detection signal is obtained by amplifying the electrical signal flowing through the adjustable resistance unit by the operational amplifier and inputting it into the signal transmitter;
[0092] Step 102, when the preset condition is met after the initial detection signal is sent, the control unit reduces the resistance of the adjustable resistance unit to obtain an updated adjustable resistance unit, and re-sends the enhanced detection signal to the target area, wherein the enhanced detection signal is obtained by the operational amplifier amplifying the electrical signal flowing through the updated adjustable resistance unit and inputting it into the signal transmitter;
[0093] Step 103: Based on the return signal corresponding to the enhanced detection signal received by the signal receiver, the flushing state of the flushing unit is controlled according to the return signal.
[0094] Steps 101 to 103 are described below.
[0095] Among them, the target area is a pre-set detection interval. Usually, the target area is the area near the urinal. When the automatic flushing device detects that a user has entered the target area, it means that the user wants to use the urinal. The control unit records the return signal representing the detection of the user based on this, so that the subsequent automatic flushing device can control the flushing state of the flushing unit according to the detection.
[0096] The initial detection signal is obtained based on the emission of the automatic flushing device. First, the control unit sends an electrical signal to the gradient sensing module; then, the electrical signal is adjusted by the adjustable resistance unit and amplified by the operational amplifier to obtain the initial detection signal, which is then emitted by the signal transmitter.
[0097] Among them, the preset condition can be a pre-set time threshold. After a period of time after the initial detection signal is sent, the control unit is used to reduce the corresponding total resistance of the adjustable resistance unit to obtain an updated adjustable resistance unit; in this way, when the control unit sends an electrical signal to the gradient sensing module again, the electrical signal can be adjusted by the updated adjustable resistance unit and amplified by the operational amplifier to obtain an enhanced detection signal, and the enhanced detection signal is sent by the signal transmitter.
[0098] Alternatively, the preset condition may also be that the return signal received by the signal receiver indicates that there is no user in the target area. At this time, in order to avoid misjudgment that the return signal cannot be smoothly returned due to the user wearing dark clothes or pure cotton clothes (different materials have different light reflectivity), the control unit will then use the control unit to reduce the corresponding total resistance of the adjustable resistance unit to obtain an updated adjustable resistance unit. That is, the preset condition can be specifically set according to the actual situation, and the embodiment of the present application does not limit it.
[0099] Furthermore, the initial return signal corresponding to the initial detection signal and the enhanced return signal corresponding to the enhanced detection signal are both received by the signal receiver, so as to determine whether there is a user in the target area according to the difference between the initial return signal and the enhanced return signal, so as to better control the flushing state of the flushing unit and realize the intelligent flushing function of the urinal.
[0100] Among them, the flushing state of the flushing unit includes a working state and a dormant state. When the control unit instructs the flushing unit to enter the working state, the control unit opens the electromagnetic valve; when the control unit instructs the flushing unit to enter the dormant state, the control unit closes the electromagnetic valve.
[0101] In some embodiments, the control unit reduces the resistance of the adjustable resistance unit to obtain an updated adjustable resistance unit, and re-sends the enhanced detection signal to the target area, including the following steps 201 to 202:
[0102] Step 201, in response to a preset condition being met, a control unit closes a resistance switch corresponding to any adjustable resistor in an open state in an adjustable resistor unit to reduce the resistance of the adjustable resistor unit to obtain an updated adjustable resistor unit, wherein the adjustable resistor unit includes a plurality of adjustable resistors connected in series;
[0103] Step 202 : in response to the completion of the update of the adjustable resistance unit, re-send an enhanced detection signal to the target area, wherein the signal strength of the enhanced detection signal is greater than the signal strength of the initial detection signal.
[0104] Step 201 to step 202 are described below.
[0105] In some embodiments, when the preset conditions are met, it is characterized that the automatic flushing device needs to emit a stronger detection signal to achieve detection of the target area. At this time, it is necessary to reduce the resistance size (total resistance value) of the adjustable resistance unit to obtain an updated adjustable resistance unit to increase the electrical signal flowing through the gradient sensing module, thereby enabling the signal transmitter to emit an enhanced detection signal.
[0106] For example, Figure 3As shown, the adjustable resistors in the adjustable resistor unit are connected in series. Under this connection mode, if the initial detection signal is generated when the resistance switches 1 to 4 are all opened, then when the preset conditions are met, the control unit can control any one of the resistance switches 1 to 4 to be closed to obtain an updated adjustable resistor unit. The total resistance value of the updated adjustable resistor unit becomes smaller, and the detection signal emitted by the signal transmitter is enhanced.
[0107] Furthermore, in order to better detect the target area, the resistance switches can be closed in a certain order so that the detection signal emitted by the signal transmitter is gradient enhanced. For example, the resistance switches can be opened in the order of resistance switch 1, resistance switch 2, resistance switch 3, and resistance switch 4, and when the corresponding resistance switch is closed at the current moment, no operation is performed on the previously closed resistance switch. That is, after the signal receiver receives the enhanced return signal, the control unit can further reduce the resistance of the adjustable resistance unit to transmit a detection signal with a stronger signal strength through the signal transmitter.
[0108] Furthermore, when the total resistance of the adjustable resistor unit is adjusted to the minimum, the total resistance of the adjustable resistor unit can be increased to form a detection signal with different signal strengths for back and forth detection in the target area. Figure 8 As shown, Figure 8 This is a schematic diagram of an optional application scenario of the automatic flushing method provided by an embodiment of the present application. For example, a certain target area is area A+area B+area C. The initial detection signal emitted by the signal transmitter can only detect area A, while the enhanced detection signal can detect area (A+B), and the detection signal after further enhancement can detect area (A+B+C); then when the automatic flushing device completes the detection of area (A+B+C), the detection signal emitted can be weakened by increasing the total resistance of the adjustable resistance unit to complete the detection of area (A+B), and the detection signal after further weakening can detect area A. In this way, the automatic flushing device can realize the back-and-forth detection of area A->area (A+B)->area (A+B+C)->area (A+B)->area A. Compared with the method of continuously detecting area (A+B+C) in the related art, the embodiment of the present application greatly reduces the energy consumption generated by the automatic flushing device sensing the user, thereby extending the service life of the automatic flushing device and reducing the cost.
[0109] Furthermore, the detection signals with different signal strengths generated by the automatic flushing device can also perform cyclic detection on the target area in a manner from weak to strong, for example, Figure 8As shown, the automatic flushing device can also perform cyclic detection on area A->area (A+B)->area (A+B+C)->area A->area (A+B)->area (A+B+C). The embodiment of the present application does not limit the detection method of the detection signal under different signal strengths, and can be set specifically according to the actual situation. It can be understood that no matter which method is used, the purpose is to achieve good sensing of the user under low power consumption requirements. In actual use, the automatic flushing device can generate no power consumption when it is not awakened, and can operate with extremely low power consumption when awakened, thereby greatly extending the service life of the automatic flushing device, and has super high practical application value.
[0110] In some embodiments, after the signal receiver receives the return signal corresponding to the enhanced detection signal, the following steps 301 to 303 are also included:
[0111] Step 301, if the return signal indicates that the object to be determined is not detected under the corresponding signal strength, the control unit continues to reduce the resistance of the adjustable resistance unit to obtain an updated adjustable resistance unit, and sends a re-enhanced detection signal to the target area again to obtain an updated return signal;
[0112] Step 302, if the updated return signal indicates that the object to be determined is detected under the corresponding signal strength, then determining the detection interval based on the two return signals;
[0113] Step 303: repeatedly transmit detection signals within the detection interval to determine the change degree value. When the change degree value is continuously higher than a preset sensitivity threshold within a preset time threshold, the object to be determined is determined to be a target user object.
[0114] Steps 301 to 303 are described below.
[0115] The objects to be determined include target users and interference objects. The target users are users who want to use the urinal, and the interference objects are other objects that are not "users", such as buckets, walls, brooms, etc. The automatic flushing device needs to detect whether there is an object to be determined in the target area through the return signal corresponding to the emitted detection signal, so as to further determine whether the object to be determined is a user based on this.
[0116] It is understandable that when the detection signal encounters an obstacle, it will be reflected back to form a return signal. If the signal receiver does not receive the return signal, it means that the detection signal at the current signal strength is too weak to form a return signal that can be received by the signal receiver; or, the user is wearing dark clothes, which makes the reflected return signal too weak to be received by the signal receiver; either way, it shows that the current enhanced detection signal strength is still insufficient to detect the object to be determined, so the adjustable resistance unit needs to be updated again to send out a stronger detection signal to detect the target area.
[0117] Furthermore, if the updated return signal indicates that the object to be determined is detected under the corresponding signal strength, it is necessary to first determine the interval where the object to be determined is located. Figure 8 As shown, when a detection signal a representing the detection interval A is emitted, the corresponding return signal represents that there is no object to be determined in area A; then, when a detection signal b representing the detection interval (A+B) is emitted next, if the corresponding return signal represents that there is an object to be determined in area (A+B), it can be determined that the object to be determined is in area B based on the twice emitted detection signals a and b, and area B is the detection interval.
[0118] It is understandable that the object to be determined in area B may be a user or an interference object. However, if the object to be determined is a user, then it will not be absolutely still. Based on this, the corresponding change degree value of the object to be determined can be determined by repeatedly transmitting detection signals in the detection interval, so as to determine whether the object to be determined is the target user object based on the change degree value.
[0119] In some embodiments, repeatedly transmitting the detection signal multiple times within the detection interval to determine the change degree value includes the following steps 401 to 402:
[0120] Step 401, calculating the difference between any return signal from the detection interval and a preset default signal, and obtaining a real-time signal corresponding to the currently detected object to be determined;
[0121] Step 402, calculating the difference between two real-time signals adjacent in time, and obtaining the change degree values corresponding to the multiple return signals.
[0122] Step 401 to step 402 are described below.
[0123] The default signal is emitted by the automatic flushing device at a preset default detection distance, and the default signal can serve as a benchmark and reference. In order to determine whether the object to be determined is "absolutely stationary" based on multiple detection signals, it is necessary to first calculate the difference between any return signal and the default signal to obtain the real-time signal corresponding to the currently detected object to be determined; after obtaining multiple real-time signals, the difference between two real-time signals adjacent in time is calculated to obtain the degree of change value.
[0124] Furthermore, the obtained change degree value is compared with a preset sensitivity threshold. If the change degree value is continuously higher than the preset sensitivity threshold within the preset time threshold, it means that the currently detected object to be determined is in a state of constant motion rather than being absolutely still. Therefore, the object to be determined can be judged as the target object.
[0125] Among them, the preset time threshold can be set shorter, such as 3 seconds, so that the urinal can determine whether the approaching object to be determined is a "person" in a short time, so as to better determine the state of the flushing unit later. Of course, the time threshold can be set according to actual conditions, and the embodiment of the present application does not limit it.
[0126] In some embodiments, the sensitivity threshold is determined by the following steps, including the following steps 501 to 503:
[0127] Step 501, obtaining a lower limit signal representing a minimum distance of a signal transmitter;
[0128] Step 502, calculating the difference between the default signal and the lower limit signal to obtain an initial threshold;
[0129] Step 503: Calculate the ratio between the initial threshold and the preset attenuation factor to obtain a sensitivity threshold.
[0130] Steps 501 to 503 are described below.
[0131] Among them, since the return signal represents that the detected object may be a target object or an interference object, in order to accurately identify the target object, the present application also provides a sensitivity threshold. The sensitivity threshold is used to represent the upper limit of the fluctuation of the corresponding change degree value of the object detected in the target area. Once its change degree value exceeds the sensitivity threshold within the preset time threshold, it can be determined that the object to be determined is the target object.
[0132] The lower limit signal represents the shortest distance that the signal transmitter can detect, which represents the weakest signal strength that the signal receiving device can receive. Depending on the type of signal transmitter and signal receiver, the shortest distance of the corresponding type is obtained, and the detection signal is transmitted within the shortest distance to obtain the lower limit signal. Usually, the signal strength of the default signal is higher than the lower limit signal.
[0133] Furthermore, in order to determine the sensitivity threshold, the difference between the default signal and the lower limit signal is first calculated to obtain the initial threshold. However, the value corresponding to the initial threshold is usually large. If the initial threshold is directly used as the sensitivity threshold, it is easy for the automatic flushing device to fail to accurately identify the target user. Therefore, the embodiment of the present application also pre-sets an attenuation factor, which is a quantitative indicator. In step 503, by calculating the ratio between the initial threshold and the pre-set attenuation factor, it can help to reasonably adjust the initial threshold, and finally obtain a sensitivity threshold suitable for determining the degree of change in the target area.
[0134] Furthermore, the larger the attenuation factor, the smaller the sensitivity threshold, which means that the automatic flushing device will be more sensitive to the detection of the degree of change; the smaller the attenuation factor, the larger the sensitivity threshold, which means that the automatic flushing device will be slower in detecting the degree of change; the size of the attenuation factor can be adaptively adjusted according to actual conditions, and the embodiments of the present application do not limit this.
[0135] To better understand the process flow of the automatic flushing device, a complete example is given below.
[0136] First, the automatic flushing device needs to meet the following two conditions to determine whether there is a target user in the target area: (1) Determine the degree of change value based on the return signal (value_real) corresponding to the detection signal; (2) Within the preset time threshold, the degree of change value (value_chg) continues to be higher than the preset sensitivity threshold (value_div).
[0137] Among them, the default signal of the automatic flushing device can be obtained by transmitting and receiving based on the default distance (value_def) of 50 centimeters (cm), and the lower limit signal (value_min) can be obtained by transmitting and receiving based on the shortest distance of 20 cm.
[0138] Furthermore, the operation steps generated based on condition (1) are as follows:
[0139] ① Send out detection signals with different signal strengths every 0.5 seconds and receive the corresponding return signal value_real;
[0140] ② When it is determined that the target user is detected, continue to determine the corresponding detection interval of the target user according to the received return signal;
[0141] ③ Calculate the difference between the returned signal and the default signal to obtain the change degree value value_chg = value_real - value_def;
[0142] After determining the detection interval of the target user, the operation steps generated based on condition (2) are as follows:
[0143] ① Calculate the difference between value_def and value_min, and compare it with the attenuation factor (assuming it is 3), and obtain value_div = (value_def-value_min) / 3;
[0144] ② If within the preset time threshold, value_chg continues to be greater than value_d iv, it is determined that there is a target user in the target area.
[0145] In this way, after determining that there is a target user in the target area, if the automatic flushing device senses that the target user has left the target area, the control unit can drive the flushing unit to enter the working state, thereby completing the intelligent flushing operation.
[0146] In some embodiments, before the initial detection signal is sent to the target area based on the electrical signal sent by the control unit, steps 601 to 603 are also included:
[0147] Step 601, obtaining an initial detection instruction;
[0148] Step 602, in response to the initial detection instruction, controlling all the resistance switches to be in a closed state to form an initial electrical signal at a maximum intensity; and controlling the signal transmitter to transmit the initial electrical signal to determine the size of the initial area;
[0149] Step 603, taking a preset area ratio as a constraint condition, determining a transition area based on the initial area and the target area, and transmitting a detection signal in the transition area, wherein the area size of the transition area is between the initial area and the target area.
[0150] Steps 601 to 603 are described below.
[0151] In some embodiments, the size of the target area is usually fixed, for example, the target area can be defined as one meter around the urinal. However, in order to better sense the presence of the target user, in addition to cyclically transmitting the detection signal in the target area, the detection signal can also be transmitted in the transition area, wherein the transition area is larger than the target area. In this way, when the object to be determined enters the transition area, the automatic flushing device can strengthen the detection of the target area to improve the sensitivity of the automatic flushing device to the target user.
[0152] The initial detection instruction may be issued to the automatic flushing device under the instruction of the user, indicating that the current environment needs to be detected to determine the transition area that needs to be detected in the actual application. When the automatic flushing device receives the initial detection instruction, all resistance switches are controlled to be in a closed state to form an initial electrical signal with maximum intensity to determine the initial area. At this time, the return signal received by the signal receiver represents the farthest distance of the current environment that can be detected. It can be understood that the return signal at this time is obtained after hitting the wall.
[0153] Furthermore, the wall is an interfering object. If it is necessary to determine whether the detected object to be determined is the target object according to steps 301 to 303 each time, it will undoubtedly greatly waste computing resources. Therefore, after the initial area is determined, the transition area can be determined according to the preset area ratio and the preset target area size.
[0154] For example, the size of the target area is area D, the size of the initial area is area 3D, and the preset area ratio represents the target area: transition area: initial area is 1:2:3, then the size of the transition area can be determined to be 2D. In this way, when the urinal is placed in a new environment, the area where the detection signal is emitted later can be adaptively determined based on the initial detection instruction. On the one hand, it can improve the sensing ability of the automatic flushing device to the object to be determined, and on the other hand, it can avoid unnecessary energy consumption and resource waste caused by too large a detection range.
[0155] It should be noted that the area ratio can be set according to actual conditions, and the embodiment of the present application does not limit the specific value of the area ratio.
[0156] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above automatic flushing method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0157] like Fig. 9 As shown, Fig. 9 : is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application, the electronic device includes:
[0158] The processor 701 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0159] The memory 702 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 702 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 702, and the processor 701 calls and executes the automatic flushing method of the embodiment of this application;
[0160] Input / output interface 703, used to implement information input and output;
[0161] Communication interface 704, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WI FI, Bluetooth, etc.);
[0162] A bus 705 that transmits information between the various components of the device (e.g., the processor 701, the memory 702, the input / output interface 703, and the communication interface 704);
[0163] The processor 701 , the memory 702 , the input / output interface 703 and the communication interface 704 are connected to each other in communication within the device via a bus 705 .
[0164] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned automatic flushing method is implemented.
[0165] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0166] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0167] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0168] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0169] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0170] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0171] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0172] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0173] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0174] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0175] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0176] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. An automatic flushing device, characterized in that: include: A gradient sensing module, the gradient sensing module comprising an adjustable resistance unit and an operational amplifier, one end of the adjustable resistance unit is electrically connected to an input end of the operational amplifier, an output end of the operational amplifier is electrically connected to a signal transmitter, and the signal transmitter is used to send a detection signal; A control unit, the control unit comprising a first signal output terminal, a signal receiving terminal and a control terminal, the first signal output terminal being electrically connected to the other end of the adjustable resistance unit to send an electrical signal to the adjustable resistance unit; the control terminal being electrically connected to the adjustable resistance unit to adjust the resistance of the adjustable resistance unit; the signal receiving terminal being electrically connected to a signal receiver to receive a return signal of the detection signal; A flushing unit, the flushing unit is electrically connected to the second signal output terminal of the control unit; Among them, the operational amplifier amplifies the electrical signal flowing through the adjustable resistance unit and outputs it to the signal transmitter, so that the signal transmitter sends out the detection signal; when the detection signal reaches a preset condition after being sent out, the control unit reduces the resistance of the adjustable resistance unit to obtain an updated adjustable resistance unit, and re-sends the electrical signal to the updated adjustable resistance unit, so that the signal transmitter sends out the enhanced detection signal, and uses the control unit to control the flushing state of the flushing unit according to the return signal of the detection signal.
2. The automatic flushing device according to claim 1, characterized in that: The adjustable resistor unit includes a plurality of adjustable resistors connected in parallel or in series, and each of the adjustable resistors is controlled by a corresponding resistor switch.
3. The automatic flushing device according to claim 1, characterized in that: The automatic flushing device further comprises a power adapter component and a voltage conversion component which are electrically connected to each other, the power adapter component is connected to the mains, and the voltage conversion component is electrically connected to the control unit and the flushing unit respectively.
4. A urinal, characterized in that: An automatic flushing device comprising any one of claims 1 to 3.
5. An automatic flushing method, characterized in that: Applicable to the automatic flushing device according to any one of claims 1 to 3 or the urinal according to claim 4, the automatic flushing method comprises: Sending an initial detection signal to the target area based on the electrical signal sent by the control unit, wherein the initial detection signal is obtained by inputting the electrical signal flowing through the adjustable resistance unit after the operational amplifier amplifies the signal into the signal transmitter; When the preset condition is met after the initial detection signal is sent, the control unit reduces the resistance of the adjustable resistance unit to obtain the updated adjustable resistance unit, and re-sends the enhanced detection signal to the target area, wherein the enhanced detection signal is obtained by the operational amplifier amplifying the electrical signal flowing through the updated adjustable resistance unit and inputting it into the signal transmitter; Based on the signal receiver receiving the return signal corresponding to the enhanced detection signal, the flushing state of the flushing unit is controlled according to the return signal.
6. The automatic flushing method according to claim 5, characterized in that: The controlling unit reduces the resistance of the adjustable resistance unit to obtain the updated adjustable resistance unit, and re-sends the enhanced detection signal to the target area, including: In response to the preset condition being met, the control unit closes a resistance switch corresponding to any adjustable resistor in an open state in the adjustable resistor unit to reduce the resistance of the adjustable resistor unit to obtain an updated adjustable resistor unit, wherein the adjustable resistor unit includes a plurality of adjustable resistors connected in series; In response to the completion of the update of the adjustable resistance unit, the enhanced detection signal is re-issued to the target area, wherein the signal strength of the enhanced detection signal is greater than the signal strength of the initial detection signal.
7. The automatic flushing method according to claim 5, characterized in that: After the signal receiver receives the return signal corresponding to the enhanced detection signal, the method further includes: If the return signal indicates that the object to be determined is not detected under the corresponding signal strength, the control unit continues to reduce the resistance of the adjustable resistance unit to obtain the updated adjustable resistance unit, and sends the re-enhanced detection signal to the target area again to obtain the updated return signal; If the updated return signal indicates that the object to be determined is detected under the corresponding signal strength, determining the detection interval based on the two return signals; The detection signal is repeatedly emitted multiple times within the detection interval to determine a change degree value, and when the change degree value is continuously higher than a preset sensitivity threshold within a preset time threshold, the object to be determined is determined to be a target use object.
8. The automatic flushing method according to claim 7, characterized in that: The repeatedly transmitting the detection signal multiple times within the detection interval to determine the change degree value includes: Calculate the difference between any of the return signals from the detection interval and a preset default signal to obtain a real-time signal corresponding to the currently detected object to be determined; The difference result between two of the real-time signals adjacent in time is calculated to obtain the change degree values corresponding to the multiple return signals.
9. The automatic flushing method according to claim 8, characterized in that: The sensitivity threshold is determined by the following steps, which include: Obtaining a lower limit signal representing a minimum distance of a signal transmitter; Calculating the difference between the default signal and the lower limit signal to obtain an initial threshold; The ratio between the initial threshold and a preset attenuation factor is calculated to obtain a sensitivity threshold.
10. The automatic flushing method according to claim 5, characterized in that: Before the initial detection signal is sent to the target area based on the electrical signal sent by the control unit, the method further includes: Get the initial detection instructions; In response to the initial detection instruction, all the resistance switches are controlled to be in a closed state to form an initial electrical signal at a maximum intensity; and the signal transmitter is controlled to transmit the initial electrical signal to determine the size of the initial area; Taking a preset area ratio as a constraint condition, a transition area is determined based on the initial area and the target area, and the detection signal is emitted in the transition area, wherein the area size of the transition area is between the initial area and the target area.
