Background and Summary of the Invention
The present invention relates to a method of using sound or a single-throw switch circuit to control the revolving speed and light intensity of a ceiling fan and light assembly. The present invention also relates to a control circuit for controlling the operation of the ceiling fan and light assembly, which uses a single chip microprocessor to control the operation of the control circuit.
The operation of conventional ceiling fan and light assemblies are commonly controlled by a pull chain switch. Because this structure of pull chain switch is a mechanical device, the revolving speed of the ceiling fan of the ceiling fan light assembly and the light intensity of the lamps on the ceiling fan must be controlled in proper order by the pull chain switch, that is the control of the revolving speed of the ceiling fan and the control of the light intensity of the lamps on the ceiling fan can not be separately executed. Furthermore, the use of the pull chain switch destroys the sense of beauty of the ceiling fan and light assembly.
There is known another control method which eliminates the aforesaid problem. This control method uses two separate switches to control the operation of the ceiling fan and the operation of the lamps respectively. The switch for controlling the operation of the ceiling fan is a rotary switch, which is commonly installed in the wall and turned to regulate the revolving speed of the ceiling fan by changing the impedance of a capacitor, which provides power supply to the fan motor of the ceiling fan. The major drawback of this method is the complicated installation procedure of the switches.
There is known still another control method to control the operation of a ceiling fan and light assembly by means of a remote-controller. It is convenient and functional to use a remote-controller to control the operation of a ceiling fan and light assembly. However, the cost of a remote-controller for this purpose is high. If the remote-controller of a ceiling fan and light assembly is damaged or lost, or the battery power supply of the remote-controller is used up, the ceiling fan and light assembly becomes unworkable.
There is known still another control method to control the operation of a ceiling fan and light assembly by means of a multi-step single-throw switch. However, this structure of multi-step single-throw switch is a mechanical switching device which can not eliminate the drawback of controlling the revolving speed of the ceiling and the light intensity of the lamps in proper order.
The present invention has been accomplished under the circumstances in view. It is the major object of the present invention to proivde a ceiling fan and light assembly control method which controls the revolving speed of the fan and the light intensity of the lamps by means of a single-throw switch or by clapping the hands two or three times.
Brief Description of the Drawings
FIG. 1 is a circuit diagram according to the present invention.
FIG. 2 is a time sequence chart of the signal waveforms of the single-throw switch according to the present invention.
FIG. 3 is waveform chart showing the voice-activated signal waves according to the present invention.
FIG. 4 is an operation flow chart of the internal program of the microprocessor according to the present invention.
Detailed Description of the Preferred Embodiment
FIG. 1 shows a circuit diagram of a ceiling fan and light assembly control circuit according to the present invention, which uses a 8-bit single chip microprocessor PIC16C54 U1 as the control center. Alternating current 110 V city power supply is connected in series to a single-throw switch SW, then connected to a direct current power supply circuit 1 to provide a direct current 5 V power supply, and then connected to one end of a series of resistors R5 and R6. The middle point of the series of resistors R5 and R6 is connected to RAO pin 17 of the microprocessor U1 to obtain a low voltage square wave of cycle 16.67 ms (equal to city power supply; see FIG. 2). Alternating current city power supply which is controlled by the single-throw switch SW is further connected to a voltage dropping resistor R4 and then to RA1 pin 18 of the microprocessor U1. Therefore, a low voltage city power supply waveform is obtained. The TRIAC Q1, which regulates the light intensity of the lamps, and the TRIAC Q2, which regulates the revolving speed of the fan, are respectively connected RB6 pin 12 and RB7 pin 13 of the microprocessor U1. An audio amplifier circuit 2 is provided having the output terminal connected RB3 pin 9 of the microprocessor U1. The audio amplifier circuit 2 comprises a microphone X1 which receives outside voices, a serial amplifier formed of two operational amplifiers U2A and U2B connected in series to the microphone XI to amplify the signal obtained from the microphone X1, and a RC low-pass filter R15 and C9 connected to the serial amplifier U2A and U2B to filtrate noises. There is proivded a comparator 3; U2C having the non-inverter terminal connected to the RC low-pass filter R15 and C9 and the inverter terminal connected to the middle point of a series of shunt resistors R16 and R17. When the output voltage of the serial amplifier U2A and U2B surpasses the voltage value at the middle point of the series of shunt resistors R16 and R17, the comparator U2C outputs a saturation voltage Vsat. When the single-throw switch SW is ON, alternating current city power supply is inputted into the ceiling fan and light assembly control circuit, RA1 pin 18 and RAO pin 17 of the microprocessor 81 receive a 60 Hz sine wave and a 60 Hz square wave respectively (see FIG. 2). When the user switches off the single-throw switch SW and then switches it on immediately, alternating current city power supply (square wave) is interrupted over 16.67 ms (during the interruption, the filter capacitor C4 of the direct current power supply circuit 1 provides the necessary working voltage to the microprocessor U1). This interruption of power supply causes an interrupting signal to the microprocessor U1, and therefore the microprocessor U1 is triggered to regulate the revolving speed of the fan or the light intensity of the lamps according to the setting of its internal software program. When the user claps the hands two or three times continuously, the audio signal is picked up by the microphone X1 and then amplified by the serial amplifier of the audio amplifier circuit 2 to obtain a waveform as shown in (a) of FIG. 3. The signal from the serial amplifier is then filtrated through the RC low-pass filter R15 and C9 to remove high frequency. The waveform of the signal from the output terminal of the RC low-pass filter R15 and C9 is shown as (b) in FIG. 3. When the signal from the RC low-pass filter R15 and C9 passes through the comparator 3, the waveform is changed to what shown as (c) in FIG. 3. According to the number of continuous pulse waveforms and its time interval, the microprocessor U1 determines that the signal is a noise, a speed control signal, or a light intensity control signal.
Referring to FIG. 4, when the microprocessor U1 receives a first pulse wave (the first clap (sound of claping the hands), it starts to count time. If the second and/or third pulse wave (the second clap) is received within 0.3 to 0.6 second, the signal is determined effectively, and the program will wait for one second to check if there is any further pulse wave signal. If no further pulse wave signal is received, the program judges the nature of the control signal according to the number of the effective pulse waves (number of claps). If there are two continuous claps, the control signal is judged for light intensity regulation control. If the time interval between two continuous pulse waves is shorter than 0.3 second, these two continuous pulse waves are regarded as noises and rejected. If the time interval between two continuous pulse waves is longer than 0.6 seconds, the second pulse wave is regarded as the first effective pulse wave, and the first pulse wave is regarded as a noise. Through the aforesaid recognition procedure, the microprocessor U1 will not be triggered by false signals. Furthermore, a buzzer may be connected to the output terminal of the microprocessor U1. When the microprocessor regulates the revolving speed of the fan, it simultaneously turns on the buzzer, causing it to give an audio notice.