Introduction: Control Arduino With Visual Basic 6.0

this instructable is part of my book Arduino + visual basic 6.0 (make your own software to control arduino Robot.

Visual basic 6.0 is a very old version some people may ask why we want to use visual basic 6.0 . visual basic 6.0 is a user friendly programming language ... so if you are beginner and want to lean basic pc based controlling system then visual basic 6.0 is a best option for you we start :)

part to be required

1.Arduino board

2.bread board

3.jumper wires



1. visual basic 6.0

2. Arduino ide

Step 1: Bread Board Circuits

Here we use Pin 9 as digital output pin connect Led With 9 Number pin of Arduino Board .As shown in breadboard circuit .

Step 2: Arduino Program

int led= 9;

void setup() {


pinMode(led, OUTPUT);


void loop() {

if (Serial.available())


int drukdata =;

if (drukdata=='a')




else if(drukdata=='b')





Step 3: Visual Basic 6.0 Program

make form shown in picture

Program for Visual basic 6 (Led on off Control Software)

Private Sub EXIT_Click()


End Sub

Private Sub Form_Load()

MSComm1.RThreshold = 3

MSComm1.Settings = "9600,n,8,1"

MSComm1.CommPort = 2 // (Write Port Number on which your Arduino Board is available).

MSComm1.PortOpen = True

MSComm1.DTREnable = False

Text1.Text = ""

Shape1.FillColor = vbRed

End Sub

Private Sub TURNOFF_Click()

MSComm1.Output = "b"

Text1.Text = "LED IS OFF"

Shape1.FillColor = vbRed

End Sub

Private Sub TURNON_Click()

MSComm1.Output = "a"

Text1.Text = "LED IS ON"

Shape1.FillColor = vbGreen

End Sub

Step 4: For More Information Check This Book

This book will help you

1. Control Leds with Arduino and Visual Basic 6.0.

2. Control Dc Motor With Arduino and Visual Basic 6.0.

3. Control Stepper Motor with Arduino and Visual Basic 6.0.

4. Control Servo Motor with Arduino and Visual Basic 6.0.

5. Make voice guidance program in Visual Basic 6.0

6. Interfacing RF Module with Arduino and Visual Basic 6.0.

7. Make simple Pc operated Wireless Arduino Robot.

also available in kindle store

if you have any problem or need any help related to Arduino and any other project related to mechatronics robotics or in mechanical field. you can mail me or message me ...Thank you :)


yudaa made it!(author)2017-01-31

Very helpfull

ujash+patel made it!(author)2017-04-17

Thank you for your comment Also Please Write Review for my book on

slamet+riyadi made it!(author)2016-09-29

Hi, Ujash patel. I am from Indonesia, how do I buy your books ? I am difficult buy through amazon.

ujash+patel made it!(author)2016-10-03

hello . Sorry Slamet book is not available in Indonesia . I don't know if Amazon. com will allow to import book in Indonesia or not . you can mail me on if you are working on any project I will definitely help you in that :)

slamet+riyadi made it!(author)2016-09-29

I am from Indonesia, how do I buy your books ? I am difficult buy through amazon.

MariusO3 made it!(author)2016-09-18

Nice !!!!!!!!!

ujash+patel made it!(author)2016-09-22

Thank you :)

SteveS162 made it!(author)2016-09-08

Hi I'm currently going through your book, its brill and most helpfull

ujash+patel made it!(author)2016-09-16

thank you stevs your feedback is valuable . hope you will like my next book on voice recognition in visual basic . :)

About This Instructable



Bio: Mechatronics engineer Author ( Arduino + Visual Basic 6.0: Make your own software to control Arduino Robots ) Twitter account @ujashpatel
More by ujash patel:Make Electromagnetic /magnetic Field Detector with arduinoPLAYING WITH PARALLEL PORT (MAKE YOUR OWN GUI WITH TURBO C TO CONTROL YOUR ROBOTControl Arduino with visual basic 6.0
Add instructable to: