element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Project Videos
  • Challenges & Projects
  • element14 presents
  • Project Videos
  • More
  • Cancel
Project Videos
Documents Make Your Own Giant Servo -- Episode 442
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Project Videos to participate - click to join for free!
Related
Recommended
Engagement
  • Author Author: tariq.ahmad
  • Date Created: 14 Apr 2020 8:08 PM Date Created
  • Last Updated Last Updated: 17 Apr 2020 7:24 AM
  • Views 6385 views
  • Likes 7 likes
  • Comments 25 comments

Make Your Own Giant Servo -- Episode 442

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

The kinds of affordable, off-the-shelf RC servos you can find today are fantastic electronic commodities for building all manner of interactive projects. For a compact, closed-loop actuator, what more could you want for the price of a decent lunch? DJ’s had a rather beefy DC motor wasting away in his parts draw for years now, so he’s taking on the challenge of building his own gigantic servomotor!

Supplemental Material:

  • Jumbo Servo by Workshopshed
  • The Lino Project with Arduino Mega 2560: Interrupts and Motors by balearicdynamics
  • Continuous Servo Bot - using Arduino Nano by carmelito

Bill of Material:

Product Name Manufacturer Quantity Buy Kit
PLA Filament 1.75mm VERBATIM 1 Buy Now
Rotary Potentiometer, Wirewound, 10 kohm, 10 Turns, Linear VISHAY 1 Buy Now
TDK-LAMBDA AC/DC Enclosed Power Supply (PSU), 1 Outputs, 100 W, 12 V, 8.5 A TDK-LAMBDA 1 Buy Now
SCHAFFNER Power Entry Module, Compact, IEC Inlet, 10A, 250V, Quick Connect SCHAFFNER 1 Buy Now
Feather Basic M0 Development Board ADAFRUIT 1 Buy Now

 

Additional Parts:

 

Product Name

80W DC Motor

5V DC-DC Step-down converter

(18x) 1/4-20 Screw

5" XL Timing Belt
DRV8871 Motor Driver
image
Make Your Own Giant Servo

element14 Presents  |  About DJ  |  Project Videos

  • vishay
  • potentiometer
  • rc
  • robot
  • ac
  • psu
  • 3D Printing
  • servo
  • element14 presents
  • e14p_DJ
  • closed-loop
  • dj
  • feather
  • dc
  • adafruit
  • motor
  • timing belt
  • arduino
  • dj harrington
  • friday_release
  • e14presents_djharrigan
  • giant
  • Share
  • History
  • More
  • Cancel
Actions
  • Share
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • beacon_dave
    beacon_dave over 6 years ago +3
    You could perhaps move the 10-turn pot onto the intermediate drive shaft in order to get 6 turns worth of travel. However you would lose some accuracy due to backlash encountered within the second reduction…
  • beacon_dave
    beacon_dave over 6 years ago in reply to mayermakes +3
    I recall 'Scrapheap Challenge' converting some cars to R/C control a while back. But why not think big ? Liebherr 9800 excavator controlled via Lego Technic control: https://www.youtube.com/watch?v=njgDC…
  • celcius1
    celcius1 over 6 years ago +2
    Great build DJ, Always love your projects, but in regards to the feed back loop, would it not have been more practical to use a rotary encoder instead of a potentiometer? Regards Paul P.S. Could I DM you…
