The purpose of this invention is to provide the electronic switch easy for installation that need not connect between a kind of each controller.
Purpose of the present invention is reached by following technical scheme:
The said electronic switch of the present invention comprises infra-red remote control transmitter and several controllers.These control devices are controlled electrical appliance respectively in different places.Said each controller comprises single-chip microcomputer, antenna, several light-emitting diodes of COP8SAB7 model, model is respectively the emission integration member of RX5019 and RX5020 and receives integration member, transistor, relay, infrared remote control receiver, and several resistance etc.COP8SAB7 single-chip microcomputer reliability height, be programmable, it has several D, G, F, L not only can import but also exportable port, i.e. D0 to D3, G0 to G7, F0 to F3, L0 to L7 port, these ports can be controlled by programming, as control its be the input or output etc.A port in several D, the G of single-chip microcomputer, F, the L port is as input, and it is connected with the output of infrared remote controller receiver, in order to receive the remote control control signal.Several D of single-chip microcomputer, G, F, a L port part are as output, they link to each other with the negative electrode of several light-emitting diodes by resistance respectively, with link to each other with transistorized base stage by resistance, the former is in order to control the bright of light-emitting diode and to put out to show the Push And Release of electrical appliance that each controller is controlled, and the latter then makes this controller carry out Push And Release to the control electrical appliance by oxide-semiconductor control transistors and then control relay.Its anode of said light-emitting diode links to each other with power supply, and its collector electrode of its grounded emitter of said transistor links to each other with a power supply by the coil of relay.
In addition, several D of single-chip microcomputer, G, F, L port are also selected two-port, one as output with the emission integration member 1 end be connected, so that single-chip microcomputer is by the outside radiation encoding pulse signal of this emission integration member, another is connected with 1 end that receives integration member as input, so that single-chip microcomputer receives the coded pulse signal that other controller width of cloth is penetrated by this reception integration member.4 ends of RX5019 and RX5020 integration member link to each other with antenna.
Workflow of the present invention is as follows:
Near people are in wherein an electronic switch controller such as A controller, and control A controller had jurisdiction over electrical appliance the time:
1, clicks the A key of infrared remote controller reflector, the specific coding remote signal of an expression control of the reflector emission A electrical appliance that controller is had jurisdiction over of infrared remote controller.
2, the infrared remote controller receiver of A controller receives to be entered into behind this specific coding signal in the single-chip microcomputer and by single-chip microcomputer and decodes.
3, when single-chip microcomputer confirm should be the A controller had jurisdiction over the electrical appliance action time, the single-chip microcomputer of A controller sends instruction, connects or disconnects the power supply of electrical appliance by relay.
4, the single-chip microcomputer in the A controller sends instruction, makes expression A controller on the A controller control the diode displaying of electrical appliance operating state.
5, the single-chip microcomputer of A controller will represent that present this information of residing operating state of A electrical appliance that controller is had jurisdiction over carries out a specific coding, and penetrate this specific coding pulse signal with the port that emission integration member 1 end is connected by this emission integration member and the outside width of cloth of antenna through it.
6, other controller, as B and C controller through self antenna with receive 4 ends of integration member, the expression A controller that the A controller width of cloth is penetrated is controlled this specific coding pulse signal of electrical appliance operating state, is input in the single-chip microcomputer by receiving integration member, and decodes in the single-chip microcomputer of self.The single-chip microcomputer of B and C controller sends instruction, makes expression A controller on each self-controller control the diode displaying of electrical appliance operating state.
Two, near people are in wherein an electronic switch controller such as A controller, go to control one when being in the electrical appliance in strange land such as B controller and having jurisdiction over electrical appliance:
1, clicks the B key of infrared remote controller reflector, the specific coding remote signal of an expression control of reflector emission B electrical appliance that controller is had jurisdiction over.
2, the receiver of A controller infrared remote controller receives in the single-chip microcomputer that is entered into the A controller after this specific coding and by single-chip microcomputer and decodes.
3, confirm it to be when making the electrical appliance action that the B controller had jurisdiction over when the single-chip microcomputer of A controller, the single-chip microcomputer of A controller carries out another kind of specific coding, and penetrates this specific coded pulse signal with the port that emission integration member 1 end is connected by emission integration member, the outside width of cloth of antenna by it.
4, B controller this specific coding signal that the A controller width of cloth is penetrated is input in the single-chip microcomputer by this reception integration member through self antenna and 4 ends that receive integration member, and is decoded by the single-chip microcomputer of B controller.
5, confirm it to be that the single-chip microcomputer of B controller sends instruction, connects or disconnects the power supply of electrical appliance by relay when making the electrical appliance action that the B controller had jurisdiction over when the single-chip microcomputer of B controller.
6, the single-chip microcomputer of B controller sends instruction, makes expression B controller on the B controller control the diode displaying of electrical appliance work.
7, the single-chip microcomputer of B controller will represent that present this information of residing operating state of B electrical appliance that controller is had jurisdiction over carries out a specific coding, and through its port that is connected with emission integration member 1 end by emission integration member and antenna to this specific coded pulse signal of external radiation.
8, other controller, as A and C controller through self antenna with receive 4 ends of integration member, the expression B controller of B controller radiation is controlled this specific coding pulse signal of the present operating state of living in of electrical appliance, be input in the single-chip microcomputer and decode by receiving integration member.
9, other controller sends instruction as the single-chip microcomputer of A and C controller and makes expression B controller on each self-controller control the diode displaying of electrical appliance operating state.
From the above, the hardware that provides in conjunction with the present invention, and combination in a manner described, to write out control program by workflow of the present invention according to the regulation routine of the relevant coding of COP8SAB7 model single-chip microcomputer simultaneously and input in the single-chip microcomputer, purpose of the present invention just can realize.
Compared with the prior art technique scheme owing to must not connecting by signal transmssion line between the controller that is installed on the different location in the electronic switch, promptly must not be electrically connected, and therefore installs very convenient.
The invention will be further described below in conjunction with drawings and Examples:
The described electronic switch of this embodiment comprises 4 controllers.
With reference to Fig. 1, the used infra-red remote control transmitter of present embodiment is by well-known TC9148 integration member and aim at some electronic units that this integration member disposes and constituted.
With reference to Fig. 2, wherein L is an antenna, and COP8SAB7 is a single-chip microcomputer, and D1~D4 is a light-emitting diode, R
1~R
4, R
ABe resistance, BG is a triode, and J is the coil of relay, T
1Be the receiver of infrared remote controller, T
2And T
3Be respectively that model is the emission integration member of RX5019 and the reception integration member that model is RX5020.
The electronic switch of the said band remote control of present embodiment comprises a remote control transmitter, 4 controllers, and said each controller comprises a single-chip microcomputer COP8SAB7,4 light-emitting diode D
1To D
4, transistor BG, relay J, infrared receiver T
1, emission integration member T
2, receive integration member T
3, antenna L
1And resistance R
1~R
4, R
AEtc. said single-chip microcomputer COP8SAB7 is programmable, and it has several can it be the D of input or output by program control
0To D
3, G
0To G
7, F
0To F
3, L
0To L
7Port.G wherein
6Be connected with the output of infrared remote controller receiver, in order to receive remote control control signal, the L of single-chip microcomputer
4To L
7And G
4Make output, they pass through resistance R respectively
1To R
4With light-emitting diode D
1To D
4Negative electrode be connected, and be connected said light-emitting diode D with the base stage of transistor BG by resistance A
1To D
4Its anode is connected with power supply; Its collector electrode of its grounded emitter of transistor BG is connected with the power supply of 18V by the coil of relay J.It is G that single-chip microcomputer is also selected two ports
2End and G
0Hold respectively as output and input the former and emission integration member T
21 end be connected, the latter with receive integration member T
31 end be connected.In addition, emission integration member T
2With reception integration member T
32 end ground connection, its 3 end is connected with power supply, 4 ends are connected with antenna L.The workflow of present embodiment as previously mentioned.