SlideShare a Scribd company logo
A technical seminar on
“EMBEDDED SYSTEMS
PROGRAMMING USING
ARDUINO”
Guided by: Presented by:
Mr.Venkatesh P Arun Kumar GV
Asst.Prof dept.of IS & E
PESITM,Shimoga
Contents
Introduction
Architecture
Arduino example
Serial communication
Arduino software interface
Programming the arduino
Programming examples
Applications
Introduction
• An embedded system is a computer system with a
dedicated function within a larger mechanical or
electrical system, often with real-time computing
constraints.
• Arduino is an open-source electronic prototyping
platform based on a simple i/o board and a development
environment for writing software for the board.
• It is an open source hardware, any one can get the
details of its design and modify it or make his own one
himself.
Architecture
• X1 – External power supply or a battery.The power requirement
for ARDUINO is 9 to 12V DC,250mA or more,2.1mm plug
• USB – We can connect arduino to our PC for programmming
the arduino through USB.
• IC1 – Microcontroller
ICSP – In circuit serial programming
AREF – Analog reference pin
GND – Digital ground
2-13 Digital pins
0-1(TX/RX) – Serial In/Out
S1 – Reset button
0-5 Analog Input pins
Power and Ground pins
Arduino example
Serial communication
• The communication between the computer and the arduino is
‘serial’ , because data is broken down into bits, each sent one
after the other down a single wire.
•The Arduino board can communicate at various “baud rates”. A
baud is a measure of how many times the hardware can send 0’s
and 1’s in a second
•The baud rate must be set properly for the board to convert
incoming and outgoing information to useful data.
•If your receiver is expecting to communicate at a baud rate of
2400, but your transmitter is transmitting at a different rate, the
data you get will not make sense.
•To set the baud rate, use the following code:
void setup() {
Serial.begin(9600);
}
•Other standard baud rates available on most Arduino modules
include: 300, 1200, 2400, 4800, 9600, 14400, 19200, 28800,
38400, 57600, or 115200
Arduino software interface
• The software used by the arduino is Arduino IDE.
• The open-source Arduino Software (IDE-Integrated
development Environment) makes it easy to write code and
upload it to the board.
• IDE runs on Windows, Mac OS X, and Linux. The environment
is written in Java.
• It is designed to introduce programming to artists and other
newcomers unfamiliar with software development. It includes a
code editor with features such as syntax highlighting, brace
matching, and is also capable of compiling and uploading
programs to the board with a single click.
• The code for the arduino is written in C/C++. The Arduino IDE
comes with a C/C++ library , which makes many common
input/output operations much easier.
•The main headings are “File” “Edit” “Sketch” “Tools” “Help” and
several shortcut icons beneath “Verify”, “Upload”, “New”, “Open”,
“Save”, and at the far right, the “Serial Monitor”.
Embedded system programming using Arduino microcontroller
Embedded system programming using Arduino microcontroller
Programming the arduino
• Arduino programs only need to define two functions to make a
runnable program:
void setup() {} – a function run once at the start of a program
that can initialize settings. This section is widely used to
initialize variables, pin modes, set the serial baud rate and
related.
void loop() {} – a function called repeatedly until the board
powers off. This section is the part of the code that loops back
onto itself and is the main part of the code.
• Programmers are free to add subroutines using the same
syntax:
void subroutinename() {}
• We will use same data types, operators, statements as we use
in C programming language.
•Almost every line of code needs to end with a semicolon ‘;’.
•To write single line comments in the code, type two back slashes
followed by the text.
•To write multi-line comments, start the comment with /* and end
with */.
•The Arduino language is case sensitive.
• The following code represents the minimum in order for a
program to compile:
Programming examples
 To output a value on arduino window
Blink LED programm
•In this program the Led should blink (turn on) for 1 second and
after 1 second the LED should turn off for 1 second,and hence
this cycle repeats.
• pinMode(13, OUTPUT);
• digitalWrite(13, HIGH);
• digitalWrite(13, LOW);
• delay(1000);
set up() function is
executed only once at the
start
Loop function
repeats indefinitely
Applications
 Light control
 Motor control
 Home Automation
 Robotics
 Networking
 Scientific equipment
 Arduinome
 ArduinoPhone
 Water quality testing platform
Conclusion
• Over the years, Arduino has went out to become a huge
success . By using the arduino we can put together both
software and hardware. Arduino will be the most useful
interface between the software and the hardware in
future. In summary, this arduino concept is a good
software hardware co-design practice.
References
http://www.arduino.cc-Arduino Official webpage
http://en.wikipedia.org/wiki/Arduino-wikipedia
http://www.arduino.cc/playground/Projects/ArduinoUsers
http://www.arduinothedocumentary.org
http://www.arduinothedocumentary.org
http://arduino.cc/en/Tutorial/WebServer
http://slideshare.com/Arduino section programming slides
"Programming Arduino Getting Started with
Sketches" McGraw-Hill.
Embedded Microcontroller Systems: real time interfacing
Jonathan Valvano, 2006
Beginning arduino by Michael McRobert
Thank you


More Related Content

PPTX
Embedded system design using arduino
PPT
Embedded System Basics
PPTX
Arduino course
PPT
E.s unit 6
PPT
arduino-ppt
PDF
System On Chip
PPTX
Embedded systems - UNIT-1 - Mtech
PPTX
SMART HOME AUTOMATION USING MOBILE APPLICATION
Embedded system design using arduino
Embedded System Basics
Arduino course
E.s unit 6
arduino-ppt
System On Chip
Embedded systems - UNIT-1 - Mtech
SMART HOME AUTOMATION USING MOBILE APPLICATION

What's hot (20)

PPTX
ARM Processors
PPTX
Complex Programmable Logic Device (CPLD) Architecture and Its Applications
PPTX
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pptx
PPT
Interfacing adc
PPTX
Windows CE
PPTX
Introduction to Arduino
PPTX
Arduino Workshop
ODP
Introduction to Arduino
PPTX
Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
PPTX
Vlsi gate level design
PDF
Arduino- Serial communication
PDF
Arduino IDE
PPTX
AVR ATmega32
PPTX
Microcontoller and Embedded System
PDF
ARM CORTEX M3 PPT
PDF
8051 interfacing
PPTX
Introduction to Arduino and Hands on to Iot
PDF
Embedded system introduction - Arduino Course
PPTX
Introduction to Arduino Hardware and Programming
PDF
Cpld fpga
ARM Processors
Complex Programmable Logic Device (CPLD) Architecture and Its Applications
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pptx
Interfacing adc
Windows CE
Introduction to Arduino
Arduino Workshop
Introduction to Arduino
Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
Vlsi gate level design
Arduino- Serial communication
Arduino IDE
AVR ATmega32
Microcontoller and Embedded System
ARM CORTEX M3 PPT
8051 interfacing
Introduction to Arduino and Hands on to Iot
Embedded system introduction - Arduino Course
Introduction to Arduino Hardware and Programming
Cpld fpga
Ad

Viewers also liked (20)

DOCX
Embedded system development-Arduino UNO
PDF
Arduino Lecture 1 - Introducing the Arduino
PPTX
ppt on embedded system
PPT
Intro to Arduino
PPT
Embedded System Presentation
PDF
Arduino
PDF
Déposer une thèse dans TEL ou HAL
PPTX
Arduino Microcontroller
DOCX
Arduino seminar report
DOCX
Arduino 2 Final Report (final)
PPTX
Active Noise Reduction by the Filtered xLMS Algorithm
PPTX
7 segment interface with avr microcontroller
DOCX
ARDUINO EMBEDDED SYSTEM
PDF
Efforts de cohésion - Ritter
PPT
Lcd & keypad
PDF
Arduino + lab view
PDF
Pfs - Principe fondamental de la statique
PDF
A.F. Ismail (presentation)
PPTX
ANC Tutorial (2013)
PDF
T.H. (presentation)
Embedded system development-Arduino UNO
Arduino Lecture 1 - Introducing the Arduino
ppt on embedded system
Intro to Arduino
Embedded System Presentation
Arduino
Déposer une thèse dans TEL ou HAL
Arduino Microcontroller
Arduino seminar report
Arduino 2 Final Report (final)
Active Noise Reduction by the Filtered xLMS Algorithm
7 segment interface with avr microcontroller
ARDUINO EMBEDDED SYSTEM
Efforts de cohésion - Ritter
Lcd & keypad
Arduino + lab view
Pfs - Principe fondamental de la statique
A.F. Ismail (presentation)
ANC Tutorial (2013)
T.H. (presentation)
Ad

Similar to Embedded system programming using Arduino microcontroller (20)

PPTX
Introduction to Arduino.pptx
PDF
Introduction of Arduino Uno
PPTX
wireless charging of an electrical vechicle 3
DOCX
Arduino and Circuits.docx
PPTX
arduinoedit.pptx
PPTX
Internet of Things prescribed by University
PPTX
Embedded L1_notes_unit2_architecture.pptx
PPTX
Aurdino presentation
PPTX
Arduino and c programming
PDF
arduino.pdf
PPTX
PDF
Introduction to Arduino
PDF
arduinocourse-180308074529 (1).pdf
PPTX
Arduino
PPTX
arduino and its introduction deep dive ppt.pptx
PDF
aurduino-200107075953.pdf
PPTX
Arduino: On-board components description, IDE and Programming
PDF
Report on arduino
PPTX
6-MicrocontrollersSystemLessonOneSix.pptx
Introduction to Arduino.pptx
Introduction of Arduino Uno
wireless charging of an electrical vechicle 3
Arduino and Circuits.docx
arduinoedit.pptx
Internet of Things prescribed by University
Embedded L1_notes_unit2_architecture.pptx
Aurdino presentation
Arduino and c programming
arduino.pdf
Introduction to Arduino
arduinocourse-180308074529 (1).pdf
Arduino
arduino and its introduction deep dive ppt.pptx
aurduino-200107075953.pdf
Arduino: On-board components description, IDE and Programming
Report on arduino
6-MicrocontrollersSystemLessonOneSix.pptx

Recently uploaded (20)

PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
“Next-Gen AI: Trends Reshaping Our World”
PDF
오픈소스 LLM, vLLM으로 Production까지 (Instruct.KR Summer Meetup, 2025)
PDF
Queuing formulas to evaluate throughputs and servers
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
436813905-LNG-Process-Overview-Short.pptx
PPTX
24AI201_AI_Unit_4 (1).pptx Artificial intelligence
PPT
Project quality management in manufacturing
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PDF
composite construction of structures.pdf
PPTX
anatomy of limbus and anterior chamber .pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Geotechnical Engineering, Soil mechanics- Soil Testing.pdf
PPTX
Road Safety tips for School Kids by a k maurya.pptx
PDF
Monitoring Global Terrestrial Surface Water Height using Remote Sensing - ARS...
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
“Next-Gen AI: Trends Reshaping Our World”
오픈소스 LLM, vLLM으로 Production까지 (Instruct.KR Summer Meetup, 2025)
Queuing formulas to evaluate throughputs and servers
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
436813905-LNG-Process-Overview-Short.pptx
24AI201_AI_Unit_4 (1).pptx Artificial intelligence
Project quality management in manufacturing
Strings in CPP - Strings in C++ are sequences of characters used to store and...
composite construction of structures.pdf
anatomy of limbus and anterior chamber .pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Lesson 3_Tessellation.pptx finite Mathematics
Arduino robotics embedded978-1-4302-3184-4.pdf
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Geotechnical Engineering, Soil mechanics- Soil Testing.pdf
Road Safety tips for School Kids by a k maurya.pptx
Monitoring Global Terrestrial Surface Water Height using Remote Sensing - ARS...

