loading

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 ....here we start :)

part to be required

1.Arduino board

2.bread board

3.jumper wires

4.leds


software's

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() {

Serial.begin(9600);

pinMode(led, OUTPUT);

}

void loop() {

if (Serial.available())

{

int drukdata = Serial.read();

if (drukdata=='a')

{

digitalWrite(led,HIGH);

}

else if(drukdata=='b')

{

digitalWrite(led,LOW);

}}

}

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()

Form1.Hide

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

http://www.amazon.com/Arduino-Visual-Basic-6-0-software/dp/1511667753

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 :)

Very helpfull
<p>Thank you for your comment Also Please Write Review for my book on amazon.com </p>
<p>Hi, Ujash patel. I am from Indonesia, how do I buy your books ? I am difficult buy through amazon.</p>
<p>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 <a href="mailto:P.ujash@yahoo.com" rel="nofollow">P.ujash@yahoo.com</a> if you are working on any project I will definitely help you in that :)</p>
<p>I am from Indonesia, how do I buy your books ? I am difficult buy through amazon.</p>
<p>Nice !!!!!!!!!</p>
<p>Thank you :)</p>
<p>Hi I'm currently going through your book, its brill and most helpfull</p>
<p>thank you stevs your feedback is valuable . hope you will like my next book on voice recognition in visual basic . :)</p>

About This Instructable

22,568views

35favorites

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 arduino PLAYING WITH PARALLEL PORT (MAKE YOUR OWN GUI WITH TURBO C TO CONTROL YOUR ROBOT Control Arduino with visual basic 6.0 
Add instructable to: