CN111182700A - Breathing lamp control method for Christmas lamp - Google Patents
Breathing lamp control method for Christmas lamp Download PDFInfo
- Publication number
- CN111182700A CN111182700A CN201911248299.1A CN201911248299A CN111182700A CN 111182700 A CN111182700 A CN 111182700A CN 201911248299 A CN201911248299 A CN 201911248299A CN 111182700 A CN111182700 A CN 111182700A
- Authority
- CN
- China
- Prior art keywords
- positive
- negative
- percent
- operating
- x2ms
- 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
Links
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention relates to the technical field of breathing lamps, in particular to a breathing lamp control method for a Christmas lamp. It comprises the following steps: s1, starting a switch for controlling the breathing lamp and sending a starting signal; s2, after the microcontroller receives the starting signal, the breathing lamp is started, and then the breathing lamp works according to the following setting: s21, running X1ms when the positive 95 percent is positive and the negative 5 percent is negative; s22, operating at the positive 70 percent and the negative 15 percent, and operating at X2 ms; s23, operating by X2ms when the concentration is positive 50% and negative 30%; s24, operating by X2ms when the concentration is positive 30% and negative 50%; s25, operating at the positive 15 percent and the negative 70 percent, and operating at X2 ms; s26, running X1ms when the concentration is positive 5% and negative 95%; s27, operating at the positive 15 percent and the negative 70 percent, and operating at X2 ms; s28, operating by X2ms when the concentration is positive 30% and negative 50%; s29, positive 50% and negative 30%, X2ms is operated, S210 and positive 70% and negative 15%, X2ms is operated, S211, and the steps S21 to S210 are circulated until the microcontroller receives a stop signal. The breathing lamp changes smoothly and without consuming electricity.
Description
Technical Field
The invention relates to the technical field of breathing lamps, in particular to a breathing lamp control method for a Christmas lamp.
Background
In recent years, with the increasing standard of living, the user's demand for products is not limited to functions, but the demand for beauty and experience is increasing. The breath lamp control is a slow-cycle dynamic light effect from dark to bright and then from bright to dark according to the PFM frequency. Breathing lamps are widely popularized on a plurality of mobile phones, televisions, computers and even toys.
However, the breathing lamp in the prior art has high changing speed and uneven change, so that the breathing lamp flashes quickly, and a user can generate dazzling light when seeing the breathing lamp, so that the eyes of the user are uncomfortable; and because the flicker is fast, the power consumption is large, and the energy waste is caused.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: a method for controlling the breathing lamp of Christmas lamp features stable change and no electric consumption.
The technical scheme adopted by the invention is as follows: a breathing lamp control method for Christmas lamps comprises the following steps:
s1, starting a switch for controlling the breathing lamp and sending a starting signal;
s2, after the microcontroller receives the starting signal, the breathing lamp is started, and then the breathing lamp works according to the following setting:
s21, running X1ms when the positive 95 percent is positive and the negative 5 percent is negative;
s22, operating at the positive 70 percent and the negative 15 percent, and operating at X2 ms;
s23, operating by X2ms when the concentration is positive 50% and negative 30%;
s24, operating by X2ms when the concentration is positive 30% and negative 50%;
s25, operating at the positive 15 percent and the negative 70 percent, and operating at X2 ms;
s26, running X1ms when the concentration is positive 5% and negative 95%;
s27, operating at the positive 15 percent and the negative 70 percent, and operating at X2 ms;
s28, operating by X2ms when the concentration is positive 30% and negative 50%;
s29, positive 50% and negative 30%, running X2ms,
s210, plus 70 percent and minus 15 percent, operating X2ms,
s211, circulating according to the steps S21 to S210 until the microcontroller receives a stop signal;
and the positive/negative is the positive voltage/negative voltage of the lamp, and the percentage is the output value of the pwm duty ratio of the single chip microcomputer.
Preferably, the value of X1 is 500-600, and the value of X2 is 300-400.
Preferably, the value of X1 is 600, and the value of X2 is 300.
Compared with the prior art, the method has the following advantages that: through microcontroller control lamp's positive and negative voltage duty cycle and time, relatively more steady when can making the breathing lamp transform, can not flash fast, the user can not produce when seeing like this and dazzle light, and the eye is more comfortable, and also because change steadily, it is unhappy to flash, so make the power consumption also lower, relatively power saving.
Drawings
Fig. 1 is a waveform diagram of the time period of step S21 in a breath light control method for christmas lights according to the present invention.
Fig. 2 is a waveform diagram of the time period of step S22 in a breath light control method for christmas lights according to the present invention.
Fig. 3 is a waveform diagram of the time period of step S23 in a breath light control method for christmas lights according to the present invention.
Fig. 4 is a waveform diagram of the time period of step S24 in a breath light control method for christmas lights according to the present invention.
Fig. 5 is a waveform diagram of the time period of step S25 in a breathing lamp control method for christmas lamps according to the present invention.
Fig. 6 is a waveform diagram of the time period of step S26 in a breath light control method for christmas lights according to the present invention.
Detailed Description
The present invention will be further described below by way of specific embodiments, but the present invention is not limited to the following specific embodiments.
A control method of a breathing lamp, which is mainly a Christmas lamp, adopts a breathing form to emit light,
in a first embodiment, the control method mainly includes the following steps:
s1, starting a switch for controlling the breathing lamp and sending a starting signal;
s2, after the microcontroller receives the starting signal, the breathing lamp is started, and then the breathing lamp works according to the following setting:
s21, operating for 600ms when the positive 95 percent and the negative 5 percent are reached;
s22, operating for 300ms when the positive 70 percent is positive and the negative 15 percent is negative;
s23, operating for 300ms when the positive 50 percent is negative 30 percent;
s24, operating for 300ms when the positive 30 percent is positive and the negative 50 percent is negative;
s25, operating for 300ms when the positive 15 percent is negative 70 percent;
s26, operating for 600ms when the positive 5 percent and the negative 95 percent are achieved;
s27, operating for 300ms when the positive 15 percent is negative 70 percent;
s28, operating for 300ms when the positive 30 percent is positive and the negative 50 percent is negative;
s29, positive 50 percent and negative 30 percent, running for 300ms,
s210, positive 70 percent and negative 15 percent, operating for 300ms,
s211, circulating according to the steps S21 to S210 until the microcontroller receives a stop signal;
and the positive/negative is the positive voltage/negative voltage of the lamp; the percentage is the output value of the pwm duty cycle of the single chip microcomputer. And in step S2, the fast switching between each step, i.e. the jumping output, mainly highlights the visual effect of the jump.
In a second embodiment, the control method mainly includes the following steps:
s1, starting a switch for controlling the breathing lamp and sending a starting signal;
s2, after the microcontroller receives the starting signal, the breathing lamp is started, and then the breathing lamp works according to the following setting:
s21, operating for 500ms when the positive 95 percent and the negative 5 percent are reached;
s22, operating for 400ms when the positive 70 percent is positive and the negative 15 percent is negative;
s23, operating for 400ms when the positive 50 percent is negative 30 percent;
s24, operating for 400ms when the positive 30 percent is positive and the negative 50 percent is negative;
s25, operating for 400ms when the positive 15 percent is negative 70 percent;
s26, operating for 500ms when the positive 5 percent and the negative 95 percent are achieved;
s27, operating for 400ms when the positive 15 percent is negative 70 percent;
s28, operating for 400ms when the positive 30 percent is positive and the negative 50 percent is negative;
s29, positive 50 percent and negative 30 percent, running for 400ms,
s210, positive 70 percent and negative 15 percent, running for 400ms,
s211, looping through steps S21 to S210 until the microcontroller receives a stop signal.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (3)
1. A breathing lamp control method for Christmas lamps is characterized by comprising the following steps:
s1, starting a switch for controlling the breathing lamp and sending a starting signal;
s2, after the microcontroller receives the starting signal, the breathing lamp is started, and then the breathing lamp works according to the following setting:
s21, running X1ms when the positive 95 percent is positive and the negative 5 percent is negative;
s22, operating at the positive 70 percent and the negative 15 percent, and operating at X2 ms;
s23, operating by X2ms when the concentration is positive 50% and negative 30%;
s24, operating by X2ms when the concentration is positive 30% and negative 50%;
s25, operating at the positive 15 percent and the negative 70 percent, and operating at X2 ms;
s26, running X1ms when the concentration is positive 5% and negative 95%;
s27, operating at the positive 15 percent and the negative 70 percent, and operating at X2 ms;
s28, operating by X2ms when the concentration is positive 30% and negative 50%;
s29, positive 50% and negative 30%, running X2ms,
s210, plus 70 percent and minus 15 percent, operating X2ms,
s211, circulating according to the steps S21 to S210 until the microcontroller receives a stop signal;
and the positive/negative is the positive voltage/negative voltage of the lamp, and the percentage is the output value of the pwm duty ratio of the single chip microcomputer.
2. A breathing lamp control method for christmas lamps as claimed in claim 1, wherein: the value of X1 is 500-600, and the value of X2 is 300-400.
3. A breathing lamp control method for christmas lamps as claimed in claim 2, wherein: the value of the X1 is 600, and the value of the X2 is 300.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911248299.1A CN111182700A (en) | 2019-12-09 | 2019-12-09 | Breathing lamp control method for Christmas lamp |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911248299.1A CN111182700A (en) | 2019-12-09 | 2019-12-09 | Breathing lamp control method for Christmas lamp |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111182700A true CN111182700A (en) | 2020-05-19 |
Family
ID=70657141
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911248299.1A Pending CN111182700A (en) | 2019-12-09 | 2019-12-09 | Breathing lamp control method for Christmas lamp |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111182700A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105228297A (en) * | 2015-09-23 | 2016-01-06 | 惠州华阳通用电子有限公司 | A kind of control method of breath light and device |
CN106304473A (en) * | 2016-08-16 | 2017-01-04 | 深圳市前海疆域智能科技股份有限公司 | A kind of control method of breath light |
WO2017043981A1 (en) * | 2015-09-09 | 2017-03-16 | Po-Yen Liu | Zone heating for respiratory circuits |
KR20180051308A (en) * | 2016-11-08 | 2018-05-16 | 이대상 | A Light Ccontrol Circuit of Electronic Ballast for LED with Dimming Contol Fucntion and a LED Converter for PWM Control using it |
CN109640434A (en) * | 2018-10-15 | 2019-04-16 | 小黄狗环保科技有限公司 | A kind of breathing lamp control system for Environmental-protection garbage delivery device |
CN209693096U (en) * | 2018-10-23 | 2019-11-26 | 深圳市海勤科技有限公司 | A kind of breath light control circuit |
-
2019
- 2019-12-09 CN CN201911248299.1A patent/CN111182700A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017043981A1 (en) * | 2015-09-09 | 2017-03-16 | Po-Yen Liu | Zone heating for respiratory circuits |
CN105228297A (en) * | 2015-09-23 | 2016-01-06 | 惠州华阳通用电子有限公司 | A kind of control method of breath light and device |
CN106304473A (en) * | 2016-08-16 | 2017-01-04 | 深圳市前海疆域智能科技股份有限公司 | A kind of control method of breath light |
KR20180051308A (en) * | 2016-11-08 | 2018-05-16 | 이대상 | A Light Ccontrol Circuit of Electronic Ballast for LED with Dimming Contol Fucntion and a LED Converter for PWM Control using it |
CN109640434A (en) * | 2018-10-15 | 2019-04-16 | 小黄狗环保科技有限公司 | A kind of breathing lamp control system for Environmental-protection garbage delivery device |
CN209693096U (en) * | 2018-10-23 | 2019-11-26 | 深圳市海勤科技有限公司 | A kind of breath light control circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103068123A (en) | Light emitting diode (LED) lamp with illumination intensity adjustable | |
CN102378454A (en) | Breath light control circuit | |
US10798802B2 (en) | Dimmable lighting device | |
CN103167689B (en) | Efficiency-adjusted for LED illumination | |
CN110769566A (en) | LED driver circuit and working method thereof | |
CN211630461U (en) | Lamp control circuit with dormancy gradually-extinguishing function and lamp | |
CN110515293A (en) | A kind of wake-up system and awakening method | |
CN203086787U (en) | Led control circuit and led illuminating device | |
CN105282945B (en) | The control method and control system of a kind of intelligent lighting | |
CN111182700A (en) | Breathing lamp control method for Christmas lamp | |
CN219644146U (en) | Dimmable driving circuit | |
CN108882435B (en) | Circuit capable of realizing continuous dimming without stroboflash | |
CN205213122U (en) | But LED lamp area luminance regulation control circuit | |
CN109714859A (en) | Intelligent switching control circuit | |
WO2022100730A1 (en) | Led control method and apparatus, and led illumination apparatus | |
CN205640511U (en) | LED intelligence house illumination lamps and lanterns by control of wireless bluetooth | |
CN203190291U (en) | LED intelligent lamp bulb kit allowing independent adjustment of white light and color modulation | |
CN105208714B (en) | Lighting device | |
CN203661373U (en) | Solar and mains supply-compatible warning lamp | |
JP2018101565A (en) | Lighting controller, lighting fixture and illumination system | |
CN109089358B (en) | Communication control method and system based on Internet of things light energy street lamp | |
CN202103902U (en) | LED digital dimming system used for realizing constant current source driving | |
JP2013033700A (en) | Luminaire and outdoor luminaire | |
CN111526628B (en) | Circuit for changing light state through flashlight of mobile phone and implementation method thereof | |
CN105228293A (en) | A kind of LED illumination device and means of illumination |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200519 |