When using the ROS robot to build a map, it is necessary to run autonomously in the room and collect map information. In this process, the forward and reverse rotation of the motor and the speed of the motor need to be controlled to adapt to the robot's straight-moving, turning and other actions.
The forward and reverse control principle of the brushed motor is very simple. You only need to swap the positive and negative poles of the motor power supply line to achieve the forward and reverse control of the motor. In the automatic control system, we cannot manually swap the positive and negative pole power supply sequence of the motor. We need to use the program with the hardware circuit to achieve it.
As shown in the figure below, four power tubes (which can be MOS tubes or IGBTs) are used to build a bridge circuit. Two wires are led out from the center of the bridge arm and connected to the power supply pins of the motor.
When the microcontroller is used to control Q2, Q3 to turn on, and Q1, Q4 to turn off, the current flows through the positive pole of the power supply, through Q3, the motor coil, Q2 and flows to GND. It is assumed that the motor rotates forward in this state.
When the microcontroller is used to control Q1, Q4 to turn on and Q2, Q3 to turn off, the current flows through the positive pole of the power supply, Q1, the motor coil, Q4 and flows to GND. It is assumed that the motor reverses in this state.
The forward and reverse control of the motor can be easily achieved by switching between the two states of the bridge circuit. The forward and reverse control of the brushed motor can also be simply achieved using two relays, but this method is not convenient for speed control, so it will not be introduced here.
DC brush motor speed regulation principle
According to the motor voltage balance equation
From the formula, we can see that the motor speed n is proportional to the supply voltage. Therefore, the purpose of speed regulation can be achieved by changing the motor supply voltage.
In power electronics, the DC voltage can be modulated by controlling the on and off of the switch tube through PWM wave. And the modulated voltage satisfies the relationship Vout=D*Vin, where D is the duty cycle of the PWM wave, which is equal to the ratio of the duration of the high level in one PWM cycle to the PWM cycle.
Speed regulation method: When performing transistor control, you can choose three different chopping modes: HPWM-LON, HON-LPWM, and PWM-ON-PWM. I usually use the HPWM-LON mode, which means the upper tube is PWM and the lower tube is turned on.
Brushed DC Motor Drive Circuit
The H-bridge circuit uses 4 high-current NMOS tubes. The gate 100 ohm resistor plays a role in suppressing surge current. The 10K resistor forms a gate-source parasitic capacitance discharge loop. The gate diode provides a low-impedance MOS tube shutdown path to speed up the MOS tube shutdown. (The parameters of the components in the circuit should be adjusted according to the actual PCB)
In the half-bridge driving circuit, when the gate-source voltage of the MOS tube is higher than the threshold voltage, the MOS tube starts to conduct. The threshold voltage of IRF3710 is 4V. However, when only 4V voltage is used to drive the MOS tube, the Rds of the MOS tube is relatively large, and the MOS tube cannot flow through excessive current, as shown in the following figure:
As can be seen from the figure, as the gate-source voltage increases, the current capacity of the MOS tube also increases. Therefore, in the driver design process, I used a 12V power supply as the driver of the MOS tube. When the MOS tube is turned on, the MOS can have a very small Rds, which makes the MOS tube have a greater current capacity.
In the circuit, C7 is used as a bootstrap capacitor. When driving the upper arm of the H-bridge circuit, since the source of the upper MOS tube is at a higher voltage (24V), the voltage of the MOS tube G pole should be 12V higher than the source pole to be able to conduct (Vgs=36V). Here, the internal circuit of the half-bridge driver chip raises the gate of the MOS tube to 36V by taking advantage of the fact that the voltage across the capacitor cannot change suddenly. At this time, the gate-source voltage of the MOS meets the conduction condition. Since the bootstrap capacitor C7 needs to be charged at intervals continuously, the PWM duty cycle of this circuit cannot reach 100%, so special attention should be paid when programming.
The optocoupler isolation circuit uses optocoupler devices to electrically isolate the driver from the main controller to prevent the motor driver from interfering with the main controller.
Previous article:How to wire a soft starter motor? What is the function of a soft starter motor?
Next article:Characteristics and structural analysis of ladder diagram in PLC control system
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
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
- X-NUCLEO-IKS01A3 Official Technical Data
- AT32F425-Evaluation Report-Serial Port and Waveform Display Host Computer Debugging-09
- There is a car image simulation project for paid consultation, using the Freescale solution
- Take a look at the USB Host microcontroller in gaming peripherals
- What is the component B93 on the circuit board?
- Use of 2.4G wireless communication module NRF24L01 on Cortex M
- Last day! Answer the questions and you will have a chance to win a 50-yuan Jingdong card! A powerful tool to simplify complex sensor systems
- How to select low-power MCU
- MSP430F5529 clock multiplier setting is effective
- C language basics, I think it's a good book