Arduino + Visual Basic : Servo Control

Vb Servo Banner
To start off, here is a demo video on how the program works.

Servo motor provides angular control to users, and unlike normal DC motors, it can only rotate from 0 to 180 degrees. It is very accurate and are often used in robotic applications.


Normally every servo motor has 3 connections, 5V (Red), Ground (Black) and Signal (White). The signal is connected to Digital Pin 9 of the Arduino.


As requested by one of my dear readers, I have made a simple Visual Basic program that will control the servo motor that is connected to an Arduino.



The Visual Basic and Arduino codes can be downloaded below.

Download Code

  1. Cornelius06-11-2015

    Hello thsre I am so excited I found your weblog, I really found you bby error, while I was looking
    on Aol for something else, Regardless I am here noww and would just like tto say kudos
    for a remarkable posst and a all round enjoyable blog (I also
    love the theme/design), I don’t have timne
    to look over it all at the minute butt I hve bookmarked iit and also added your RSS feeds, so when I have
    time I will be back to read much more, Please do keep
    up the superb jo.

  2. scheme.dpi.me05-03-2015

    Valuable information. Luck me I discovered your site accidentally, and I’m surprised why this coincidence didn’t took place earlier!
    I bookmarked it.

  3. Armando05-23-2014

    Hola, que tal, excelente aporte, soy nuevo en arduino, podrías explicarme un poco acerca del código que utilizas de arduino, de antemano muchas gracias!!

  4. Rocco05-18-2014

    can you explain to me, how to set up things in VB? im confused

  5. latief04-02-2014

    can you explaine the code in arduino part by part. because i’m new in arduino

  6. yeminhtun03-18-2014


  7. Manuel03-02-2014

    Excellent you help me a lot in my project, Kind regards from Mexico.

  8. kadi05-31-2013

    hi, my name kadi. This time I’m making a project to move the servo using trakcbar in but I feel confused. I saw this nice link, but unfortunately this link to 180 degrees. I use continuous servo. how code and Arduino? please help me ..

Leave a Reply