Pt 1/2. DC gear motor + shaft potentiometer = DIY closed-loop servo.

Published 2016-05-01
I walk you through the electronics and code of my DIY servo, which uses an Escap 16 coreless DC gear motor, a Murata shaft potentiometer for feedback, a L298 h-bridge driver and an Arduino Pro Mini.

In part 2, I have optimised the speed and show some testing:
   • Pt 2/2. Results! DC gear motor + shaf...  

Arduino sketch here:
docs.google.com/document/d/1qYMpOz1XnllPZ2lWPbFsDf…

The motor shaft potentiometer is Murata SV01 10k through-hole:
uk.rs-online.com/web/p/trimmer-resistors/6197790/

Escap 16 motor:
www.aliexpress.com/item/ESCAP-16-Coreless-DC-12V-5…

L298 H-bridge:
www.ebay.co.uk/itm/Dual-H-Bridge-Stepper-Motor-Dri…

// ------------- Support me on Patreon and help me fund a real workshop!
www.patreon.com/AS_Motion_Lab
www.thingiverse.com/AS_Motion_Lab/designs
www.instagram.com/as_motion_lab/

All Comments (13)
  • @nedstar7378
    Nice video with good info, thanks and keep up the good work.
  • @deankay4434
    I am building a custom heater control for an old classic vehicle. Using a dc motor actuator found on most simple HVAC systems, this is a brushed motor at 12 volts +, but is geared to a pot to provide feedback for position control. Move a lever or pot on the dash, and the motor moves a little or sweeps from stop to stop. A simple system to control a heater door with using a bunch of electronics. Do you have an idea? Thanks for the video. ASE Master Tech / Retired
  • @pachanoid
    thanks I will do the same and tell you how it goes. is for a remote control post apocalyptic car
  • @shahzarkhan3116
    I want to run this servo motor by coding not by external potientometer please help me I have a project in which I am going to use it
  • I intend to operate a valve with Dc motor, I have done some testings and valves do open and close perfectly but I need it to work with DS18S20
  • @muhammad-gx7xn
    Hi it is possible if i change the dc motor encoder with dc motor without encoder? The code will be the same??
  • @theresal6233
    What is your input for current angle and required angle? Where on the circuit is that coming from?
  • Hi Is it possible to modify code and turn motor based on temperature inputs?
  • @kaganyavuz6978
    I can not see the hardware schematic I think link is broken.
  • @kasunMahanayaka
    Don't use potentiometer, use motors inbuilt encoders to get precise movements. (use a PID algorithm).