Test Micro Servo

How To Test A Micro Servo for proper and free operation.

A very useful procedure when using clone micro servos that do not always operate smoothly.

Micro Servo Under Test
Micro Servo Under Test

 

Materials Required

Arduino Mega, Uno or Nano

Breadboard cables

 

 

 

 

 

Testing Micro Servo
Click on image to watch micro servo being tested.

 

A video showing how a micro servo is tested.  Click on the image to watch the video.

 

 

 

 

Sketch

The following code will turn a servo motor to 0 degrees, wait 1 second, then turn it to 90, wait one more second, turn it to 180, and then go back.

// Include the Servo library 
#include <Servo.h> 
// Declare the Servo pin 
int servoPin = 3; 
// Create a servo object 
Servo Servo1; 
void setup() { 
   // We need to attach the servo to the used pin number 
   Servo1.attach(servoPin); 
}
void loop(){ 
   // Make servo go to 0 degrees 
   Servo1.write(0); 
   delay(1000); 
   // Make servo go to 90 degrees 
   Servo1.write(90); 
   delay(1000); 
   // Make servo go to 180 degrees 
   Servo1.write(180); 
   delay(1000); 
}

he information in this page is adapted from Arduino Servo Motors

And it is part of our Arduino Projects Series.

 

Wiring Diagram

Wiring To Test Micro Servo
This shows the actual wiring to test a micro Servo.

Click on the image to see a larger version that you can print.

 

 

 

 

 

 

How To Install DCC++ Tutorial Library

The tutorials below will take you step by step through everything that you have to do. Below is the list. Images to the left link to supporting videos.

DCC++ Base Station Assembly
Click To Learn How To Assemble Base Station

DCC Base Station – How to make the Base Station more often referred to the Command Station (CS).

 

 

 

 

 

 

DCC** WiFi
Click To Watch Video On How To Install WiFi

DCC WiFi Control –  How to install Wifi for control from your phone or other remote device.

 

 

 

 

 

DCC Wiring
Click To Watch Video Demonstration Of Wiring

DCC Power And Wiring – A necessary step.

 

 

 

 

 

Automatic Installation of DCC
Click To Watch Automatic Installation

DCC Software Automatic  Installation –  How to use a simple installer (very easy and fast)

 

 

 

 

 

 

Install DCC++ Base Station
Click to Watch Video

DCC Software Installation Using Arduino IDE – For those who prefer to use the IDE.

 

 

 

 

 

DCC-EX Web Throttle
Click To Watch How To Use Throttlee

DCC Ex Throttle – Control trains from your computer.

 

 

 

 

 

Engine Driver Throttle
Click To Watch How To Use Engine Driver Throttle

Engine Driver Throttle – Control from a phone.

 

 

 

 

 

 

All the information in the tutorials above have been condensed from the work done by a group of volunteers who are continuing to make this system more fantastic than it is already.  Their work can be found her. DCC-Ex

 

Tell others about this information by using one of these services. Thank you for the support.
Scroll to top