KR940008737B1 - Time switch and controlling method thereof - Google Patents

Time switch and controlling method thereof Download PDF

Info

Publication number
KR940008737B1
KR940008737B1 KR1019920017649A KR920017649A KR940008737B1 KR 940008737 B1 KR940008737 B1 KR 940008737B1 KR 1019920017649 A KR1019920017649 A KR 1019920017649A KR 920017649 A KR920017649 A KR 920017649A KR 940008737 B1 KR940008737 B1 KR 940008737B1
Authority
KR
South Korea
Prior art keywords
time
output
unit
reservation
routine
Prior art date
Application number
KR1019920017649A
Other languages
Korean (ko)
Other versions
KR940008246A (en
Inventor
김용길
Original Assignee
김용길
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 김용길 filed Critical 김용길
Priority to KR1019920017649A priority Critical patent/KR940008737B1/en
Publication of KR940008246A publication Critical patent/KR940008246A/en
Application granted granted Critical
Publication of KR940008737B1 publication Critical patent/KR940008737B1/en

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/296Time-programme switches providing a choice of time-intervals for executing more than one switching action and automatically terminating their operation after the programme is completed
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01HELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
    • H01H43/00Time or time-programme switches providing a choice of time-intervals for executing one or more switching actions and automatically terminating their operations after the programme is completed
    • H01H43/02Details
    • H01H43/04Means for time setting

Landscapes

  • Electric Clocks (AREA)

Abstract

The time switch with a microprocessor includes a micro controller unit (40) storing the control program, an oscillator (20) generating the control frequency, a key input device (30) setting the control time, a display (50) showing the present and reservation time and the present mode, an output device (60) providing output if the setting time is on, and a power supply (10) providing +5 and +12 V to the circuits.

Description

타임스위치(Time Switch) 및 그 제어방법Time switch and control method

제1도는 본 발명에 따른 블럭도.1 is a block diagram according to the present invention.

제2도는 본 발명에 따른 구체적인 블럭도.2 is a detailed block diagram according to the present invention.

제3도는 본 발명에 따른 상세 회로도.3 is a detailed circuit diagram according to the present invention.

제4도는 본 발명에 따른 상세한 진행 순서도.4 is a detailed flow chart in accordance with the present invention.

제5도는 본 발명에 따른 현재시간 수정 루틴도.5 is a current time correction routine according to the present invention.

제6도는 본 발명에 따른 예약시간 수정 루틴도.6 is a reservation time modification routine according to the present invention.

제7도는 본 발명에 따른 예약 루틴의 시간증가 서브 루틴도.7 is a time incremental subroutine diagram of a reservation routine in accordance with the present invention.

제8도는 본 발명에 따른 예약 루틴의 분 증가 서브 루틴도.8 is a minute incremental subroutine diagram of a reservation routine in accordance with the present invention.

제9도는 종래 타임스위치의 외형도.9 is an external view of a conventional time switch.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

10 : 전원부 11 : 안정화 회로10: power supply unit 11: stabilization circuit

12 : 정류부 13 : 제 1전원 발생부12: rectifier 13: first power generator

14 : 제 2전원 발생부 20 : 발진부14: second power generator 20: oscillator

30 : 키#입력부 40 : 마이크로 콘트롤러 유니트(MCU)30: key # input unit 40: microcontroller unit (MCU)

50 : 표시부 51 : 드라이브회로50: display unit 51: drive circuit

52 : 타임표시부 53 : 전원 공급부52: time display 53: power supply

54 : 모드 표시부 60 : 출력부54: mode display unit 60: output unit

61 : 출력 제어부 62 : 출력단61 output controller 62 output terminal

본 발명은 설정된 임의의 시간에 전원을 출력하여 각종 전기기기를 제어할 수 있는 타임스위치에 관한 것으로서 특히, 마이크로 콘트롤러 유니트에 의해 현재 시간표시 및 수정기능, 예약기능, 예약 정지기능, 예약 복기기능을 포함하여 사용자의 이용시간 변경이 가능토록 함으로써 도난방지 및 에너지를 절약할 수 있도록 하는 타임스위치에 관한 것이다.The present invention relates to a time switch capable of controlling a variety of electrical devices by outputting power at a predetermined time, and in particular, the present time display and correction function, reservation function, reservation stop function, reservation regeneration function by the microcontroller unit. It relates to a time switch to enable the user to change the use time to prevent theft and save energy.

일반적으로 제9도에 도시한 바와같은 전원 타임 장치는 콘센트에 부착하여 사용하고, 예약 시간이 거의 3시간 이내로 한정되어 있을 뿐만 아니라 대부분 기계식에 의존하고 있어 수명에 제한을 받고 있으며, 세팅된 시간이 완료되면 사용자가 임의로 스위치를 오프시키지 않는 한 전기기기에는 계속적인 전원을 공급하고 있어 필요치 않는 전력 소모가 많게 되는 문제점이 있었다.Generally, the power time device as shown in FIG. 9 is attached to an outlet, and the reservation time is not limited to almost 3 hours, and most of the time depends on the mechanical type, and the set time is limited. When complete, unless the user arbitrarily switch off the electrical equipment has been continuously supplying power, there was a problem that a lot of unnecessary power consumption.

또한, 최근들어 가정 자동화 시스템(Home Automation System)이 도입되어 가정에서 장시간 외출시 사용자가 임의로 조절 시간을 세팅 또는 외부에서 전화로서 각종 전자기기, 조명기기, 커텐 등을 원격 제어할 수 있는 시스템이 있으나 이는 시스템 자체가 매우 고가로 인해 널리 실용화 되지 못하는 문제점이 있었다.In addition, recently, the home automation system (Home Automation System) has been introduced, there is a system that allows the user to remotely control various electronic devices, lighting equipment, curtains, etc. when the user at home for a long time out of the setting arbitrarily adjusting time or by telephone from the outside This is because the system itself is very expensive, there was a problem that can not be widely used.

본 발명은 상기와 같은 제반 문제점을 해소하기 위한 것으로서 마이크로 콘트롤러 유니트로 전자적인 타임스위치를 구성하여 한번의 시간 세팅으로 설정된 시간에 조명기기 및 전자기기등에 전원을 공급할 수 있도록 함은 물론 예약 시간 설정, 운전시간 설정, 예약 정지, 예약복귀 기능을 부가하여 사용자가 원하는 시간에 설정 장치를 제어할 수 있도록 하는 타임스위치 및 그 제어방법을 제공하는데 본 발명의 목적이 있는것 이다 .The present invention is to solve the above problems as a micro-controller unit to configure the electronic time switch to supply power to the lighting equipment and electronic devices at the time set by the time setting, as well as setting the reservation time, SUMMARY OF THE INVENTION An object of the present invention is to provide a time switch and a method of controlling the same so that a user can control the setting device at a desired time by adding an operation time setting, a reservation stop, and a reservation return function.

상기와 같은 목적을 달성하기 위한 본 발명의 특징은 전자식 타임스위치에 있어서, 제어프로그램이 내장되어 전체를 제어하는 마이크로 콘트롤러 유니트(40)와 상기 마이크로 콘트롤러 유니트(40)에 연결되어 마이크로 콘트롤러 유니트(40)가 동작할 수 있는 제어 주파수를 발생하는 발진부(20)와, 상기 마이크로 콘트롤러 유니트(40)의 입력단에 연결되어 현재 시간, 예약 시간, 시분 맞춤, 예약 정지, 가동시간, 정지시간 버튼을 조작할 수 있는 키 입력부(30)와 상기 마이크로 콘트롤러 유니트(40)의 출력측에 연결되어, 현재 시간 및 예약 시간을 표시하고, 현재 모드 상태를 디스플레이시키는 표시부(50)와, 상기 마이크로 콘트롤러 유니트(40)의 출력단에 연결되어 설정 시간이 완료되면 외부로 전원을 출력하는 출력부(60)와, AC 220전원을 +5 , +12로 출력시켜 소정회로에 적정전원이 공급되도록 하는 전원부(10)를 포함하여서 된 전자식 타임스위치를 제공하는데 있다.A feature of the present invention for achieving the above object is in the electronic time switch, the microcontroller unit 40 is connected to the microcontroller unit 40 and the microcontroller unit 40 to control the entire built-in control program 40 The oscillator 20 generates a control frequency capable of operating and the input terminal of the microcontroller unit 40 to operate the current time, reservation time, time alignment, reservation stop, start time, and stop time buttons. A display unit 50 connected to a key input unit 30 and an output side of the microcontroller unit 40 to display a current time and a reservation time, and to display a current mode state. Connected to the output terminal, when the set time is completed, the output unit 60 to output power to the outside, and AC 220 power output to +5, +12 There is provided an electronic time switch hayeoseo a power supply 10 such that proper power is supplied to the circuit.

본 발명의 다른 특징은 전자식 타임스위치 제어방법에 있어서, 현재 시간 수정 요청이 있을 경우 현재 시간을 수정하는 현재 시간 수정 루틴(L1)과, 상기 루틴 처리후 예약 시간 수정 요청이 있으면 예약 시간 수정을 실행하는 예약 시간 수정 루틴(L2)과, 상기 루틴 처리후 예약 정지 선택 요청이 있을 경우 예약 정지 선택 과정을 실행하는 예약 정지 선택 루틴(L3)과, 상기 루틴 처리후 제1출력 포트의 온,오프 시간을 체크하여 온,오프 시간이 모두 현재 시간과 동일할 때 예약 정지 해제를 실행하는 제1출력 선택루틴(L4)과, 상기 루틴 처리후 제2출력 포트의 온,오프 시간을 체크하여 온,오프 시간이 현재 시간과 일치하면 제2출력 포트를 오프시키는 제2출력 선택 루틴(L5)으로 되는 전자식 타임스위치 제어방법을 제공하는데 있다.According to another aspect of the present invention, in the electronic time switch control method, a current time correction routine (L1) for correcting a current time when there is a current time correction request, and a reservation time correction is executed if a reservation time correction request is made after the routine processing. A reservation time correction routine L2 for performing a reservation stop selection routine L3 for executing a reservation stop selection process when there is a reservation stop selection request after the routine processing, and an on / off time of the first output port after the routine processing; Check the on / off time of the first output selection routine (L4) to execute the reservation stop cancellation when the on / off time is the same as the current time, and the on / off time of the second output port after the routine processing. The present invention provides a method for controlling an electronic time switch, in which the second output selection routine L5 turns off the second output port if the time coincides with the current time.

이하 첨부된 도면에 의해 상세히 설명하면 다음과 같다.Hereinafter, described in detail by the accompanying drawings as follows.

제1도는 본 발명에 따른 블럭도로서, 크게는 전원부(10), 발전부(20), 키입력부(30), 마이크로 큰트롤러 유니트(40), 표시부(50) 및 출력부(60)로 구분된다.1 is a block diagram according to the present invention, and is largely divided into a power supply unit 10, a power generation unit 20, a key input unit 30, a micro-large controller unit 40, a display unit 50, and an output unit 60. do.

제2도는 본 발명에 따른 구체적인 블럭도이며 제3도는 본 발명에 따른 상세 회로도이다. 즉, 전원부(10)는 AC 220 전원에 포함된 노이즈를 제거하고 안정되게 출력시키는 안정화 회로(11)와, 상기 안정화 회로(11)의 출력 전압을 감압 및 정류하여 두개의 서로 다른 전압을 발생하는 정류부(12)와, 상기 정류부(12)의 출력 전압으로 릴레이구동 전압(+12 ) 및 각 회로 및 장치에 구동 전원(+5Vcc)을 출력시키는 제1 및 제2전원 발생부(13) (14)로 이루어진다2 is a detailed block diagram according to the present invention, and FIG. 3 is a detailed circuit diagram according to the present invention. That is, the power supply unit 10 generates two different voltages by depressurizing and rectifying the output voltage of the stabilization circuit 11 and the output voltage of the stabilization circuit 11 to remove the noise included in the AC 220 power stably. Rectifier 12 and first and second power generators 13 for outputting a relay drive voltage (+12) and driving power (+5 Vcc) to each circuit and device using the output voltage of the rectifier 12 (14). Consists of

또한, 표시부(50)는 현재시간 및 예약 시간등을 디스플레이하는 타임표시부(52)와, 현재시간 램프등을 상태에 따라 점멸하는 모드 표시부(54)와, 상기 타임표시부(52) 및 모드 표시부(54)에 점등 전원을 인가하는 전원 공급부(53)와, 상기 마이크로 콘트를러 유니트(40)의 제어에 따라 타임표시부(52), 전원공급부(53), 모드 표시부(54)를 조정하는 드라이브 회로(51)로 구성된다. 그리고, 출력부(60)는 마이크로 콘트를러 유니트(40)의 제어에 의해 릴레이(RE1) (RE2)구동에 따라 출력단자를 결정하는 출력 제어부(61)와, 상기 출력제어부(61)의 출력 전원을 외부 전기기기로 전송하는 출력단(62)으로 이루어진다.In addition, the display unit 50 includes a time display unit 52 for displaying a current time and a reservation time, a mode display unit 54 for blinking a current time lamp, and the like, and the time display unit 52 and a mode display unit ( A drive circuit for adjusting the time display unit 52, the power supply unit 53, and the mode display unit 54 under the control of the microcontroller unit 40, and a power supply unit 53 for applying a lighting power to the light source 54). It consists of 51. The output unit 60 includes an output control unit 61 for determining an output terminal according to the operation of the relays RE1 and RE2 under the control of the microcontroller unit 40, and the output of the output control unit 61. The output terminal 62 transmits power to an external electric device.

상기와 같이 이루어진 본 발명은 AC 220 전원이 전원부(10)의 안정화 회로(11)에 인가되면 ZNR1, ZNR2 및 콘덴서(C1)에 의해 노이즈가 제거되어 트랜스(T1)에 공급됨으로써 7.7, 15 의 두종류 전압으로 감압하여 출력된 후 정류 회로(BDI) (BD2)에 의해 전파 정류되어 출력된다.When the AC 220 power is applied to the stabilization circuit 11 of the power supply unit 10 as described above, the noise is removed by the ZNR1, ZNR2 and the condenser C1 and supplied to the transformer T1. It is output by reducing the voltage to a kind voltage and then rectifying and output by full-wave rectifying circuit BDI BD2.

이때, 제1전원 발생부(13)의 정전압 회로(15)에 의해 출력 제어부(61)의 릴레이 (RE1) (RE2) 구동 전압인 12 를 출력하게 되며 제 2전원 발생부(14)의 정전압 회로(16)에서는 5 를 출력시켜 키 입력부(30), 발진부(20) 및 마이크로·프로세서 (40)등으로 공급되어 발진부(20)로 부터 주파수가 출력되어 동작 가능한 초기 상태가 된다. 이러한 상태에서 현재 시간을 수정하기 위해 키 입력부(30)의 제1스위치 (SWI)를 접속하게 되면 마이크로 콘트롤러 유니트(40)에서 이를 인지하여 모드 표시부(54)의 발광 다이오드(LD1)를 점등시켜 현재 시간 모드임을 알리게 된다. 그 다음 시,분 조정 스위치인 제5 및 제6버튼(SW5) (SW6)를 차례로 다수회 접속시켜 현재 시간을 세팅하게 되면 마이크로 콘트롤러 유니트(40)는 이의 데이타를 판독하여 표시부(50)에 디스플레이 시키게 된다. 즉, 마이크로 콘트롤러 유니트(40)는 세팅된 현재 시간에 해당하는 데이타를 드라이브 회로(57)를 통해 타임표시부(52)와 전원 공급부(53)에 인가하면 트랜지스터 (Q1-Q4)의 온,오프 상태에 따라 타임표시부(52)로 구동 전원을 공급하게 되어 현재 시간을 디스플레이 하게 된다.At this time, the constant voltage circuit 15 of the first power generator 13 outputs the 12 driving voltages of the relays RE1 and RE2 of the output controller 61 and the constant voltage circuit of the second power generator 14. In 16, 5 is output and supplied to the key input unit 30, oscillation unit 20, microprocessor 40, and the like, and the frequency is output from the oscillation unit 20 to be in an initial state operable. In this state, when the first switch SWI of the key input unit 30 is connected in order to correct the current time, the microcontroller unit 40 recognizes this and turns on the light emitting diode LD1 of the mode display unit 54. You will be informed that you are in time mode. Then, when the fifth and sixth buttons SW5 and SW6, which are hour and minute adjustment switches, are connected in turn a plurality of times, the microcontroller unit 40 reads the data and displays the data on the display unit 50. Let's go. That is, the microcontroller unit 40 applies the data corresponding to the set current time to the time display unit 52 and the power supply unit 53 through the drive circuit 57 to turn on and off the transistors Q1 to Q4. As a result, the driving power is supplied to the time display unit 52 to display the current time.

그 다음 상기와 같이 현재 시간을 정확히 세팅한 다음 전기기기를 동작시킬 예약 시간을 설정한다.Next, as described above, the current time is correctly set, and then a reservation time for operating the electric device is set.

즉, 제2버튼(SW2)을 접속시키면 마이크로 콘트롤러 유니트(40)는 예약 시간 설정 상태임을 인지하여 모드 표시부(54)의 발광다이오드(LED2)를 점등시켜 예약 시간 설정 모드임을 알리게 되며, 전술한 바와같이 제5 및 제6버튼(SW5) (SW6)을 조작하여 예약 시간을 세팅시키면 현재시간 세팅과 동일하게 타임표시부(52)에 디스플레이되며 약 8초 후에는 현재 시간을 표시하게 된다.That is, when the second button SW2 is connected, the microcontroller unit 40 recognizes that the reservation time is set and turns on the light emitting diode LED2 of the mode display unit 54 to indicate the reservation time setting mode. As described above, when the reservation time is set by operating the fifth and sixth buttons SW5 and SW6, the time display unit 52 is displayed in the same manner as the current time setting, and about 8 seconds later, the current time is displayed.

한편, 제2버튼(SW2)에 의해 설정된 예약 시간이 완료되면 마이크로 콘트롤러 유니트(40)의 PB0, PB1 단자로부터 "로우"신호가 발생되며 이의 신호는 드라이브 회로(51)에서 "하이"선로로 반전되어 출력부(60)인 출력 제어부(61)의 제1 및 제2릴레이 (REI) (RE2)를 선택적으로 구동하게 됨에 따라 출력단(62)의 제1릴레이 스위치 (RESI)와 출력단(62)의 제2릴레이 스위치(RES2)를 접속함으로써 부하에 220 전원을 공급하게 되어 원하는 제어기능을 함과 동시에 출력단(62)에 의해 특정제품을 스위칭하게 된다. 이때 출력 제어부(61)인 제1 및 제2릴레이(REI) (RE2)의 선택적 구동은 키 입력부(30)의 제4버튼(SW4)의 조작에 의해 결정되며, 제1릴레이(REI) 선택시는 단순한 제품의 스위칭 기능을 갖도록 한 것이며 제2릴레이(RE2)선택시는 부하에 AC 220 전원이 공급되게 한 것이다.On the other hand, when the reservation time set by the second button SW2 is completed, a "low" signal is generated from the PB0 and PB1 terminals of the microcontroller unit 40 and its signal is inverted to the "high" line in the drive circuit 51. By selectively driving the first and second relay (REI) (RE2) of the output control unit 61, which is the output unit 60, the first relay switch (RESI) and the output terminal 62 of the output terminal 62 By connecting the second relay switch RES2, 220 power is supplied to the load, thereby performing a desired control function and switching a specific product by the output terminal 62. At this time, the selective driving of the first and second relays REI and RE2 of the output control unit 61 is determined by the operation of the fourth button SW4 of the key input unit 30, and when the first relay REI is selected. Is designed to have a simple switching function, and when the second relay (RE2) is selected, AC 220 power is supplied to the load.

또한, 키 입력부(30)의 제3버튼(SW3)은 예약을 선택하고 정지시키는 기능의 스위치이며, 제5버튼(SW5)은 현재 시간을 수정하는 상태 또는 예약 시간을 수정하는 상태에서 사용할 수 있으며, 1시간씩 증가시킨다. 그리고, 제 6버튼은 현재 시간을 수정하는 상태 또는 예약 시간을 수정하는 상태에서 사용하며 현재 시간을 수정할 경우 1분씩 증가시키고 예약 시간을 수정할 경우 5분씩 증가시킨다. 또한 제 7버튼(SW7)은 예약 시간을 수정할 경우 사용하며 부하의 가동 시간을 수정할 경우 사용하며 이때는 발광다이오드(LD5)가 점등되어 가동 시간 모드임을 알리고, 제8버튼(SW8)은 예약 시간을 수정할 경우 사용하며 부하의 정지 시간을 수정할때 사용되고 이때는 발광다이오드(LD6)가 점등되어 정지 시간 모드임을 알리게 된다.In addition, the third button SW3 of the key input unit 30 is a switch for selecting and stopping a reservation, and the fifth button SW5 may be used in a state of modifying a current time or a state of modifying a reservation time. , Increase by 1 hour. The sixth button is used in a state of modifying a current time or a state of modifying a reservation time, and increases by 1 minute when modifying a current time and by 5 minutes when modifying a reservation time. In addition, the seventh button SW7 is used to modify the reservation time and is used to modify the operation time of the load.In this case, the light emitting diode LD5 is turned on to indicate the operation time mode, and the eighth button SW8 is to modify the reservation time. It is used to modify the stop time of the load. In this case, the light emitting diode LD6 is turned on to inform the stop time mode.

다음은 제4도 내지 제9도에 도시한 마이크로 콘트롤러 유니트(40)에서 진행되는 순서도에 의해 설명하면 다음과 같다.Next, a flow chart of the microcontroller unit 40 shown in FIGS. 4 to 9 will be described.

먼저 제4도는 마이크로 콘트롤러 유니트의 전체적인 진행 순서도로서, 모든 회로 및 장치에 전원이 공급되어 초기화 상태가 되면, 마이크로 콘트롤러 유니트에서는 현재 시간 수정 스위치인 제1버튼(SW1)의 접속 상태를 체크(스텝 101)한후 현재 시간 수정 요청이 있을 경우 현재 시간 수정(스텝 102)을 실행하게 되는 과정(L1)을 수행하고, 만일 현재 시간 수정 요청이 없을 경우 예약 시간 수정을 체크하며, 요청이 있을 경우 예약 시간 수정을 실행(스텝 104)하게 되는 예약 시간 수정 루틴(L2)을 수행하게 된다.First, FIG. 4 is an overall flow chart of the microcontroller unit. When power is supplied to all circuits and devices, the microcontroller unit checks the connection state of the first button SW1, which is a current time correction switch (step 101). If there is a request to modify the current time, perform the process (L1) of executing the current time correction (step 102), and if there is no current time correction request, check the reservation time correction, and if there is a request, modify the reservation time. The reservation time correction routine L2, which executes (step 104), is executed.

한편, 상기 예약 시간 수정 루틴(L2)에서 예약 시간 수정 요청이 없을 때에는 다시 예약 정지 선택 요청 모드의 제3버튼(SW3)의 누름이 있는지를 체크(스텝 105)한 후 예약 정지 선택이 있을 경우 예약 정지 선택을 실행(스텝 106)하는 예약 정지선택 루틴(L3)을 실행한다. 또한, 예약 정지 선택 루틴(L3)에서 예약정지 선택이 없을 경우 제1 및 제2출력선택 루틴(L4) (L5)을 실행한다 즉, 제1출력 포트(단순 스위치 기능의 출력단(62)) 선택시(스템 107) 제1출력 포트 온 타임이 현재 시간으로 판단(스텝 108)되면 제1출력포트를 온 상태(스텝 109)로 한 다음 다시 제1출력 포트의 오프 타임이 현재 시간과 동일할 경우(스텝110) 제1출력 포트를 오프시키고 예약 정지 상태를 해제 (스텝 111)시키게 되는 제1출력 선택 루틴(L4)을 실행하게 된다. 만일 제1출력 포트 예약 선택이 되지 않았을 경우 제2출력 포트(안정화 회로(11)에 연결되어 220 전원을 출력하는 포트)의 온 시간이 현재 시간과 동일하면 제2출력 포트를 온 시킨 다음(스텝113) 제2출력 포트의 오프 시간이 현재 시간과 일치하면 제2출력 포트를 오프시키고(스텝 115) 현재 시간수정 루틴(Ll)으로 돌아가는 제2출력 선택 루틴(L5)을 완료하게 된다.On the other hand, when there is no request to modify the reservation time in the reservation time modification routine L2, it is again checked whether or not the third button SW3 of the reservation stop selection request mode is pressed (step 105). The reserved stop selection routine L3 for executing the stop selection (step 106) is executed. If there is no reservation stop selection in the reservation stop selection routine L3, the first and second output selection routines L4 and L5 are executed. That is, the first output port (output terminal 62 of the simple switch function) is selected. If the first output port on time is determined to be the current time (step 108), the first output port is turned on (step 109), and then again the off time of the first output port is equal to the current time. (Step 110) The first output selection routine L4 is executed to turn off the first output port and release the reserved stop state (Step 111). If the reservation of the first output port is not selected, if the on time of the second output port (the port connected to the stabilization circuit 11 to output 220 power) is the same as the current time, turn on the second output port (step). 113) If the off time of the second output port coincides with the current time, the second output port is turned off (step 115) and the second output selection routine L5 is returned to the current time correction routine Ll.

