TWI604755B - Illumination device and its light color control method - Google Patents

Illumination device and its light color control method Download PDF

Info

Publication number
TWI604755B
TWI604755B TW105135305A TW105135305A TWI604755B TW I604755 B TWI604755 B TW I604755B TW 105135305 A TW105135305 A TW 105135305A TW 105135305 A TW105135305 A TW 105135305A TW I604755 B TWI604755 B TW I604755B
Authority
TW
Taiwan
Prior art keywords
light
color
control signal
unit
memory
Prior art date
Application number
TW105135305A
Other languages
Chinese (zh)
Other versions
TW201818786A (en
Inventor
Hu Yu-Jie Chang
Original Assignee
Hu Yu-Jie Chang
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 Hu Yu-Jie Chang filed Critical Hu Yu-Jie Chang
Priority to TW105135305A priority Critical patent/TWI604755B/en
Priority to CN201711015155.2A priority patent/CN108024411B/en
Application granted granted Critical
Publication of TWI604755B publication Critical patent/TWI604755B/en
Publication of TW201818786A publication Critical patent/TW201818786A/en

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/20Controlling the colour of the light
    • 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/30Semiconductor lamps, e.g. solid state lamps [SSL] light emitting diodes [LED] or organic LED [OLED]

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Description

一種照明裝置及其光色控制方法Lighting device and light color control method thereof

本發明為有關一種照明裝置及其光色控制方法,尤指一種具有記憶功能的照明裝置及其光色控制方法。The invention relates to a lighting device and a light color control method thereof, in particular to a lighting device with a memory function and a light color control method thereof.

隨著發光二極體製造技術的進步,其所發出的光色不再只有傳統白色的顏色,還可以有紅色、綠色、藍色及其組合所組成的各式色彩,也因如此,使得照明裝置的功用除了照亮目標使其更加清楚之外,藉由變換照明裝置的光色,以達到環境佈置、營造氣氛及舉辦娛樂活動等目的的使用方式越趨盛行。With the advancement of the manufacturing technology of the light-emitting diode, the light color emitted by the light-emitting diode is no longer only the traditional white color, but also various colors composed of red, green, blue and a combination thereof, and thus, the illumination is made. In addition to illuminating the target to make it clearer, the use of the lighting device to change the color of the lighting device to achieve the purpose of environmental layout, atmosphere and entertainment activities is becoming more and more popular.

如中華民國發明專利公告第I540934號,提出一種LED照明調光電路,是控制LED元件之調光,其特徵在於具有:電源端子,供給電源電壓;接地端子,連接成接地;第1輸出端子,與前述電源端子連接,且連接前述LED元件之陽極側;第2輸出端子,連接前述LED元件之陰極側;電容器,對前述第1輸出端子連接其中一端,對前述第2輸出端子連接另一端;線圈,對前述電容器另一端連接其中一端;開關元件,對前述線圈另一端連接其中一端;電阻,對前述開關元件另一端連接其中一端,對前述接地端子連接另一端;二極體,對前述電源端子連接陰極,對前述線圈另一端連接陽極;及控制電路,會根據顯示前述LED元件之調光率的調光訊號、與前述電阻之電壓降低對應之檢測電壓、以及流動於前述線圈之檢測電流,利用開關控制訊號來控制前述開關元件之動作;又,前述控制電路,在前述調光訊號顯示第1調光率之第1模式中,將開啟前述開關元件之開啟期間與關閉前述開關元件之關閉期間所構成的開關周期加以固定,又,在前述調光訊號顯示從前述第1調光率到比前述第1調光率更低之第2調光率為止之第1調光區間調光率的第2模式中,前述調光訊號所顯示之調光率降低時,維持前述開啟期間與前述關閉期間之比率的狀態下,使前述開關周期變小,又,在前述調光訊號顯示從前述第2調光率到比前述第2調光率更低之第3調光率為止之第2調光區間調光率的第3模式中,前述調光訊號所顯示之調光率降低時,固定前述關閉期間之狀態下,使前述開啟期間變短,又,在前述調光訊號顯示從前述第3調光率到比前述第3調光率更低之第4調光率為止之第3調光區間調光率的第4模式中,前述調光訊號所顯示之調光率降低時,使前述開啟期間變短,並使前述關閉期間變長,又,在前述調光訊號顯示前述第4調光率之調光率的第5模式中,固定前述開啟期間,且將前述關閉期間固定成比前述第4模式之關閉期間更長之期間,在前述調光訊號之值為第1閾值以上時,判斷成前述LED照明調光電路之控制模式為前述第1模式,在前述調光訊號之值為比前述第1閾值更小之第2閾值以上且未滿前述第1閾值時,判斷成前述控制模式為第2模式。For example, the Republic of China Invention Patent Publication No. I540934 proposes an LED illumination dimming circuit for controlling dimming of LED elements, which is characterized in that it has: a power supply terminal for supplying a power supply voltage; a ground terminal connected to a ground; and a first output terminal; Connecting to the power supply terminal and connecting the anode side of the LED element; the second output terminal is connected to the cathode side of the LED element; the capacitor is connected to one end of the first output terminal, and the other end is connected to the other end; a coil connecting the other end of the capacitor to one end thereof; a switching element connecting one end of the coil to one end thereof; a resistor connecting one end of the switching element to one end thereof, and the other end of the grounding terminal; the diode, the power source The terminal is connected to the cathode, and the other end of the coil is connected to the anode; and the control circuit is based on the dimming signal indicating the dimming rate of the LED element, the detection voltage corresponding to the voltage drop of the resistor, and the detection current flowing in the coil. Using a switch control signal to control the action of the aforementioned switching element; In the first mode in which the dimming signal displays the first dimming rate, the control circuit fixes a switching period in which the switching element is turned on and the switching element is turned off, and the switching period is fixed. The second signal of the first dimming interval dimming rate from the first dimming rate to the second dimming rate lower than the first dimming rate, the tone of the dimming signal is displayed When the light ratio is lowered, the switching period is reduced while maintaining the ratio of the opening period to the closing period, and the dimming signal is displayed from the second dimming rate to the second dimming rate. In the third mode of the second dimming interval dimming rate until the third dimming rate is low, when the dimming rate displayed by the dimming signal is lowered, the opening period is shortened while the closing period is fixed. Further, in the fourth mode in which the dimming signal indicates the third dimming interval dimming rate from the third dimming rate to the fourth dimming rate lower than the third dimming rate, the adjustment is performed. When the dimming rate displayed by the optical signal is lowered, the aforementioned The opening period is shortened, and the closing period is lengthened. Further, in the fifth mode in which the dimming signal displays the dimming rate of the fourth dimming rate, the opening period is fixed, and the closing period is fixed to a ratio When the value of the dimming signal is longer than the first threshold, the control mode of the LED illumination dimming circuit is determined to be the first mode, and the value of the dimming signal is longer. When the second threshold value is smaller than the first threshold value and is less than the first threshold value, it is determined that the control mode is the second mode.

於以上先前技術之中,傳統的多段式調光照明裝置,不具備彩色光的色彩控制功能,因此發光色彩單一主要著重於白光及其亮度、色溫的改變,且照明裝置亦不具有記憶功能,亦即首次選光時需耗時來操作,當下一次要使用相同亮度或色溫時仍需重新設定,故傳統的照明裝置,對於操作時的方便性,仍有待改進。In the above prior art, the conventional multi-stage dimming illumination device does not have the color control function of colored light, so the single color of the illumination mainly focuses on the change of white light and its brightness and color temperature, and the illumination device does not have a memory function. That is to say, it takes time to operate when the light is selected for the first time. If the same brightness or color temperature is used again, it needs to be reset again. Therefore, the conventional lighting device still needs to be improved for the convenience of operation.

本發明的主要目的,在於解決習知照明裝置對於彩色光的色彩控制以及操作時的方便性仍有待改進的問題。The main object of the present invention is to solve the problem that the conventional lighting device has to be improved in color control of color light and convenience in operation.

為達上述目的,本發明提供一種照明裝置的光色控制方法,包括下列步驟:In order to achieve the above object, the present invention provides a light color control method for a lighting device, comprising the following steps:

步驟S1:提供一電性連接於一外部開關的照明裝置,該外部開關決定是否自一市電取得一外部電力,該照明裝置包括一與該外部開關電性連接且將該外部電力整流成一高電壓直流電的整流器、一與該整流器電性連接的電源轉換電路、一與該電源轉換電路電性連接的發光單元以及一與該電源轉換電路電性連接且具有一可擦寫唯讀記憶體的微處理器單元;Step S1: providing a lighting device electrically connected to an external switch, the external switch determining whether to obtain an external power from a commercial power, the lighting device comprising an electrical connection with the external switch and rectifying the external power into a high voltage a DC rectifier, a power conversion circuit electrically connected to the rectifier, an illumination unit electrically connected to the power conversion circuit, and a micro-electrode connected to the power conversion circuit and having a rewritable read-only memory Processor unit

步驟S2:開啟該外部開關,該市電流過該整流器且使該電源轉換電路接受該高電壓直流電並執行一電源轉換而輸出一工作電壓以及一驅動電壓,該微處理器單元接受該工作電壓後,執行一初始程序;Step S2: Turning on the external switch, the current flows through the rectifier and causes the power conversion circuit to receive the high voltage direct current and perform a power conversion to output an operating voltage and a driving voltage, and the microprocessor unit receives the operating voltage. , performing an initial procedure;

步驟S3:該微處理器單元於一第一間隔時間輸出一低亮度白光控制訊號,該發光單元接受該低亮度白光控制訊號後發出一低亮度白光,且判斷該外部開關是否於該第一間隔時間內關斷;Step S3: the microprocessor unit outputs a low-brightness white light control signal at a first interval, the light-emitting unit receives the low-brightness white light control signal, emits a low-brightness white light, and determines whether the external switch is at the first interval. Shut down in time;

步驟S4:若該外部開關於超過該第一間隔時間時仍持續開啟,則該微處理器單元讀取該可擦寫唯讀記憶體內儲存的一紀錄資料並執行一工作模式識別程序,該工作模式識別程序為判斷該可擦寫唯讀記憶體內儲存的該紀錄資料為一第一工作模式或一第二工作模式;Step S4: if the external switch continues to be turned on when the first interval time is exceeded, the microprocessor unit reads a record data stored in the rewritable read-only memory and executes a work mode recognition program. The pattern recognition program determines that the record data stored in the rewritable read-only memory is a first working mode or a second working mode;

步驟S5:若該紀錄資料為該第一工作模式,則該微處理器單元於一第二間隔時間輸出一照明白光控制訊號,該發光單元接受該照明白光控制訊號後發出一照明白光,且判斷該外部開關是否於該第二間隔時間內關斷,若為是,則於該可擦寫唯讀記憶體寫入該紀錄資料為該第二工作模式和一對應該照明白光控制訊號的光色資料,若為否,則該微處理器單元按照一相位時序發出複數個第一色彩控制訊號至該發光單元,該發光單元接受該第一色彩控制訊號後發出複數個相異的光色C n,該光色C n共有n個,n為一和解析度有關的參數,且判斷該外部開關是否關斷,當該發光單元發出一光色C i時,若該微處理器單元判斷該外部開關關斷,則於該可擦寫唯讀記憶體寫入該紀錄資料為該第二工作模式和一對應該第一色彩控制訊號的光色資料,其中C i表示於第i個時序所發出的光色,且該第一色彩控制訊號的光色資料與該光色C i相對應;以及 Step S5: If the record data is in the first working mode, the microprocessor unit outputs an illumination white light control signal at a second interval, and the illumination unit receives the illumination white light control signal and emits an illumination white light, and determines Whether the external switch is turned off during the second interval, and if so, writing the record data in the rewritable read-only memory to the second working mode and a pair of light colors that should illuminate the white light control signal Data, if not, the microprocessor unit sends a plurality of first color control signals to the light unit according to a phase timing, and the light unit receives the first color control signal and emits a plurality of different light colors C n The light color C n has a total of n, n is a resolution-related parameter, and determines whether the external switch is turned off. When the light emitting unit emits a light color C i , if the microprocessor unit determines the external the switch is turned off, the erasable read-only memory to write the log data for the second operating mode, and a control signal corresponding to the first color light color information, where C i represents the i-th sequence in the A light color, the first color and the light color data control signal corresponding to the light color C i; and

步驟S6:若該紀錄資料為該第二工作模式,則該微處理器單元讀取該紀錄資料中的光色資料,輸出該照明白光控制訊號或該第一色彩控制訊號,該發光單元接受該照明白光控制訊號或該第一色彩控制訊號後發出相對應的該照明白光或該光色C iStep S6: If the record data is in the second working mode, the microprocessor unit reads the light color data in the record data, and outputs the illumination white light control signal or the first color control signal, and the light emitting unit accepts the The corresponding white light or the light color C i is emitted after the white light control signal or the first color control signal is illuminated.

為達上述目的,本發明另提供一種照明裝置,包括一整流器、一電源轉換電路、一發光單元以及一微處理器單元,該整流器與一決定是否自一市電取得一外部電力的外部開關電性連接,且接收該外部電力並整流成一高電壓直流電,該電源轉換電路與該整流器電性連接以接收該高電壓直流電後可自行啟動並執行一電源轉換而輸出一驅動電壓以及一工作電壓,該發光單元包含複數個發光二極體,該發光單元與該電源轉換電路電性連接,並接受該驅動電壓以驅動該發光二極體,該微處理器單元具有一可擦寫唯讀記憶體,與該電源轉換電路電性連接並接受該工作電壓後被啟動並執行一初始程序,接著於一第一間隔時間發出一低亮度白光訊號且判斷該外部開關是否關斷,若為是,則於該可擦寫唯讀記憶體重置一紀錄資料,若為否,則讀取該可擦寫唯讀記憶體內儲存的該紀錄資料後,執行一工作模式識別程序,該工作模式識別程序為判斷該可擦寫唯讀記憶體內儲存的該紀錄資料為一第一工作模式或一第二工作模式,若該紀錄資料為該第一工作模式,則於一第二間隔時間輸出一照明白光控制訊號至該發光單元,以使該發光單元發出一照明白光,且進一步判斷該外部開關是否於該第二間隔時間內關斷,若為是,則於該可擦寫唯讀記憶體寫入該紀錄資料為該第二工作模式和一對應該照明白光控制訊號的光色資料,若為否,則該微處理器單元按照一相位時序發出複數個第一色彩控制訊號至該發光單元,該發光單元接受該第一色彩控制訊號後發出複數個相異的光色C n,該光色C n共有n個,n為一和解析度有關的參數,且判斷該外部開關是否關斷,當該發光單元發出一光色C i時,若判斷該外部開關已關斷,則於該可擦寫唯讀記憶體寫入該紀錄資料為該第二工作模式和一對應該第一色彩控制訊號的光色資料,其中,C i表示於第i個時序所發出的光色,且對應該第一色彩控制訊號的該光色資料與該光色C i相對應,若該紀錄資料為該第二工作模式則依據該紀錄資料中的光色資料,輸出該照明白光控制訊號或該第一色彩控制訊號至該發光單元而發出相對應的該照明白光或該光色C iIn order to achieve the above object, the present invention further provides a lighting device comprising a rectifier, a power conversion circuit, an illumination unit and a microprocessor unit, the rectifier and an external switch electrical property determining whether to obtain an external power from a mains supply Connecting and receiving the external power and rectifying into a high voltage direct current, the power conversion circuit is electrically connected to the rectifier to receive the high voltage direct current, and can automatically start and perform a power conversion to output a driving voltage and an operating voltage. The light emitting unit includes a plurality of light emitting diodes electrically connected to the power conversion circuit and receiving the driving voltage to drive the light emitting diode, the microprocessor unit having an rewritable read only memory. After being electrically connected to the power conversion circuit and receiving the operating voltage, an initial process is started and executed, and then a low-brightness white light signal is sent at a first interval time to determine whether the external switch is turned off. If yes, then The rewritable read-only memory resets a record data, and if not, reads the rewritable read-only memory After storing the record data, executing a work mode recognition program for determining whether the record data stored in the rewritable read-only memory is a first work mode or a second work mode, if the record The data is the first working mode, and an illumination white light control signal is outputted to the light emitting unit at a second interval, so that the light emitting unit emits an illumination white light, and further determining whether the external switch is in the second interval time. Turning off, if yes, writing the record data in the rewritable read-only memory to the second working mode and a pair of light color data that should illuminate the white light control signal, and if not, the microprocessor The unit sends a plurality of first color control signals to the light emitting unit according to a phase timing, and the light emitting unit receives the first color control signal and emits a plurality of different light colors C n , wherein the light colors C n have n, n and a parameter related to resolution, and determines whether or not the external switch is turned off, when the light emitting unit emits a light color C i, if it is judged that the external switch has been turned off, it can be in the Write-read only memory written in the log data for the second operating mode, and a control signal corresponding to the first color light color information, wherein, C i represents the i th color light emitted by the timing, and the first to be The light color data of a color control signal corresponds to the light color C i , and if the record data is the second work mode, the illumination white light control signal or the first color is output according to the light color data in the record data. Controlling the signal to the illumination unit to emit the corresponding illumination white light or the color C i .

由以上可知,本發明相較於習知技藝可達到之功效在於,藉由紀錄、重置和讀取該可擦寫唯讀記憶體中的該些工作模式以及對應發光光色控制訊號的光色資料,以方便操作者隨時控制該照明裝置發出所欲的彩色光或照明白光,且該可擦寫唯讀記憶體於該外部電力無法供電時仍具有記憶性,因此所選定的光色於下次使用時可直接選定而毋須重新設定,提高操作時的方便性。It can be seen from the above that the achievable effect of the present invention over the prior art is to record, reset and read the working modes in the rewritable read-only memory and the light corresponding to the illuminating light color control signals. Color data, so that the operator can control the lighting device to emit desired color light or white light at any time, and the rewritable read-only memory still has memory when the external power cannot be powered, so the selected light color is It can be directly selected at the next use without re-setting, which improves the convenience of operation.

有關本發明的詳細說明及技術內容,現就配合圖式說明如下:The detailed description and technical content of the present invention will now be described as follows:

請搭配參閱『圖1』所示,為本發明一實施例的裝置電路示意圖,本發明為一種照明裝置,包括一整流器10、一電源轉換電路20、一發光單元30以及一微處理器單元40,該整流器10與一外部開關50電性連接,該外部開關50決定是否自一市電取得一外部電力,該外部開關50舉例來說可以是設置於牆壁上的一切換式電源開關(Wall Switch),以上僅舉一例本發明並不以此為限。該整流器10接收該外部電力並整流成一高電壓直流電,於一實施例中,該整流器10包括複數個二極體且具有多種設計方式,其功能是將具有交流電性質的該市電轉換成具有直流電性質的該高電壓直流電。該電源轉換電路20與該整流器10電性連接以接收該高電壓直流電後可自行啟動並執行一電源轉換而輸出一驅動電壓VO以及一工作電壓,舉例來說,該電源轉換電路20可為一自激式電源轉換電路、一他激式電源轉換電路或一模塊電源轉換電路(Power module)。詳細說明如下,當該市電輸入時,會先透過該整流器10整流成該高電壓直流電,該高電壓直流電通過一第一電阻R1至一場效電晶體(Metal Oxide Semiconductor Field Effect Transistor,簡稱MOSFET)Q1,令該場效電晶體Q1的閘電位上升而導通,使該高電壓直流電通過一變壓器T1的一初級繞組N1並使該變壓器T1進入一儲能狀態,接著通過一第二電阻R2與一地線GW電性連接,當該高電壓直流電經過該第二電阻R2時,將產生一與該高電壓直流電之電流成正比的分電壓,該分電壓會通過一第三電阻R3,使一電晶體Q2導通而截斷該場效電晶體Q1的變化,即由導通狀態進入關斷狀態,上述變化令該變壓器T1開始進入一釋能狀態,使該變壓器T1的一第二繞組N2釋放的電力經由一第一二極體D1傳輸至一第一電容C1並產生該驅動電壓VO,同時該變壓器T1的一第三繞組N3將釋出一反饋電壓,該反饋電壓經由一第二二極體D2經整流後儲存於一第二電容C2並輸出一系統電壓VS,且該反饋電壓也經由一第四電阻R4及一第五電阻R5反饋至該電晶體Q2,使該電晶體Q2持續維持導通狀態直至該反饋電壓消失後關斷,接著該場效電晶體Q1再次導通而進入下一循環,如上述方式反覆持續輸出該驅動電壓VO和該系統電壓VS。Please refer to FIG. 1 for a circuit diagram of a device according to an embodiment of the present invention. The present invention provides a lighting device including a rectifier 10, a power conversion circuit 20, an illumination unit 30, and a microprocessor unit 40. The rectifier 10 is electrically connected to an external switch 50, and the external switch 50 determines whether an external power is obtained from a mains. The external switch 50 can be, for example, a switch power switch (Wall Switch) disposed on a wall. The above is only one example of the invention and is not limited thereto. The rectifier 10 receives the external power and rectifies it into a high voltage direct current. In one embodiment, the rectifier 10 includes a plurality of diodes and has various designs for converting the commercial power having alternating current properties into direct current properties. The high voltage DC. The power conversion circuit 20 is electrically connected to the rectifier 10 to receive the high voltage DC power, and can automatically start and perform a power conversion to output a driving voltage VO and an operating voltage. For example, the power conversion circuit 20 can be a Self-excited power conversion circuit, a heuristic power conversion circuit or a module power conversion circuit (Power module). As described in detail below, when the mains input is input, the high voltage direct current is first rectified by the rectifier 10, and the high voltage direct current passes through a first resistor R1 to a metal oxide (Metal Oxide Semiconductor Field Effect Transistor, MOSFET) Q1. The gate potential of the field effect transistor Q1 is raised and turned on, so that the high voltage direct current is passed through a primary winding N1 of a transformer T1 and the transformer T1 enters an energy storage state, and then passes through a second resistor R2 and a ground. The line GW is electrically connected. When the high voltage direct current passes through the second resistor R2, a partial voltage proportional to the current of the high voltage direct current is generated, and the divided voltage passes through a third resistor R3 to make a transistor. Q2 is turned on to cut off the change of the field effect transistor Q1, that is, from the on state to the off state, the above change causes the transformer T1 to start to enter a release state, so that the power released by a second winding N2 of the transformer T1 is passed through a The first diode D1 is transmitted to a first capacitor C1 and generates the driving voltage VO, and a third winding N3 of the transformer T1 will release a feedback voltage, the feedback voltage The second diode D2 is rectified and stored in a second capacitor C2 and outputs a system voltage VS, and the feedback voltage is also fed back to the transistor Q2 via a fourth resistor R4 and a fifth resistor R5. The transistor Q2 is continuously maintained in an on state until the feedback voltage disappears, and then turned off. Then, the field effect transistor Q1 is turned on again to enter the next cycle, and the driving voltage VO and the system voltage VS are continuously outputted as described above.

於本實施例中,該電源轉換電路20更包含一穩壓單元21以及一直流偵測電路22,該穩壓單元21電性連接於該微處理器單元40與該系統電壓VS之間,該系統電壓VS所提供的電壓通常高於該微處理器單元40所能承受的電壓,因此需透過該穩壓單元21以及一第三二極體D3以輸出供該微處理器單元40運行的該工作電壓,其中該第三二極體D3具有防止逆向電流的作用;該直流偵測電路22與該微處理器單元40的一第一端口A和該系統電壓VS電性連接,該直流偵測電路22包含一第六電阻R6以及一第七電阻R7,該第六電阻R6和該第七電阻R7形成一分壓電路,以提供一與該系統電壓VS成比例的分壓至該微處理器單元40的該第一端口A,其中該第一端口A具有數位/類比轉換的檢測功能,使該微處理器單元40具有監測該系統電壓VS變化的功能。In this embodiment, the power conversion circuit 20 further includes a voltage stabilizing unit 21 and a DC current detecting circuit 22, and the voltage stabilizing unit 21 is electrically connected between the microprocessor unit 40 and the system voltage VS. The voltage provided by the system voltage VS is generally higher than the voltage that the microprocessor unit 40 can withstand, so the regulator unit 21 and a third diode D3 are required to output the output for the microprocessor unit 40. The working voltage, wherein the third diode D3 has a function of preventing a reverse current; the DC detecting circuit 22 is electrically connected to a first port A of the microprocessor unit 40 and the system voltage VS, and the DC detecting The circuit 22 includes a sixth resistor R6 and a seventh resistor R7. The sixth resistor R6 and the seventh resistor R7 form a voltage dividing circuit to provide a voltage division proportional to the system voltage VS to the micro processing. The first port A of the unit 40, wherein the first port A has a digital/analog conversion detection function, causes the microprocessor unit 40 to have a function of monitoring the system voltage VS change.

該發光單元30包含複數個發光二極體,該發光單元30與該電源轉換電路20電性連接,並接受該驅動電壓VO以驅動該發光二極體,舉例來說,該發光單元30可包括複數個分別可發出紅光、綠光、藍光及白光的一紅色發光二極體、一綠色發光二極體、一藍色發光二極體及一白色發光二極體,前三者即為光的三原色,三種發光色彩以相異的發光亮度混合後既可發出相異的彩色光,複數種發光亮度的組合即可發出複數種相異的彩色光和白光,於一實施例中,白光與彩色光互相混合後可以調整彩色光的濃淡,於本實施例中,白光可為經由三原色混合而產生,亦可於經由三原色混合而產生的白光中再加入一補償白光以提高照明亮度,需特別說明的是該白色發光二極體為一選擇性實施光色組合。The light emitting unit 30 includes a plurality of light emitting diodes. The light emitting unit 30 is electrically connected to the power conversion circuit 20 and receives the driving voltage VO to drive the light emitting diode. For example, the light emitting unit 30 can include a plurality of red light emitting diodes, a green light emitting diode, a blue light emitting diode and a white light emitting diode respectively emitting red light, green light, blue light and white light, the first three being light The three primary colors, the three illuminating colors are mixed with different illuminating brightnesses to emit different colored lights, and a plurality of combinations of illuminating brightness can emit a plurality of different colored lights and white lights. In an embodiment, white light and In the present embodiment, the white light can be generated by mixing the three primary colors, and a white light can be added to the white light generated by the mixing of the three primary colors to improve the illumination brightness. It is illustrated that the white light emitting diode is an selectively implemented light color combination.

該微處理器單元40與該電源轉換電路20電性連接並接受該工作電壓後被啟動,該微處理器單元40更具有不同的端口以執行不同的功能,包括一第二端口B、一第三端口C、一第四端口D、一第五端口E、一第六端口F、一第七端口G以及一第八端口H,該第二端口B輸出一低電位中斷該第三繞組N3的該反饋電壓,進而中斷該自激式電源轉換電路運行後再透過該第三端口C輸出一電源轉換驅動訊號,該電源轉換驅動訊號為一種脈衝寬度調變訊號(Pulse Width Modulation,簡稱PWM),用於替代該反饋電壓且改變該電晶體Q2和該場效電晶體Q1的導通或截止狀態以及改變該驅動電壓VO的輸出電壓值,使該微處理器單元40具備一調整該驅動電壓VO的功能;該第四端口D具有數位/類比轉換的檢測功能,用連續檢測的方式取得一市電整流訊號半週相位所有電壓轉換數值後,再集合分析得出一相位間隔時間(ts)、一可判斷該市電是否開啟或關斷的狀態訊息。於本發明中,該微處理器單元40包括一微處理器及其周邊電路,其中該微處理器內建多種記憶體,例如一暫存記憶體(RAM)、一唯讀記憶體(ROM)或一可擦寫唯讀記憶體(Electrically Erasable Programmable Read Only Memory,簡稱EEPROM),該可擦寫唯讀記憶體為一電子可抹除式可複寫唯讀記憶體。The microprocessor unit 40 is electrically connected to the power conversion circuit 20 and is activated after receiving the operating voltage. The microprocessor unit 40 further has different ports to perform different functions, including a second port B, a first a third port C, a fourth port D, a fifth port E, a sixth port F, a seventh port G and an eighth port H, the second port B outputs a low potential interrupting the third winding N3 The feedback voltage, in turn, interrupts the operation of the self-excited power conversion circuit, and then outputs a power conversion driving signal through the third port C. The power conversion driving signal is a Pulse Width Modulation (PWM). In place of the feedback voltage and changing the on or off state of the transistor Q2 and the field effect transistor Q1 and changing the output voltage value of the driving voltage VO, the microprocessor unit 40 is provided with an adjustment of the driving voltage VO. Function; the fourth port D has a digital/analog conversion detection function, and obtains a voltage conversion value of a half-cycle phase of a commercial rectified signal by continuous detection, and then collects and analyzes Bit interval (ts), a utility power may be determined whether to turn on or off status messages. In the present invention, the microprocessor unit 40 includes a microprocessor and peripheral circuits thereof, wherein the microprocessor has a plurality of built-in memories, such as a temporary memory (RAM) and a read-only memory (ROM). Or an electrically erasable read-only memory (EEPROM), the rewritable read-only memory is an electronic erasable rewritable read-only memory.

於本實施例中,以該可擦寫唯讀記憶體作為舉例,該微處理器單元40判斷該外部開關50於超過一第一間隔時間關斷後,讀取該可擦寫唯讀記憶體內儲存的一紀錄資料後而執行一工作模式識別程序,該工作模式識別程序為判斷該可擦寫唯讀記憶體內儲存的該紀錄資料為一第一工作模式或一第二工作模式,該第一工作模式為該微處理器單元40於一第二間隔時間輸出一照明白光控制訊號至該發光單元30而使該發光單元30發出一照明白光,且進一步判斷該外部開關50是否於該第二間隔時間內關斷,若為是,則於該可擦寫唯讀記憶體中寫入該紀錄資料為該第二工作模式和一對應該照明白光控制訊號的光色資料,若為否,則該微處理器單元40按照一相位時序發出複數個第一色彩控制訊號至該發光單元30,該發光單元30接受該第一色彩控制訊號後發出複數個相異的光色C n,該光色C n共有n個,n為一和解析度有關的參數。 In the embodiment, the rewritable read-only memory is taken as an example, and the microprocessor unit 40 determines that the external switch 50 reads the rewritable read-only memory after being turned off after a first interval. After the stored record data is executed, a work mode recognition program is executed, and the work mode recognition program determines that the record data stored in the rewritable read-only memory is a first work mode or a second work mode, the first The working mode is that the microprocessor unit 40 outputs an illumination white light control signal to the light emitting unit 30 at a second interval to cause the light emitting unit 30 to emit an illuminating white light, and further determines whether the external switch 50 is at the second interval. Turning off in time, if yes, writing the record data in the rewritable read-only memory to the second working mode and a pair of light color data that should illuminate the white light control signal, if not, then The microprocessor unit 40 sends a plurality of first color control signals to the light emitting unit 30 according to a phase timing. The light emitting unit 30 receives the first color control signal and emits a plurality of different light colors C. n , the light color C n has n, and n is a parameter related to resolution.

該第二工作模式為該微處理器單元40依據該紀錄資料中的光色資料,以輸出該照明白光控制訊號或該第一色彩控制訊號至該發光單元30,而使該發光單元30發出相對應的該照明白光或一光色C i,其中,相對應於該第一色彩控制訊號的光色資料的選定,係當該外部開關50未於該第二間隔時間內關斷後,該微處理器單元40按照該相位時序發出複數個第一色彩控制訊號至該發光單元30,該發光單元30接受該第一色彩控制訊號後發出複數個相異的光色C n,當該發光單元30發出該光色C i時,該微處理器單元40判斷該外部開關50是否關斷,若為是,則於該可擦寫唯讀記憶體寫入該紀錄資料為該第二工作模式和一對應該第一色彩控制訊號的光色資料,C i表示於第i個時序所發出的光色,且該第一色彩控制訊號的光色資料與該光色C i相對應。上述色彩控制訊號係指該微處理器單元40分別在該第五端口E、該第六端口F、該第七端口G以及該第八端口H輸出一不同通電/斷電時間比例的脈衝寬度調變控制訊號(PWM),其中該微處理器單元40以字節(byte)的變量決定光階以及色彩控制訊號其中通電/斷電的時間比例,決定光階的字節變量為一光階訊息,例如一個字節的光階訊息包含8個位元,可以決定色彩控制訊號發出256 種通電/斷電的時間比例,使該發光單元30發出256種亮度,因此,該光階訊息可與發光亮度相對應,該第八端口H係發出一對應該補償白光的白光亮度補償訊號,光色資料為一包含三原色光階以及白色光階的訊息資料。該微處理器單元40按照光色資料中的三原色以及白色的該光階訊息,發出色彩控制訊號控制該發光單元30,以分別發出不同亮度的三原色彩色光以及白光,混合後可發出一與光色資料相對應的光色,需特別說明的是發出該照明白光時,三原色發光亮度相近且使該照明白光因三原色的亮度差異而發出偏藍或偏黃的照明白光,該照明白光的光色資料於執行一初始程序時設定之。於本實施例中,該微處理器單元40的一第九端口I以及一第十端口J分別接受該工作電壓的一正電位以及一負電位而被啟動。 The second working mode is that the microprocessor unit 40 outputs the illumination white light control signal or the first color control signal to the light emitting unit 30 according to the light color data in the recorded data, so that the light emitting unit 30 emits a phase. Corresponding to the illumination white light or a light color C i , wherein the selection of the light color data corresponding to the first color control signal is when the external switch 50 is not turned off during the second interval, the micro The processor unit 40 sends a plurality of first color control signals to the light emitting unit 30 according to the phase timing. After receiving the first color control signal, the light emitting unit 30 emits a plurality of different light colors C n when the light emitting unit 30 When the light color C i is issued, the microprocessor unit 40 determines whether the external switch 50 is turned off, and if so, writes the record data in the rewritable read-only memory to the second working mode and Corresponding to the light color data of the first color control signal, C i represents the light color emitted by the ith timing, and the light color data of the first color control signal corresponds to the light color C i . The color control signal refers to that the microprocessor unit 40 outputs a pulse width adjustment of a ratio of different power on/off times at the fifth port E, the sixth port F, the seventh port G, and the eighth port H, respectively. a variable control signal (PWM), wherein the microprocessor unit 40 determines the time ratio of the light level and the color control signal in which the power is turned on/off in a byte variable, and determines the byte variable of the light level as a light order message. For example, a one-byte scale information includes 8 bits, which can determine the proportion of time that the color control signal emits 256 power-on/off times, so that the light-emitting unit 30 emits 256 kinds of brightness, so the light-order information can be illuminated. Corresponding to the brightness, the eighth port H emits a pair of white light brightness compensation signals that should compensate white light, and the light color data is a message data including three primary color levels and white light levels. The microprocessor unit 40 emits a color control signal to control the light-emitting unit 30 according to the three primary colors in the light color data and the white light-level information, so as to respectively emit three primary colors of different brightness and white light, and after mixing, a light and a light can be emitted. The color of the corresponding color of the color data, it is necessary to specifically indicate that when the white light is emitted, the three primary colors emit light with similar brightness, and the white light of the illumination is blue or yellowish due to the difference in brightness of the three primary colors, and the light color of the white light is illuminated. The data is set when an initial program is executed. In this embodiment, a ninth port I and a tenth port J of the microprocessor unit 40 are respectively activated by receiving a positive potential and a negative potential of the operating voltage.

於本發明中,該解析度係和光階有關,舉例來說,於本發明之一實施例,三原色各分為256個光階,相互混合後可產生768種色彩,因此n=768,又 n 與該微處理器單元40所使用的字節(byte)相關,故並非一固定數值。In the present invention, the resolution is related to the light level. For example, in one embodiment of the present invention, the three primary colors are divided into 256 light levels, and after mixing with each other, 768 colors can be generated, so n=768, and n. It is related to the byte used by the microprocessor unit 40, and thus is not a fixed value.

需說明的是,該光色C n為一光譜,該光色C i為該光譜其中一光色,一換色間隔時間(t)是一單個色彩控制訊號的持續時間,而相異的光色共有n個,因此發出複數個相異的該光色的一個色彩循環時間等於(t)×(n),其中(t)是經由該微處理器單元40偵測該市電的該相位間隔時間(ts)並以該相位間隔時間(ts)的倍數作為該換色間隔時間(t),以及該光色的序列變量(i)等於0到n的變數,複數種該些色彩控制訊號於起始時(i)=0,之後每間隔一次該換色間隔時間(t)後,改變一次三原色的光階狀態,同時色彩序列變量增加一個位數,即(i)=i +1,直到發出n種相異的光色時,(i)=n,同時也完成一個色彩循環,其中C n表示為色彩自(i)=0到(i)=n的集合,C i表示為(i)=0到(i)=n其中的一種色彩,接著完成一個色彩循環之後,(i)=0而再次進入下一個色彩循環。該換色間隔時間(t)為一時間單位,於不能取得市電相位狀態下的該相位間隔時間(ts)時,亦可利用一可產生時間基準的方式取得該換色間隔時間(t),例如該外部電力為一直流電時,利用一石英晶體電路取得該換色間隔時間(t)。 It should be noted that the light color C n is a spectrum, the light color C i is one of the light colors of the spectrum, and the color change interval time (t) is the duration of a single color control signal, and the different light is different. There are n colors, so one color cycle time of emitting a plurality of different colors is equal to (t) × (n), where (t) is the phase interval of detecting the commercial power via the microprocessor unit 40. (ts) and using the multiple of the phase interval time (ts) as the color change interval time (t), and the sequence variable (i) of the light color is equal to a variable of 0 to n, and the plurality of color control signals are At the beginning (i) = 0, after each interval of the color change interval (t), the light level state of the three primary colors is changed once, and the color sequence variable is increased by one digit, that is, (i)=i +1 until issued When n different colors of light, (i) = n, also complete a color cycle, where C n is represented as a set of colors from (i) = 0 to (i) = n, and C i is expressed as (i) =0 to (i)=n one of the colors, and then after completing a color cycle, (i)=0 and enter the next color cycle again. The color change interval (t) is a time unit. When the phase interval time (ts) in the commercial phase state cannot be obtained, the color change interval time (t) can also be obtained by using a time reference. For example, when the external power is always flowing, the color change interval (t) is obtained by a quartz crystal circuit.

於本發明中,該照明裝置更可包括一市電檢測單元60、一恆流單元70以及一內部供電單元80,該市電檢測單元60電性連接於該市電和該整流器10之間且包括一輸出接點,該輸出接點與該微處理器單元40的該第四端點D電性連接,該市電檢測單元60包含一電性連接於一火線L的第八電阻R8、一電性連接於一零線N的第九電阻R9以及一電性連接於該地線GW的第十電阻R10,因該整流器10的整流作用使該市電為正相位時,該火線L為正電位且該零線N電位與該地線GW電位接近,因此該第八電阻R8以及該第十電阻R10之間的電性連接點輸出一與該市電之一交流電正半週成比例的正相正電壓訊號,該市電為負相位時,該零線N為正電位且該火線L電位與該地線GW電位接近,因此該第九電阻R9以及該第十電阻R10之間的電性連接點輸出一與該市電之一交流電負半週成比例的負相正電壓訊號,該正相正電壓訊號與該負相正電壓訊號混合後,形成一整流後的市電訊號,其中該第八電阻R8、該第九電阻R9與該第十電阻R10的分壓將該整流後的市電訊號的幅值降低為該市電整流訊號。In the present invention, the lighting device further includes a mains detecting unit 60, a constant current unit 70, and an internal power supply unit 80. The mains detecting unit 60 is electrically connected between the mains and the rectifier 10 and includes an output. The contact point is electrically connected to the fourth terminal D of the microprocessor unit 40. The mains detection unit 60 includes an eighth resistor R8 electrically connected to a live line L, and is electrically connected to The ninth resistor R9 of the zero line N and the tenth resistor R10 electrically connected to the ground line GW, when the mains is positive phase due to the rectifying action of the rectifier 10, the live line L is a positive potential and the neutral line The N potential is close to the ground GW potential, so the electrical connection point between the eighth resistor R8 and the tenth resistor R10 outputs a positive phase positive voltage signal proportional to a positive half cycle of the alternating current of the utility power. When the mains is in a negative phase, the neutral line N is a positive potential and the potential of the live line L is close to the potential of the ground line GW. Therefore, the electrical connection point between the ninth resistor R9 and the tenth resistor R10 outputs the same as the mains. One negative negative phase positive voltage signal proportional to the negative half cycle of the alternating current The positive phase positive voltage signal is mixed with the negative phase positive voltage signal to form a rectified mains signal, wherein the voltage divider of the eighth resistor R8, the ninth resistor R9 and the tenth resistor R10 is rectified The magnitude of the mains signal is reduced to the mains rectification signal.

需特別說明的是,該微處理器單元40可偵測的電壓位準遠低於該市電的電壓位準,故該微處理器單元40需藉由該市電檢測單元60降低該市電的電壓幅值後,才能偵測該市電的電壓幅值與相位訊息。It should be noted that the voltage level detectable by the microprocessor unit 40 is much lower than the voltage level of the mains. Therefore, the microprocessor unit 40 needs to reduce the voltage level of the mains by the mains detecting unit 60. After the value, the voltage amplitude and phase information of the mains can be detected.

該恆流單元70電性連接於該些發光二極體和該微處理器單元40之間,包括一第一恆流電子開關71、一第二恆流電子開關72、一第三恆流電子開關73以及一第四恆流電子開關74,該些恆流電子開關為一種可受控制以進行開啟或關閉的電子開關電子電路,該微處理器單元40輸出該脈衝寬度調變控制訊號(PWM)以控制該些恆流電子開關,使該發光單元30以相對應的通電/斷電時間比例控制發光亮度,當受控制為關斷時電流量為零,當受控制為導通時可自動限制一導通電流量在固定規格的範圍內,需說明的是,該恆流單元70有多種的設計,包括分離式電路設計、恆流積體電路(IC)設計,或內建於該微處理器單元40的設計。該內部供電單元80與該微處理器單元40電性連接,需特別說明的是,當該外部電力中斷後,則無法產生該驅動電壓VO,因此習知調控該照明裝置的調控方式是在不中斷該外部電力的情況下進行,然而,本發明則是利用中斷該外部電力後,利用該內部供電單元80供電以修改該紀錄資料的方式進行調控,該內部供電單元80於該外部電力中斷後,提供一內部電源至該微處理器單元40以維持於該可擦寫唯讀記憶體寫入該紀錄資料期間的運行,於本實施例中,該內部供電單元80為一電容,其中該電容係以一第三電容C3作為舉例。The constant current unit 70 is electrically connected between the light emitting diodes and the microprocessor unit 40, and includes a first constant current electronic switch 71, a second constant current electronic switch 72, and a third constant current electron. The switch 73 and a fourth constant current electronic switch 74 are electronic switch electronic circuits that can be controlled to be turned on or off. The microprocessor unit 40 outputs the pulse width modulation control signal (PWM). In order to control the constant current electronic switches, the light emitting unit 30 controls the light emitting brightness according to a corresponding power-on/off time ratio, and the current amount is zero when controlled to be turned off, and is automatically limited when controlled to be turned on. The conduction current flow rate is within a fixed specification range. It should be noted that the constant current unit 70 has various designs, including a separate circuit design, a constant current integrated circuit (IC) design, or built in the microprocessor. The design of unit 40. The internal power supply unit 80 is electrically connected to the microprocessor unit 40. Specifically, when the external power is interrupted, the driving voltage VO cannot be generated. Therefore, it is conventional to control the lighting device. The external power is interrupted. However, the present invention uses the internal power supply unit 80 to supply power to modify the recorded data after the external power is interrupted. The internal power supply unit 80 is interrupted after the external power is interrupted. An internal power supply is provided to the microprocessor unit 40 to maintain the operation of the rewritable read-only memory during the writing of the recorded data. In this embodiment, the internal power supply unit 80 is a capacitor, wherein the capacitor A third capacitor C3 is taken as an example.

請搭配參閱『圖2』所示,為本發明一實施例的步驟流程示意圖,本發明為一種照明裝置的光色控制方法,包括下列步驟:Please refer to FIG. 2 for a schematic flow chart of a process according to an embodiment of the present invention. The present invention provides a light color control method for a lighting device, which includes the following steps:

步驟S1:提供一電性連接於一外部開關50的照明裝置,該外部開關50決定是否自一市電取得一外部電力,該照明裝置包括一與該外部開關50電性連接且將該外部電力整流成一高電壓直流電的整流器10、一與該整流器10電性連接的電源轉換電路20、一與該電源轉換電路20電性連接的發光單元30以及一與該電源轉換電路20電性連接且具有一可擦寫唯讀記憶體的微處理器單元40。Step S1: providing a lighting device electrically connected to an external switch 50, the external switch 50 determining whether to obtain an external power from a mains, the lighting device comprising an electrical connection with the external switch 50 and rectifying the external power A high voltage DC power rectifier 10, a power conversion circuit 20 electrically connected to the rectifier 10, a light emitting unit 30 electrically connected to the power conversion circuit 20, and a power connection circuit 20 are electrically connected to the power conversion circuit 20 and have a The microprocessor unit 40 can erase the read only memory.

步驟S2:開啟該外部開關50,該市電流過該整流器10且使該電源轉換電路20接受該高電壓直流電並執行一電源轉換而輸出一工作電壓以及一驅動電壓VO,該微處理器單元40接受該工作電壓後,執行一初始程序。Step S2: Turning on the external switch 50, the current flows through the rectifier 10 and causes the power conversion circuit 20 to receive the high voltage direct current and perform a power conversion to output an operating voltage and a driving voltage VO. The microprocessor unit 40 After accepting the operating voltage, an initial procedure is performed.

步驟S3:該微處理器單元40於一第一間隔時間輸出一低亮度白光控制訊號,該發光單元30接受該低亮度白光控制訊號後發出一低亮度白光,且判斷該外部開關50是否於該第一間隔時間內關斷,其中該第一間隔時間為該發光單元30發出該低亮度白光的持續時間,於該微處理器單元40執行該初始程序時設定。於步驟S3中更進一步包括以下步驟:步驟S3A:若該外部開關50於該第一間隔時間內關斷,則該微處理器單元40重置該可擦寫唯讀記憶體儲存的一紀錄資料,並於該可擦寫唯讀記憶體寫入該紀錄資料為一第一工作模式和一對應該照明白光控制訊號的光色資料。Step S3: The microprocessor unit 40 outputs a low-brightness white light control signal at a first interval. The light-emitting unit 30 receives the low-brightness white light control signal and emits a low-brightness white light, and determines whether the external switch 50 is in the The first interval time is the duration of the low-brightness white light emitted by the light-emitting unit 30, which is set when the microprocessor unit 40 executes the initial program. The step S3 further includes the following steps: Step S3A: If the external switch 50 is turned off during the first interval, the microprocessor unit 40 resets a record data stored in the rewritable read-only memory. And writing the record data in the rewritable read-only memory to a first working mode and a pair of light color data that should illuminate the white light control signal.

步驟S4:若該外部開關50於超過該第一間隔時間時仍持續開啟,則該微處理器單元40讀取該可擦寫唯讀記憶體內儲存的該紀錄資料後,執行一工作模式識別程序,該工作模式識別程序為判斷該可擦寫唯讀記憶體內儲存的該紀錄資料為該第一工作模式或一第二工作模式。Step S4: If the external switch 50 continues to be turned on when the first interval time is exceeded, the microprocessor unit 40 reads the record data stored in the rewritable read-only memory and executes a working mode recognition program. The working mode recognition program determines that the record data stored in the rewritable read-only memory is the first working mode or a second working mode.

步驟S5:若該紀錄資料為該第一工作模式,則該微處理器單元40於一第二間隔時間輸出一照明白光控制訊號,該發光單元30接受該照明白光控制訊號後發出一照明白光,且判斷該外部開關50是否於一第二間隔時間內關斷,其中該第二間隔時間為發出該照明白光的持續時間,於該微處理器單元40執行該初始程序時設定。於步驟S5中更進一步包括以下步驟:步驟S5A:若判斷該外部開關50未於該第二間隔時間內關斷後,該微處理器單元40按照一相位時序發出複數個第一色彩控制訊號至該發光單元30,於本實施例中,該相位時序可進一步定義如下,時:和該市電相位同步的換色間隔時間(t),序:該光色的序列變量(i),時序係提供一與市電相位同步換色的功能。該發光單元30接受該第一色彩控制訊號後發出複數個相異的光色C n,該光色C n共有n個,n為一和一解析度有關的參數,且判斷該外部開關50是否關斷;當該發光單元30發出該光色C i時,該微處理器單元40判斷該外部開關50是否已關斷,若為是,則於該可擦寫唯讀記憶體寫入該紀錄資料為該第二工作模式和一對應該第一色彩控制訊號的光色資料,其中對應該第一色彩控制訊號的該光色資料為對應當下的該光色C i,C i表示於第i個時序所發出的光色;步驟S5B:若該外部開關50於該第二間隔時間內關斷,則於該可擦寫唯讀記憶體寫入該紀錄資料為該第二工作模式和一對應該照明白光控制訊號的光色資料。 Step S5: If the record data is in the first working mode, the microprocessor unit 40 outputs an illumination white light control signal at a second interval, and the illumination unit 30 receives the illumination white light control signal and emits an illumination white light. And determining whether the external switch 50 is turned off during a second interval time, wherein the second interval time is a duration for emitting the illumination white light, which is set when the microprocessor unit 40 executes the initial program. The step S5 further includes the following steps: Step S5A: If it is determined that the external switch 50 is not turned off within the second interval, the microprocessor unit 40 issues a plurality of first color control signals according to a phase timing to In the embodiment, the phase timing can be further defined as follows: a color change interval (t) synchronized with the phase of the mains, sequence: sequence variable (i) of the color, the timing is provided A function of color change with the phase of the mains. After receiving the first color control signal, the light emitting unit 30 emits a plurality of different light colors C n , the light color C n has n, n is a parameter related to a resolution, and it is determined whether the external switch 50 is Turning off; when the light emitting unit 30 emits the light color C i , the microprocessor unit 40 determines whether the external switch 50 has been turned off, and if so, writes the record in the rewritable read only memory. The data is the second working mode and a pair of light color data corresponding to the first color control signal, wherein the light color data corresponding to the first color control signal is the pair of light colors C i , C i indicated by the i The color of the light emitted by the timing; step S5B: if the external switch 50 is turned off during the second interval, writing the record data to the second working mode and the pair in the rewritable read-only memory The light color data of the white light control signal should be illuminated.

步驟S6:若該紀錄資料為該第二工作模式,則該微處理器單元40讀取該紀錄資料中的光色資料後,輸出與光色資料相對應的該照明白光控制訊號或該第一色彩控制訊號,該發光單元30接受該照明白光控制訊號或該第一色彩控制訊號後發出相對應的該照明白光或該光色C iStep S6: If the record data is in the second working mode, the microprocessor unit 40 reads the light color data in the record data, and outputs the illumination white light control signal corresponding to the light color data or the first The illumination control unit 30 receives the illumination white light control signal or the first color control signal and sends the corresponding illumination white light or the light color C i .

綜上所述,由於可藉由紀錄、重置和讀取該可擦寫唯讀記憶體中的該些工作模式以及對應發光光色控制訊號的光色資料,以方便操作者隨時控制該照明裝置發出所欲的光色,且該可擦寫唯讀記憶體於該外部電力無法供電時仍具有記憶性,因此所選定的光色於下次使用時可直接選定而毋須重新設定,提高操作時的方便性。In summary, since the working mode in the rewritable read-only memory and the light color data of the corresponding illuminating light color control signal can be recorded, reset and read, the operator can control the lighting at any time. The device emits a desired light color, and the rewritable read-only memory still has memory when the external power cannot be powered, so the selected light color can be directly selected at the next use without resetting, and the operation is improved. Convenience.

以上已將本發明做一詳細說明,惟以上所述者,僅爲本發明的一較佳實施例而已,當不能限定本發明實施的範圍。即凡依本發明申請範圍所作的均等變化與修飾等,皆應仍屬本發明的專利涵蓋範圍內。The present invention has been described in detail above, but the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the scope of the invention. That is, the equivalent changes and modifications made by the scope of the present application should remain within the scope of the patent of the present invention.

S1~S6‧‧‧步驟S1~S6‧‧‧Steps

10‧‧‧整流器10‧‧‧Rectifier

20‧‧‧電源轉換電路20‧‧‧Power conversion circuit

21‧‧‧穩壓單元21‧‧‧Stabilizer

22‧‧‧直流偵測電路22‧‧‧DC detection circuit

30‧‧‧發光單元30‧‧‧Lighting unit

40‧‧‧微處理器單元40‧‧‧Microprocessor unit

50‧‧‧外部開關50‧‧‧External switch

60‧‧‧市電檢測單元60‧‧‧mains detection unit

70‧‧‧恆流單元70‧‧‧ constant current unit

71‧‧‧第一恆流電子開關71‧‧‧First constant current electronic switch

72‧‧‧第二恆流電子開關72‧‧‧Second constant current electronic switch

73‧‧‧第三恆流電子開關73‧‧‧ Third constant current electronic switch

74‧‧‧第四恆流電子開關74‧‧‧fourth constant current electronic switch

80‧‧‧內部供電單元80‧‧‧Internal power supply unit

VO‧‧‧驅動電壓VO‧‧‧ drive voltage

VS‧‧‧系統電壓VS‧‧‧ system voltage

R1‧‧‧第一電阻R1‧‧‧first resistance

R2‧‧‧第二電阻R2‧‧‧second resistance

R3‧‧‧第三電阻R3‧‧‧ third resistor

R4‧‧‧第四電阻R4‧‧‧fourth resistor

R5‧‧‧第五電阻R5‧‧‧ fifth resistor

R6‧‧‧第六電阻R6‧‧‧ sixth resistor

R7‧‧‧第七電阻R7‧‧‧ seventh resistor

R8‧‧‧第八電阻R8‧‧‧ eighth resistor

R9‧‧‧第九電阻R9‧‧‧ ninth resistor

R10‧‧‧第十電阻R10‧‧‧10th resistor

Q1‧‧‧場效電晶體Q1‧‧‧ Field Effect Crystal

Q2‧‧‧電晶體Q2‧‧‧Optoelectronics

T1‧‧‧變壓器T1‧‧‧ transformer

N1‧‧‧初級繞組N1‧‧‧ primary winding

N2‧‧‧第二繞組N2‧‧‧second winding

N3‧‧‧第三繞組N3‧‧‧ third winding

D1‧‧‧第一二極體D1‧‧‧First Diode

D2‧‧‧第二二極體D2‧‧‧ second diode

D3‧‧‧第三二極體D3‧‧‧ third diode

C1‧‧‧第一電容C1‧‧‧first capacitor

C2‧‧‧第二電容C2‧‧‧second capacitor

C3‧‧‧第三電容C3‧‧‧ third capacitor

A‧‧‧第一端口A‧‧‧first port

B‧‧‧第二端口B‧‧‧Second port

C‧‧‧第三端口C‧‧‧ third port

D‧‧‧第四端口D‧‧‧fourth port

E‧‧‧第五端口E‧‧‧ fifth port

F‧‧‧第六端口F‧‧‧ sixth port

G‧‧‧第七端口G‧‧‧ seventh port

H‧‧‧第八端口H‧‧‧ eighth port

I‧‧‧第九端口I‧‧‧ ninth port

J‧‧‧第十端口J‧‧‧10th port

L‧‧‧火線L‧‧‧FireWire

N‧‧‧零線N‧‧‧Zero

GW‧‧‧地線GW‧‧‧ ground wire

『圖1』,為本發明一實施例的裝置電路示意圖。 『圖2』,為本發明一實施例的步驟流程示意圖。FIG. 1 is a schematic diagram of a device circuit according to an embodiment of the present invention. FIG. 2 is a schematic flow chart showing the steps of an embodiment of the present invention.

S1~S6‧‧‧步驟 S1~S6‧‧‧Steps

Claims (8)

一種照明裝置的光色控制方法,包括下列步驟:步驟S1:提供一電性連接於一外部開關的照明裝置,該外部開關決定是否自一市電取得一外部電力,該照明裝置包括一與該外部開關電性連接且將該外部電力整流成一高電壓直流電的整流器、一與該整流器電性連接的電源轉換電路、一與該電源轉換電路電性連接的發光單元以及一與該電源轉換電路電性連接且具有一可擦寫唯讀記憶體的微處理器單元;步驟S2:開啟該外部開關,該市電流過該整流器且使該電源轉換電路接受該高電壓直流電並執行一電源轉換而輸出一工作電壓以及一驅動電壓,該微處理器單元接受該工作電壓後,執行一初始程序;步驟S3:該微處理器單元於一第一間隔時間輸出一低亮度白光控制訊號,該發光單元接受該低亮度白光控制訊號後發出一低亮度白光,且判斷該外部開關是否於該第一間隔時間內關斷;步驟S4:若該外部開關於超過該第一間隔時間時仍持續開啟,則該微處理器單元讀取該可擦寫唯讀記憶體內儲存的一紀錄資料後,執行一工作模式識別程序,該工作模式識別程序為判斷該可擦寫唯讀記憶體內儲存的該紀錄資料為一第一工作模式或一第二工作模式;步驟S5:若該紀錄資料為該第一工作模式,則該微處理器單元於一第二間隔時間輸出一照明白光控制訊號,該發光單元接受該照明白光控制訊號後發出一照明白光,且判斷該外部開關是否於一第二間隔時間內關斷,若為是,則於該可擦寫唯讀記憶體寫入該紀錄資料為該第二工作模式和一對應該照明白光控制訊號的光色資料,若為否,則該微處理器單元按照一相位時序發出複數個第一色彩控制訊 號至該發光單元,該發光單元接受該第一色彩控制訊號後發出複數個相異的光色Cn,該光色Cn共有n個,n為一和解析度有關的參數,且判斷該外部開關是否關斷,當該發光單元發出一光色Ci時,若該微處理器單元判斷該外部開關關斷,則於該可擦寫唯讀記憶體寫入該紀錄資料為該第二工作模式和一對應該第一色彩控制訊號的光色資料,其中,Ci表示於第i個時序所發出的光色,且該第一色彩控制訊號的光色資料與該光色Ci相對應;以及步驟S6:若該紀錄資料為該第二工作模式,則該微處理器單元讀取該紀錄資料中的光色資料,以輸出該照明白光控制訊號或該第一色彩控制訊號,該發光單元接受該照明白光控制訊號或該第一色彩控制訊號後發出相對應的該照明白光或該光色CiA light color control method for a lighting device includes the following steps: Step S1: providing a lighting device electrically connected to an external switch, the external switch determining whether to obtain an external power from a utility, the lighting device including an external device a rectifier electrically connected and rectifying the external power into a high voltage direct current, a power conversion circuit electrically connected to the rectifier, a light emitting unit electrically connected to the power conversion circuit, and an electrical circuit of the power conversion circuit a microprocessor unit connected to and having a rewritable read-only memory; step S2: turning on the external switch, the current flowing through the rectifier and causing the power conversion circuit to accept the high voltage direct current and performing a power conversion to output a An operating voltage and a driving voltage, the microprocessor unit performs an initial process after receiving the operating voltage; and the step S3: the microprocessor unit outputs a low-brightness white light control signal at a first interval, the lighting unit accepts the A low-brightness white light control signal emits a low-brightness white light, and determines whether the external switch is in the Shutdown in an interval; step S4: if the external switch continues to be turned on when the first interval time is exceeded, the microprocessor unit reads a record data stored in the rewritable read-only memory, and then executes a working mode recognition program for determining that the record data stored in the rewritable read-only memory is a first working mode or a second working mode; and step S5: if the record data is the first In the working mode, the microprocessor unit outputs an illumination white light control signal at a second interval, the illumination unit receives the illumination white light control signal, emits an illumination white light, and determines whether the external switch is in a second interval time. Turning off, if yes, writing the record data in the rewritable read-only memory to the second working mode and a pair of light color data that should illuminate the white light control signal, and if not, the microprocessor The unit sends a plurality of first color control signals to the light emitting unit according to a phase timing, and the light emitting unit emits the plurality of different lights after receiving the first color control signal C n, C n of the light color there are n, and n is a parameter related to resolution, and determines whether or not the external switch is turned off, when the light emitting unit emits a light color C i, determines if the microprocessor unit When the external switch is turned off, the record data is written in the rewritable read-only memory for the second working mode and a pair of light color data corresponding to the first color control signal, wherein C i is represented by the ith The color of the light emitted by the timing, and the light color data of the first color control signal corresponds to the light color C i ; and step S6: if the recorded data is the second working mode, the microprocessor unit reads The light color data in the record data is used to output the illumination white light control signal or the first color control signal, and the illumination unit receives the illumination white light control signal or the first color control signal and sends the corresponding illumination white light or the Light color C i . 如申請專利範圍第1項所述之照明裝置的光色控制方法,其中步驟S3進一步包括以下步驟:步驟S3A:若該外部開關於該第一間隔時間內關斷,則該微處理器單元重置該可擦寫唯讀記憶體儲存的該紀錄資料,並於該可擦寫唯讀記憶體寫入該紀錄資料為該第一工作模式和一對應該照明白光控制訊號的光色資料。 The light color control method of the lighting device according to claim 1, wherein the step S3 further comprises the following steps: Step S3A: if the external switch is turned off during the first interval, the microprocessor unit is heavy The record data stored in the rewritable read-only memory is set, and the record data is written in the rewritable read-only memory for the first working mode and a pair of light color data that should illuminate the white light control signal. 一種照明裝置,包括:一整流器,與一決定是否自一市電取得一外部電力的外部開關電性連接,且接收該外部電力並整流成一高電壓直流電;一電源轉換電路,與該整流器電性連接以接收該高電壓直流電後可自行啟動並執行一電源轉換而輸出一驅動電壓以及一工作電壓;一發光單元,包含複數個發光二極體,該發光單元與該電源轉換電路電性連接,並接受該驅動電壓以驅動該發光二極體;以及 一具有一可擦寫唯讀記憶體的微處理器單元,與該電源轉換電路電性連接並接受該工作電壓後被啟動並執行一初始程序,接著於一第一間隔時間發出一低亮度白光訊號且判斷該外部開關是否關斷,若為是,則於該可擦寫唯讀記憶體重置一紀錄資料,若為否,則讀取該可擦寫唯讀記憶體內儲存的該紀錄資料後,執行一工作模式識別程序,該工作模式識別程序為判斷該可擦寫唯讀記憶體內儲存的該紀錄資料為一第一工作模式或一第二工作模式,若該紀錄資料為該第一工作模式則於一第二間隔時間輸出一照明白光控制訊號至該發光單元,以使該發光單元發出一照明白光,且進一步判斷該外部開關是否於該第二間隔時間內關斷,若為是,則於該可擦寫唯讀記憶體寫入該紀錄資料為該第二工作模式和一對應該照明白光控制訊號的光色資料,若為否,則該微處理器單元按照一相位時序發出複數個第一色彩控制訊號至該發光單元,該發光單元接受該第一色彩控制訊號後發出複數個相異的光色Cn,該光色Cn共有n個,n為一和解析度有關的參數,且判斷該外部開關是否關斷,當該發光單元發出一光色Ci時,若判斷該外部開關已關斷,則於該可擦寫唯讀記憶體寫入該紀錄資料為該第二工作模式和一對應該第一色彩控制訊號的光色資料,其中,Ci表示於第i個時序所發出的光色,且對應該第一色彩控制訊號的該光色資料與該光色Ci相對應,若該紀錄資料為該第二工作模式則依據該紀錄資料中的光色資料,輸出該照明白光控制訊號或該第一色彩控制訊號至該發光單元而發出相對應的該照明白光或該光色CiA lighting device includes: a rectifier electrically connected to an external switch that determines whether an external power is obtained from a mains, and receives the external power and rectifies into a high voltage direct current; a power conversion circuit electrically connected to the rectifier After receiving the high-voltage direct current, a driving voltage and an operating voltage can be automatically started and executed, and a driving unit includes a plurality of light-emitting diodes, and the light-emitting unit is electrically connected to the power conversion circuit, and Receiving the driving voltage to drive the light emitting diode; and a microprocessor unit having an rewritable read-only memory, electrically connected to the power conversion circuit and receiving the operating voltage, being activated and executing an initial program And then sending a low-brightness white light signal at a first interval and determining whether the external switch is turned off. If yes, resetting a record data in the rewritable read-only memory, and if not, reading the After rewritable the record data stored in the read-only memory, a work pattern recognition program is executed, and the work pattern recognition program is judged The record data stored in the rewritable read-only memory is a first working mode or a second working mode, and if the recorded data is the first working mode, an illuminating white light control signal is outputted at a second interval to The illuminating unit is configured to cause the illuminating unit to emit an illuminating white light, and further determine whether the external switch is turned off during the second interval, and if so, write the record data in the rewritable read-only memory For the second working mode and a pair of light color data that should illuminate the white light control signal, if not, the microprocessor unit sends a plurality of first color control signals to the light emitting unit according to a phase timing, and the light emitting unit accepts After the first color control signal, a plurality of different light colors C n are generated, and the light color C n has n, n is a resolution-related parameter, and it is determined whether the external switch is turned off, when the light-emitting unit when emitting a light color C i, if it is judged that the external switch has been turned off, to the erasable read-only memory for the log data written in the second operating mode and a control signal corresponding to the first color Light color information, wherein, C i represents the i th color light emitted by a timing and control signal corresponding to the first color data and the light color of the light color C corresponding to i, if the log data for the second The working mode outputs the corresponding white light control signal or the first color control signal to the light emitting unit according to the light color data in the record data to emit the corresponding illumination white light or the light color C i . 如申請專利範圍第3項所述之照明裝置,其中更包括一與該微處理器單元電性連接的內部供電單元,該內部供電單元於該外部開關關斷 後,提供一內部電源至該微處理器單元以維持該可擦寫唯讀記憶體寫入資料期間正常作用。 The lighting device of claim 3, further comprising an internal power supply unit electrically connected to the microprocessor unit, the internal power supply unit being turned off at the external switch Thereafter, an internal power source is provided to the microprocessor unit to maintain normal operation during writing of the rewritable read-only memory. 如申請專利範圍第4項所述之照明裝置,其中該內部供電單元為一電容。 The lighting device of claim 4, wherein the internal power supply unit is a capacitor. 如申請專利範圍第3項所述之照明裝置,其中該可擦寫唯讀記憶體為一電子可抹除式可複寫唯讀記憶體。 The illuminating device of claim 3, wherein the rewritable read-only memory is an electronic erasable rewritable read-only memory. 如申請專利範圍第3項所述之照明裝置,其中該發光二極體擇自於一紅色發光二極體、一綠色發光二極體、一藍色發光二極體以及一白色發光二極體所組成的群組。 The illumination device of claim 3, wherein the light emitting diode is selected from a red light emitting diode, a green light emitting diode, a blue light emitting diode, and a white light emitting diode. The group formed. 如申請專利範圍第3項所述之照明裝置,其中更包括一電性連接於該發光二極體和該微處理器單元之間的恆流單元。The lighting device of claim 3, further comprising a constant current unit electrically connected between the light emitting diode and the microprocessor unit.
TW105135305A 2016-11-01 2016-11-01 Illumination device and its light color control method TWI604755B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW105135305A TWI604755B (en) 2016-11-01 2016-11-01 Illumination device and its light color control method
CN201711015155.2A CN108024411B (en) 2016-11-01 2017-10-26 Lighting device and light color control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105135305A TWI604755B (en) 2016-11-01 2016-11-01 Illumination device and its light color control method

Publications (2)

Publication Number Publication Date
TWI604755B true TWI604755B (en) 2017-11-01
TW201818786A TW201818786A (en) 2018-05-16

Family

ID=61023418

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105135305A TWI604755B (en) 2016-11-01 2016-11-01 Illumination device and its light color control method

Country Status (2)

Country Link
CN (1) CN108024411B (en)
TW (1) TWI604755B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI727910B (en) * 2020-12-03 2021-05-11 節明科技股份有限公司 Switch adjustable lamp and its using method

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109379800B (en) * 2018-09-13 2020-11-10 深圳和而泰智能控制股份有限公司 Light emitting control method and device for light emitting diode
TWI801858B (en) * 2020-09-29 2023-05-11 仁寶電腦工業股份有限公司 Electronic device with auxiliary lighting function and operation method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070046485A1 (en) * 2005-08-26 2007-03-01 Pieter Grootes LED light source for backlighting with integrated electronics
TW200939870A (en) * 2008-03-03 2009-09-16 O2Micro Inc Circuit and method for driving light emitting diode
CN201758471U (en) * 2010-06-28 2011-03-09 秦兵 Dimming LED illuminating lamp
US9326407B1 (en) * 2012-08-31 2016-04-26 Alexander Uchenov Automated dimmer wall switch with a color multi-touch LCD/LED display
TWI540934B (en) * 2013-02-13 2016-07-01 Shindengen Electric Mfg LED lighting dimming circuit and LED lighting dimming method
TWI554151B (en) * 2013-04-16 2016-10-11 Shindengen Electric Mfg LED lamp lighting device and LED lamp lighting device control method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI577234B (en) * 2014-09-29 2017-04-01 Hu Yu Jie Chang An adjustable lighting fixture

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070046485A1 (en) * 2005-08-26 2007-03-01 Pieter Grootes LED light source for backlighting with integrated electronics
TW200939870A (en) * 2008-03-03 2009-09-16 O2Micro Inc Circuit and method for driving light emitting diode
CN201758471U (en) * 2010-06-28 2011-03-09 秦兵 Dimming LED illuminating lamp
US9326407B1 (en) * 2012-08-31 2016-04-26 Alexander Uchenov Automated dimmer wall switch with a color multi-touch LCD/LED display
TWI540934B (en) * 2013-02-13 2016-07-01 Shindengen Electric Mfg LED lighting dimming circuit and LED lighting dimming method
TWI554151B (en) * 2013-04-16 2016-10-11 Shindengen Electric Mfg LED lamp lighting device and LED lamp lighting device control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI727910B (en) * 2020-12-03 2021-05-11 節明科技股份有限公司 Switch adjustable lamp and its using method

Also Published As

Publication number Publication date
TW201818786A (en) 2018-05-16
CN108024411A (en) 2018-05-11
CN108024411B (en) 2019-11-05

Similar Documents

Publication Publication Date Title
JP5131377B2 (en) Light control device and LED lighting system
JP5003850B1 (en) LED illuminator and LED illumination system
JP4337731B2 (en) Illumination device and image display device
US20130200814A1 (en) Led lighting apparatus and dimming method thereof
TWI604755B (en) Illumination device and its light color control method
US20100308749A1 (en) AC Power Line Controlled Light Emitting Device Dimming Circuit and Method Thereof
US20080157687A1 (en) Drive circuit for light emitting diode
JP2006512759A (en) Color temperature correction of luminescence conversion LED
JP2009026759A (en) Light emitting device, and correcting method and control method thereof
JP5462535B2 (en) Lighting device
JP2008010852A (en) Lcd backlight driving system having light emitting diodes
TWI577234B (en) An adjustable lighting fixture
KR100691188B1 (en) LED array driving apparatus
JP2011171006A (en) Lighting system
JP2011009011A (en) Lighting system
TWI593223B (en) Power conversion apparatus
JP7019173B2 (en) LED lighting device, LED lighting system and LED driving method
TW201210408A (en) A dimmer with a Lux display and a light brightness of automatic illuminance modulation
TWI639797B (en) LED dimming device suitable for plant growth
TW201712643A (en) Traffic light driving control circuit
KR101723621B1 (en) EL controle divice capable of keeping luminance constant and method thereof
US11140759B2 (en) Method of multi-mode color control by an LED driver
KR101210901B1 (en) Led light dimming system
JP2010206085A (en) Light emitting device, lighting system and method of driving the lighting system
KR20100010184U (en) LED lamp for having socket unit embedding driving circuit