• Home
  • Archive
  • Tools
  • Contact Us
  • Forum

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home / Computer and Internet / Tower Pro SG 5010 Servo Motor Test Code for Arduino

By Abhishek Ghosh January 18, 2016 10:33 pm Updated on January 18, 2016

Tower Pro SG 5010 Servo Motor Test Code for Arduino

Advertisement

Actually, we previously published Servo Motor Arduino Code for the Beginners but after publishing the guide Best Servo Motor for the Beginners we thought to somewhat rewrite the old guide with this new title Tower Pro SG 5010 Servo Motor Test Code for Arduino with proper sketch and video demo. You can read the former guide later after reading guide.

 

Tower Pro SG 5010 Servo Motor Test Code for Arduino

 

We already pointed on how to build a DIY robotic arm. We can fine tune the degrees of sweep, time to be taken and step by degree. We kept the below code in Github as Gist too as well as the whole stuff as Firtzing Project (recommended to check) :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// coded by Dr. Abhishek Ghosh @AbhishekCTRL
 
#include <Servo.h>
Servo towerprosg5010;
int pos = 0;
void setup()
{
  towerprosg5010.attach(9);
}
void loop()
{
  for(pos = 0; pos < 180; pos += 1)  // 0 to 180 degrees with 1 degree step
  {                                  
    towerprosg5010.write(pos);  
    delay(120);                       // time set 120 ms to reach sloooooowly
  }
}

#include – that is Arduino specific. If you are advanced user you may read how to code in C for Arduino.

towerprosg5010 – need not to be explained, it is just a phrase, we could use thecustomizewindows.

towerprosg5010.attach(9) – we attached the servo motor pin 9. You can change it.

Advertisement

---

for(pos = 0; pos < 180; pos += 1) - we are telling to sweep 0 to 180 degrees with 1 degree step

delay(120) - if you lower it, the sweep will be faster.

The circuit is very easy. The servo motor will have the end with 3 holes which can easily accommodate the pin of a jumper wire. For this code, yellow will get connected to the pin 9 on Arduino UNO board, Brown will go to ground/GND and the red will go the 5v pin of Arduino board. This is becoming our kind infographics cum circuit diagram :

Tower-Pro-SG-5010-Servo-Motor-Test-Code-For-Arduino

 

Video Demo of Tower Pro SG 5010 Servo Motor Test Code for Arduino

 

Definitely, we have a crap quality video! Crap quality is good because it will save the bandwidth and serve the purpose :

Tagged With sg5010 arduino , towerpro sg-5010 servo motor billenő nyomaték 6 kg , 아두이노 sg5010
Facebook Twitter Google+ Pinterest

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic Surgeon, Author and Blogger. You can keep touch with him on Google Plus - Abhishek Ghosh1 and on Twitter - @AbhishekCTRL.

Follow the Author of this article :

13.7K+ Followers 18.7K+ Followers 2.5K+ Followers 1.5K Followers

Here’s what we’ve got for you which might like :

Articles Related to Tower Pro SG 5010 Servo Motor Test Code for Arduino

  • What is a Micropump?

    For many reasons we need miniature things for special works, like bigger pumps there are Micropumps. This article tells what is a Micropump.

  • Breadboard & Breadboarding Basics : Before Arduino

    Arduino Possibly a Very Good Approach But Unless the Basics Like Breadboard & Breadboarding is Known, All Will Suck Money For Simple Stuffs.

  • Buying Arduino Original Versus Arduino Clones

    Arduino Clone in this article means Arduino Compatible. Buying Arduino original versus Arduino clone has difference from many less known aspects.

  • Servo Motor Arduino Code : Basic

    Here is Basic Servo Motor Arduino Code to Test Newly Purchased Servo Motor or Perform Some Basic Action. We Can Fine Tune Degrees of Sweep.

  • Build Own Arduino Board (PAPERduino) & Arduino Shields

    Here is Our Unique DIY Guide to Build Own Arduino Board (PAPERduino) & Arduino Shields to Save Your Hard Earned Money. They Will Look Cute.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Google+ or Twitter to join the conversation right now!

If you want to Advertise on our Article or want Business Partnership, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website...

 

 

Popular Articles

All articles of this Website are fully Free to read. Here are some, which possibly you'll like to read! Do not hesitate to contact us for any concern.

Contact Us

Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Recent Posts

  • Arduino WiFi Control of LED From Web Browser April 19, 2018
  • Fix Problems & Issues of Yoast SEO WordPress Plugin April 19, 2018
  • Extra Battery, Inverter For Car For DIY Electronics Car Automation April 18, 2018
  • Blink AC Bulb With Arduino Relay Module April 17, 2018
  • Router Setup to Watch IP Camera Online Remotely via Browser April 17, 2018

About This Article

Title: Tower Pro SG 5010 Servo Motor Test Code for Arduino
January 18, 2016
Author: Abhishek Ghosh
Subjects: Computer and Internet, Hardware
Is Part Of:

TheCustomizeWindows, January 18, 2016, Vol.1(01),
p.1–39075 [IoT Ready Journal]

Source:The Customize Windows
ISSN: 0019-5847 ;
E-ISSN: 0019-5847 ;
Publisher: jima.in

Cite this article as: Abhishek Ghosh, "Tower Pro SG 5010 Servo Motor Test Code for Arduino," in The Customize Windows, January 18, 2016, April 19, 2018, https://thecustomizewindows.com/2016/01/tower-pro-sg-5010-servo-motor-test-code-for-arduino/.
This website uses cookies.

Read Cookie Policy

Contents are copyright protected and reproduction demands our permission.


PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

web analysis

Copyright © 2018 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy