N20 DC 5V 60RPM Mini Metal Gear Motor

SKU: ST5006
N20 DC 5V 60RPM mini metal gear motor, side view with red and black wire leads, metal gearbox and 3 mm output shaft

N20 DC 5V 60RPM Mini Metal Gear Motor

SKU: ST5006
Default
Regular price $7.99
/
  • Free shipping on all orders over $100
  • Secure payments
  • In stock, ready to ship
  • Inventory on the way

Add $92.01 more for free shipping

Tax included. Shipping calculated at checkout.

You'll also need

A compact 5 V DC gear motor with a metal gearbox and a 60 RPM no-load output speed.

The N20 DC 5V 60RPM Mini Metal Gear Motor is a small two-wire DC gear motor rated at 5 V DC. Its slow output shaft suits small robots, turntables and light mechanisms. Drive it with a motor driver module and a microcontroller.

Rated voltage
DC 5 V
No-load speed
60 RPM
No-load current
30 mA
Shaft diameter
3 mm

Why choose it

  • Slow, usable output speed — 60 RPM no-load, so wheels and turntables turn at a controllable pace.
  • Low no-load current — 30 mA at the rated 5 V.
  • Compact — 24 mm motor body (excluding the shaft) with a 3 mm output shaft.

Specifications

Electrical
Rated voltage DC 5 V
No-load current 30 mA
No-load speed 60 RPM
Physical
Motor shaft diameter 3 mm
Motor shaft length 7.2 mm
Motor body length 24 mm (excluding shaft)
Connection Two wire leads

Compatibility

Platform Works Notes
Arduino UNO / Nano (5 V) ◐ With adapter Needs a motor driver module such as the L9110S; do not connect the motor to a pin directly
ESP32 / ESP8266 (3.3 V) ◐ With adapter Needs a motor driver module; GPIO pins are 3.3 V only
Raspberry Pi / Pico ◐ With adapter Needs a motor driver module; GPIO pins are 3.3 V only
Software ✓ Yes Arduino IDE or MicroPython; no library needed

In the box

Included
  • 1 × N20 DC 5V 60RPM Mini Metal Gear Motor

Applications

  • Wheels for a lightweight robot or buggy
  • Slow-turning displays and turntables
  • Small mechanisms and prototypes that need a slow output shaft

Tutorial

What you'll build: Make the N20 motor turn one way for 2 seconds, pause, then turn the other way, over and over. · About 20 minutes.

A small motor cannot be wired straight to a board pin: the pin cannot supply enough current. Use a motor driver module. This tutorial uses the L9110S dual H-bridge module from our store.

Choose your board

Board Logic voltage Pins used Language Best for
Arduino UNO 5 V D5, D6 C++ (Arduino IDE) First-timers
ESP32 3.3 V GPIO25, GPIO26 C++ (Arduino IDE) Projects that add Wi-Fi later

New to this? Start with the Arduino UNO.

How it works

The module is an H-bridge: it lets a small signal from your board switch a bigger motor current in either direction.

  • GND — the return path. Every GND (supply, module, board) must be joined.
  • PWM — switching a pin on and off very fast. A higher duty value means a faster motor.
  • Direction — signal on A-1A with A-1B off turns the motor one way. Swap them to turn it the other way.
Arduino UNO Tutorial

You need: Arduino UNO R3, USB cable, L9110S module, 5 V supply, jumper wires

Wiring diagram: Arduino UNO D5 and D6 to L9110S inputs, 5 V supply to VCC, motor on OA and OB Arduino UNOD5D6GNDL9110S moduleA-1AA-1BGNDVCCOAOBN20 motor5 V DC5 V supply−+signalsignalGNDmotor leadmotor lead

■ Power ■ GND ■ Signal (direction / speed) ■ Motor leads ⌒ = wires cross, not connected

# Arduino UNO pin → Module pin Wire Notes
1 D5 → A-1A Yellow Direction / speed input
2 D6 → A-1B Yellow Direction / speed input
3 GND → GND Black Board and module must share GND
4 5 V supply − → GND Black Joins the same GND as row 3
5 5 V supply + → VCC Red Motor power, 2.5–12 V module range
6 Motor lead 1 → OA Green Either lead works; swap to reverse direction
7 Motor lead 2 → OB Green

Watch out: Share GND between the supply, the module and the board. Without it the inputs have no reference and the motor will not run properly.

1
Install the Arduino IDE
Download and install the Arduino IDE.
2
Wire it up
Unplug the USB cable first. Connect the wires from the table, then plug the USB cable in. Switch the 5 V supply on last.
3
Select board and port
Tools → Board → Arduino AVR Boards → Arduino Uno. Tools → Port → choose your Arduino. If no port appears, use a data USB cable and install the USB driver for your board.
4
Upload the example
Paste the code below, then click Upload.
▸ Example 1 — Spin forward and reverse
// Wiring: A-1A -> D5, A-1B -> D6, GND -> GND, motor on OA/OB
const int IN_A = 5;   // PWM pin to A-1A
const int IN_B = 6;   // PWM pin to A-1B
const int SPEED = 200; // you can change this (0-255)

void setup() {
  pinMode(IN_A, OUTPUT);
  pinMode(IN_B, OUTPUT);
  Serial.begin(115200);
  Serial.println("OK - epartners.co.nz test");
}

void loop() {
  Serial.println("Forward");
  analogWrite(IN_A, SPEED);  // one input gets PWM
  analogWrite(IN_B, 0);      // the other stays off
  delay(2000);               // you can change this

  Serial.println("Stop");
  analogWrite(IN_A, 0);
  analogWrite(IN_B, 0);
  delay(1000);

  Serial.println("Reverse");
  analogWrite(IN_A, 0);
  analogWrite(IN_B, SPEED);  // swap which input gets PWM
  delay(2000);

  Serial.println("Stop");
  analogWrite(IN_A, 0);
  analogWrite(IN_B, 0);
  delay(1000);
}

✓ Check: Serial Monitor (115200 baud) prints "OK - epartners.co.nz test" once, then Forward / Stop / Reverse / Stop. The motor turns one way for 2 seconds, pauses, then turns the other way.

ESP32 Tutorial

You need: ESP32 DevKitC (ESP32-WROOM-32), USB cable, L9110S module, 5 V supply, jumper wires

Wiring diagram: ESP32 GPIO25 and GPIO26 to L9110S inputs, 5 V supply to VCC, motor on OA and OB ESP32 DevKitCGPIO25GPIO26GNDL9110S moduleA-1AA-1BGNDVCCOAOBN20 motor5 V DC5 V supply−+signalsignalGNDmotor leadmotor lead

■ Power ■ GND ■ Signal (direction / speed) ■ Motor leads ⌒ = wires cross, not connected

# ESP32 pin → Module pin Wire Notes
1 GPIO25 → A-1A Yellow Direction / speed input
2 GPIO26 → A-1B Yellow Direction / speed input
3 GND → GND Black Board and module must share GND
4 5 V supply − → GND Black Joins the same GND as row 3
5 5 V supply + → VCC Red Motor power, 2.5–12 V module range
6 Motor lead 1 → OA Green Either lead works; swap to reverse direction
7 Motor lead 2 → OB Green

Watch out: ESP32 pins are 3.3 V only. Never feed a 5 V signal into a GPIO pin. Here the GPIO pins only send signals to the module and nothing is fed back.

1
Install the Arduino IDE
Download and install the Arduino IDE.
2
Add the ESP32 board package
File → Preferences → Additional boards manager URLs → paste https://espressif.github.io/arduino-esp32/package_esp32_index.json. Then Tools → Board → Boards Manager → search "esp32" → install "esp32 by Espressif Systems" (version 3.0 or newer). Official install guide.
3
Wire it up
Unplug the USB cable first. Connect the wires from the table, then plug the USB cable in. Switch the 5 V supply on last.
4
Select board and port
Tools → Board → esp32 → ESP32 Dev Module. Tools → Port → choose your ESP32. If no port appears, use a data USB cable and install the USB driver for your board.
5
Upload the example
Paste the code below, then click Upload. If the upload fails, set Tools → Upload Speed → 115200 and upload again.
▸ Example 1 — Spin forward and reverse
// Wiring: A-1A -> GPIO25, A-1B -> GPIO26, GND -> GND, motor on OA/OB
// Needs "esp32 by Espressif Systems" version 3.0 or newer
const int IN_A = 25;    // PWM pin to A-1A
const int IN_B = 26;    // PWM pin to A-1B
const int SPEED = 200;  // you can change this (0-255)

