Projects / Ideas / Position-hold motor with an encoder

Position-hold motor with an encoder

AdvancedMotionIdeaReviewed
In short

How do you build a position-hold motor with an encoder?

A small geared motor with an encoder moves to a target angle and holds it. You need Arduino Nano, N20 gear motor with encoder, DRV8833 dual motor driver, Potentiometer 10 kΩ, 9 V battery and Breadboard 830 Tie Points.

Level
Advanced
Time
About 360 min
Parts
6
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Make a position servo from a gear motor.

Parts list

How to build it

  1. Count encoder pulses
  2. Drive the motor with the driver
  3. Set a target with a knob
  4. Add a proportional controller
  5. Tune to avoid overshoot

Related projects

Common questions

What parts do I need for the position-hold motor with an encoder?

Arduino Nano, N20 gear motor with encoder, DRV8833 dual motor driver, Potentiometer 10 kΩ, 9 V battery and Breadboard 830 Tie Points.

How long does the position-hold motor with an encoder take to build?

About 360 minutes for a advanced maker.