The pin output current of the microcontroller is very small, generally around 10~20mA, while the driving current of the DC motor is above 100mA.
In the high-level output state, although the voltage does not change much, the current is very small, which makes it impossible for the microcontroller pin to directly drive the DC motor.
If you only drive one motor to achieve a simple start-stop function, there is no need to use a motor drive module. It can be achieved with a small transistor.
Use a transistor to make a switch driver.
Circuit diagram↓
I/O is used for control: high level turns on, low level stops.
When the IO port is at a high level: the collector and emitter of the transistor are turned on, and the motor energy comes from the VCC input, which is sufficient to meet the motor's work.
The disadvantage of this circuit is that it can only control rotation in one direction.
The SS14 Schottky diode is mainly used to prevent the motor inductance from changing suddenly when the circuit is disconnected, thereby burning out the transistor. By utilizing the characteristics of the Schottky diode such as fast working speed and large current, the circuit is continued to flow when the circuit is disconnected, and this large current with nowhere to go is consumed through the motor for the second time.
Expand content↓
Considering that some people need the forward and reverse function of the motor, the forward and reverse circuit diagram is also released.
Simulation picture↓
Both 5V and 12V power supplies can be used, but the 5V drive power is smaller.
A and B ports are connected to the microcontroller pins
When port A gives a high level and port B gives a low level, the motor rotates forward, otherwise the motor rotates reversely.
Previous article:【51 MCU】 A4988 driver module drives four-wire stepper motor
Next article:[51 MCU] ULN2003 module drives stepper motor (5-wire) forward and reverse code and wiring diagram
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- 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
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- 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
- [New Year's atmosphere competition] + Blue sky, white clouds, spring, flowers, Yunnan and Guizhou self-driving tour to celebrate the New Year
- Common Misconceptions About 802.11ax
- The problem of not selecting the package in the box
- 【Silicon Labs Development Kit Review】+ Development Environment Setup
- Digital Temperature Sensors
- PCB experience (spent many years to compile in the forum) Download it if needed
- [GD32E231 DIY Contest] 1. Good emulator
- Follow TI's high voltage technology experts to learn about the advantages of capacitive isolation technology!
- EEWORLD University Hall ---- Large-scale Data Processing and Cloud Computing Peking University
- Please advise on porting from STM32F407 to GD32F407