CN116360310A - Method and device for controlling disinfection lamp tube - Google Patents

Method and device for controlling disinfection lamp tube Download PDF

Info

Publication number
CN116360310A
CN116360310A CN202310260527.7A CN202310260527A CN116360310A CN 116360310 A CN116360310 A CN 116360310A CN 202310260527 A CN202310260527 A CN 202310260527A CN 116360310 A CN116360310 A CN 116360310A
Authority
CN
China
Prior art keywords
microcontroller
control
screen
relay
disinfection
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.)
Pending
Application number
CN202310260527.7A
Other languages
Chinese (zh)
Inventor
邬娅玲
李正明
段炼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Biosun Environmental Protection Technology Co ltd
Original Assignee
Shenzhen Biosun Environmental Protection Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Biosun Environmental Protection Technology Co ltd filed Critical Shenzhen Biosun Environmental Protection Technology Co ltd
Priority to CN202310260527.7A priority Critical patent/CN116360310A/en
Publication of CN116360310A publication Critical patent/CN116360310A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Apparatus For Disinfection Or Sterilisation (AREA)

Abstract

The invention relates to the field of industrial control, in particular to a method and a device for controlling a disinfection lamp tube, wherein the device comprises a serial port screen, a microcontroller and a relay, the serial port screen is connected with the microcontroller through a serial port, and the relay is respectively connected with the microcontroller and the disinfection lamp tube; the serial port screen is used for receiving a control instruction input by a user aiming at the disinfection lamp tube through the screen and sending the control instruction to the microcontroller; the microcontroller is used for determining a control signal according to the control instruction, and controlling the relay to control the working state of the disinfection lamp tube according to the control signal. According to the embodiment of the invention, a user can control the disinfection lamp tube through the screen of the serial port screen, and man-machine interaction can be realized, so that user experience can be improved and user operation difficulty can be reduced.

Description

Method and device for controlling disinfection lamp tube
Technical Field
The embodiment of the invention relates to the technical field of industrial control, in particular to a method and a device for controlling a disinfection lamp tube.
Background
Along with the continuous improvement of the living standard of people, the sterilizing lamp tube is widely applied in the life of people. However, the different articles to be sterilized, the different working times required for sterilizing the lamp tube; different sterilizing spaces and different working time are needed for sterilizing the lamp tubes; the sterilizing environment is different, and the working time required by the sterilizing lamp tube is different. Therefore, how to control the sterilizing lamp is very important.
One common way to control a disinfection tube is: the user controls the sterilizing lamp tube through the remote controller. However, the user controls the sterilizing lamp tube through the remote controller, and the user cannot perform man-machine interaction, so that the user experience is reduced.
Disclosure of Invention
The embodiment of the invention discloses a method and a device for controlling a disinfection lamp tube, which are used for improving user experience.
The first aspect discloses a disinfection fluorescent tube controlling means, including serial ports screen, microcontroller and relay, the serial ports screen with microcontroller passes through the serial ports to be connected, the relay is connected respectively microcontroller with disinfection fluorescent tube, wherein:
the serial port screen is used for receiving a control instruction input by a user aiming at the disinfection lamp tube through the screen and sending the control instruction to the microcontroller;
the microcontroller is used for determining a control signal according to the control instruction, and controlling the relay to control the working state of the disinfection lamp tube according to the control signal.
As a possible implementation manner, in a case that the control instruction is a first control instruction for turning on the disinfection lamp, the microcontroller determines a control signal according to the control instruction, and controls the relay to control the working state of the disinfection lamp according to the control signal includes:
the microcontroller determines a first control signal according to the first control instruction, and controls the relay to start the disinfection lamp according to the first control signal.
As a possible implementation manner, in a case that the control command is a second control command for turning off the disinfection lamp, the microcontroller determines a control signal according to the control command, and controls the relay to control the working state of the disinfection lamp according to the control signal includes:
and the microcontroller determines a second control signal according to the second control instruction, and controls the relay to close the disinfection lamp tube according to the second control signal.
As a possible implementation manner, in the case that the control instruction is a third control instruction for setting the working time of the disinfection lamp, the microcontroller determines a control signal according to the control instruction, and controls the relay to control the working state of the disinfection lamp according to the control signal includes:
and the microcontroller determines the closing time of the disinfection lamp according to the third control instruction, and controls the relay to close the disinfection lamp at the closing time.
As a possible implementation manner, the microcontroller is further configured to determine a remaining working time of the disinfection lamp according to a closing time of the disinfection lamp, and send the remaining working time to the serial port screen;
the serial port screen is also used for displaying the residual working time.
As a possible implementation manner, the microcontroller is further configured to send a fourth control instruction to the serial port screen for closing the screen of the serial port screen after the disinfection lamp is turned off;
the serial port screen is further used for closing the screen of the serial port screen according to the fourth control instruction.
As a possible implementation, the device further comprises a buzzer, the buzzer being connected to the microcontroller, wherein:
and the microcontroller is also used for controlling the buzzer to work according to the control instruction.
As a possible embodiment, the device further comprises an indicator light, wherein:
the indicating lamp is used for indicating whether the microcontroller and/or the power supply work normally or not.
As a possible implementation manner, the serial port screen is further used for displaying the working state of the disinfection lamp tube.
A second aspect discloses a method of controlling a disinfection lamp, the method being applied to a disinfection lamp control device, the device comprising a serial screen, a microcontroller and a relay, the method comprising:
receiving a control instruction input by a user aiming at the disinfection lamp tube through a screen of the serial port screen;
determining a control signal according to the control instruction by the microcontroller;
and controlling the relay to control the working state of the disinfection lamp tube by the microcontroller according to the control signal.
As a possible implementation manner, in the case that the control command is a first control command for turning on the disinfection lamp, the determining, by the microcontroller, a control signal according to the control command includes:
determining a first control signal by the microcontroller according to the first control instruction;
the controlling the working state of the disinfection lamp tube by the microcontroller according to the control signal controlling the relay comprises the following steps:
and the microcontroller controls the relay to start the disinfection lamp according to the first control signal.
As a possible implementation manner, in the case that the control command is a second control command for turning off the disinfection lamp, the determining, by the microcontroller, a control signal according to the control command includes:
determining a second control signal by the microcontroller according to the second control instruction;
the controlling the working state of the disinfection lamp tube by the microcontroller according to the control signal controlling the relay comprises the following steps:
and the relay is controlled by the microcontroller according to the second control signal to close the disinfection lamp tube.
As a possible implementation manner, in the case that the control command is a third control command for setting the operating time of the sterilizing lamp, the determining, by the microcontroller, a control signal according to the control command includes:
determining the closing time of the disinfection lamp tube according to the third control instruction through the microcontroller;
the controlling the working state of the disinfection lamp tube by the microcontroller according to the control signal controlling the relay comprises the following steps:
and the relay is controlled by the microcontroller to close the disinfection lamp at the closing time.
As a possible implementation manner, the method further comprises:
determining the remaining working time of the disinfection lamp tube according to the closing time of the disinfection lamp tube by the microcontroller;
and displaying the residual working time through the serial port screen.
As a possible implementation manner, after the sterilizing lamp is turned off, the method further includes:
generating a fourth control instruction for closing a screen of the serial port screen through the microcontroller;
and closing a screen of the serial port screen according to the fourth control instruction through the serial port screen.
As a possible implementation manner, the device further comprises a buzzer, and the method further comprises:
and controlling the buzzer to work through the microcontroller according to the control instruction.
As a possible implementation manner, the device further comprises an indicator light, and the method further comprises:
and indicating whether the microcontroller and/or the power supply work normally or not through the indicator lamp.
As a possible implementation manner, the method further comprises:
and displaying the working state of the disinfection lamp tube through the serial port screen.
In the embodiment of the invention, the sterilizing lamp tube control device comprises a serial port screen, a microcontroller and a relay, wherein the serial port screen is connected with the microcontroller through a serial port, the relay is respectively connected with the microcontroller and the sterilizing lamp tube, and the serial port screen receives a control instruction input by a user aiming at the sterilizing lamp tube through the screen and sends the control instruction to the microcontroller; the microcontroller determines a control signal according to the control instruction, and controls the relay to control the working state of the disinfection lamp tube according to the control signal. Therefore, the disinfection lamp tube control device comprises the serial port screen, and a user can control the disinfection lamp tube through the screen of the serial port screen, so that man-machine interaction can be realized, user experience can be improved, and user operation difficulty can be reduced. In addition, the serial port screen is connected with the microcontroller through the serial port, the control instruction of the user received by the serial port screen through the screen can be a character string control instruction, and the character string control instruction is more visual and convenient than a hexadecimal instruction when writing a control code.
Drawings
Fig. 1 is a schematic structural diagram of a control device for a disinfection lamp according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of another control device for sterilizing a lamp according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a display interface of a serial screen according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a control device for a disinfection lamp according to an embodiment of the present invention;
fig. 5 is a flow chart of a method for controlling a disinfection lamp according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and thoroughly described below with reference to the accompanying drawings.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
The embodiment of the invention discloses a method and a device for controlling a disinfection lamp tube, which are used for improving user experience. The following will describe in detail.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a control device for a disinfection lamp according to an embodiment of the invention. As shown in fig. 1, the sterilizing lamp control device may include a serial port screen 101, a microcontroller 102, and a relay 103.
The serial port screen 101 and the microcontroller 102 can be connected through serial ports, and the relay 103 can be respectively connected with the microcontroller 102 and the disinfection lamp.
The serial port screen 101 may receive a control instruction input by a user for the sterilizing light tube through the screen, and then may transmit the control instruction to the microcontroller 102 through the serial port.
After receiving the control command from the serial port screen 101, the microcontroller 102 may determine the control signal according to the control command, that is, parse the control command, and then determine the control signal according to the parsing result. The microcontroller 102 may control the relay 103 to control the operating state of the sterilizing lamp according to the control signal. The operating state of the disinfection tube may include on and off. Specifically, the microcontroller 102 may control the relay 103 to be turned on according to the control signal so as to turn on the sterilizing lamp, or may control the relay 103 to be turned off according to the control signal so as to turn off the sterilizing lamp.
The control instruction input by the user aiming at the disinfection lamp tube can be a first control instruction for starting the disinfection lamp tube, a second control instruction for closing the disinfection lamp tube, and a third control instruction for setting the working time of the disinfection lamp tube.
In the case that the user turns on the sterilizing lamp through the screen of the serial port screen, that is, in the case that the control command is a first control command for turning on the sterilizing lamp, the microcontroller 102 may determine a first control signal according to the first control command, and may control the relay 103 to be turned on according to the first control signal to turn on the sterilizing lamp. In addition, the microcontroller 102 may also record the on-time of the disinfection tube.
In the case that the user turns off the sterilizing light tube through the screen of the serial port screen, that is, in the case that the control command is a second control command for turning off the sterilizing light tube, the microcontroller 102 may determine a second control signal according to the second control command, and may control the relay 103 to be turned off according to the second control signal to turn off the sterilizing light tube.
In the case that the user sets the working time of the sterilizing lamp through the screen of the serial port screen, that is, in the case that the control instruction is a third control instruction for setting the working time of the sterilizing lamp, the microcontroller 102 may determine the closing time of the sterilizing lamp according to the third control instruction, that is, may determine the working time of the sterilizing lamp according to the third control instruction first, and then may determine the closing time of the sterilizing lamp according to the opening time and the working time of the sterilizing lamp. The microcontroller 102 can control the relay 103 to be closed to close the sterilizing lamp at the closing time of the sterilizing lamp, and can always control the relay 103 to be conducted to enable the sterilizing lamp to be in an operating state before the closing time of the sterilizing lamp arrives. After determining the closing time of the sterilizing lamp, the microcontroller 102 may generate a control signal, and the relay 103 may be controlled to close according to the control signal to close the sterilizing lamp during the closing time of the sterilizing lamp; alternatively, a control signal may be generated at the off time of the sterilizing lamp, and the relay 103 may be controlled to turn off the sterilizing lamp according to the control signal.
Therefore, the user can directly open and close the disinfection lamp tube by operating the screen of the serial port screen, so that the working time of the disinfection lamp tube can be controlled. The user also can open the disinfection fluorescent tube through the screen of operation serial ports screen earlier, can set up the operating time of disinfection fluorescent tube afterwards, and microcontroller can be according to the opening time and the operating time of disinfection fluorescent tube when the operating time of disinfection fluorescent tube arrives, does not need the user to monitor the operating time of disinfection fluorescent tube always, can avoid the user to forget to close the circumstances that the operating time of disinfection fluorescent tube leads to the disinfection fluorescent tube longer, can improve user experience.
Under the condition that the control instruction is a third control instruction for setting the working time of the disinfection lamp tube, the microcontroller can also determine the remaining working time of the disinfection lamp tube according to the closing time of the disinfection lamp tube, namely, the remaining working time of the disinfection lamp tube can be determined according to the current time and the closing time of the disinfection lamp tube, and then the remaining working time can be sent to the serial port screen. After the serial port screen receives the residual working time from the microcontroller, the residual working time of the disinfection lamp tube can be displayed on the screen, so that a user can check the residual working time of the disinfection lamp tube at any time, and the user experience can be further improved.
After the microcontroller controls the relay to close the disinfection lamp, a fourth control instruction for closing the screen of the serial port screen can be generated, and then the fourth control instruction for closing the screen of the serial port screen can be sent to the serial port screen. After the serial port screen receives a fourth control instruction from the microcontroller, the screen of the serial port screen can be closed according to the fourth control instruction, so that the continuous operation of the screen of the serial port screen after the disinfection lamp is closed can be avoided, unnecessary power consumption can be reduced, and the power consumption of the disinfection lamp control device can be saved. The microcontroller can generate the fourth control instruction immediately after the disinfection lamp is turned off, and can also generate the fourth control instruction after the disinfection lamp is turned off for more than a threshold time, so that frequent turning off and turning on of a screen of the serial screen can be avoided.
The microcontroller can also send the working state of the disinfection lamp tube to the serial port screen. After the serial port screen receives the working state of the disinfection lamp tube from the microcontroller, the working state of the disinfection lamp tube can be displayed on the screen, so that a user can check the working state of the disinfection lamp tube at any time through the screen of the serial port screen, and the user experience can be further improved.
Referring to fig. 2, fig. 2 is a schematic structural diagram of another control device for sterilizing lamp according to an embodiment of the present invention. Wherein, the sterilizing lamp control device shown in fig. 2 is optimized by the sterilizing lamp control device shown in fig. 1. As shown in fig. 2, the sterilizing lamp control device may further include a buzzer 104.
The buzzer 104 may be connected to the microcontroller 102.
The microcontroller 102 may control the buzzer to operate according to the control instructions. For example, in the case that the control instruction is the first control instruction for starting the sterilizing lamp, the microcontroller 102 may control the buzzer 104 to work while controlling the relay 103 to start the sterilizing lamp according to the first control signal, so as to prompt the sterilizing lamp to start. For example, in the case that the control instruction is the second control instruction for closing the disinfection lamp, the microcontroller 102 may control the relay 103 to close the disinfection lamp according to the second control signal, and may control the buzzer 104 to operate at the same time, and may prompt the disinfection lamp to close. For example, in the case that the above control command is the third control command for setting the operation time of the sterilizing lamp, the microcontroller 102 may control the buzzer 104 to operate while or after determining the off time of the sterilizing lamp, and prompt that the operation time of the sterilizing lamp is set.
The disinfection tube control device may further comprise an indicator light 105.
The indicator light 105 may indicate whether the microcontroller 102 and/or the power supply are operating properly.
In one case, the disinfection tube control device may comprise an indicator light. In the event that the indicator light is not operating or is abnormally blinking, the indicator light may indicate that the power supply is operating abnormally. Under the condition that the indicator light is normally on, the indicator light indicates that the power supply works normally. The indication lamp has different brightness changes and different indication meanings. For example, in the case where the color of this indicator light is blue and red constants, the indicator light may indicate that the microcontroller is functioning properly, and in the case where the indicator light is not lit or flashing, the microcontroller is functioning abnormally.
It should be understood that the foregoing is an exemplary illustration of the different meanings of the indication of the different colored indicator lights, and is not limiting. For example, in the case where the color of this indicator light is green and normally on, the indicator light may indicate that the microcontroller is functioning properly.
In another case, the sterilizing light device may include a plurality of indicator lights. One of the plurality of indicator lights may indicate whether the power supply is operating properly. Under the condition that the indicator lamp works, the indicator lamp can indicate that the power supply works normally, and under the condition that the indicator lamp does not work, the indicator lamp can indicate that the power supply works abnormally. The remaining ones of the plurality of indicator lights may indicate whether the microcontroller is operating properly. The number of the remaining indicator lamps can be one or a plurality of indicator lamps. Under the condition that the remaining indicator lamps work, the remaining indicator lamps can indicate that the power supply works normally, and under the condition that the remaining indicator lamps do not work, the remaining indicator lamps can indicate that the power supply works abnormally.
The indicator light may be a light emitting diode or other light emitting devices.
Referring to fig. 3, fig. 3 is a schematic diagram of a display interface of a serial screen according to an embodiment of the present invention. As shown in fig. 3, the uppermost state of the serial screen is the working state of the sterilizing lamp, and the closing after the state is the current working state of the sterilizing lamp.
The time remaining in the serial screen is the remaining working time of the disinfection lamp tube, and the time remaining behind the time remaining is the current remaining working time of the disinfection lamp tube.
The '30 min', '60 min', '90 min' and '120 min' in the serial screen are the working time of the disinfection lamp tube which can be selected and set by the user. In the case where the user selects "30 minutes", the serial screen may send the string "button=30min" to the microcontroller. In the case where the user selects "60 minutes", the serial screen may send the string "button=60 Min" to the microcontroller. In the case where the user selects "90 minutes", the serial screen may send the string "button=90 Min" to the microcontroller. In the case where the user selects "120 minutes", the serial screen may send the string "button=120 Min" to the microcontroller.
In the case that the operation time of the sterilizing lamp tube required by the user is not the time of the serial screen display, the user can set the operation time of the sterilizing lamp tube required by the user through the 'custom setting'. After the serial port screen receives a selection instruction for "custom setting" input by a user, the serial port screen may send the custom setting instruction to the microcontroller, that is, send a character string "button=set" to the microcontroller. After receiving the user-defined setting instruction from the serial port screen, the microcontroller can send the setting instruction to the serial port screen, and the serial port screen can display a setting interface. The settings interface may include one or more of an Hour setting, a minute setting, and a second setting, and after the serial screen receives the user-Set Hour, the string "button=set_Hour" may be sent to the microcontroller, and then the user-Set Hour may be sent to the microcontroller. The set time period may range from 0 to 99 hours. After the serial screen receives the user Set minutes, the string "button=set_min" may be sent to the microcontroller, which may then be sent the user Set minutes. The minute time may be set in a range of 0 to 59 minutes.
After the disinfection lamp control device is powered on, the microcontroller can configure the IO port output mode, and can be configured through IO_Init (), namely, port initialization is performed. The microcontroller may also initialize the receive port, which may be initialized by data_init (). The microcontroller can also judge whether the disinfection lamp tube control device is powered on for the first time, if so, the EEPROM memory is cleared to start timing from zero, and the code implementation can be as follows:
Figure BDA0004131117630000101
the partial implementation code of the above sterilizing lamp control device may be as follows:
Figure BDA0004131117630000102
Figure BDA0004131117630000111
Figure BDA0004131117630000121
Figure BDA0004131117630000131
/>
Figure BDA0004131117630000141
/>
Figure BDA0004131117630000151
/>
Figure BDA0004131117630000161
/>
Figure BDA0004131117630000171
/>
Figure BDA0004131117630000181
the partial implementation code of the above sterilizing lamp control device may be as follows:
Figure BDA0004131117630000182
/>
Figure BDA0004131117630000191
/>
Figure BDA0004131117630000201
/>
Figure BDA0004131117630000211
/>
Figure BDA0004131117630000221
the serial port screen can be a Tao Jingchi serial port screen or other serial port screens. Under the condition that the serial port screen is Tao Jingchi serial port screen, the model of the Tao Jingchi serial port screen can be TJC3224T 124-011, and can also be other models, so long as the functions can be realized.
The microcontroller can be a single chip microcomputer or other chips capable of realizing the same functions.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a control device for a disinfection lamp according to another embodiment of the invention. In fig. 4, the microcontroller is an STC8H1K08-36I-TSSOP20 single-chip microcomputer for example. As shown in fig. 4, the port 1 of the singlechip is connected with the buzzer through the first resistor R1, the port 2 of the singlechip is connected with the relay through the second resistor R2, the port 8 of the singlechip is connected with the power supply, the port 9 of the singlechip is connected with the ground through the third resistor R3 and the capacitor C1, the port 10 of the singlechip is connected with the ground, the ports 19 and 20 of the singlechip are connected with the serial port screen through the USB adapter, the port 15 of the singlechip is connected with the positive electrode of the diode D1 through the fourth resistor R4, the negative electrode of the diode D1 is connected with the ground, the port 16 of the singlechip is connected with the positive electrode of the diode D2 through the fifth resistor R5, the negative electrode of the diode D2 is connected with the ground, the power VCC is connected with the positive electrode of the diode D3 through the sixth resistor R6, and the negative electrode of the diode D3 is connected with the ground.
The indicator lamp in fig. 4 comprises three diodes, one diode is a power indicator lamp and two diodes are microcontroller indicator lamps.
It should be understood that fig. 4 is an exemplary illustration of an apparatus for controlling a sterilizing lamp, and is not limited thereto.
Referring to fig. 5, fig. 5 is a flow chart of a method for controlling a disinfection lamp according to an embodiment of the invention. The control method of the disinfection lamp tube can be applied to the control device of the disinfection lamp tube. As shown in fig. 5, the sterilizing lamp control method may include the following steps.
501. And receiving a control instruction input by a user aiming at the disinfection lamp tube through a screen of the serial port screen.
502. And determining a control signal according to the control instruction through the microcontroller.
503. The working state of the disinfection lamp tube is controlled by the microcontroller according to the control signal control relay.
Under the condition that the control instruction is a first control instruction for starting the sterilizing lamp tube, the first control signal can be determined by the microcontroller according to the first control instruction, and the relay can be controlled by the microcontroller according to the first control signal to start the sterilizing lamp tube.
In the case that the control command is a second control command for closing the sterilizing lamp, the second control signal can be determined by the microcontroller according to the second control command, and the relay can be controlled by the microcontroller according to the second control signal to close the sterilizing lamp.
Under the condition that the control instruction is a third control instruction for setting the working time of the disinfection lamp, the closing time of the disinfection lamp can be determined by the microcontroller according to the third control instruction, and the relay can be controlled by the microcontroller to close the disinfection lamp at the closing time.
The method for controlling the disinfection lamp tube can further comprise the following steps: the residual working time of the disinfection lamp tube can be determined by the microcontroller according to the closing time of the disinfection lamp tube, and can be displayed by the serial screen.
After the sterilizing lamp is turned off, the sterilizing lamp control method may further include: the fourth control instruction for closing the screen of the serial port screen can be generated by the microcontroller, and the screen of the serial port screen can be closed by the serial port screen according to the fourth control instruction.
The disinfection lamp control device may further include a buzzer, and the disinfection lamp control method may further include: the buzzer can be controlled to work by the microcontroller according to the control instruction.
The disinfection lamp control device may further include a buzzer, and the disinfection lamp control method may further include: whether the microcontroller and/or the power supply are operating properly may be indicated by an indicator light.
The method for controlling the disinfection lamp tube can further comprise the following steps: the working state of the disinfection lamp tube can be displayed through the serial port screen.
The detailed description of the method for controlling the sterilizing lamp may refer to the related description of the sterilizing lamp control device, and will not be repeated here.
The foregoing embodiments have been provided for the purpose of illustrating the technical solution and advantageous effects of the present application in further detail, and it should be understood that the foregoing embodiments are merely illustrative of the present application and are not intended to limit the scope of the present application, and any modifications, equivalents, improvements, etc. made on the basis of the technical solution of the present application should be included in the scope of the present application.

Claims (10)

1. The utility model provides a disinfection fluorescent tube controlling means, its characterized in that includes serial ports screen, microcontroller and relay, the serial ports screen with microcontroller passes through the serial ports to be connected, the relay is connected respectively microcontroller with disinfection fluorescent tube, wherein:
the serial port screen is used for receiving a control instruction input by a user aiming at the disinfection lamp tube through the screen and sending the control instruction to the microcontroller;
the microcontroller is used for determining a control signal according to the control instruction, and controlling the relay to control the working state of the disinfection lamp tube according to the control signal.
2. The apparatus of claim 1, wherein in the case where the control command is a first control command for turning on the sterilizing lamp, the microcontroller determines a control signal according to the control command, and controlling the relay to control the operating state of the sterilizing lamp according to the control signal comprises:
the microcontroller determines a first control signal according to the first control instruction, and controls the relay to start the disinfection lamp according to the first control signal.
3. The apparatus of claim 1, wherein in the case where the control command is a second control command for turning off the sterilizing lamp, the microcontroller determines a control signal according to the control command, and controlling the relay to control the operating state of the sterilizing lamp according to the control signal comprises:
and the microcontroller determines a second control signal according to the second control instruction, and controls the relay to close the disinfection lamp tube according to the second control signal.
4. The apparatus of claim 1, wherein in the case where the control command is a third control command for setting the operation time of the sterilizing lamp, the microcontroller determines a control signal according to the control command, and controlling the relay according to the control signal to control the operation state of the sterilizing lamp comprises:
and the microcontroller determines the closing time of the disinfection lamp according to the third control instruction, and controls the relay to close the disinfection lamp at the closing time.
5. The apparatus of claim 4, wherein the microcontroller is further configured to determine a remaining operating time of the disinfection tube based on a closing time of the disinfection tube, and send the remaining operating time to the serial screen;
the serial port screen is also used for displaying the residual working time.
6. The apparatus of claim 3 or 4, wherein the microcontroller is further configured to send a fourth control instruction to the serial screen for closing the screen of the serial screen after the disinfection tube is turned off;
the serial port screen is further used for closing the screen of the serial port screen according to the fourth control instruction.
7. The device of claim 1, further comprising a buzzer connected to the microcontroller, wherein:
and the microcontroller is also used for controlling the buzzer to work according to the control instruction.
8. The apparatus of claim 1, further comprising an indicator light, wherein:
the indicating lamp is used for indicating whether the microcontroller and/or the power supply work normally or not.
9. The apparatus of any one of claims 1-8, wherein the serial port screen is further configured to display an operating status of the disinfection tube.
10. A method for controlling a disinfection lamp, the method being applied to a disinfection lamp control device, the device comprising a serial screen, a microcontroller and a relay, the method comprising:
receiving a control instruction input by a user aiming at the disinfection lamp tube through a screen of the serial port screen;
determining a control signal according to the control instruction by the microcontroller;
and controlling the relay to control the working state of the disinfection lamp tube by the microcontroller according to the control signal.
CN202310260527.7A 2023-03-10 2023-03-10 Method and device for controlling disinfection lamp tube Pending CN116360310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310260527.7A CN116360310A (en) 2023-03-10 2023-03-10 Method and device for controlling disinfection lamp tube

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310260527.7A CN116360310A (en) 2023-03-10 2023-03-10 Method and device for controlling disinfection lamp tube

Publications (1)

Publication Number Publication Date
CN116360310A true CN116360310A (en) 2023-06-30

Family

ID=86940138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310260527.7A Pending CN116360310A (en) 2023-03-10 2023-03-10 Method and device for controlling disinfection lamp tube

Country Status (1)

Country Link
CN (1) CN116360310A (en)

Similar Documents

Publication Publication Date Title
EP2274956B1 (en) Light emitting diode system
CN104093249A (en) Intelligent lighting germicidal lamp and circuit control method thereof
CN205336574U (en) Indoor intelligent LED lighting system who combines natural light
CN102695319B (en) LED stepless light regulating circuit
CN102937806A (en) Full-automatic fish tank management system
CN106386210A (en) Intelligent plant growth control system
CN116360310A (en) Method and device for controlling disinfection lamp tube
CN212522471U (en) Intelligent ultraviolet disinfection lamp
CN104661412B (en) Intelligent dimming illuminator and its control method of auxiliary remote control and light fixture
JPH0220964B2 (en)
CN207625577U (en) Radio transmission control system based on bluetooth
CN107645811B (en) Intelligent lamp with pupil light vision impact reducing function and adjusting method thereof
CN113362616B (en) Intelligent traffic signal control method and control circuit
CN110323941A (en) Low-power consumption standby circuit
CN114666938A (en) Dimming controller, lamp dimming method and storage medium
CN114545118A (en) Emergency lighting lamp working duration testing device and equipment
CN210579396U (en) Illumination control device
CN100437673C (en) LED indicating device and method
CN216313476U (en) Point light source lamp controlled by single chip microcomputer
CN217330179U (en) Air quality adjusting circuit and air conditioner
CN111988883B (en) Cabinet lamp, cabinet and control method of cabinet lamp
KR20050097602A (en) Air conditioner displaying sensibility information in the entire front panel
CN217330178U (en) Display control circuit and air conditioner
CN217737486U (en) Air purifier
CN208402176U (en) Lamps and lanterns and lamp light control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication