Introduction
As per Wikipedia "Arduino is a hardware and software company, project, and user community that designs and manufactures computer open-source hardware, open-source software, and micro-controller-based kits for building digital devices and interactive objects that can sense and control physical devices".
For programming the micro-controllers in Arduino Kit, the Arduino project provides an integrated development environment (IDE), based on a programming language, named Processing, which also supports the languages C and C++.
You can download the IDE from the given Link.
The Arduino kit looks as shown below:

This Board consists of the following elements:

Now, from here, I will write the code in the Arduino IDE as follows:
- void setup()
- {
- Serial.begin(9600);
- pinMode(13, OUTPUT);
- }
- void loop()
- {
- if(Serial.available())
- {
- char data=Serial.read();
- Serial.println(data);
- switch(data)
- {
- case 'O':digitalWrite(13, HIGH);
- break;
- case 'F':digitalWrite(13, LOW);
- break;
- }
- }
- }





First of all, it will require the input from Serial Monitor or from any other thing. It will read the data and print the data. If the data is "O" then LED will be switched on and if the data received is "F", it will switch off the LED.
This will complete the work from the Arduino board and IDE. To control this from Windows Form Application Open Visual Studio, create a new Windows Form Project and design the form with the two buttons and Serial port as follows:
Now, afterward, go to .cs page and write the following code:

First, use the following namespace.
- using System.IO.Ports;
Now, declare a serial port as follows.
- public partial class Form1: Form
- {
- public SerialPort myport;
- public Form1()
- {
- InitializeComponent();
- }



raju ahamedPosted Mar 30, 2019, 10:37 AM
Excellent work
denis deschenesPosted Nov 12, 2017, 5:37 PM
Hi Debendra dash !!! i am trying to solve one problem with my project .... i send 0 @ 255 with the trackbar to control (ex: intensity of an led) on the arduino uno board.(works fine)..but i want to know how i can send the value 0 @ 1023 instead of 0 @ 255....i tryed lowbyte and highbyte but doesn't work at all ...do you have any response on this point ????
RajaPosted Jul 4, 2016, 12:40 AM
Good One...
Prasanna MuraliPosted Jul 3, 2016, 11:15 AM
Nice one...
Vignesh ManiPosted Jul 2, 2016, 12:02 PM
Good Nice
kalu singh raoPosted Jul 1, 2016, 1:59 PM
Nice...