CN102722114B - Method for setting fixed-time power on and off of electrical appliance device with microprocessor - Google Patents
Method for setting fixed-time power on and off of electrical appliance device with microprocessor Download PDFInfo
- Publication number
- CN102722114B CN102722114B CN201210211290.5A CN201210211290A CN102722114B CN 102722114 B CN102722114 B CN 102722114B CN 201210211290 A CN201210211290 A CN 201210211290A CN 102722114 B CN102722114 B CN 102722114B
- Authority
- CN
- China
- Prior art keywords
- microprocessor
- key
- setting
- time
- timing
- 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.)
- Expired - Fee Related
Links
Landscapes
- Electric Clocks (AREA)
Abstract
The invention discloses a method for setting fixed-time power on and off of an electrical appliance device with a microprocessor, which is suitable for a device with the microprocessor. An applied device comprises a key control circuit, a switch power supply, the microprocessor and an output control circuit, wherein the key control circuit comprises a power off key and four function keys. The method comprises the following steps of: (1) powering on the microprocessor; (2) switching the functions of keys; (3) setting multi-period timing; and (4) determining whether the timing setting is completed or not, and timing by a system; and presetting a circulation time T1 by the system. According to the method disclosed by the invention, the setting for the fixed-time power on and off in multiple periods can be carried out, the keys are not added, and a display screen and a real-time clock circuit are not needed.
Description
Technical field
The present invention relates to automatic technology processing procedure, is specifically a kind of timed power on/off establishing method of the electrical installation with microprocessor.
Background technology
The function of timed power on/off that now increasing electrical device is standby, the setting of existing timed power on/off generally needs a display screen that shows current time and setting-up time, real time clock circuit, multiple special timing setting buttons have coordinated, cause the circuit structure of electrical equipment loaded down with trivial details, display screen takes up room greatly, button increases, and generally can only set switching on and shutting down, cannot carry out the setting of multiple period switching on and shutting down, such as user can set electrical equipment 6 starts in morning, but cannot set 10 shutdown of electrical equipment, ten two multiple actions such as start again, so that the switching on and shutting down time of control apparatus accurately, cannot reach best energy-saving effect.
Summary of the invention
Technical matters to be solved by this invention is, provides that the timed power on/off that can carry out multiple periods is set, button does not increase, without the timed power on/off establishing method of the electrical installation with microprocessor of display screen and real time clock circuit.
For solving the problems of the technologies described above, the timed power on/off establishing method of the electrical installation with microprocessor provided by the invention, be applicable to have the device of microprocessor, suitable devices comprises key control circuit, Switching Power Supply, microprocessor and output control circuit, key control circuit comprises closing key and four function keys, and the method comprises the following steps:
(1) Switching Power Supply is connected, microprocessor energising;
(2) whether microprocessor judges has timing setting order input, to enter step (3), four function keys that are now connected with microprocessor become respectively a hour key, minute key, start setting key and shutdown setting key, hour key is used for how many hours setting interval, minute key is used for setting interval how many minutes, start setting key has been set for determining start, and shutdown setting key has been set for determining shutdown; Otherwise maintain normal operation.
(3) microprocessor receives the time setting command of hour key and minute key, the timer record first paragraph time of microprocessor internal, after having recorded the first paragraph time, carry out the setting of switching on and shutting down for the first time, if microprocessor detects the setting command of shutdown setting key, default shuts down after the timing of first paragraph time finishes, if microprocessor detects the setting command of start setting key, default is started shooting after the timing of first paragraph time finishes, then record successively as mentioned above a period of time, and after per a period of time, carry out switching on and shutting down and set having recorded, the setting result that adjacent twice switching on and shutting down are set is contrary,
(4) carrying out after last switching on and shutting down setting, assignment procedure finishes, now make microprocessor receive that start-up command makes system held open state or makes microprocessor receive that shutdown command makes system closedown by shutdown setting key by start setting key, the first paragraph time starts timing.
System, in the time of open state, clicks closing key, and microprocessor is received shutdown command; Long pressing closing key T second, microprocessor is received timing setting order.
When microprocessor judges has timing setting order when input, microprocessor enters timing setting pattern, and the responder of microprocessor changes, and at this moment when microprocessor is received after the signal of four function keys, the performed action of microprocessor is different when normally moving.
Described T second is 6 seconds.
Described T1 is 24 hours.
Microprocessor in suitable devices of the present invention is a kind of intelligent micro programming controller of known embedded software program, deviser can be by its applicable language establishment in house software program, makes it have certain processing power in writing microprocessor in producing or using.
Adopt after above structure, the present invention compared with prior art, has advantages of following:
The setting of the embedded software program of microprocessor, the switching on and shutting down that make microprocessor can carry out multiple periods are set, set accurately, and button did not need to increase with originally comparing, because four original function keys are entering after timing setting pattern, become respectively a hour key, minute key, start setting key and shutdown setting key, in order to carry out the button operation of timed power on/off setting, and the time be set as a length value, irrelevant with the concrete moment, therefore do not need one of as traditional establishing method needs to show display screen and the real time clock circuit of current time and setting-up time, utilize the timer of microcontroller inside just can reach clocking requirement, circuit structure is simplified.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of the timed power on/off establishing method suitable devices of the present invention's electrical installation with microprocessor.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in more detail.
It is known that the present invention has the structured flowchart of timed power on/off establishing method suitable devices of the electrical installation of microprocessor as shown in Figure 1, it is applicable to have the device of microprocessor, suitable devices comprises key control circuit, Switching Power Supply, microprocessor and output control circuit, key control circuit comprises closing key and four function keys, it is characterized in that, the method comprises the following steps:
(1) Switching Power Supply is connected, microprocessor energising;
(2) whether microprocessor judges has timing setting order input, to enter step (3), four function keys that are now connected with microprocessor become respectively a hour key, minute key, start setting key and shutdown setting key, hour key is used for how many hours setting interval, minute key is used for setting interval how many minutes, start setting key has been set for determining start, and shutdown setting key has been set for determining shutdown; Otherwise maintain normal operation;
(3) microprocessor receives the time setting command of hour key and minute key, the timer record first paragraph time of microprocessor internal, after having recorded the first paragraph time, carry out the setting of switching on and shutting down for the first time, if microprocessor detects the setting command of shutdown setting key, default shuts down after the timing of first paragraph time finishes, if microprocessor detects the setting command of start setting key, default is started shooting after the timing of first paragraph time finishes, then record successively as mentioned above a period of time, and after per a period of time, carry out switching on and shutting down and set having recorded, the setting result that adjacent twice switching on and shutting down are set is contrary,
(4) carrying out after last switching on and shutting down setting, assignment procedure finishes, now make microprocessor receive that start-up command makes system held open state or makes microprocessor receive that shutdown command makes system closedown by shutdown setting key by start setting key, after button completes, the first paragraph time starts timing, and microprocessor preset cycling time of length T 1.
System, in the time of open state, clicks closing key, and microprocessor is received shutdown command; Long pressing closing key T second, microprocessor is received timing setting order.
When microprocessor judges has timing setting order when input, microprocessor enters timing setting pattern, and the responder of microprocessor changes, and at this moment when microprocessor is received after the signal of four function keys, the performed action of microprocessor is different when normally moving.
Described T second is 6 seconds.
Described T1 is 24 hours.
Embodiment mono-
With intelligent water toilet pan, establishing method of the present invention and application are described below.
Multi-period timed power on/off setting program is set in the microprocessor of intelligent water toilet pan, can control accurately the switching on and shutting down time of intelligent water toilet pan, such as user requires the start of intelligent water toilet pan 12:00 on same day point, the shutdown of 13:10 point, 18:00 start, 20:00 shutdown, second day 6:30 separating machine, the shutdown of 7:30 point, set step as follows:
The first step, enter timing setting pattern: long by closing key 6 seconds, timed power on/off is set pilot lamp and is lighted, prompt system enters timing setting pattern, the now massage key on original intelligent water toilet pan, strong flushing key, huckle cleaning key, the function of four keys of women's cancel key becomes respectively a hour key, minute key, shutdown setting key, start setting key, that is to say while originally pressing massage key, microprocessor processes massage operation, enter after timed power on/off set model, while pressing massage key, microprocessor receives timing hour data (pressing once hour key timing 1 hour), in like manner, strong flushing key is pressed rear microprocessor and is received timing minute data (pressing once minute key timing 10 minutes), huckle cleaning key is pressed rear microprocessor and is accepted the instruction that shutdown has been set, women's cancel key is pressed rear microprocessor and is accepted the instruction that start has been set, four function keys have all been changed keypress function.
Second step, set the on time for the first time: calculate from current time (if current time is 9:30 in the morning) count 12:00 point start shooting time be divided into 2 hours 30 minutes, now key 2 times by the hour, microprocessor timing 2 hours, press again minute key 3 times, microprocessor timing 30 minutes, now microprocessor altogether clock 2 hours 30 points, now press start setting key, just set after 2 hours 30 minutes (namely the same day 12:00) system Auto Power On;
The 3rd step, set the unused time for the first time: key 1 time by the hour, then press minute key 1 time, microprocessor timing 1 hour 10 minutes, now press shutdown setting key, just set after 1 hour 10 minutes (namely the same day 13:10) microprocessor control system automatic shutdown;
The 4th step, set the on time for the second time: key 4 times by the hour, then press minute key 5 times, then press start setting key, just set after 4 hours 50 minutes (namely the same day 18:00) microprocessor control system Auto Power On;
The 5th step, set the unused time for the second time: key 2 times by the hour, then press shutdown setting key, just set after 2 hours (namely the same day 20:00) microprocessor control system automatic shutdown;
The 6th step, sets the on time for the third time, key 10 times by the hour, then press minute key 3 times, and then press start setting key, just set (namely second day 6:30) microprocessor control system Auto Power On after 10 hours 30 minutes;
The 7th step, set the unused time for the third time: key 1 time by the hour, then press shutdown setting key, just set (namely second day 7:30) microprocessor control system automatic shutdown after 1 hour;
The 8th step, determine setting: press again shutdown setting key, system closedown, the timer of microprocessor internal starts timing simultaneously, when timing to set switching on and shutting down time of above-mentioned second step to the seven steps time, microprocessor is carried out corresponding switching on and shutting down operation, namely microprocessor control system Auto Power On when 12 of same day, 13:10 shutdown, 18:00 start, 20:00 shutdown, 6:30 start the next morning, 7:30 shutdown;
So just set the switching on and shutting down circulation of intelligent water toilet pan, and the cycling time that microprocessor is preset 24 hours, make system just repeat the action of above-mentioned second step to the seven steps every 24 hours, after making, system repeats switching on and shutting down timing setting this time always, until microprocessor enters timing setting pattern (that is to say long by closing key 6 seconds) again, last timing setting is cleared, and re-starts in the same way timing setting one time.
Embodiment bis-
In like manner, also can set the shutdown of intelligent water toilet pan 12:00 on same day point, the start of 13:10 point, 18:00 shutdown, 20:00 start, within second day, 6:30 divides shutdown, and the start of 7:30 point is set step as follows:
The first step, with embodiment mono-;
Second step, set the unused time for the first time: calculate from current time (if current time is 9:30 in the morning) count 12:00 point shut down time be divided into 2 hours 30 minutes, now key 2 times by the hour, microprocessor timing 2 hours, press again minute key 3 times, microprocessor timing 30 minutes, now microprocessor altogether clock 2 hours 30 points, now press shutdown setting key, just set after 2 hours 30 minutes (namely the same day 12:00) system automatic shutdown;
The 3rd step, set the on time for the first time: key 1 time by the hour, then press minute key 1 time, microprocessor timing 1 hour 10 minutes, now press start setting key, just set after 1 hour 10 minutes (namely the same day 13:10) microprocessor control system Auto Power On;
The 4th step, set the unused time for the second time: key 4 times by the hour, then press minute key 5 times, then press shutdown setting key, just set after 4 hours 50 minutes (namely the same day 18:00) microprocessor control system automatic shutdown;
The 5th step, set the on time for the second time: key 2 times by the hour, then press start setting key, just set after 2 hours (namely the same day 20:00) microprocessor control system Auto Power On;
The 6th step, sets the unused time for the third time, key 10 times by the hour, then press minute key 3 times, and then press shutdown setting key, just set (namely second day 6:30) microprocessor control system automatic shutdown after 10 hours 30 minutes;
The 7th step, set the on time for the third time: key 1 time by the hour, then press start setting key, just set (namely second day 7:30) microprocessor control system Auto Power On after 1 hour;
The 8th step, determine setting: press again start setting key, system held open state, the timer of microprocessor internal starts timing simultaneously, when timing to set switching on and shutting down time of above-mentioned second step to the seven steps time, microprocessor is carried out corresponding switching on and shutting down operation, namely microprocessor control system automatic shutdown when 12 of same day, 13:10 start, 18:00 shutdown, 20:00 start, 6:30 shutdown the next morning, 7:30 start;
So just set the switching on and shutting down circulation of intelligent water toilet pan, and the cycling time that microprocessor is preset 24 hours, make system just repeat the action of above-mentioned second step to the seven steps every 24 hours, after making, system repeats switching on and shutting down timing setting this time always, until microprocessor enters timing setting pattern (that is to say long by closing key 6 seconds) again, last timing setting is cleared, and re-starts in the same way timing setting one time.
Below only apply preferably example with regard to the present invention and made explanation, but can not be interpreted as it is limitations on claims, structure of the present invention can have other to change, and is not limited to said structure.In a word, all various variations of doing in the protection domain of independent claims of the present invention are all in protection scope of the present invention.
Claims (4)
1. one kind has the timed power on/off establishing method of the electrical installation of microprocessor, be applicable to have the device of microprocessor, suitable devices comprises key control circuit, Switching Power Supply, microprocessor and output control circuit, key control circuit comprises closing key and four function keys, it is characterized in that, the method comprises the following steps:
(1) Switching Power Supply is connected, microprocessor energising;
(2) whether microprocessor judges has timing setting order input, to enter step (3), four function keys that are now connected with microprocessor become respectively a hour key, minute key, start setting key and shutdown setting key, hour key is used for how many hours setting interval, minute key is used for setting interval how many minutes, start setting key has been set for determining start, and shutdown setting key has been set for determining shutdown; Otherwise maintain normal operation;
(3) microprocessor receives the time setting command of hour key and minute key, the timer record first paragraph time of microprocessor internal, after having recorded the first paragraph time, carry out the setting of switching on and shutting down for the first time, if microprocessor detects the setting command of shutdown setting key, default shuts down after the timing of first paragraph time finishes, if microprocessor detects the setting command of start setting key, default is started shooting after the timing of first paragraph time finishes, then record successively as mentioned above a period of time, and after per a period of time, carry out switching on and shutting down and set having recorded, the setting result that adjacent twice switching on and shutting down are set is contrary,
(4) carrying out after last switching on and shutting down setting, assignment procedure finishes, now make microprocessor receive that start-up command makes system held open state or makes microprocessor receive that shutdown command makes system closedown by shutdown setting key by start setting key, after button completes, the first paragraph time starts timing, and microprocessor preset cycling time of length T 1;
System, in the time of open state, clicks closing key, and microprocessor is received shutdown command; Long pressing closing key T second, microprocessor is received timing setting order.
2. the timed power on/off establishing method of the electrical installation with microprocessor according to claim 1, it is characterized in that: in the time that microprocessor judges has timing setting order input, microprocessor enters timing setting pattern, the responder of microprocessor changes, at this moment when microprocessor is received after the signal of four function keys, the performed action of microprocessor is different during from normal operation.
3. the timed power on/off establishing method of the electrical installation with microprocessor according to claim 1, is characterized in that: described T second is 6 seconds.
4. the timed power on/off establishing method of the electrical installation with microprocessor according to claim 1, is characterized in that: described T1 is 24 hours.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210211290.5A CN102722114B (en) | 2012-06-26 | 2012-06-26 | Method for setting fixed-time power on and off of electrical appliance device with microprocessor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210211290.5A CN102722114B (en) | 2012-06-26 | 2012-06-26 | Method for setting fixed-time power on and off of electrical appliance device with microprocessor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102722114A CN102722114A (en) | 2012-10-10 |
CN102722114B true CN102722114B (en) | 2014-06-11 |
Family
ID=46947915
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210211290.5A Expired - Fee Related CN102722114B (en) | 2012-06-26 | 2012-06-26 | Method for setting fixed-time power on and off of electrical appliance device with microprocessor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102722114B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110740552A (en) * | 2019-10-20 | 2020-01-31 | 北京芯思电子有限公司 | Timing electronic switch circuit and timing control method |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103869713B (en) * | 2012-12-12 | 2019-01-08 | 北京普源精电科技有限公司 | A kind of power supply and its working method with switch time delay function |
CN103226395A (en) * | 2013-04-16 | 2013-07-31 | 苏州市职业大学 | Power on/off timing device for wireless mouse |
CN103383546B (en) * | 2013-07-22 | 2015-12-02 | 周信兰 | Multi-period timed power on/off method and device |
CN107355402A (en) * | 2017-08-23 | 2017-11-17 | 四川长虹电器股份有限公司 | A kind of electric fan and its time control method for supporting complicated timing function |
CN108055739A (en) * | 2017-10-25 | 2018-05-18 | 中山市亮火照明科技有限公司 | A kind of remote controlled lantern component and its control method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1530783A (en) * | 2003-03-14 | 2004-09-22 | 周湘峻 | Automatic timing open-close method with synchronous set |
CN101256392A (en) * | 2007-11-14 | 2008-09-03 | 深圳创维-Rgb电子有限公司 | Method, apparatus and equipment for controlling complete closedown of electrical installation |
CN201144846Y (en) * | 2007-12-26 | 2008-11-05 | 美的集团有限公司 | Fan with timing reservation function |
CN201514584U (en) * | 2009-09-30 | 2010-06-23 | 王武林 | Temperature controller with multi-period timing startup and shutdown function |
CN202066155U (en) * | 2011-03-25 | 2011-12-07 | 广东志高空调有限公司 | Air conditioner with function of timely starting up and powering off real time |
-
2012
- 2012-06-26 CN CN201210211290.5A patent/CN102722114B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1530783A (en) * | 2003-03-14 | 2004-09-22 | 周湘峻 | Automatic timing open-close method with synchronous set |
CN101256392A (en) * | 2007-11-14 | 2008-09-03 | 深圳创维-Rgb电子有限公司 | Method, apparatus and equipment for controlling complete closedown of electrical installation |
CN201144846Y (en) * | 2007-12-26 | 2008-11-05 | 美的集团有限公司 | Fan with timing reservation function |
CN201514584U (en) * | 2009-09-30 | 2010-06-23 | 王武林 | Temperature controller with multi-period timing startup and shutdown function |
CN202066155U (en) * | 2011-03-25 | 2011-12-07 | 广东志高空调有限公司 | Air conditioner with function of timely starting up and powering off real time |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110740552A (en) * | 2019-10-20 | 2020-01-31 | 北京芯思电子有限公司 | Timing electronic switch circuit and timing control method |
Also Published As
Publication number | Publication date |
---|---|
CN102722114A (en) | 2012-10-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102722114B (en) | Method for setting fixed-time power on and off of electrical appliance device with microprocessor | |
CN106637805B (en) | Internet of things washing machine control method and system and washing machine | |
US8587219B2 (en) | Lighting control with automatic and bypass modes | |
CN1293435C (en) | Intelligent controller and electric appliance with intelligent controller and control method | |
CN104898515B (en) | A kind of time switch and its control method and control device | |
CN103050001B (en) | Control device, household electrical appliances, remote controller | |
CN102447960A (en) | Intelligent showdown control method and system applicable to set top box | |
CN106484061A (en) | Terminal resets control method, controller and system | |
CN107490155B (en) | Air conditioner timing on-off control method and device, remote control device and system | |
CN104235922B (en) | The control method of intelligent cooker hood | |
CN103215784A (en) | Washing machine operation method and washing machine | |
CN103970630A (en) | Method for testing overall stability of server | |
CN202837895U (en) | Controller used for washing machine | |
CN104794876A (en) | Zigbee-based method for achieving time-delay control of smart home terminal equipment | |
CN111179878A (en) | Brightness control method for display device of washing equipment | |
CN102036032B (en) | Energy-saving method of TV set and TV set | |
CN104102534A (en) | Mobile terminal and method for preventing false touch of touch screen | |
CN104378668A (en) | Television control device and television | |
CN101193193A (en) | TV set energy-saving design method | |
CN110519623B (en) | Energy-saving control method and device for television set top box | |
CN101102441A (en) | TV delay idle method | |
WO2016061962A1 (en) | Set top box state control method and device, and set top box | |
CN201118738Y (en) | A sequential switch device for TV and STB power | |
CN106293780B (en) | The method for realizing computer automatic switching based on UEFI BIOS | |
WO2014048357A1 (en) | Power supply switching device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140611 Termination date: 20150626 |
|
EXPY | Termination of patent right or utility model |