CN112512167B - Ultraviolet sterilization box control circuit, control method and sterilization box - Google Patents
Ultraviolet sterilization box control circuit, control method and sterilization box Download PDFInfo
- Publication number
- CN112512167B CN112512167B CN202011513393.8A CN202011513393A CN112512167B CN 112512167 B CN112512167 B CN 112512167B CN 202011513393 A CN202011513393 A CN 202011513393A CN 112512167 B CN112512167 B CN 112512167B
- Authority
- CN
- China
- Prior art keywords
- resistor
- pin
- led lamp
- capacitor
- ultraviolet
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000001954 sterilising effect Effects 0.000 title claims abstract description 59
- 238000004659 sterilization and disinfection Methods 0.000 title claims abstract description 48
- 238000000034 method Methods 0.000 title claims abstract description 12
- WHXSMMKQMYFTQS-UHFFFAOYSA-N Lithium Chemical compound [Li] WHXSMMKQMYFTQS-UHFFFAOYSA-N 0.000 claims abstract description 21
- 229910052744 lithium Inorganic materials 0.000 claims abstract description 21
- 238000001514 detection method Methods 0.000 claims abstract description 12
- 230000000295 complement effect Effects 0.000 claims abstract description 8
- 239000003990 capacitor Substances 0.000 claims description 38
- 101000941170 Homo sapiens U6 snRNA phosphodiesterase 1 Proteins 0.000 claims description 7
- 102100031314 U6 snRNA phosphodiesterase 1 Human genes 0.000 claims description 7
- 230000036541 health Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 10
- 230000000694 effects Effects 0.000 description 4
- 230000005611 electricity Effects 0.000 description 3
- 241000894006 Bacteria Species 0.000 description 2
- 241000245772 Gasteria Species 0.000 description 1
- 241000700605 Viruses Species 0.000 description 1
- 208000027418 Wounds and injury Diseases 0.000 description 1
- 238000007792 addition Methods 0.000 description 1
- 244000052616 bacterial pathogen Species 0.000 description 1
- 238000004140 cleaning Methods 0.000 description 1
- 230000006378 damage Effects 0.000 description 1
- 230000013872 defecation Effects 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000029142 excretion Effects 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 208000014674 injury Diseases 0.000 description 1
- 230000027939 micturition Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 239000003381 stabilizer Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
- 210000002700 urine Anatomy 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/30—Driver circuits
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61L—METHODS OR APPARATUS FOR STERILISING MATERIALS OR OBJECTS IN GENERAL; DISINFECTION, STERILISATION OR DEODORISATION OF AIR; CHEMICAL ASPECTS OF BANDAGES, DRESSINGS, ABSORBENT PADS OR SURGICAL ARTICLES; MATERIALS FOR BANDAGES, DRESSINGS, ABSORBENT PADS OR SURGICAL ARTICLES
- A61L2/00—Methods or apparatus for disinfecting or sterilising materials or objects other than foodstuffs or contact lenses; Accessories therefor
- A61L2/02—Methods or apparatus for disinfecting or sterilising materials or objects other than foodstuffs or contact lenses; Accessories therefor using physical phenomena
- A61L2/08—Radiation
- A61L2/10—Ultraviolet radiation
Landscapes
- Health & Medical Sciences (AREA)
- Epidemiology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Animal Behavior & Ethology (AREA)
- General Health & Medical Sciences (AREA)
- Public Health (AREA)
- Veterinary Medicine (AREA)
- Apparatus For Disinfection Or Sterilisation (AREA)
Abstract
The invention discloses an ultraviolet sterilization box control circuit and a control method thereof.A battery voltage detection circuit is connected with a microcontroller and used for detecting battery voltage to judge current electric quantity, a lithium battery charging management circuit is connected with the microcontroller and used for managing lithium battery charging, an ultraviolet LED lamp driving circuit is connected with the microcontroller and used for driving an ultraviolet LED lamp, a bicolor LED indicator lamp is connected with the microcontroller and used for indicating an ultraviolet sterilization state, a first dip switch and a second dip switch are respectively connected with the microcontroller and used for detecting dip positions, the angles of the first dip switch and the second dip switch are complementary, and a tact switch is connected with the microcontroller and used for switching on and off and mode switching. The invention detects the states of the two dip switches, performs automatic sterilization and state indication, ensures the health of users and improves the user experience.
Description
Technical Field
The invention relates to a control circuit, a control method and a sterilizing box, in particular to an ultraviolet sterilizing box control circuit, a control method and a sterilizing box, and belongs to the field of intelligent bathrooms.
Background
The intelligent toilet cover originates from the United states, is originally introduced and improved in Japan, provides a brand new product in the 80 s, and has multiple functions of heating the toilet cover, cleaning with warm water, drying with warm air, sterilizing and the like. At present, the intelligent closestool is mainly sterilized by ultraviolet sterilization, and the ultraviolet LED lamp has good sterilization effect on daily germs and viruses. However, at present, the intelligent closestool mainly adopts independent control for ultraviolet sterilization, when ultraviolet sterilization is needed, ultraviolet is manually controlled to be started, however, as ultraviolet has a certain injury to human body, when the intelligent closestool is used, the ultraviolet lamp is opened after the closestool cover is forgotten to be closed, so that the intelligent closestool is harmful to the human body and has poor sterilization effect.
Disclosure of Invention
The invention aims to solve the technical problem of providing an ultraviolet sterilization box control circuit, an ultraviolet sterilization box control method and an ultraviolet sterilization box, solving the problem of controlling ultraviolet sterilization of a closestool, improving the sterilization effect, saving energy and saving electricity.
In order to solve the technical problems, the invention adopts the following technical scheme:
An ultraviolet sterilization box control circuit which is characterized in that: the lithium battery charging management circuit is connected with the microcontroller and used for managing lithium battery charging, the ultraviolet LED lamp driving circuit is connected with the microcontroller and used for driving the ultraviolet LED lamp, the bicolor LED indicator lamp is connected with the microcontroller and used for indicating ultraviolet sterilization states, and the first dip switch and the second dip switch are respectively connected with the microcontroller and used for detecting dip positions, and the touch switch is connected with the microcontroller and used for switching on and off and mode switching.
Further, the microcontroller adopts STM8S003F3 model singlechip chip U1, U1 all 4 feet to connect resistance R3 one end and electric capacity C1 one end, and 3.3V power is connected to the resistance R3 other end, and electric capacity C1 other end ground connection, electric capacity C3 one end is connected to U1 ' S8 feet, and electric capacity C3 other end is connected U1 ' S7 feet and electric capacity C2 one end and ground connection, and electric capacity C2 other end is connected U1 ' S9 feet and is connected 3.3V power.
Further, the battery voltage detection circuit comprises a resistor R10 and a resistor R29, one end of the resistor R10 is connected with VBAT, the other end of the resistor R10 is connected with one end of the resistor R29 and the 19 pin of U1, and the other end of the resistor R29 is connected with the 20 pin of U1.
Further, the lithium battery charging management circuit includes a charging management chip U2 of model LY4057A, 4, 8 pins of U2 connect resistor R4 one end, capacitor C5 one end and 1 pin of USB interface USB1, resistor R4 other end connects resistor R6 one end and 14 pins of U1, the other end of resistor R6 is grounded, the other end of capacitor C5 connects 5 pins of USB interface USB1 and ground, 7 pins of U2 connect resistor R8 one end and 12 pins of U1, 6 pins of U2 connect resistor R9 one end and 11 pins of U1, the other end of resistor R8 and the other end of resistor R9 connect VBAT, 5 pins of U2 connect VBAT, one end of capacitor C6 and positive pole of lithium battery CR1, 2 pins of U2 connect resistor R5 one end, 1 pin of resistor R5 other end, 3 pins of U2, the other end of capacitor C6 and negative pole of lithium battery CR1 are grounded.
Further, the ultraviolet LED lamp driving circuit comprises a boosting chip U4 with model LY1061, a pin 1 of U4 is connected with one end of an inductor L1 and an anode of a diode D2, the other end of the inductor L1 is connected with pins 4 and 5 of U4 and a D pole of a MOS tube Q2, an S pole of the MOS tube Q2 is connected with one end of a resistor R30, the other end of the resistor R30 is connected with a G pole of the MOS tube Q2 and one end of a resistor R28, the resistor R28 is connected with a pin 13 of U1, a cathode of the diode D2 is connected with one end of a resistor R25, one end of a capacitor C7, one end of a capacitor C4, one end of a resistor R13, one end of a resistor R20, one end of a resistor R14, one end of a resistor R22, one end of a resistor R2 and one end of a resistor R24 and is connected with a 6.8V power supply, resistor R25 other end connection resistance R27 one end and U4 'S3 feet, U4' S2 feet, resistance R27 'S the other end, electric capacity C7' S the other end and electric capacity C4 'S the other end ground connection, ultraviolet LED lamp LED 5' S3 feet are connected to resistance R13 'S the other end, ultraviolet LED lamp LED 5' S1 foot is connected to resistance R20 'S the other end, ultraviolet LED lamp LED 5' S2, 4 feet ground connection, ultraviolet LED lamp LED6 'S3 feet are connected to resistance R14' S the other end, ultraviolet LED lamp LED6 'S2, 4 feet ground connection, ultraviolet LED lamp LED 7' S3 feet are connected to resistance R2 'S the other end, ultraviolet LED lamp LED 7' S1 foot is connected to resistance R24 'S the other end, ultraviolet LED lamp LED 7' S2, 4 feet ground connection.
Further, the double-colored LED pilot lamp contains resistance R7, resistance R11 and red green double-colored LED lamp LED1, 2 feet of U1 are connected to the 4 feet of red green double-colored LED lamp LED1, 3 feet of U1 are connected to the 2 feet of red green double-colored LED lamp LED1, the one end of resistance R7 is connected to the 3 feet of red green double-colored LED lamp LED1, the one end of resistance R11 is connected to the 1 foot of red green double-colored LED lamp LED1, VBAT is connected to the other end of resistance R7 and the other end of resistance R11.
Further, one end of the first tilt switch K1 is connected to pin 17 of U1, the other end of the first tilt switch K1 is grounded, one end of the second tilt switch K2 is connected to pin 13 of U1, the other end of the second tilt switch K2 is grounded, one end of the touch switch SW1 is connected to pin 16 of U1, and the other end of the touch switch SW1 is grounded.
Further, the power supply circuit comprises a BL9161 switching power supply chip U3, the 1 pin of the U3 is grounded, the 2 pin of the U3 is connected with one end of a capacitor C9 and outputs a 3.3V power supply, the 3 pin of the U3 is connected with one end of a capacitor C8 and is connected with VBAT, and the other end of the capacitor C8 and the other end of the capacitor C9 are grounded; the program recording circuit comprises a recording interface JP1, wherein a pin 1 of the recording interface JP1 is connected with a pin 4 of U1, a pin 2 of the recording interface JP1 is connected with one end of a resistor R1 and is grounded, the other end of the resistor R1 is connected with a pin 3 of the recording interface JP1 and a pin 18 of U1, and a pin 4 of the recording interface JP1 is connected with a 3.3V power supply.
A control method of an ultraviolet sterilization box control circuit is characterized in that: including a normal operating mode and a hidden power saving mode,
The normal operation mode comprises the following steps:
Step one: detecting whether the USB is inserted in real time, if the USB is detected to be inserted, indicating a charging state by the LED display lamp, and automatically returning to a shutdown state when the USB is pulled out;
Step two: when the LED display device is in a starting-up state, the microcontroller detects the states of the first dip angle switch and the second dip angle switch simultaneously, and as the angles of the two dip angle switches are complementary, the LED display device is not conducted within 0-15 degrees, and as long as one dip angle switch state is ON, the LED display device is judged to be in a cover opening state, the LED display device displays the electric quantity of a 1S battery, and if the two dip angle switch states are OFF, the LED display device is judged to be in a cover closing state;
Step three: in the cover closing state, firstly judging a current mode, if the current mode is a normal working mode, judging the cover opening time before cover closing, if the time is less than 10S, not sterilizing, if the time is more than 10S and less than 2Min, operating the ultraviolet lamp for 1Min, and if the time is more than 2Min, operating the ultraviolet lamp for 3Min;
The hidden power saving mode includes the steps of:
step one: when the cover is opened, the key 3S is pressed for a long time, the green light continuously flashes down for two times, the hidden electricity-saving mode is entered, the key 3S is pressed for a long time again, the red light continuously flashes down for two times, and the hidden electricity-saving mode is exited;
Step two: in the power saving mode, the cover is not sterilized when the cover opening time is less than 2Min, and the cover opening time is 1Min when the cover opening time is more than 2 Min.
An ultraviolet sterilization box, which is characterized in that: the sterilizing box comprises a front cover, a rear cover, a circuit board and a base, wherein an ultraviolet sterilizing box control circuit is arranged on the circuit board, the front cover is arranged on the upper side of the rear cover to form a sterilizing box body, the circuit board is arranged on the inner side of the sterilizing box body, and the base is detachably arranged on the rear cover.
Compared with the prior art, the invention has the following advantages and effects: the ultraviolet sterilization box control circuit detects the inclination angle of the toilet cover through the first inclination angle switch and the second inclination angle switch with complementary angles, solves the problem of ultraviolet sterilization control through proper control logic, avoids damaging human bodies, saves energy and saves electricity.
Drawings
Fig. 1 is a block diagram of a control circuit of an ultraviolet sterilization box according to the present invention.
Fig. 2 is a circuit diagram of a microcontroller of the present invention.
Fig. 3 is a circuit diagram of the battery voltage detection circuit of the present invention.
Fig. 4 is a circuit diagram of the lithium battery charge management circuit of the present invention.
Fig. 5 is a circuit diagram of the ultraviolet LED lamp driving circuit of the present invention.
Fig. 6 is a circuit diagram of a dual color LED indicator of the present invention.
Fig. 7 is a circuit diagram of a first tilt switch, a second tilt switch, and a tact switch of the present invention.
Fig. 8 is a circuit diagram of a power supply circuit of the present invention.
Fig. 9 is a circuit diagram of the program recording circuit of the present invention.
Fig. 10 is a flowchart of a control method of the ultraviolet sterilization box control circuit of the present invention.
Fig. 11 is a schematic diagram of the tilt switch of the present invention.
Fig. 12 is a schematic view of the ultraviolet ray sterilization cassette of the present invention.
Detailed Description
The present invention will be described in further detail by way of examples with reference to the accompanying drawings, which are illustrative of the present invention and not limited to the following examples.
As shown in FIG. 1, the ultraviolet sterilization box control circuit comprises a microcontroller, a battery voltage detection circuit, a lithium battery charging management circuit, an ultraviolet LED lamp driving circuit, a bicolor LED indicator lamp, a first dip angle switch, a second dip angle switch and a tact switch, wherein the battery voltage detection circuit is connected with the microcontroller and used for detecting battery voltage and judging current electric quantity, the lithium battery charging management circuit is connected with the microcontroller and used for managing lithium battery charging, the ultraviolet LED lamp driving circuit is connected with the microcontroller and used for driving the ultraviolet LED lamp, the bicolor LED indicator lamp is connected with the microcontroller and used for indicating ultraviolet sterilization state, the first dip angle switch and the second dip angle switch are respectively connected with the microcontroller and used for detecting dip angle positions, and the tact switch is connected with the microcontroller and used for switching on and off and mode switching. The ultraviolet sterilization box control circuit can be used on a flip toilet, the toilet cover is closed, an ultraviolet lamp can be automatically lightened for sterilization, the flip indication electric quantity automatically turns off the ultraviolet lamp, meanwhile, the automatic control of sterilization working time of urination and defecation can be distinguished, the health of a user is ensured, and the user experience is improved. The microcontroller detects the states of the two dip switches and the transition state of the tact switch, the battery voltage and the charging state. The ultraviolet LED and the two-color lamp LED are turned on or off in various cases according to the judgment of the detected input signal. And automatic sterilization and state indication are carried out, so that the health of a user is ensured, and the user experience is improved.
As shown in FIG. 2, the microcontroller adopts STM8S003F3 type singlechip chip U1, U1 all 4 feet connect resistance R3 one end and electric capacity C1 one end, and 3.3V power is connected to the resistance R3 other end, and electric capacity C1 other end ground connection, and electric capacity C3 one end is connected to U1 ' S8 feet, and electric capacity C3 other end is connected U1 ' S7 feet and electric capacity C2 one end and ground connection, and electric capacity C2 other end is connected U1 ' S9 feet and is connected 3.3V power.
As shown in fig. 3, the battery voltage detection circuit includes a resistor R10 and a resistor R29, wherein one end of the resistor R10 is connected to VBAT, the other end of the resistor R10 is connected to one end of the resistor R29 and the 19 pin of U1, and the other end of the resistor R29 is connected to the 20 pin of U1. The battery voltage detection circuit divides the detection voltage through two resistors, the AD_VB is connected with the AD input interface of the single chip microcomputer, the IO8 is connected with the common IO port, when the detection voltage is needed, the IO8 is pulled down, the AD port of the single chip microcomputer reads data, then the corresponding battery voltage is calculated, and the current electric quantity is judged according to the battery voltage and the electric quantity corresponding table provided by a battery manufacturer.
As shown in fig. 4, the lithium battery charging management circuit includes a charging management chip U2 of model LY4057A, 4, 8 pins of U2 are connected to one end of a resistor R4, one end of a capacitor C5 and 1 pin of a USB interface USB1, the other end of the resistor R4 is connected to one end of a resistor R6 and 14 pins of U1, the other end of the resistor R6 is grounded, the other end of the capacitor C5 is connected to 5 pins of the USB interface USB1 and grounded, 7 pins of U2 are connected to one end of a resistor R8 and 12 pins of U1, 6 pins of U2 are connected to one end of a resistor R9 and 11 pins of U1, the other end of the resistor R8 and the other end of the resistor R9 are connected to VBAT, 5 pins of U2 are connected to VBAT, one end of a capacitor C6 and the positive electrode of the lithium battery CR1, 2 pins of U2 are connected to one end of a resistor R5, the other end of U2 pin, 3 pins of the resistor R5, the other end of U2 and the negative electrode of the capacitor C6 and the negative electrode of the lithium battery CR1 are grounded. The lithium battery charging management circuit is mainly used for carrying out charging management through a LY4057 chip, and IO6 and IO7 are connected with an IO port of the singlechip, so that the charging completion and charging states can be detected. Vin is connected with an IO port of the singlechip, and R4 and R6 form a voltage dividing circuit, so that whether USB is inserted or not can be detected. The charging current can be adjusted by adjusting the magnitude of R5.
As shown in FIG. 5, the driving circuit of the ultraviolet LED lamp comprises a boosting chip U4 with model LY1061, a pin 1 of U4 is connected with one end of an inductor L1 and the anode of a diode D2, the other end of the inductor L1 is connected with pins 4 and 5 of U4 and the D pole of a MOS tube Q2, the S pole of the MOS tube Q2 is connected with one end of a resistor R30, the other end of the resistor R30 is connected with the G pole of the MOS tube Q2 and one end of a resistor R28, the resistor R28 is connected with a pin 13 of U1, the cathode of the diode D2 is connected with one end of a resistor R25, one end of a capacitor C7, one end of a capacitor C4, one end of a resistor R13, one end of a resistor R20, one end of a resistor R14, one end of a resistor R22, one end of a resistor R2 and one end of a resistor R24 and is connected with a 6.8V power supply, resistor R25 other end connection resistance R27 one end and U4 'S3 feet, U4' S2 feet, resistance R27 'S the other end, electric capacity C7' S the other end and electric capacity C4 'S the other end ground connection, ultraviolet LED lamp LED 5' S3 feet are connected to resistance R13 'S the other end, ultraviolet LED lamp LED 5' S1 foot is connected to resistance R20 'S the other end, ultraviolet LED lamp LED 5' S2, 4 feet ground connection, ultraviolet LED lamp LED6 'S3 feet are connected to resistance R14' S the other end, ultraviolet LED lamp LED6 'S2, 4 feet ground connection, ultraviolet LED lamp LED 7' S3 feet are connected to resistance R2 'S the other end, ultraviolet LED lamp LED 7' S1 foot is connected to resistance R24 'S the other end, ultraviolet LED lamp LED 7' S2, 4 feet ground connection. The ultraviolet LED lamp driving circuit can boost the voltage of the battery to the rated voltage of an ultraviolet LED, and the ultraviolet LED is double-wick and can emit ultraviolet rays with two wavelengths, namely UVA and UVC. UVA, wavelength is 320-400 nm, UVC, wavelength is 200-275 nm. The SW is connected with the IO port of the singlechip and can switch the ultraviolet LED lamp through the MOS tube Q2.
As shown in fig. 6, the dual-color LED indicator comprises a resistor R7, a resistor R11, and a red-green dual-color LED lamp LED1, wherein the 4 pin of the red-green dual-color LED lamp LED1 is connected with the 2 pin of U1, the 2 pin of the red-green dual-color LED lamp LED1 is connected with the 3 pin of U1, the 3 pin of the red-green dual-color LED lamp LED1 is connected with one end of the resistor R7, the 1 pin of the red-green dual-color LED lamp LED1 is connected with one end of the resistor R11, and the other end of the resistor R7 is connected with the other end of the resistor R11.
As shown in fig. 7, one end of the first dip switch K1 is connected to pin 17 of U1, the other end of the first dip switch K1 is grounded, one end of the second dip switch K2 is connected to pin 13 of U1, the other end of the second dip switch K2 is grounded, one end of the touch switch SW1 is connected to pin 16 of U1, and the other end of the touch switch SW1 is grounded. The inclination switches are two inclination switches with complementary angles, the singlechip simultaneously detects the states of the two inclination switches, and as long as one inclination switch state is ON, the ultraviolet lamp is turned ON when the two inclination switch states are OFF, the ultraviolet lamp can be ensured to be turned ON only in a certain angle range, no angle blind area exists, and the use safety is greatly improved.
As shown in fig. 8, the control circuit of the ultraviolet sterilization box of the present invention further comprises a power circuit, wherein the power circuit comprises a BL9161 switching power supply chip U3, pin 1 of the U3 is grounded, pin 2 of the U3 is connected to one end of a capacitor C9 and outputs a 3.3V power supply, pin 3 of the U3 is connected to one end of a capacitor C8 and is connected to VBAT, and the other end of the capacitor C8 and the other end of the capacitor C9 are grounded. U3 is a linear voltage stabilizer (LDO) which can stabilize the voltage of a battery at 3.3V to supply power for the singlechip.
As shown in fig. 9, the control circuit of the ultraviolet sterilization box of the present invention further comprises a program programming circuit, wherein the program programming circuit comprises a programming interface JP1, a pin 1 of the programming interface JP1 is connected with a pin 4 of the U1, a pin 2 of the programming interface JP1 is connected with one end of a resistor R1 and is grounded, the other end of the resistor R1 is connected with a pin 3 of the programming interface JP1 and a pin 18 of the U1, and a pin 4 of the programming interface JP1 is connected with a 3.3V power supply.
As shown in FIG. 10, a control method of an ultraviolet sterilization box control circuit comprises a normal working mode and a hidden power saving mode, wherein the controller is in a power-off state by default after being electrified, and the normal working mode is adopted.
The normal operation mode comprises the following steps:
Step one: detecting whether the USB is inserted in real time, if the USB is detected to be inserted, indicating a charging state by the LED display lamp, and automatically returning to a shutdown state when the USB is pulled out;
Step two: when the LED display device is in a starting-up state, the microcontroller detects the states of the first dip switch and the second dip switch simultaneously, and as the angles of the two dip switches are complementary, as shown in fig. 11, the two dip switches are not conducted within 0-15 degrees, and if only one dip switch state is ON, the LED display device is judged to be in a cover opening state, the LED display device displays the electric quantity of the 1S battery, and if both dip switches are OFF, the LED display device is judged to be in a cover closing state;
step three: in the cover closing state, the current mode is firstly judged, if the current mode is the normal working mode, the cover opening time before cover closing is judged, if the time is less than 10S, sterilization is not performed, if the time is more than 10S and less than 2Min, the ultraviolet lamp works for 1Min, and if the time is more than 2Min, the ultraviolet lamp works for 3Min.
The aim of the arrangement is that the urine is generally controlled within 2Min, and is flushed immediately after use, and the sterilization is generally carried out for 1Min, while a lot of dirty gas exists in the process of excrement excretion, and the ultraviolet sterilization is mainly used for sterilizing bacteria in the suspended dirty gas and bacteria remained on the wall of the toilet bowl, so that the sterilization is required for a long time, and the sterilization is generally carried out for 3 Min. The arrangement can completely improve the utilization rate of ultraviolet rays and save electric quantity.
The hidden power saving mode includes the steps of:
step one: when the cover is opened, the key 3S is pressed for a long time, the green light continuously flashes down for two times, the hidden electricity-saving mode is entered, the key 3S is pressed for a long time again, the red light continuously flashes down for two times, and the hidden electricity-saving mode is exited;
Step two: in the power saving mode, the cover is not sterilized when the cover opening time is less than 2Min, and the cover opening time is 1Min when the cover opening time is more than 2 Min.
In this way, the toilet is mainly sterilized, the electric quantity can be saved, and the service time is prolonged. The user can freely select whether to enter the power saving mode according to the need.
As shown in fig. 12, an ultraviolet sterilization box comprises a front cover 1, a rear cover, a circuit board and a base 2, wherein an ultraviolet sterilization box control circuit is arranged on the circuit board, the front cover is arranged on the upper side of the rear cover to form a sterilization box body, the circuit board is arranged on the inner side of the sterilization box body, and the base is detachably arranged on the rear cover. The detachable structure is characterized in that a T-shaped groove is formed in the upper side of the base, a T-shaped guide rail is arranged on the lower side surface of the rear cover corresponding to the T-shaped groove of the base, and the rear cover is slidably arranged in the T-shaped groove of the base through the T-shaped guide rail.
The ultraviolet sterilization box control circuit detects the inclination angle of the toilet cover through the first inclination angle switch and the second inclination angle switch with complementary angles, solves the problem of ultraviolet sterilization control through proper control logic, avoids damaging human bodies, saves energy and saves electricity.
The foregoing description of the invention is merely exemplary of the invention. Those skilled in the art may make various modifications or additions to the described embodiments or substitutions, without departing from the scope of the invention as defined in the accompanying claims.
Claims (1)
1. The control method of the ultraviolet sterilization box control circuit comprises a microcontroller, a battery voltage detection circuit, a lithium battery charging management circuit, an ultraviolet LED lamp driving circuit, a bicolor LED indicator lamp, a first dip switch, a second dip switch and a tact switch, wherein the battery voltage detection circuit is connected with the microcontroller for detecting battery voltage to judge current electric quantity, the lithium battery charging management circuit is connected with the microcontroller for managing lithium battery charging, the ultraviolet LED lamp driving circuit is connected with the microcontroller for driving the ultraviolet LED lamp, the bicolor LED indicator lamp is connected with the microcontroller for indicating ultraviolet sterilization state, The first dip angle switch and the second dip angle switch are respectively connected with the microcontroller and used for detecting dip angle positions, angles of the first dip angle switch and the second dip angle switch are complementary, and the tact switch is connected with the microcontroller and used for switching on and off and mode switching; The microcontroller adopts a STM8S003F3 type singlechip chip U1, the 4 pin of U1 is connected with one end of a resistor R3 and one end of a capacitor C1, the other end of the resistor R3 is connected with a 3.3V power supply, the other end of the capacitor C1 is grounded, the 8 pin of U1 is connected with one end of the capacitor C3, the other end of the capacitor C3 is connected with the 7 pin of U1 and one end of a capacitor C2 and is grounded, and the other end of the capacitor C2 is connected with the 9 pin of U1 and is connected with a 3.3V power supply; the battery voltage detection circuit comprises a resistor R10 and a resistor R29, wherein one end of the resistor R10 is connected with VBAT, the other end of the resistor R10 is connected with one end of the resistor R29 and the 19 pin of U1, and the other end of the resistor R29 is connected with the 20 pin of U1; The lithium battery charging management circuit comprises a charging management chip U2 of model LY4057A, wherein pins 4 and 8 of U2 are connected with one end of a resistor R4, one end of a capacitor C5 and a pin 1 of a USB interface USB1, the other end of the resistor R4 is connected with one end of a resistor R6 and a pin 14 of the USB interface USB1, the other end of the resistor R6 is grounded, the other end of the capacitor C5 is connected with a pin 5 of the USB interface USB1 and is grounded, pin 7 of U2 is connected with one end of a resistor R8 and a pin 12 of the U1, pin 6 of U2 is connected with one end of a resistor R9 and a pin 11 of the U1, the other end of the resistor R8 and the other end of the resistor R9 are connected with VBAT, and pin 5 of U2 is connected with VBAT, One end of the capacitor C6 and the anode of the lithium battery CR1 are connected with one end of the resistor R5 by the pin 2 of the U2, the other end of the resistor R5, the pin 3 of the U2, the other end of the capacitor C6 and the cathode of the lithium battery CR1 are grounded; the ultraviolet LED lamp driving circuit comprises a boosting chip U4 with the model LY1061, wherein the pin 1 of the U4 is connected with one end of an inductor L1 and the anode of a diode D2, the other end of the inductor L1 is connected with pins 4 and 5 of the U4 and the D pole of a MOS tube Q2, the S pole of the MOS tube Q2 is connected with one end of a resistor R30, the other end of the resistor R30 is connected with the G pole of the MOS tube Q2 and one end of a resistor R28, the resistor R28 is connected with the pin 13 of the U1, the cathode of the diode D2 is connected with one end of a resistor R25, one end of a capacitor C7, one end of a capacitor C4, one end of a resistor R13, one end of a resistor R20, one end of a resistor R14, one end of a resistor R22, One end of the resistor R2 and one end of the resistor R24 are connected with a 6.8V power supply, the other end of the resistor R25 is connected with one end of the resistor R27 and the 3 pin of the U4, the 2 pin of the U4, the other end of the resistor R27, the other end of the capacitor C7 and the other end of the capacitor C4 are grounded, the other end of the resistor R13 is connected with the 3 pin of the ultraviolet LED lamp LED5, the other end of the resistor R20 is connected with the 1 pin of the ultraviolet LED lamp LED5, the 2 pin and the 4 pin of the ultraviolet LED lamp LED5 are grounded, the other end of the resistor R14 is connected with the 3 pin of the ultraviolet LED lamp LED6, the other end of the resistor R22 is connected with the 1 pin of the ultraviolet LED lamp LED6, The pins 2 and 4 of the ultraviolet LED lamp LED6 are grounded, the other end of the resistor R2 is connected with the pin 3 of the ultraviolet LED lamp LED7, the other end of the resistor R24 is connected with the pin 1 of the ultraviolet LED lamp LED7, and the pins 2 and 4 of the ultraviolet LED lamp LED7 are grounded; The double-color LED indicator lamp comprises a resistor R7, a resistor R11 and a red-green double-color LED lamp LED1, wherein the 4 pin of the red-green double-color LED lamp LED1 is connected with the 2 pin of U1, the 2 pin of the red-green double-color LED lamp LED1 is connected with the 3 pin of U1, the 3 pin of the red-green double-color LED lamp LED1 is connected with one end of the resistor R7, the 1 pin of the red-green double-color LED lamp LED1 is connected with one end of the resistor R11, and the other end of the resistor R7 and the other end of the resistor R11 are connected with VBAT; one end of the first dip angle switch K1 is connected with the 17 pin of U1, the other end of the first dip angle switch K1 is grounded, one end of the second dip angle switch K2 is connected with the 13 pin of U1, the other end of the second dip angle switch K2 is grounded, one end of the touch switch SW1 is connected with the 16 pin of U1, and the other end of the touch switch SW1 is grounded; The power supply circuit comprises a BL9161 switching power supply chip U3, the 1 pin of the U3 is grounded, the 2 pin of the U3 is connected with one end of a capacitor C9 and outputs a 3.3V power supply, the 3 pin of the U3 is connected with one end of a capacitor C8 and is connected with VBAT, and the other end of the capacitor C8 and the other end of the capacitor C9 are grounded; the program recording circuit comprises a recording interface JP1, wherein a pin 1 of the recording interface JP1 is connected with a pin 4 of U1, a pin 2 of the recording interface JP1 is connected with one end of a resistor R1 and is grounded, the other end of the resistor R1 is connected with a pin 3 of the recording interface JP1 and a pin 18 of U1, and a pin 4 of the recording interface JP1 is connected with a 3.3V power supply;
the method is characterized in that: including a normal operating mode and a hidden power saving mode,
The normal operation mode comprises the following steps:
Step one: detecting whether the USB is inserted in real time, if the USB is detected to be inserted, indicating a charging state by the LED display lamp, and automatically returning to a shutdown state when the USB is pulled out;
Step two: when the LED display device is in a starting-up state, the microcontroller detects the states of the first dip angle switch and the second dip angle switch simultaneously, and as the angles of the two dip angle switches are complementary, the LED display device is not conducted within 0-15 degrees, and as long as one dip angle switch state is ON, the LED display device is judged to be in a cover opening state, the LED display device displays the electric quantity of a 1S battery, and if the two dip angle switch states are OFF, the LED display device is judged to be in a cover closing state;
step three: in the cover closing state, firstly judging a current mode, if the current mode is a normal working mode, judging the cover opening time before cover closing, if the time is less than 10S, not sterilizing, if the time is more than 10S and less than 2Min, operating the ultraviolet lamp for 1Min, and if the time is more than 2Min, operating the ultraviolet lamp for 3Min;
The hidden power saving mode includes the steps of:
step one: when the cover is opened, the key 3S is pressed for a long time, the green light continuously flashes down for two times, the hidden electricity-saving mode is entered, the key 3S is pressed for a long time again, the red light continuously flashes down for two times, and the hidden electricity-saving mode is exited;
Step two: in the power saving mode, the cover is not sterilized when the cover opening time is less than 2Min, and the cover opening time is 1Min when the cover opening time is more than 2 Min.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011513393.8A CN112512167B (en) | 2020-12-21 | 2020-12-21 | Ultraviolet sterilization box control circuit, control method and sterilization box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011513393.8A CN112512167B (en) | 2020-12-21 | 2020-12-21 | Ultraviolet sterilization box control circuit, control method and sterilization box |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112512167A CN112512167A (en) | 2021-03-16 |
CN112512167B true CN112512167B (en) | 2024-09-06 |
Family
ID=74922881
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011513393.8A Active CN112512167B (en) | 2020-12-21 | 2020-12-21 | Ultraviolet sterilization box control circuit, control method and sterilization box |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112512167B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110007613U (en) * | 2011-06-14 | 2011-08-02 | 주식회사 엠이티엔지니어링 | Stool Having Short Wavelength UV LED |
CN210629921U (en) * | 2019-09-30 | 2020-05-26 | 深圳市好时达电器有限公司 | Little night-light of plane clock of electrodeless regulation of light |
CN111387867A (en) * | 2020-04-30 | 2020-07-10 | 深圳市奇脉电子技术有限公司 | Toilet lid with ultraviolet disinfection function |
CN211377677U (en) * | 2020-01-08 | 2020-08-28 | 吴小莉 | Wireless charging circuit |
CN211421290U (en) * | 2019-12-19 | 2020-09-04 | 深圳闪博科技有限公司 | Deodorization and sterilization device for toilet |
CN213522465U (en) * | 2020-12-21 | 2021-06-22 | 浙江西盈科技股份有限公司 | Ultraviolet ray sterilization box control circuit and sterilization box |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH073999Y2 (en) * | 1989-03-09 | 1995-02-01 | 豊次 飯田 | Sterilizer for toilet bowl |
KR100970658B1 (en) * | 2009-07-02 | 2010-07-15 | 김현종 | Sterilizing device for cover seat of toilet bowl |
KR101958946B1 (en) * | 2017-10-16 | 2019-03-15 | 계명대학교 산학협력단 | Dual spectrum toilet cover with thermal therapy for constipation and disinfection of the toilet, and how to use it |
-
2020
- 2020-12-21 CN CN202011513393.8A patent/CN112512167B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110007613U (en) * | 2011-06-14 | 2011-08-02 | 주식회사 엠이티엔지니어링 | Stool Having Short Wavelength UV LED |
CN210629921U (en) * | 2019-09-30 | 2020-05-26 | 深圳市好时达电器有限公司 | Little night-light of plane clock of electrodeless regulation of light |
CN211421290U (en) * | 2019-12-19 | 2020-09-04 | 深圳闪博科技有限公司 | Deodorization and sterilization device for toilet |
CN211377677U (en) * | 2020-01-08 | 2020-08-28 | 吴小莉 | Wireless charging circuit |
CN111387867A (en) * | 2020-04-30 | 2020-07-10 | 深圳市奇脉电子技术有限公司 | Toilet lid with ultraviolet disinfection function |
CN213522465U (en) * | 2020-12-21 | 2021-06-22 | 浙江西盈科技股份有限公司 | Ultraviolet ray sterilization box control circuit and sterilization box |
Also Published As
Publication number | Publication date |
---|---|
CN112512167A (en) | 2021-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107620360A (en) | A kind of control method of intelligent closestool | |
CN109548246A (en) | A kind of low power-consumption intelligent LED light and control method | |
CN202818683U (en) | Intelligent LED lamp | |
CN213522465U (en) | Ultraviolet ray sterilization box control circuit and sterilization box | |
CN112512167B (en) | Ultraviolet sterilization box control circuit, control method and sterilization box | |
CN210276825U (en) | Curtain opening and closing device | |
CN205071413U (en) | LED illumination lamps and lanterns of radar response | |
CN201718075U (en) | Intelligent LED lamp | |
CN108034960A (en) | Ozone generation system and portable ozone generator | |
CN207235152U (en) | Intelligent control system for indoor lighting | |
CN107134830B (en) | Tailless intelligent toilet | |
CN212437612U (en) | Intelligent electric umbrella switch control circuit structure | |
CN205863700U (en) | A kind of intelligent domestic power distribution equipment | |
CN207460564U (en) | A kind of classroom intelligent energy-saving controller | |
CN206726979U (en) | A kind of domestic intelligent emergency button | |
CN206685639U (en) | A kind of intelligent power off socket | |
CN213373943U (en) | Ultraviolet disinfection lamp | |
CN206400186U (en) | A kind of Multifunctional rechargeable magnifying glass | |
CN204305427U (en) | Voltage increase and current constant type solar street lamp controller | |
CN201450640U (en) | Controlling circuit of delayed variable-light prompting stair light | |
CN217356589U (en) | Electric water heater with induction night lamp | |
CN211596959U (en) | System capable of realizing automatic control of lamp and automatic flushing of closestool in toilet | |
CN213547154U (en) | Door-sensing battery box | |
CN213608428U (en) | Portable sterilizing lamp | |
CN204706480U (en) | A kind of bed switch being provided with power supply indicator |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |