A telephone remote control system is designed. The system is based on the AT89C2051 single-chip microcomputer and the MT8870 dual-tone multi-frequency decoding integrated circuit. With the help of the public telephone network, the system can realize intelligent control of remote equipment through the telephone. The article introduces the composition, working principle and program design method of the system. The ring detection and analog off-hook control circuits are explained in detail. Users can use any dual-tone multi-frequency telephone (including mobile phones and telephone extensions) outdoors to remotely control various electrical appliances (such as rice cookers, microwave ovens, etc.) according to voice prompts. This device is suitable for homes, enterprises, institutions, stores and other places. It is simple and convenient to operate and has reliable system performance. It is a technological product with great development prospects in the future.
Ringing detection circuit
Working principle of the circuit : The ring detection circuit is composed of components such as optocoupler LE and gate circuit G4. When there is no ring current on the telephone line, the line voltage provided by the telephone exchange is a DC signal of 48V-60V. When the user calls, the telephone exchange sends a ring signal, and the 89C2051 single-chip microcomputer drives the on-hook and off-hook control switch circuit, DTMF signal decoding circuit, ring current detection circuit and voice prompt circuit and other circuit equipment. At this time, the light-emitting diode of the optocoupler LE is turned on, making the photosensitive transistor turned on, so the +5V power supply charges the 100uF capacitor through the 1K resistor and the diode. When the voltage on the capacitor is charged to the open gate level, the AND gate G4 outputs a high level and is detected by P3.5 of AT89C2051. For each ring, the gate G1 outputs a high level, that is, a positive pulse. The ring signal is a sine wave of 25±3V, and the effective value of the voltage is 90±15V. The ringing period is 5s, that is, 1s is sent and 4s is off. The positive pulse signal can be directly output to the interrupt counter input port of the single-chip microcomputer to complete the entire ringing tone detection and counting process. Circuit diagram design According to the characteristics of the ringing signal, the ringing detection circuit is designed as shown in the figure.
On/off control circuit
Working principle of the circuit: AT89C2051 first detects the output of AND gate G4 from P3.5. Each time G4 outputs a positive pulse, the phone rings. P3.5 must detect 8 positive pulse signals before sending a low level from P1.1 to turn on transistor T7. Then relay JK is energized to close the two pairs of normally open contacts JKa and JKb, and the 500-ohm resistor (in series with the winding of the small audio transformer) is connected to the telephone line, realizing the simulation of picking up the phone. Then P3.2 waits for the arrival of the positive pulse at the STD end of the DTMF decoder. Once the positive pulse at the STD end is identified, P3.0-P3.4 reads the binary code information output by the DTMF decoder. This information is the remote control command. AT89C2051 can judge whether it is a password or a command to control the opening and closing of a certain channel or a hang-up command.
The execution signal of the hang-up command is output from P1.1. When P1.1=1, T7 is turned off and the relay is released, which means that the simulated hang-up is realized. The signal for controlling the action of the controlled object is output from 5 channels, P1.3-P1.7. For example, if P1.3=1, T1 can be turned on and relay J1 is attracted; if P1.3=0, J1 is released. If P1.7=1, T5 can be turned on and relay J5 is attracted; if P1.7=0, J5 is released. However, it can be seen from the figure that P1.3 is not directly connected to T1. P1.7 is not directly connected to T5, but is separated by an integrated block 74LS273. 74LS273 is an 8D latch, which means that the chip contains 8 D flip-flops, with input terminals D0-D7 and output terminals Q0-Q7. If the clear terminal CLR is low, the device will be reset, and the outputs of Q0-Q7 will all be zero. If the clear terminal is high, every time the trigger terminal CLK has an upward jump, the state of the input terminal D0-D7 will be latched into the device and output from Q0-Q7. As long as the CLK terminal is no longer triggered, this state will be remembered forever. It can be seen that the signal output from P1.3-P1.7 of AT89C2051 is just memorized by 74LS273 before being sent out, and its control logic is the same as that of T1-T5 directly connected. The necessary condition for the input terminal D0-D7 of 74LS273 to accept the input signal is that there is a positive jump at the CLK terminal, which must meet two conditions at the same time: one is that the STD terminal of the DTMF decoder must be high, that is, the remote control transmitter has a DTMF signal sent; the second is that P1.2 of AT89C2051 must send a jump signal from 0 to 1. Only when these two conditions are met at the same time, the AND gate G5 will output a positive jump signal, and the 74LS273 can receive external information. This greatly improves the anti-interference ability of the circuit and prevents the AT89C2051 from malfunctioning of the controlled object due to unexpected interference.
Previous article:Design of RS485 communication module circuit in smart meter
Next article:Analysis of dual audio DTMF decoding circuit based on voice communication
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Detailed explanation of terminal device state switching in TI ZigBee protocol stack
- #Free application for evaluation#DFRobot AS7341 visible spectrum sensor
- One picture lets you understand TE's various industrial motor sensors
- [Project Source Code] How to forcefully delete the device driver when a device driver conflict causes a blue screen
- A beginner is asking for help. The source code of two different LPC1768 chips, the QEIPOS register is not used
- I2C Controlled 6A Three-Level Switch-Mode Single Cell Battery Charger
- Sipeed LicheeRV 86 Panel Review】6- Review Summary
- FPGA Experiment (III) VGA Color Bar Signal Display Based on HDL Language
- The key to the warehouse was found, and the music phone from 15 years ago was unboxed!
- Application of OPT3004 in battery-powered cameras