Skip to content
Motor

DC Gear Motor with L298N Driver

Classic brushed DC motor + dual H-bridge driver combo.

A geared DC motor paired with the ubiquitous L298N dual H-bridge driver — the standard starting point for wheeled robots.

Specifications

MotorBrushed DC gear motor — the common yellow "TT motor" spec is ~200 RPM at 6V, ~1:48 gear ratio
DriverL298N dual H-bridge, 2A per channel
ControlOne direction pair (IN1/IN2) plus one PWM speed pin (ENA) per motor
SupplyMotor voltage 5V-35V DC on the driver's VMS terminal, separate from the MCU's own power

Pinout

PinNameDescription
1OUT1 / OUT2Motor leads — connect directly to the L298N's motor A output terminal, polarity sets default spin direction
2ENAPWM input on the driver — controls motor speed
3IN1 / IN2Direction inputs on the driver — set which way current flows through the motor
412V / GNDMotor supply voltage and ground, into the driver's VMS/GND terminal

This entry covers the motor + L298N pairing as a unit — see the L298N Driver page for the full breakdown of every driver pin if you're wiring more than one motor.

Variants

The TT motor + L298N combo is the standard, well-documented starting point for two-wheel-drive robots. If you already have a driver and just need a motor, or vice versa, buy them separately — the L298N Driver listing covers the module alone. For battery-powered builds where efficiency and heat matter, a TB6612FNG-based driver wastes noticeably less power than the L298N's older BJT H-bridge design.

VariantPrice
TT Gear Motor + L298N~$3-5 (motor) + ~$2-4 (driver)
L298N driver alone~$2-4
N20 micro gear motor + TB6612FNG~$4-8 (motor) + ~$3-5 (driver)

Board Integration

Wiring

Component pinArduino Uno pinNote
ENAD9 (PWM)Controls speed via analogWrite — remove the ENA jumper on the L298N board if it has one, or PWM won't take effect
IN1D7
IN2D8
12V / GNDSeparate motor power supply — GND shared with the ArduinoDo not power the motor from the Arduino's 5V pin — L298N motor supply is a separate higher-current rail

Example code

C++

Motor supply grounds and logic grounds must be tied together (Arduino GND to L298N GND), even though the 12V motor rail is otherwise separate — skipping this common ground is a frequent reason for erratic or no motor response.

View full Arduino Uno guide