Parents
  • master_crafter
    master_crafter over 5 years ago

    okay so before watching this video, I tried to do this using a PID controller sketch and the Arduino. Failed miserably. What I am trying to do is control a dc motor using a potentiometer but also having a potentiometer on the motor to get the current position of the motor.(like seen in this video)

    Here is my setup.

    12v Wiper motor.(12DC motor with Gearbox)

    10K pot connected to arduino (pin A0)

    A motor driver (BTS7960) connected to arduino (pin 5 and 6)

    10K pot connected to arduino (pin A1)

     

    I tried to get a set up like this video (https://www.youtube.com/watch?v=3pYWLF8qw-g&t=753s)

    just without the radio controlled components.

     

    He was using the pid library from the arduino example libraries.

     

    Here is my code:

    #include <PID_v1.h>

     

     

    #include <PID_v1.h>  //PID loop from http://playground.arduino.cc/Code/PIDLibrary

    #define PIN_INPUT A0

    #define PIN_SETPOINT A1

    double Pk1 = 1.0;  //speed it gets there

    double Ik1 = 0;

    double Dk1 = 1;

    int deadZoneX = 50;

    double Setpoint1, Input1, Output1, Output1a;    // PID variables

     

     

    PID PID1(&Input1, &Output1, &Setpoint1, Pk1, Ik1 , Dk1, DIRECT);    // PID Setup

     

     

     

     

    void setup() {

      pinMode(PIN_INPUT, INPUT);

      pinMode(PIN_SETPOINT, INPUT);

      pinMode(5,OUTPUT);

      pinMode(6,OUTPUT);

     

      Serial.begin(115200);// Start the serial monitor.

     

      //initialize the variables.

    int curPos = analogRead(PIN_INPUT);

    int comPos = analogRead(PIN_SETPOINT);

    Input1 = map(curPos, 0,900,-255,255);    

    Setpoint1 = map(comPos, 0,900,-255,255);

     

     

      PID1.SetMode(AUTOMATIC);              // Turn on the PID and set limits.

      PID1.SetOutputLimits(-255, 255);

    }

     

     

    void loop() {

    int curPos = analogRead(PIN_INPUT);

    int comPos = analogRead(PIN_SETPOINT);

    Input1 = map(curPos, 0,900,-255,255);    

    Setpoint1 = map(comPos, 0,900,-255,255);

         

        

          PID1.Compute();

     

     

          Serial.print("Current Position: ");

          Serial.print(Input1);

          Serial.print("     ");

          Serial.print("Commanded Position: ");

          Serial.print(Setpoint1);

          Serial.println(" ");

          Serial.println(Output1);

          Serial.println("");

          Serial.println(Output1a);   

          Serial.println(" ");

          Serial.println(curPos);

          Serial.println(comPos);

          if (Output1 > deadZoneX) {

            analogWrite(5, Output1);

            analogWrite(6, 0);

          }

          else if (Output1 < deadZoneX) {

            Output1a = abs(Output1);

            analogWrite(5, 0);

            analogWrite(6, Output1a);

          }

     

     

          delay(20);

     

     

      }

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • master_crafter
    master_crafter over 5 years ago

    okay so before watching this video, I tried to do this using a PID controller sketch and the Arduino. Failed miserably. What I am trying to do is control a dc motor using a potentiometer but also having a potentiometer on the motor to get the current position of the motor.(like seen in this video)

    Here is my setup.

    12v Wiper motor.(12DC motor with Gearbox)

    10K pot connected to arduino (pin A0)

    A motor driver (BTS7960) connected to arduino (pin 5 and 6)

    10K pot connected to arduino (pin A1)

     

    I tried to get a set up like this video (https://www.youtube.com/watch?v=3pYWLF8qw-g&t=753s)

    just without the radio controlled components.

     

    He was using the pid library from the arduino example libraries.

     

    Here is my code:

    #include <PID_v1.h>

     

     

    #include <PID_v1.h>  //PID loop from http://playground.arduino.cc/Code/PIDLibrary

    #define PIN_INPUT A0

    #define PIN_SETPOINT A1

    double Pk1 = 1.0;  //speed it gets there

    double Ik1 = 0;

    double Dk1 = 1;

    int deadZoneX = 50;

    double Setpoint1, Input1, Output1, Output1a;    // PID variables

     

     

    PID PID1(&Input1, &Output1, &Setpoint1, Pk1, Ik1 , Dk1, DIRECT);    // PID Setup

     

     

     

     

    void setup() {

      pinMode(PIN_INPUT, INPUT);

      pinMode(PIN_SETPOINT, INPUT);

      pinMode(5,OUTPUT);

      pinMode(6,OUTPUT);

     

      Serial.begin(115200);// Start the serial monitor.

     

      //initialize the variables.

    int curPos = analogRead(PIN_INPUT);

    int comPos = analogRead(PIN_SETPOINT);

    Input1 = map(curPos, 0,900,-255,255);    

    Setpoint1 = map(comPos, 0,900,-255,255);

     

     

      PID1.SetMode(AUTOMATIC);              // Turn on the PID and set limits.

      PID1.SetOutputLimits(-255, 255);

    }

     

     

    void loop() {

    int curPos = analogRead(PIN_INPUT);

    int comPos = analogRead(PIN_SETPOINT);

    Input1 = map(curPos, 0,900,-255,255);    

    Setpoint1 = map(comPos, 0,900,-255,255);

         

        

          PID1.Compute();

     

     

          Serial.print("Current Position: ");

          Serial.print(Input1);

          Serial.print("     ");

          Serial.print("Commanded Position: ");

          Serial.print(Setpoint1);

          Serial.println(" ");

          Serial.println(Output1);

          Serial.println("");

          Serial.println(Output1a);   

          Serial.println(" ");

          Serial.println(curPos);

          Serial.println(comPos);

          if (Output1 > deadZoneX) {

            analogWrite(5, Output1);

            analogWrite(6, 0);

          }

          else if (Output1 < deadZoneX) {

            Output1a = abs(Output1);

            analogWrite(5, 0);

            analogWrite(6, Output1a);

          }

     

     

          delay(20);

     

     

      }

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube