Nairobi
admin@elffie.com
No image

Generic · N20-300RPM

N20 Gearmotor 300 RPM

KSh 601In stock

Specification

Part number
N20-300RPM
Manufacturer
Generic
Stock code
MOT-N20-300
Category
DC Motors
Supply voltage
6 V
Mounting
Bracket
Availability
40 in stock

Details

A micro metal gearmotor with a 3 mm D-shaft — small enough for a palm-sized robot, geared enough to actually move it. 300 rpm is the middle of the N20 range: quick enough for a line follower, slow enough to have usable torque.

Run it from a driver, not from a microcontroller pin. The N20 wheels we stock fit this shaft directly.

Ask about this part

Answers come from this listing and the assistant can still be wrong — the manufacturer's datasheet is what governs. For anything you are going to wire up, check it there or ask us.

Using this part

Starting points, not finished firmware. Check them against the datasheet.

Two N20s as a differential drive, via an L298N

cpp · 22 lines
// Left  motor: ENA -> D9,  IN1 -> D8,  IN2 -> D7
// Right motor: ENB -> D10, IN3 -> D6,  IN4 -> D5
// Motor supply to the L298N terminals; share GND with the Arduino.

const uint8_t ENA=9, IN1=8, IN2=7, ENB=10, IN3=6, IN4=5;

void setup() {
  for (uint8_t p : {ENA, IN1, IN2, ENB, IN3, IN4}) pinMode(p, OUTPUT);
}

void wheels(int left, int right) {   // -255..255 each
  digitalWrite(IN1, left  >= 0); digitalWrite(IN2, left  < 0);
  digitalWrite(IN3, right >= 0); digitalWrite(IN4, right < 0);
  analogWrite(ENA, min(abs(left), 255));
  analogWrite(ENB, min(abs(right), 255));
}

void loop() {
  wheels(180, 180);  delay(1500);   // forward
  wheels(180, -180); delay(600);    // spin
  wheels(0, 0);      delay(400);
}