Project in progress

Arduino with Vb.net GUI control © CC BY-NC

This project is related to Arduino and Vb.net.

  • 1,590 views
  • 1 comment
  • 0 respects

Components and supplies

Necessary tools and machines

Apps and online services

About this project

This is demo of advanced user interface for home automation, in this video we use led test through GUI on multi functional board, for more detail, please subscribe our YouTube channel. This is Arduino base Home automation demo using Vb.net coding with Graphical user interface, see all steps and try to do it your self.- Require Hardware parts:

  • Arduino Uno
  • Breadboard (Multifunctional or led board)
  • Jumper wires

- Require Software tools:

  • Visual Studion 10
  • Arduino IDE

Step 1: Video of Arduino + Vb.net Advanced UI Home Automation Demo

- Simply connect your arduino board with Led's on bread board or if you have multi functional board then you can use it- Make sure you have connection properly or not.- Connect your arduino with Arduino IDE and check your port connection.- because, for software serial interfacing you have to clear about which port is using for serial communication.- After connection check Port number.

Step 2: Step 2: Upload Your Arduino Code

Step 3: Step 3: Make Vb Code on Visual Studio

Note: Only Serial Communication Code lines and one Button example is uploaded her, other code do it your self as similar to this codes.

Step 4: Run Your VB Code

Code

CodeC#
int ledPin = 13;
int led1Pin = 12;

void setup() {

Serial.begin(9600);

pinMode(13, OUTPUT);

digitalWrite(13, LOW);

pinMode(12, OUTPUT);

digitalWrite(10, LOW); //turn off LED1

}

void loop()

{

while (Serial.available() == 0);

int val = Serial.read() - '0';

if (val == 1)

{

digitalWrite(12, HIGH);

}

else if (val == 0) //

{

digitalWrite(12, LOW); }

else if (val == 2)

{

digitalWrite(13, HIGH);

}

else if (val == 3)

{

digitalWrite(13, LOW);

}

else

{

//val = val;

}

Serial.println(val);

Serial.flush(); // clear serial port

}
vb.net codeVB.NET
Imports System.IO
Imports System.IO.Ports

Imports System.Threading

Public Class Form3

Shared _continue As Boolean

Shared _serialPort As SerialPort

Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load SerialPort1.Close()

SerialPort1.PortName = "com3"

SerialPort1.BaudRate = 9600

SerialPort1.DataBits = 8

SerialPort1.Parity = Parity.None

SerialPort1.StopBits = StopBits.One

SerialPort1.Handshake = Handshake.None

SerialPort1.Encoding = System.Text.Encoding.Default

End Sub

Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click End

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click SerialPort1.Open()

SerialPort1.Write("1")

SerialPort1.Close()

End Sub

Comments

Similar projects you might like

Herb Box Eco System

Project tutorial by Walter Heger

  • 4,735 views
  • 5 comments
  • 46 respects

Web-Controlled LED Animations with Raspberry Pi and Arduino

Project tutorial by Bruno Portaluri

  • 4,952 views
  • 13 comments
  • 23 respects

Use Alexa to Control Your TV!

Project tutorial by Grensom

  • 2,865 views
  • 5 comments
  • 29 respects

Talking Clock 2 - New Version (Bilingual: EN-PT)

Project tutorial by LAGSILVA

  • 679 views
  • 2 comments
  • 9 respects

Making a Cheap Aquarium Parameters Controller

Project tutorial by Boisse Martin

  • 1,095 views
  • 2 comments
  • 5 respects

Valentine Blink: Wireless LED Hearts

Project showcase by AdiK

  • 2,337 views
  • 13 comments
  • 20 respects
Add projectSign up / Login