The article has not been updated
Github open source address: https://github.com/Nuozhihui/Remote_control_boat_STC51
With the continuous development of China's social economy , the shipbuilding industry has also developed rapidly. As the core part of the entire ship, the ship's power system is the most important factor in determining the speed and control of the ship . The emergence of various ships with different purposes has increased the It has tested the traditional ship power system and achieved breakthroughs in the technological level of modern power systems. It has also put forward requirements for the ship power system and promoted the advancement and development of the ship power system . In the design process of ship power system, if a ship model is used to replace a large ship and the rationality of the power system is tested, the risks existing in the experiment can be effectively reduced, the experiment cost can be controlled, and the experiment expenses can be reduced.
This topic will realize wireless control of the ship model by designing the power system of a model ship, and can freely control the forward and turning of the ship model. Through the research of this topic, students will develop their ability to analyze and solve problems, learn the design methods of microcontroller system software and hardware, complete system scheme design , train programming and debugging skills, and lay the foundation for future scientific research and technology development work .
2. Main issues of research
The first is to deal with the control method of the ship model. The communication method used to realize the remote control function must be selected according to actual needs, such as infrared, Bluetooth, WIFI, etc. After selection, the control module needs to be specifically designed to complete the design of the hardware and the corresponding driver. Written so that the ship model can be controlled to move through the remote control;
The second is the design of ship model power. Choose a reasonable method to complete the steering function of the ship model, such as rudder steering, dual-motor steering, etc. No matter which method requires the use of motors, therefore, a set of motor control devices needs to be designed. This allows the ship model to correctly control the motor after receiving the signal from the remote control;
3. The main design content of this topic
( 1) Check relevant information, compare various wireless communication technologies such as infrared, Bluetooth, WIFI, etc., comprehensively compare data transmission rate, effectiveness, reliability, cost, etc., and choose a reasonable communication method; understand DC motors, steppers Learn the differences between motors, servo motors, etc. and learn the motor drive circuit, and finally choose the appropriate motor and design the motor drive solution.
( 2) Since most wireless communications cannot be simulated, we choose to refer to existing data, analyze and learn its working principles, make reasonable use and modifications from the existing data, select reasonable MCUs and development boards, and first implement wireless communication. Function.
( 3) Use Proteus software to complete the design of the motor drive circuit, use Keil to write the corresponding motor drive function, and simulate and verify the designed circuit.
(4) Draw the program flow chart , design the program framework, and consider whether an RTOS real-time operating system is needed for task scheduling in terms of program framework and complexity, write the program, combine the designed hardware circuits, conduct software and hardware debugging, and finally implement required functionality.
Reasons: 1. The power supply is insufficient. The motor may draw hundreds of milliamps of current and pull the voltage down.
2. The current generated by the motor interferes too much with the power supply, the power supply jitters violently, the MCU keeps resetting or cannot work stably at all.
Solution: One power supply for 51 and one power supply for the motor (dual power supply)
V0.1 version
V0.2 version
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet