introduction
Remote control technology, also known as remote control technology, refers to the remote control of the controlled target. It is widely used in
This article mainly introduces the control circuit using the single-chip microcomputer part, including the transmitter circuit and the receiver circuit. The transmitter uses the potentiometer voltage division as the proportional control signal, which is converted into a digital signal by the 4-way A/D circuit. The digital signals of each channel together with the two-way switch quantity are multi-channel encoded by the single-chip microcomputer. The encoded signal is sent out by the serial port and finally transmitted by the transmitter module. The receiver is mainly responsible for amplifying the received signal and demodulating the encoded signal from it. Finally, the servo converts the electrical signal received by the receiver into the corresponding mechanical action, thereby realizing the control of direction and speed.
In terms of appearance, there should be a proportional dial with a knob at the transmitting end of the remote control, which divides the 5 V voltage into 360° evenly. Each small unit of measurement represents a certain voltage value. When the knob is turned a certain angle, a certain voltage value is input to the transmitting microcontroller. At the same time, the transmitting microcontroller queries the current speed at a certain time interval and reads it into the microcontroller. It calculates the distance the model should move forward or the current speed according to the calculation formula and sets the initial value of the corresponding count/timer according to this value. Then the external drive circuit (servo) of the system converts the electrical signal received by the receiving microcontroller into a corresponding mechanical action, that is, moving forward a certain distance or accelerating or decelerating. When the timer overflows and generates an interrupt, the corresponding external drive circuit also sends a control signal almost at the same time to control the model to stop any action.
There are many advantages of using proportional remote control . For example: flexible control; the remote control distance can be adjusted and the maximum adjustment distance is farther than that of ordinary remote control; the speed of the model can be changed according to the user's wishes; the circuit is simple and has strong anti-interference ability; the servo mechanism (including gear box and servo motor) is simple, etc.
1 Basic principles of proportional remote control equipment
The functional block diagram of a general proportional remote control system is shown in Figure 1.
In Figure 1(a), the keyboard is used to generate the transmitter control signal; the encoder encodes the control signal;
In Figure 1(b), the decoder translates the coded signal into a control signal; the controller controls the controlled object; the receiver receives the radio signal sent by the transmitter, amplifies the received signal and demodulates the coded signal from it, and is generally used in conjunction with the transmitter. Since the receiver is installed on the model, it should generally be as small as possible and have high sensitivity to receive radio signals transmitted from a long distance.
The basic working principle of the remote control device is: the operator uses the remote control transmitter in his hand (turning the knob or joystick on the transmitter) to convert the instructions for controlling the model to move forward, backward, accelerate or decelerate into electrical signals and transmit them into the air; the remote control receiver mounted on the model receives these electrical signals and converts them into corresponding mechanical movements by the servo steering gear, thereby realizing remote control of the model.
2 Specific design of single chip microcomputer proportional remote control system
The wireless proportional remote control system is mainly composed of two parts: the transmitter and the receiver. The transmitter completes the transmission of the remote control command, and the receiver completes the implementation of the command. They can be designed separately during design.
2.1 Transmitter Circuit
Figure 2 shows the main circuit of the proportional remote control system transmitter designed using the STCl2C2052 AD single-chip microcomputer. The use of a single-chip microcomputer makes the entire circuit very simple. Port P1 is the input end of the proportional remote control signal; the proportional control signal is obtained through the voltage division of the potentiometer, and is converted into a digital signal by the 4-way A/D circuit. The digital signals of each channel together with the two-way switch quantity are multi-channel encoded by the single-chip microcomputer, and the encoded signal is sent out by the serial port and finally transmitted by the transmitter module. If you need to design a proportional remote control system with more channels, you can use the remaining unused P1 ports and connect an external potentiometer to expand the corresponding functions. When there is no control signal, the P1 port is high level. The control signal of the P1 port (low level is valid) is sent to the internal microcontroller for relevant processing by software control.
STCl2C2052AD is a 20-pin packaged single clock/machine cycle microcontroller compatible with the 8051 RISC CPU core. It is the core device of this design, and its speed is 12 times faster than the ordinary 8051; it has low power consumption; it has 256 bytes of RAM integrated on the chip; 15 general programmable I/0 ports, which can be set to 4 modes - quasi-bidirectional port/weak pull-up, push-pull/strong pull-up, input only/high impedance, open drain (where it is quasi-bidirectional port/weak pull-up mode after reset); it has EEPROM function on the chip; there are 2 16-bit timers/counters; it also integrates an RC oscillator internally, and the external crystal oscillator can be omitted when the accuracy requirement is not high; it has a wide operating voltage range and an independent on-chip watchdog timer; P1.7~P1. O has 8 high-precision, high-speed voltage input type 8-bit A/D
2.2 Receiving Circuit
The main function of the receiving circuit is to receive the modulated coded instruction signal emitted by the transmitter, and then amplify it and send it to the demodulation circuit. The demodulation circuit demodulates the modulated instruction coded signal and restores it to the coded signal. The instruction decoder decodes the coded instruction signal, and finally the driving circuit drives the execution circuit to realize the operation control of various instructions. Figure 3 is the main circuit of the receiver. The signal from the transmitter is input from P3.0 and sent to the P1 port. The corresponding port of P1 is controlled by software to output the control signal. The 4-bit A/D port of P1 port can be connected to different control terminals. Since it is a proportional remote control, the control signal of the output port should be sent to the servo circuit dedicated to the next level of proportional remote control.
Previous article:Analysis of MCU Hardware Parameter Design
Next article:Design of 1GHz Frequency Synthesizer Based on ADF4360-2
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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
- Many choices in life are your destiny.
- Experience using the bootloader of TMS320VC33
- Is the CS+ for CACX development environment free to use now?
- Please help me. When the circuit board motor is working, the LED light controlled by the IO port of the main control IC will flash.
- [Qinheng RISC-V core CH582] serial port routine sending and receiving test
- Low-Cost Digital Thermometer Using a Single-Chip Microcontroller
- Motor rotor position detection
- Understanding of analog IC
- How do we distinguish the difference between bypass capacitors and decoupling capacitors?
- [Distributed temperature and humidity acquisition system] + WIFI module expansion board V2