Embedded system programming using Arduino microcontroller

  • 1. A technical seminar on “EMBEDDED SYSTEMS PROGRAMMING USING ARDUINO” Guided by: Presented by: Mr.Venkatesh P Arun Kumar GV Asst.Prof dept.of IS & E PESITM,Shimoga
  • 2. Contents Introduction Architecture Arduino example Serial communication Arduino software interface Programming the arduino Programming examples Applications
  • 3. Introduction • An embedded system is a computer system with a dedicated function within a larger mechanical or electrical system, often with real-time computing constraints. • Arduino is an open-source electronic prototyping platform based on a simple i/o board and a development environment for writing software for the board. • It is an open source hardware, any one can get the details of its design and modify it or make his own one himself.
  • 5. • X1 – External power supply or a battery.The power requirement for ARDUINO is 9 to 12V DC,250mA or more,2.1mm plug
  • 6. • USB – We can connect arduino to our PC for programmming the arduino through USB.
  • 7. • IC1 – Microcontroller ICSP – In circuit serial programming AREF – Analog reference pin GND – Digital ground 2-13 Digital pins 0-1(TX/RX) – Serial In/Out S1 – Reset button 0-5 Analog Input pins Power and Ground pins
  • 9. Serial communication • The communication between the computer and the arduino is ‘serial’ , because data is broken down into bits, each sent one after the other down a single wire.
  • 10. •The Arduino board can communicate at various “baud rates”. A baud is a measure of how many times the hardware can send 0’s and 1’s in a second •The baud rate must be set properly for the board to convert incoming and outgoing information to useful data. •If your receiver is expecting to communicate at a baud rate of 2400, but your transmitter is transmitting at a different rate, the data you get will not make sense. •To set the baud rate, use the following code: void setup() { Serial.begin(9600); } •Other standard baud rates available on most Arduino modules include: 300, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, or 115200
  • 11. Arduino software interface • The software used by the arduino is Arduino IDE. • The open-source Arduino Software (IDE-Integrated development Environment) makes it easy to write code and upload it to the board. • IDE runs on Windows, Mac OS X, and Linux. The environment is written in Java. • It is designed to introduce programming to artists and other newcomers unfamiliar with software development. It includes a code editor with features such as syntax highlighting, brace matching, and is also capable of compiling and uploading programs to the board with a single click. • The code for the arduino is written in C/C++. The Arduino IDE comes with a C/C++ library , which makes many common input/output operations much easier.
  • 12. •The main headings are “File” “Edit” “Sketch” “Tools” “Help” and several shortcut icons beneath “Verify”, “Upload”, “New”, “Open”, “Save”, and at the far right, the “Serial Monitor”.
  • 15. Programming the arduino • Arduino programs only need to define two functions to make a runnable program: void setup() {} – a function run once at the start of a program that can initialize settings. This section is widely used to initialize variables, pin modes, set the serial baud rate and related. void loop() {} – a function called repeatedly until the board powers off. This section is the part of the code that loops back onto itself and is the main part of the code. • Programmers are free to add subroutines using the same syntax: void subroutinename() {} • We will use same data types, operators, statements as we use in C programming language.
  • 16. •Almost every line of code needs to end with a semicolon ‘;’. •To write single line comments in the code, type two back slashes followed by the text. •To write multi-line comments, start the comment with /* and end with */. •The Arduino language is case sensitive. • The following code represents the minimum in order for a program to compile:
  • 17. Programming examples  To output a value on arduino window
  • 18. Blink LED programm •In this program the Led should blink (turn on) for 1 second and after 1 second the LED should turn off for 1 second,and hence this cycle repeats.
  • 19. • pinMode(13, OUTPUT); • digitalWrite(13, HIGH); • digitalWrite(13, LOW); • delay(1000);
  • 20. set up() function is executed only once at the start
  • 22. Applications  Light control  Motor control  Home Automation  Robotics  Networking  Scientific equipment  Arduinome  ArduinoPhone  Water quality testing platform
  • 23. Conclusion • Over the years, Arduino has went out to become a huge success . By using the arduino we can put together both software and hardware. Arduino will be the most useful interface between the software and the hardware in future. In summary, this arduino concept is a good software hardware co-design practice.