SlideShare a Scribd company logo
Project 3
DEVICE OPERATION
USING PC BY ARDUINO
Block Diagram
PC
Device1
Device2
ABSTRACT
The main aim of this project is to
operate the devices using PC.
What is Arduino?
What is an Arduino Uno used for?
• Arduino UNO is a low-cost, flexible, and easy-to-use programmable
open-source microcontroller board that can be integrated into a
variety of electronic projects . This board can be interfaced with other
Arduino boards, Arduino shields, Raspberry Pi boards and can control
relays, LEDs and motors as an output.
History
• The Arduino project started at the Interaction Design Institute Ivrea
(IDII) in Ivrea, Italy.
• At that time, the students used a BASIC Stamp microcontroller, at a
cost that was a considerable expense for many students.
• In the year 2005 it came in market.
• It consists of both a microcontroller and a part of the software or
Integrated Development Environment(IDE) that runs on your PC.
Arduino Boards
Arduino UNO
Analog
INPUTS
Digital IO
PWM(3, 5, 6, 9, 10, 11)
PWR IN USB
(to Computer)
SCLSDA
(I2C Bus)
POWER
5V / 3.3V / GND
RESET
Technical specifications
• Microcontroller: Microchip ATmega328P [7]
• Operating Voltage: 5 Volts
• Input Voltage: 7 to 20 Volts
• Digital I/O Pins: 14 (of which 6 can provide PWM output)
• UART: 1
• I2C: 1
• SPPI: 1
• Analog Input Pins: 6
• DC Current per I/O Pin: 20 mA
• DC Current for 3.3V Pin: 50 mA
• Flash Memory: 32 KB of which 0.5 KB used by optiboot bootloader
• SRAM: 2 KB
• EEPROM: 1 KB
• Clock Speed: 16 MHz
• Length: 68.6 mm
• Width: 53.4 mm
• Weight: 25 g
Device Operation using PC by Arduino (1).pdf
Serial Communication
• Serial communication is a communication method that uses one
or two transmission lines to send and receive data, and that data
is continuously sent and received one bit at a time.
Basics of serial communication
Difference between serial and parallel
communication
Serial communication standards
• RS-232C/RS-422A/RS-485 are EIA (Electronic Industries
Association) communication standards. Of these communication
standards, RS-232C has been widely adopted in a variety of
applications, and it is even standard equipment on computers
and is often used to connect modems and mice. Sensors and
actuators also contain these interfaces, many of which can be
controlled via serial communication.
Half-duplex communication and full-duplex
communication
Full-duplex communication
A method where send and receive both have their own transmission line so data can be
simultaneously sent and received.
Half-duplex communication
A method where communication is performed using one transmission line while switching
between send and receive. For this reason, simultaneous communication cannot be
performed.
Asynchronous communication and
synchronous communication
Asynchronous communication and
synchronous communication
• Transmission rate:
Specifies the number of bits to send each second.The unit is bps
(bits per second) and is selected from 300, 600, 1200, 2400,
4800, 9600, 19200, and so on. By matching the settings and
timing, the data delimiters correspond, and data can be normally
sent and received. For this reason, a start bit is added to each item
of data (1 byte) to acquire the correct timing.
BAUD RATE
• Baud = symbols per second.
• Common baud rates today: 4800, 9600, 19200, 38400
• Baud = number of bytes x total bits per frame x output rate of
message (in Hz), where total bits per frame = data bits, + start
bit + stop bit + parity bit if used.
• If we want to output this 41 bytes message at an output rate of
50Hz at 8N1, then we'll have: 41 bytes x 10 bits per frame x 50
Hz = 20500 bits per second or 20500 bauds.
SERIAL Communication
• Serial.begin(speed) : Sets the data rate in bits per second (baudrate) for
serial data transmission
Ex : Serial.begin(9600);
• Serial.end() : Disables serial communication, allowing the RX and TX pins
to be used for general input and output.
• Serial.print() : Prints data to the serial port as humanreadable ASCII text. It
returns the number of bytes written.
Ex: Serial.print(78) → “78”
Serial.print(1.23456) → “1.23”
Serial.print('N') → “N”
Serial.print("Hello”) → “Hello”
SERIAL Communication
• Serial.println() : Prints data to the serial port as humanreadable
ASCII text followed by a newline character (‘r’ or 'n’).
• Serial.write() : Writes binary data to the serial port. It will return the
number of bytes written. To send the characters representing the
digits of a number use the print() function instead.
Ex : int bytesSent = Serial.write(“hello”);
• Serial.read() : Reads incoming serial data. It returns the first byte of
incoming serial data available (or -1 if no data is available).
Ex : var = Serial.read();
• Serial.available() : Get the number of bytes (characters) available for
reading from the serial port. It returns the number of bytes available
to read.
Ex : if(Serial.available()>0)
Software: Arduino IDE
Soft Code
int fan=2;
int light=3;
void setup()
{
pinMode(fan,OUTPUT);
pinMode(light,OUTPUT);
Serial.begin(9600);
Serial.println("PRESS");
Serial.println("# to ON fan");
Serial.println("@ to ON light");
Serial.println("+ to OFF fan");
Serial.println("- to OFF light");
}
void loop()
{
char a;
if(Serial.available()>0)
{
a=Serial.read();
Serial.print(a);
}
if(a=='#')
{
Serial.println("fan ON");
digitalWrite(fan,HIGH);
}
if(a=='@')
{
Serial.println("LIGHT ON");
digitalWrite(light,HIGH);
}
if(a=='+')
{
Serial.println("fan OFF");
digitalWrite(fan,LOW);
}
if(a=='-')
{
Serial.println("light OFF");
digitalWrite(light,LOW);
}
}
Hardware Connection using Proteus

More Related Content

PPTX
Serial Communication in Internet of Things .pptx
PPTX
arduino and its introduction deep dive ppt.pptx
PDF
M010617376
PDF
Serial Communication Interface with Error Detection
DOCX
Project_intership
PPT
ARDUINO AND ITS PIN CONFIGURATION
PPTX
IOT beginnners
PPTX
IOT beginnners
Serial Communication in Internet of Things .pptx
arduino and its introduction deep dive ppt.pptx
M010617376
Serial Communication Interface with Error Detection
Project_intership
ARDUINO AND ITS PIN CONFIGURATION
IOT beginnners
IOT beginnners

Similar to Device Operation using PC by Arduino (1).pdf (20)

PPTX
Serial Communication & Embedded System Interface
PPTX
Arduino Programming Familiarization
PPTX
PPTX
Chapter 3 esy
PPTX
Poster_example
PDF
Introduction of Arduino Uno
PPTX
Building_of_basic_iot_based_ardiuno_with_embedded_c.pptx
PPTX
Computer Interfaces
PPTX
Peripherals
PDF
Internet of things laboratory
DOCX
UART project report by Tarun Khaneja ( 09034406598 )
PDF
Analog to Digital Conversion Using Microcontroller Education Boards
PDF
Hybrid Communication Protocol- UART & SPI
PDF
Am044253258
PPT
Physical prototyping lab3-serious_serial
PDF
Embedded real time-systems communication
PDF
Rs 232 & usb ieee1394 communication
PDF
INT4073 L07(Sensors and AcutTORS).pdf
PDF
A guide to common automation terms
Serial Communication & Embedded System Interface
Arduino Programming Familiarization
Chapter 3 esy
Poster_example
Introduction of Arduino Uno
Building_of_basic_iot_based_ardiuno_with_embedded_c.pptx
Computer Interfaces
Peripherals
Internet of things laboratory
UART project report by Tarun Khaneja ( 09034406598 )
Analog to Digital Conversion Using Microcontroller Education Boards
Hybrid Communication Protocol- UART & SPI
Am044253258
Physical prototyping lab3-serious_serial
Embedded real time-systems communication
Rs 232 & usb ieee1394 communication
INT4073 L07(Sensors and AcutTORS).pdf
A guide to common automation terms
Ad

Recently uploaded (20)

PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
Well-logging-methods_new................
PPTX
web development for engineering and engineering
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
Digital Logic Computer Design lecture notes
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
composite construction of structures.pdf
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPT
Mechanical Engineering MATERIALS Selection
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
CH1 Production IntroductoryConcepts.pptx
Operating System & Kernel Study Guide-1 - converted.pdf
Well-logging-methods_new................
web development for engineering and engineering
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Digital Logic Computer Design lecture notes
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
composite construction of structures.pdf
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
CYBER-CRIMES AND SECURITY A guide to understanding
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
Automation-in-Manufacturing-Chapter-Introduction.pdf
Mechanical Engineering MATERIALS Selection
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Foundation to blockchain - A guide to Blockchain Tech
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Ad

Device Operation using PC by Arduino (1).pdf

  • 3. ABSTRACT The main aim of this project is to operate the devices using PC.
  • 5. What is an Arduino Uno used for? • Arduino UNO is a low-cost, flexible, and easy-to-use programmable open-source microcontroller board that can be integrated into a variety of electronic projects . This board can be interfaced with other Arduino boards, Arduino shields, Raspberry Pi boards and can control relays, LEDs and motors as an output.
  • 6. History • The Arduino project started at the Interaction Design Institute Ivrea (IDII) in Ivrea, Italy. • At that time, the students used a BASIC Stamp microcontroller, at a cost that was a considerable expense for many students. • In the year 2005 it came in market. • It consists of both a microcontroller and a part of the software or Integrated Development Environment(IDE) that runs on your PC.
  • 9. Analog INPUTS Digital IO PWM(3, 5, 6, 9, 10, 11) PWR IN USB (to Computer) SCLSDA (I2C Bus) POWER 5V / 3.3V / GND RESET
  • 10. Technical specifications • Microcontroller: Microchip ATmega328P [7] • Operating Voltage: 5 Volts • Input Voltage: 7 to 20 Volts • Digital I/O Pins: 14 (of which 6 can provide PWM output) • UART: 1 • I2C: 1 • SPPI: 1 • Analog Input Pins: 6 • DC Current per I/O Pin: 20 mA • DC Current for 3.3V Pin: 50 mA • Flash Memory: 32 KB of which 0.5 KB used by optiboot bootloader • SRAM: 2 KB • EEPROM: 1 KB • Clock Speed: 16 MHz • Length: 68.6 mm • Width: 53.4 mm • Weight: 25 g
  • 12. Serial Communication • Serial communication is a communication method that uses one or two transmission lines to send and receive data, and that data is continuously sent and received one bit at a time.
  • 13. Basics of serial communication
  • 14. Difference between serial and parallel communication
  • 15. Serial communication standards • RS-232C/RS-422A/RS-485 are EIA (Electronic Industries Association) communication standards. Of these communication standards, RS-232C has been widely adopted in a variety of applications, and it is even standard equipment on computers and is often used to connect modems and mice. Sensors and actuators also contain these interfaces, many of which can be controlled via serial communication.
  • 16. Half-duplex communication and full-duplex communication Full-duplex communication A method where send and receive both have their own transmission line so data can be simultaneously sent and received. Half-duplex communication A method where communication is performed using one transmission line while switching between send and receive. For this reason, simultaneous communication cannot be performed.
  • 19. • Transmission rate: Specifies the number of bits to send each second.The unit is bps (bits per second) and is selected from 300, 600, 1200, 2400, 4800, 9600, 19200, and so on. By matching the settings and timing, the data delimiters correspond, and data can be normally sent and received. For this reason, a start bit is added to each item of data (1 byte) to acquire the correct timing.
  • 20. BAUD RATE • Baud = symbols per second. • Common baud rates today: 4800, 9600, 19200, 38400 • Baud = number of bytes x total bits per frame x output rate of message (in Hz), where total bits per frame = data bits, + start bit + stop bit + parity bit if used. • If we want to output this 41 bytes message at an output rate of 50Hz at 8N1, then we'll have: 41 bytes x 10 bits per frame x 50 Hz = 20500 bits per second or 20500 bauds.
  • 21. SERIAL Communication • Serial.begin(speed) : Sets the data rate in bits per second (baudrate) for serial data transmission Ex : Serial.begin(9600); • Serial.end() : Disables serial communication, allowing the RX and TX pins to be used for general input and output. • Serial.print() : Prints data to the serial port as humanreadable ASCII text. It returns the number of bytes written. Ex: Serial.print(78) → “78” Serial.print(1.23456) → “1.23” Serial.print('N') → “N” Serial.print("Hello”) → “Hello”
  • 22. SERIAL Communication • Serial.println() : Prints data to the serial port as humanreadable ASCII text followed by a newline character (‘r’ or 'n’). • Serial.write() : Writes binary data to the serial port. It will return the number of bytes written. To send the characters representing the digits of a number use the print() function instead. Ex : int bytesSent = Serial.write(“hello”); • Serial.read() : Reads incoming serial data. It returns the first byte of incoming serial data available (or -1 if no data is available). Ex : var = Serial.read(); • Serial.available() : Get the number of bytes (characters) available for reading from the serial port. It returns the number of bytes available to read. Ex : if(Serial.available()>0)
  • 24. Soft Code int fan=2; int light=3; void setup() { pinMode(fan,OUTPUT); pinMode(light,OUTPUT); Serial.begin(9600); Serial.println("PRESS"); Serial.println("# to ON fan"); Serial.println("@ to ON light"); Serial.println("+ to OFF fan"); Serial.println("- to OFF light"); } void loop() { char a; if(Serial.available()>0) { a=Serial.read(); Serial.print(a); } if(a=='#') { Serial.println("fan ON"); digitalWrite(fan,HIGH); } if(a=='@') { Serial.println("LIGHT ON"); digitalWrite(light,HIGH); } if(a=='+') { Serial.println("fan OFF"); digitalWrite(fan,LOW); } if(a=='-') { Serial.println("light OFF"); digitalWrite(light,LOW); } }