Components / Motors and drivers / N20 gear motor with encoder

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 specValue
TypeBrushed DC gear motor + Hall encoder
Supply voltage6 or 12 V
ControlH-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

Alternatives

Buy at

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.