void setup() {
  ledcAttach(IN_A, 1000, 8);  // pin, 1000 Hz, 8-bit duty
  ledcAttach(IN_B, 1000, 8);
  Serial.begin(115200);
  Serial.println("OK - epartners.co.nz test");
}

void loop() {
  Serial.println("Forward");
  ledcWrite(IN_A, SPEED);
  ledcWrite(IN_B, 0);
  delay(2000);               // you can change this

  Serial.println("Stop");
  ledcWrite(IN_A, 0);
  ledcWrite(IN_B, 0);
  delay(1000);

  Serial.println("Reverse");
  ledcWrite(IN_A, 0);
  ledcWrite(IN_B, SPEED);
  delay(2000);

  Serial.println("Stop");
  ledcWrite(IN_A, 0);
  ledcWrite(IN_B, 0);
  delay(1000);
}

✓ Check: Serial Monitor (115200 baud) prints "OK - epartners.co.nz test" once, then Forward / Stop / Reverse / Stop. The motor turns one way for 2 seconds, pauses, then turns the other way.

Troubleshooting

Board Problem Likely cause Fix
All Motor does not turn Supply off, or GND not shared Switch the 5 V supply on and join all GND wires
All Motor turns only one way One input wire is loose or on the wrong pin Check A-1A and A-1B against the pin table
All Motor turns the wrong way Leads are the other way round Swap the two motor leads, or swap the two signal pins
All Motor hums but does not move at low speed Duty value too low to start the motor Raise SPEED
All Module gets hot Motor blocked, or load above the module limit of 800 mA per channel Switch off and free the shaft
Arduino UNO No port shown Charge-only cable or missing USB driver Use a data USB cable and install the USB driver for your board
ESP32 Stuck on "Connecting…" Board not in upload mode Hold the BOOT button until uploading starts
ESP32 Upload fails or stops part-way Upload speed too high for the USB cable or USB chip Tools → Upload Speed → 115200, then upload again
ESP32 "ledcAttach was not declared" Older esp32 package Update "esp32 by Espressif Systems" to version 3.0 or newer

Try next: Change SPEED to find the slowest speed that still starts the motor, or add a button that reverses the direction.

Spotted a problem in this tutorial? Email support@epartners.co.nz and we'll check it and update the tutorial.

Good to know
  • Run the motor at its rated 5 V DC and always through a motor driver, never straight from a board pin.
  • Stall current is not stated, and a blocked motor can draw much more than the 30 mA no-load current. Do not hold the shaft still while powered.
  • Power the motor from a separate 5 V supply and join its GND to your board GND.

Resources

FAQ

▸ Can I connect this motor directly to an Arduino, ESP32 or Pico pin?

No. A board pin cannot supply enough current for a motor. Use a motor driver module such as the L9110S and a separate 5 V supply.

▸ What voltage should I use?

Use 5 V DC, which is the rated voltage.

▸ How do I change the motor direction?

Swap the two motor leads, or swap which driver input receives the signal. The tutorial above does this in code.

▸ Which motor driver should I use?

The tutorial uses the L9110S dual H-bridge module, which is rated for 2.5–12 V and 800 mA per channel. It suits this motor.

Technical question about this part? Email support@epartners.co.nz with your board and wiring, and we'll help you get it working.

Shipping: $5.99 urban, $9.99 rural. Free shipping on orders of $100 or more.

Order by 10:30am (NZT), Monday to Friday, and we dispatch the same day. Orders placed after 10:30am, on weekends or on public holidays are dispatched the next business day.

Delivery usually takes 1–2 business days after dispatch (2–3 for rural addresses). See our Shipping Policy for full details.

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.

Recently viewed