CN104837273A - Intelligent control method for lamp switch - Google Patents

Intelligent control method for lamp switch Download PDF

Info

Publication number
CN104837273A
CN104837273A CN201510261275.5A CN201510261275A CN104837273A CN 104837273 A CN104837273 A CN 104837273A CN 201510261275 A CN201510261275 A CN 201510261275A CN 104837273 A CN104837273 A CN 104837273A
Authority
CN
China
Prior art keywords
chip microcomputer
relay
signal
bluetooth module
control method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510261275.5A
Other languages
Chinese (zh)
Inventor
苏婕
吴泽雄
都忠兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZUNYI CHANGZHENG ELECTRICAL APPLIANCE EXPLOSION-PROOF EQUIPMENT Co Ltd
Original Assignee
ZUNYI CHANGZHENG ELECTRICAL APPLIANCE EXPLOSION-PROOF EQUIPMENT Co Ltd
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 ZUNYI CHANGZHENG ELECTRICAL APPLIANCE EXPLOSION-PROOF EQUIPMENT Co Ltd filed Critical ZUNYI CHANGZHENG ELECTRICAL APPLIANCE EXPLOSION-PROOF EQUIPMENT Co Ltd
Priority to CN201510261275.5A priority Critical patent/CN104837273A/en
Publication of CN104837273A publication Critical patent/CN104837273A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The invention discloses an intelligent control method for a lamp switch so as to realize automatic control for the switch, thereby being convenient for people to turning on or off the lamp. The intelligent control method for the lamp switch comprises the steps that a signal is inputted into a mobile phone, the signal is transmitted to a singlechip microcomputer through a Bluetooth module, the singlechip microcomputer receives the signal, triggers and outputs a level which is opposite to the initial state, contacts of a relay are controlled to be connected, and the lamp is turned on; and when the lamp needs to be turned off, the mobile phone gives out a signal again, the signal is transmitted to the singlechip microcomputer through the Bluetooth module, the singlechip microcomputer receives the signal, triggers and outputs a level which is opposite to the original level, the contacts of the relay are controlled to be disconnected, and the lamp is turned off.

Description

A kind of intelligent control method of light switch
Technical field
The present invention relates to switching control techniques, be specifically related to the intelligent control method of light switch.
Background technology
Modern society, along with the development of network technology, people have higher requirement to the comfortableness of life and convenience, and household electrical appliances intellectuality has become a kind of development trend.But at present, the control of household lamp, substantially still adopts traditional manual key operator scheme, want to turn on or close electric light, people have to come into switch and just can operate, and when people have just entered room, or time in bed, switching lamp seems very inconvenient.
Summary of the invention
The invention provides the intelligent control method of light switch, to realize the Automated condtrol of switch, be convenient for people to switching lamp.
The intelligent control method of light switch, comprises the following steps:
1) bluetooth module on mobile phone is opened;
2) actuating signal is inputted to mobile phone;
3) step 2) in signal be transferred to single-chip microcomputer by described bluetooth module;
4) single-chip microcomputer triggers output one level contrary with initial condition;
5) actuating of relay be connected with single-chip microcomputer, the engage contacts of this relay, makes electric light open;
6) another actuating signal is inputted to mobile phone;
7) signal in step 6) is transferred to single-chip microcomputer by described bluetooth module;
8) single-chip microcomputer triggers output one and originally contrary level;
9) actuating of relay be connected with single-chip microcomputer, the contact of relay disconnects, and electric light is closed.
By the inventive method, as long as people just can control the switch of electric light at any time by mobile phone, and mobile phone is carried with usually, not only realizes the Automated condtrol of electric light, and switching lamp is very convenient.
Further, the bluetooth module used in step 1) is wireless serial module, convenient to use.
Further, in step 4), the control signal that single-chip microcomputer exports is through the control signal of amplification.
Further, be also included in after relay circuit stops using, by the step that the inductance current of relay consumes.Because relay coil is inductive load, it is stopped using in rear coil still exists electric energy, if consume not in time, easily produces misoperation when next time opens, therefore after relay is stopped using, and need by the current drain in relay.
Accompanying drawing explanation
Fig. 1 is the system block diagram of the embodiment of the present invention;
Fig. 2 is the physical circuit figure of Fig. 1 embodiment of the present invention;
Fig. 3 is the program flow diagram of the embodiment of the present invention.
Embodiment
Below by embodiment, the present invention is further detailed explanation:
As shown in Figure 1: the intelligent control system of the present embodiment light switch, mobile phone is as the remote controller of light switch, mobile phone and single-chip microcomputer carry out two-way communication by bluetooth module, relay module comprises the relay controlling lamp circuit break-make, single-chip microcomputer and relay one-way communication the break-make of control relay contact.In the present embodiment, bluetooth module adopts wireless serial module.
As shown in Figure 2, the VCC interface of bluetooth module 1 connects 5V power supply, GND interfacing ground, and the TXD interface of bluetooth module is data output interface, connect the Data Input Interface P3.0 of single-chip microcomputer 2, the data output interface P3.1 of single-chip microcomputer 2 is connected with the FXD interface of bluetooth module 1.
The connection of single-chip microcomputer is existing structure, does not repeat them here.
In the present embodiment, relay module comprises the first triode, the base stage of this first triode is connected with the output pin P2.7 of single-chip microcomputer, the emitter of this first triode is connected with resistance, described resistance is connected with the base stage of the second triode, the grounded emitter of this second triode, the circuit of the collector electrode of this second triode and the collector electrode of the first triode is connected with relay 3, the contact of this relay 3 is connected in series with electric light 4, and electric light 4 is serially connected on the family expenses circuit of alternating current 220V.The collector electrode of the second triode is connected with the anode of a diode, and the negative electrode of diode connects the collector electrode of the first triode, and diode is in parallel with relay.Because relay coil is inductive load, it is stopped using in rear coil still exists electric energy, if consume not in time, easily produces misoperation when next time opens, therefore after relay is stopped using, and need by diode by the current drain in relay.
As shown in Figure 3, in the present embodiment, the intelligent control method of light switch, comprises the following steps:
1) bluetooth module on mobile phone is opened;
2) actuating signal is inputted to mobile phone;
3) step 2) in signal be transferred to single-chip microcomputer by described bluetooth module;
4) single-chip microcomputer triggers output one level contrary with initial condition, and single-chip microcomputer exports control signal;
5) actuating of relay be connected with single-chip microcomputer, the engage contacts of this relay, makes electric light open;
6) another actuating signal is inputted to mobile phone;
7) signal in step 6) is transferred to single-chip microcomputer by described bluetooth module;
8) single-chip microcomputer triggers output one and originally contrary level;
9) actuating of relay be connected with single-chip microcomputer, the contact of relay disconnects, and electric light is closed.
Wherein, the bluetooth module used in step 1) is wireless serial module.In step 4), the control signal that single-chip microcomputer exports is through the control signal of amplification.
The method of the present embodiment, after relay circuit is stopped using, by the step that the inductance current of relay consumes.
Native system operation principle is as follows: when electric light turned on by needs, mobile phone input signal, and this signal is transferred to single-chip microcomputer by bluetooth module, single-chip microcomputer receives this signal, trigger the level that output one is contrary with initial condition, the engage contacts of control relay, electric light is opened; When closing electric light, mobile phone is input signal again, and this signal is transferred to single-chip microcomputer by bluetooth module, and single-chip microcomputer receives this signal, triggers output one and originally contrary level, and the contact of control relay disconnects, and electric light is closed.

Claims (4)

1. the intelligent control method of light switch, is characterized in that, comprises the following steps:
1) bluetooth module on mobile phone is opened;
2) actuating signal is inputted to mobile phone;
3) step 2) in signal be transferred to single-chip microcomputer by described bluetooth module;
4) single-chip microcomputer triggers output one level contrary with initial condition, and single-chip microcomputer exports control signal;
5) actuating of relay be connected with single-chip microcomputer, the engage contacts of this relay, makes electric light open;
Another actuating signal is inputted to mobile phone;
7) signal in step 6) is transferred to single-chip microcomputer by described bluetooth module;
8) single-chip microcomputer triggers output one and originally contrary level;
9) actuating of relay be connected with single-chip microcomputer, the contact of relay disconnects, and electric light is closed.
2. the intelligent control method of light switch according to claim 1, is characterized in that, the bluetooth module used in step 1) is wireless serial module.
3. the intelligent control method of light switch according to claim 1, is characterized in that, in step 4), the control signal that single-chip microcomputer exports is through the control signal of amplification.
4. the intelligent control method of light switch according to claim 1, is characterized in that, is also included in after relay circuit stops using, by the step that the inductance current of relay consumes.
CN201510261275.5A 2015-05-21 2015-05-21 Intelligent control method for lamp switch Pending CN104837273A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510261275.5A CN104837273A (en) 2015-05-21 2015-05-21 Intelligent control method for lamp switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510261275.5A CN104837273A (en) 2015-05-21 2015-05-21 Intelligent control method for lamp switch

Publications (1)

Publication Number Publication Date
CN104837273A true CN104837273A (en) 2015-08-12

Family

ID=53814833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510261275.5A Pending CN104837273A (en) 2015-05-21 2015-05-21 Intelligent control method for lamp switch

Country Status (1)

Country Link
CN (1) CN104837273A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100301781A1 (en) * 2006-11-15 2010-12-02 Budike Jr Lothar E S Modular wireless lighting control system using a common ballast control interface
CN104023429A (en) * 2013-08-31 2014-09-03 张瑞锋 Device for controlling lamplight by utilizing mobile phone and control method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100301781A1 (en) * 2006-11-15 2010-12-02 Budike Jr Lothar E S Modular wireless lighting control system using a common ballast control interface
CN104023429A (en) * 2013-08-31 2014-09-03 张瑞锋 Device for controlling lamplight by utilizing mobile phone and control method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
百度文库: "关于手机蓝牙控制电灯开关的设计", 《百度文库》 *

Similar Documents

Publication Publication Date Title
CN204482072U (en) A kind of single live wire switching circuit
CN204215190U (en) A kind of intelligence singly opens double control switch device
CN103179753B (en) Intelligent lamplight control system
CN104902621A (en) Novel intelligent lamp switch
CN103208709A (en) Wireless intelligent socket
CN103558796B (en) A kind of intelligent control switch
CN101771406B (en) Scheme for touch switch consuming no power in off state
CN104837273A (en) Intelligent control method for lamp switch
CN105927947B (en) Intelligent lighting control system
CN202603013U (en) Automatic desk lamp
CN104837275A (en) Intelligent control system for lamp switch
CN104615050A (en) Intelligent switch circuit with electric current and fault detection functions
CN204118399U (en) A kind of energy-saving socket with WIFI hot spot function
CN103809496B (en) The energy-saving control circuit of embedded system
CN102707694A (en) Wireless smart home control system based on switching power supply
CN206963138U (en) A kind of intelligent switch illuminator
CN113035609A (en) Double-control circuit of intelligent switch and mechanical switch
CN102892221B (en) LED (light-emitted diode) lamp and open-circuit protective circuit thereof
CN206003300U (en) A kind of intelligent switch device based on WIFI
CN111969985A (en) Intelligent single-live-wire switch power-on method based on delay reset
CN105988372A (en) Wi-Fi intelligent home power supply management system based on Android APP and control method thereof
CN105024236A (en) Automatic code matching intelligent socket and automatic code matching method thereof
CN206948679U (en) Intelligent single live wire on-off circuit
CN203825422U (en) Six-path high-power switching device capable of serial communication and RF remote control
CN2914157Y (en) Household appliance controlling system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150812