제5도는 제4도의 현재 시간 수정 루틴(L1)의 서브루틴으로써, 현재 시간 수정 요청이 체크되면(스텝201) 시간,분 조절의 제5 및 제6버튼(SW5) (SW7)의 누름 여부(스텝 202,204)에 따라 시간과 분 단위를 증가(스텝 203,205)시킨 다음 카운터가 완료되면(스텝 207) 현재 시간 수정을 완료한다.5 is a subroutine of the current time correction routine L1 of FIG. 4, and when the current time correction request is checked (step 201), whether the fifth and sixth buttons SW5 and SW7 of the hour and minute adjustments are pressed ( In step 202 and 204, the unit of time and minutes are increased (steps 203 and 205), and when the counter is completed (step 207), the current time correction is completed.

제6도는 제4도의 예약 시간 수정 루틴(12)의 서브루틴으로서, 예약 시간 수정 요청이 있을 경우(스텝301) 출력 포트가 선택 버튼의 접속상태를 체크(스텝 302)하여 접속되어 있을 때에는 제1출력 포트가 선택 여부(스텝 303)에 따라 제1 및 제2출력 포트를 세트(스텝 304,305)시키는 출력 포트 선택 루틴(L6)을 실행하게 된다.FIG. 6 is a subroutine of the reservation time modification routine 12 of FIG. 4. When the reservation time correction request is made (step 301), when the output port is connected by checking the connection state of the selection button (step 302), FIG. Depending on whether the output port is selected (step 303), an output port selection routine L6 for setting the first and second output ports (steps 304 and 305) is executed.

또한, 제1출력 포트의 결정 여부(스텝 306)에 따라 제1 및 제2출력 포트를 제어한 후(스텝 309,311) 시간, 분을 증가(스텝 310,312)시킨 다음, 카운트가 완료되면 예약 시간 수정 요청 판단 단계로 돌아가는 시간조절 루틴(L7)을 수행하게 되는 것이다.In addition, after controlling the first and second output ports (step 309,311) according to whether the first output port is determined (step 306), the time and minutes are increased (step 310,312), and when the count is completed, the reservation time correction request is made. The time adjustment routine L7 returns to the determination step.

제7도는 제6도의 시간 조절 루틴(L7)에서 시간 증가단계(스텝 310)의 서브 루틴도로서, 시간조절 스위치인 제 5버튼을 접속시 마다 1시간 단위로 증가(스텝 401)시키고, 시간이 11시가 체크된 경우(스텝 402)현재 시간이 오전시간(AM)으로 판단(스텝 403)될때는 오후(PM) 12시로 넘어가고 현재시간이 오후(PM)일 경우 오전(AM) 12시로 증가시키게 된다.FIG. 7 is a subroutine diagram of the time increasing step (step 310) in the time adjusting routine L7 of FIG. 6, wherein the fifth button, which is a time adjusting switch, is incremented by one hour for each time of connection (step 401). When 11 o'clock is checked (step 402), the current time is determined to be AM (AM) (step 403). If the current time is PM, it is increased to 12 AM. do.

제8도는 제6도의 시간 조절 루틴(L7)에서 분증가 단계(스텝 312)의 서브 루틴도로서, 예약 시간 수정 모드에서 분 조절 스위치인 제6버튼이 접속될때 마다 5분 단위로 증가(스텝 406)시킨 다음 60분임이 체크될 때(스텝 407) "0"으로 초기화 시킨후 계속해서 분 조정 요청이 있을 경우 5분 단위로 증가하게 된다.FIG. 8 is a subroutine diagram of the increment step (step 312) in the time adjustment routine L7 of FIG. 6, and increases in units of 5 minutes each time the sixth button, which is the minute adjustment switch, is connected in the reservation time correction mode (step 406). When it is checked for 60 minutes (step 407), it is initialized to "0" and then incremented by 5 minutes if there is a minute adjustment request.

이상에서 상술한 바와 같이 본 발명은 마이크로 콘트롤러 유니트로 전자적인 타임스위치를 구성하여 한번의 시간 세팅으로 설정된 시간에 조명기기 및 전자기기등에 전원을 공급할 수 있도록 함은 물론 예약 시간 설정, 운전시간 설정, 예약 정지, 예약 복귀 기능을 부가하여 사용자가 원하는 시간에 설정 장치를 제어할 수 있는 것이다.As described above, the present invention configures an electronic time switch with a micro-controller unit so as to supply power to lighting equipment and electronic devices at a time set at one time setting, as well as setting a reservation time, setting an operation time, By adding a reservation stop and a reservation return function, the user can control the setting device at a desired time.

Claims (6)

전자식 타임스위치에 있어서, 제어프로그램이 내장되어 전체를 제어하는 마이크로 콘트롤러 유니트(40)와, 상기 마이크로 콘트롤러 유니트(40)에 연결되어 마이크로 콘트롤러 유니트(40)가 동작할 수 있는제어 주파수를 발생하는 발진부(20)와, 상기 마이크로 큰트롤러 유니트(40)의 입력단에 연결되어 현재 시간, 예약 시간, 시분 맞춤, 예약 정지, 가동 시간, 정지시간 버튼을 조작할 수 있는 키 입력부(30)와, 상기 마이크로 콘트롤러 유니트(40)의 출력측에 연결되어, 현재시간 및 예약 시간을 표시하고, 현재 모드 상태를 디스플레이 시키는 표시부(50)와, 상기 마이크로 콘트롤러 유니트(40)의 출력단에 연결되어 설정 시간이 완료되면 외부로 전원을 출력하는 출력부(60)와, AC 220 전원을 +5 , +12로 출력시켜 소정 회로에 적정 전원이 공급되도록 하는 전원부(10)로 구성된 것을 특징으로 하는 전자식 타임스위치.In the electronic time switch, a microcontroller unit 40 having a built-in control program to control the whole, and an oscillator connected to the microcontroller unit 40 to generate a control frequency at which the microcontroller unit 40 can operate. A key input unit 30 connected to an input terminal of the micro-large controller unit 40 and capable of operating a current time, reservation time, time-division alignment, reservation stop, operation time, and stop time buttons; It is connected to the output side of the controller unit 40, the display unit 50 for displaying the current time and the reservation time, and display the current mode status, and connected to the output terminal of the microcontroller unit 40 when the set time is complete Output unit 60 for outputting the power to the power source and the power supply unit 10 for supplying the appropriate power to a predetermined circuit by outputting the AC 220 power to +5, +12 An electronic time switch, characterized in that configured. 제1항에 있어서, 상기 표시부(50)는 현재시간 및 예약 시간등을 디스플레이하는 타임표시부(52)와, 현재시간 램프등을 상태에 따라 점멸하는 모드 표시부(54)와, 상기 타임표시부(52) 및 모드 표시부(54)에 점등 전원을 인가하는 전원 공급부(53)와, 상기 마이크로 콘트롤러 유니트(40)의 제어에 따라 타임표시부(52), 전원 공급부(53), 모드 표시부(54)를 제어하는 드라이브 회로(51)로 구성된 것을 특징으로 하는 전자식 타임스위치 .The display unit (50) of claim 1, wherein the display unit (50) includes a time display unit (52) for displaying a current time and a reservation time, a mode display unit (54) for flashing a current time lamp, and the like, and the time display unit (52). And the power supply unit 53 for applying lighting power to the mode display unit 54 and the time display unit 52, the power supply unit 53, and the mode display unit 54 under the control of the microcontroller unit 40. Electronic time switch, characterized in that consisting of a drive circuit (51). 제1항에 있어서, 상기 출력부(60)는 마이크로 콘트롤러 유니트(40)의 제어에 의해 릴레이 (RE1)(RE2) 구동에 따라 출력단자를 결정하는 출력 제어부(61)와, 상기 출력 제어부(61)의 출력 전원을 외부 전기기기로 전송하는 출력단(62)으로 구성된 것을 특징으로 하는 전자식 타임스위치.The output controller (61) according to claim 1, wherein the output unit (60) determines an output terminal according to driving of the relays (RE1) and (RE2) under the control of the microcontroller unit 40, and the output control unit 61. Electronic time switch, characterized in that consisting of an output terminal 62 for transmitting the output power of the external electrical device. 전자식 타임스위치 제어 방법에 있어서, 현재 시간 수정 요청이 있을 경우 현재 시간을 수행하는 현재시간 수정 루틴(L1)과, 상기 루틴 처리후 예약 시간 수정 요청이 있으면 예약 시간 수정을 실행하는 예약시간 수정 루틴(L2)과, 상기 루틴 처리후 예약 정지 선택 요청이 있을 경우 예약 정지 선택 과정을 실행하는 예약 정지 선택 루틴(L3)과, 상기 루틴 처리후 제1출력 포트의 온,오프 시간을 체크하여 온,오프 시간이 모두 현재 시간과 동일할 때 예약 정지 해제를 실행하는 제1출력 선택루틴(L4)과, 상기 루틴 처리후 제2출력 포트의 온,오프 시간을 체크하여 온,오프 시간이 현재 시간과 일치하면 제2출력 포트를 오프시키는 제2출력 선택 루틴(L5)으로 이루어지는 것을 특징으로 하는 전자식 타임스위치의 제어방법.In the electronic time switch control method, a current time correction routine (L1) for performing a current time when there is a current time correction request, and a reservation time correction routine for executing a reservation time correction if there is a reservation time correction request after processing the routine ( L2), a reservation stop selection routine L3 for executing a reservation stop selection process when there is a reservation stop selection request after the routine processing, and an on / off time of the first output port after the routine processing is checked. The first output selection routine (L4) for executing the reservation stop cancellation when the time is the same as the current time, and the on / off time of the second output port after the routine processing are checked to match the on / off time with the current time. And a second output selection routine (L5) for turning off the second output port. 제 4항에 있어서, 상기 예약 시간 수정 루틴(L2)은 예약 시간 수정 요청이 있을 경우(스텝 301) 출력포트가 선택 버튼의 접속 상태를 체크(스텝 302)하여 버튼이 접속되어 있을 때에는 제1출력 포트가 선택여부(스텝 303)에 따라 제1 및 제2출력 포트를 세트(스텝 304,305)시키는 출력 포트 선택 루틴(L6)과, 제1출력 포트의 결정 여부(스텝 306)에 따라 제1 및 제2출력 포트를 제어한후(스텝 307) 시간,분 조절스위치인 제5, 제6버튼의 접속이 있을 경우(스텝 309,311) 시간,분을 증가시킨 다음(스텝 310,312) 카운트가 완료되면 예약 시간 수정 요청 관단 단계로 돌아가는 시간 조절 루틴(L7)으로 이루어지는 것을 특징으로 하는 전자식 타임스위치의 제어방법.5. The reserved time correcting routine (L2) according to claim 4, wherein when the reserved time correcting request is requested (step 301), the output port checks the connection state of the selection button (step 302) and the first output when the button is connected. An output port selection routine L6 for setting the first and second output ports according to whether or not the port is selected (step 303) (steps 304 and 305), and the first and the second output ports depending on whether or not the first output port is determined (step 306). 2 After controlling the output port (step 307), if there is a connection of the fifth and sixth buttons, which are the hour and minute adjustment switches (steps 309 and 311), increase the hour and minutes (steps 310 and 312) and then modify the reservation time when the count is completed. And a time adjustment routine (L7) to return to the request observation step. 제4항에 있어서, 상기 시간 조절 루틴(L7)의 분 조정 단계(스텝 312)는 예약 시간 수정 모드에서 분 조절 스위치인 제 6버튼이 접속될 때 마다 5분 단위로 증가시키는 단계(스텝 406)와, 상기 단계 후 60분임이 체크될때 "0"으로 초기화 시키는 단계(스텝 407)와, 계속해서 분 조정 요청이 있을 경우 5분 단위로 증가시켜서 되는 것을 특징으로 하는 전자식 타임스위치의 제어방법.5. The minute adjustment step (step 312) of the time adjustment routine (L7) according to claim 4, wherein the minute adjustment step (step 312) is incremented by five minutes each time the sixth button, which is the minute adjustment switch, is connected in the reservation time correction mode (step 406). And initializing to " 0 " (step 407) when 60 minutes after the step is checked, and incrementing by 5 minutes if there is a minute adjustment request.
KR1019920017649A 1992-09-28 1992-09-28 Time switch and controlling method thereof KR940008737B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019920017649A KR940008737B1 (en) 1992-09-28 1992-09-28 Time switch and controlling method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019920017649A KR940008737B1 (en) 1992-09-28 1992-09-28 Time switch and controlling method thereof

Publications (2)

Publication Number Publication Date
KR940008246A KR940008246A (en) 1994-04-29
KR940008737B1 true KR940008737B1 (en) 1994-09-26

Family

ID=19340205

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019920017649A KR940008737B1 (en) 1992-09-28 1992-09-28 Time switch and controlling method thereof

Country Status (1)

Country Link
KR (1) KR940008737B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100517287B1 (en) * 2002-09-03 2005-09-27 주식회사 엘.지.에이 Electronic type time switch

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100517287B1 (en) * 2002-09-03 2005-09-27 주식회사 엘.지.에이 Electronic type time switch

Also Published As

Publication number Publication date
KR940008246A (en) 1994-04-29

Similar Documents

Publication Publication Date Title
US4578591A (en) Control circuit for automotive accessory system
US7760068B2 (en) Operation switch wiring mechanism
US5495636A (en) Vacuum cleaner with independently operating on/off switches on the handle and the motor housing
KR940008737B1 (en) Time switch and controlling method thereof
ATE265784T1 (en) REMOTE CONTROLLED CIRCUIT ARRANGEMENT
KR100311065B1 (en) Remote Controller of Power Switch
KR900006048Y1 (en) Power plug socket controller capable of on-off
JPH0654378A (en) Control terminal equipment for remote supervisory and control system
KR100276867B1 (en) Timer built-in outlet
KR100482202B1 (en) Multi-function relay with priority function
CN213213428U (en) Two-in-one switch with wireless and solid keys
EP4170269A1 (en) Electronic thermoregulator configured to control a professional refrigeration appliance
KR100242780B1 (en) Digital timing relay
KR900002487Y1 (en) Control circuit
JP3384387B2 (en) Remote control transmitter with wired
KR900000231B1 (en) Long time timer circuits
US5986495A (en) Key switch control device
KR880001435Y1 (en) Power switch of remote control system
JPS60205145A (en) Terminal device for central control of air conditioner
KR950006441B1 (en) Melody circuit of tv on-time
JP2003005843A (en) Data display method and data indicator of inverter unit
US20020105235A1 (en) Apparatus and method for controlling an electrical power supply
KR100922853B1 (en) Cleaning device and apparatus for controlling standby power thereof
KR20020079123A (en) Multipurpose timer
KR200366911Y1 (en) A switching device for remote control

Legal Events

Date Code Title Description
A201 Request for examination
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
NORF Unpaid initial registration fee