Control Arduino With Visual Basic 6.0

38,959

44

11

Introduction: Control Arduino With Visual Basic 6.0

About: Mechatronics engineer Author ( Arduino + Visual Basic 6.0: Make your own software to control Arduino Robots ) Twitter account @ujashpatel

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

Be the First to Share

    Recommendations

    • Pocket-Sized Speed Challenge

      Pocket-Sized Speed Challenge
    • Audio Challenge 2020

      Audio Challenge 2020
    • Maps Challenge

      Maps Challenge

    11 Discussions

    0
    BessemJ
    BessemJ

    Question 8 months ago

    Hi Sir , could you please send this interested Book at Tunisia? we dont have paypal in tunisia
    i am interested please to visual basic and arduino digital read signal project which dont You put code project in this part.

    thanks a Lot Sir

    0
    yudaa
    yudaa

    3 years ago

    Very helpfull

    0
    ujash patel
    ujash patel

    Reply 3 years ago

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

    0
    slamet riyadi
    slamet riyadi

    3 years ago

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

    0
    ujash patel
    ujash patel

    Reply 3 years ago

    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 P.ujash@yahoo.com if you are working on any project I will definitely help you in that :)

    0
    slamet riyadi
    slamet riyadi

    3 years ago

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

    0
    MariusO3
    MariusO3

    3 years ago

    Nice !!!!!!!!!

    0
    ujash patel
    ujash patel

    Reply 3 years ago

    Thank you :)

    0
    SteveS162
    SteveS162

    3 years ago

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

    0
    ujash patel
    ujash patel

    Reply 3 years ago

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