กลับไปหน้ารวมไฟล์
dc-motor-basics-en.md

Spinning Up: Basic DC Motor Control

High-power components like DC motors can't be connected directly to an Arduino pin because they draw too much current. The DC Motor Control project teaches you how to use a Transistor to act as a bridge between the low-power Arduino and the high-power motor.

smart_temp_fan_speed_demo_1772681213406.png

The Transistor Bridge

We use a TIP120 or NPN Transistor (like the 2N2222):

  1. The Signal: The Arduino sends a small current to the transistor's Base.
  2. The Switch: This "opens" the path between the Collector and Emitter, allowing a much larger current to flow through the motor.
  3. Control: By using PWM (via the analogWrite() function), you can even control the speed of the motor.

Hardware Components

  • Arduino Uno/Nano: The PWM controller.
  • Small DC Motor: Your output device.
  • NPN Transistor: The electronic switch.
  • 1N4007 Diode: A crucial Flyback Diode that protects your Arduino from voltage spikes when the motor stops.
  • External 9V Power Source: Motors work better with a separate battery.

invisible_mess_glasses_relay_schema_1772681179521.png

Why This Project?

Understanding transistors is the first step toward building robotics. Whether you're building an electric fan, a propeller for a model boat, or a cooling system, the ability to control higher-current loads is a fundamental engineering skill.

ข้อมูล Frontmatter ดั้งเดิม

title: "DC Motor Control with Transistor"
description: "Master mechanical power! Learn how to use an Arduino to safely control or spin a high-power DC motor using a transistor as a switch."
category: "Motors & Robotics"
difficulty: "Easy"