I. Features
The nearest control, remote query function, remote on / off function, remote control 1-100 minutes timer, anti-theft line function, select the 1000 group code, 3 independently controlled output.
Second, the circuit
Multi-function smart phone jack control circuit by the ringing detection circuit, hook and hang up the circuit, the working signal detection circuit, DTMF decoder, MCU control circuit, relay output circuit, anti-theft cable circuit and power circuit composed of eight parts.
Circuit such as the photo shows. When you hear a ring signal input through R3, C3 of the optocoupler PC817 conduction, the ring detection signal into the microcontroller IC3's RA3 mouth. Duoci ring no answer, the microcontroller IC3 Cong RB7 output high, by R52, R2 Shi Q2, Q3 circuit composed of the pick hook turn and, from the RB4 IC3 sent 2.5kHz "beep, beep, beep, beep "signal four times, the Q9, Q4, and a summary sent to hang outside the circuit that controls access. At this point type, such as telephone numbers from the control side, the dual tone multi-frequency signal from the outside by the hook and hang up circuit and R6, C5, R14 into the DTMF decoder IC1, IC3 decoded to the MCU's RB0 ~ RB3. Each receives a valid digital input, RB4 that sent 0.5 seconds 2.5kHz "beep" signal that the input is valid. The IC2 will be outside the input signal and coding switches K1, K2, K3 contrast the state, such as the IC3 same again from the RB4 sent 2.5kHz "beep, beep, beep, beep" signal four times, that the password is correct, enter the standby state. Switches such as typing a different number and password, then RB7 becomes low, so that Q2 off, the circuit automatically hang up. When you type the password correctly, enter the standby state, such as the telephone and the switch to control the type number (1 to 3), the switch hook number from outside the circuit by the pick into the DTMF decoder IC1 decoded and sent to MCU number as the current operation switch IC3, IC3 will reflect the current state of 2.5kHz switch status signal sent from the RB4 to the outside, "beep ... ..." continuous tone indicates that the current state of the switch is closed; intermittent "beep, beep, beep ... ..." sound , indicates that the current switch is disconnected. Press the phone's "*" key, the key signal into the microcontroller IC3, so that the current state of flip switch from RA0, RA1, RA2, respectively, switching signal output from various quarters, the R22, R23, R24 from the Q5, Q6, Q7 Driver J1, J2, J3, while the state after the change of the signal sent to an outside line from the RB4. Telephone press "#" key to enter the timer setting mode, RB4 goes low, no signal sent to an outside line. At this point in the phone, enter 4-digit, set the timer time from 00 (hours) 01 (points) to 99 (hours) 99 (points). Input finished, press "#" key to exit timer setting mode, the appropriate timing instructions D16 ~ D18 light, while switching from the current state of RB4 signal sent to an outside line. The telephone and press the number key "0" into the listening state, this time sending a constant high RB4, microphone to pick up the signal from the Q9, Q4 amplified by Q2 to the outside. Busy signal when the telephone line will hang up no signal, R51, R50, C13, C14 a working signal detection circuit has no output, so that the timing of microcontroller input port T0CK1 IC3 is held low, IC3 to respond to the timer interrupt, RB7 goes low, so pick the Electrical and Mechanical Road, Q2 off, the circuit automatically hang up. Normal working hours if no action, no output signal detection circuit, 1 minute timer interrupt response, RB7 goes low, automatically hang up.
Circuit key S5, S6, S7 can directly control the corresponding switches in the state. Since the PIC16C54 microcontroller I / O port less, the majority of the circuit I / O ports are multiplexed. RB0, RB1, RB2 is a relay control output is S5, S6, S7 inputs. Line in each relay on the package then there is absorption of capacitors.
Coding circuit IC2 and 3 by the decimal counter 10-bit rotary switch K1, K2, K3 composition. Microcontroller reads the code IC3, the first end of CLE through its reset IC2 reset, and then sent to 10 pulses, 10 pulses by IC1 to the Q0 ~ Q9 points you to the knob on the switch. IC3 under from RB1, RB2, RB3 pulse received on time to determine the location of each switch to determine the encoding.
Anti-theft line circuit from the D6, D7, D19, D20, D21, D22 and optocoupler 4N26 composition. No phone use, the external voltage greater than 40V, by the commutation circuit D1, D2, D3, D4, the added to the R44, so that the optocoupler 4N26 conduction. An internal telephone hook, then a current in the D6, D7 to generate voltage drop of the optocoupler 4N26 conduction. While outside and machine, outside the voltage drop, added to the R44 the voltage optocoupler 4N26 not enough to turn this signal into the microcontroller IC3 the RB0, that there is an outside line access, IC3 is sent from the RB7 2.5kHz "toot ... ... "signal directly through the hook and hang up the circuit output to the outside, the formation of strong interference, while the online light flashes D8.
5V regulator circuit (abbreviated)
Third, the installation and use (slightly)
Tip: Do you want anytime, anywhere can control your home appliances A phone call and you can listen to the home or the company's movement A phone call at work can open the home switch rice cooker or stew pot, over a period of time ( eg 30 minutes) and then automatically shut down people in the distance, you want to open the lights and sound at home, over a period of time and automatically shut whether your battery charging time is too long due to frequent performance degradation described in this article Smart phone control socket for remote telephone remote control, with a variety of functions and easy to use.