N20 gear motor with encoder
N20 motor with a magnetic encoder for speed and position.
TypeBrushed DC gear motor + Hall encoder
Supply voltage6 or 12 V
ControlH-bridge plus two encoder inputs
Motors & ActuatorsReviewedMPN N20 encoder motorUsed in 9 projects
In short
What is the N20 gear motor with encoder and what is it used for?
N20 motor with a magnetic encoder for speed and position. Makers use it for PID speed control.
How it works
A Hall sensor reads a magnet on the motor shaft, giving two square waves 90° apart.
Key specifications
| Motor or actuator spec | Value |
|---|---|
| Type | Brushed DC gear motor + Hall encoder |
| Supply voltage | 6 or 12 V |
| Control | H-bridge plus two encoder inputs |
Pinout
M1 M2Motor
VCC3.3 to 5 V for the encoder
GNDEncoder ground
C1 (A) C2 (B)Encoder outputs
How to use it
Count A and B edges with interrupts to measure speed and direction for PID control. Pulses per output turn = the encoder's pulses per motor turn × the gear ratio.
Applications
PID speed control
Builds that use it
Guided build
Sumo robot with front ToF array
Idea
Window-cleaning robot model
Idea
Pond skimmer robot
Idea
Wheel odometry plus IMU localisation
Idea
Wheel-legged balancing robot
Idea
Maze-solving robot with wall following
Idea
PID line follower with encoders
Idea
Line follower with a TB6612
Showing 8 of 9
Alternatives
- JGA25-370 encoder gear motorLarger and stronger
- N20 micro metal gear motorNo encoder
Common questions
What is the N20 gear motor with encoder used for?
In maker projects: PID speed control.
How does the N20 gear motor with encoder work?
A Hall sensor reads a magnet on the motor shaft, giving two square waves 90° apart.
What voltage does the N20 gear motor with encoder need?
6 or 12 V.
What can I use instead of the N20 gear motor with encoder?
JGA25-370 encoder gear motor and N20 micro metal gear motor.
