SlideShare a Scribd company logo
Unit-IV
Embedded Target boards
and interfacing
Presented By:
Dr. Vasudeva
Contents:
 Introduction [20 min]:
1. What is Micro-Controller?
2. What is Arduino?
3. Types of Arduino.
4. Arduino UNO board.
5. Sensors:
- Digital, Analog sensors.
- Light sensors [IR sensor, Photo-Resistor].
 Coding structure and examples [30 min]:
1. Data types and operators.
2. What is “Function”?
3. Control statements [if, if… else, switch case.].
4. Loop statements[while, for, do… while.].
5. Common functions.
 Workshop[20 min] DC motor control:
Introduction
Design, organize, and collaborate
1
Famous microcontroller
manufacturers are MicroChip,
Atmel, Intel, Analog devices, and
more.
[list]
It is a micro-computer. As any
computer it has internal CPU, RAM,
IOs interface.
It is used for control purposes, and
for data analysis.
Micro-Controller:
Arduino. What is Arduino?
A microcontroller board, contains on-board power supply, USB
port to communicate with PC, and an Atmel microcontroller
chip.
It simplify the process of creating any control system by
providing the standard board that can be programmed and
connected to the system without the need to any sophisticated
PCB design and implementation.
It is an open source hardware, any one can get the details of its
design and modify it or make his own one himself.
Arduino boards:
UNO Mega LilyPad
Arduino BT Arduino Nano Arduino Mini
Arduino UNO:
Digital output
~: PWM.
0,1: Serial port.
In circuit Serial
programming
Atmel
MicroController
Analog input.
Power Supply
USB port
Power input
Digital
and
analog. Digital or Analog?
All physical quantities are analog.
Analog means that the quantity can take any value between its
minimum value and maximum value.
Digital means that the quantity can take specific levels of values
with specific offset between each other.
Ex: 1- Digital:
English alpha consists of 26 letter, there is no letter between A
and B.
- Square waves are Digital.
Ex.: 2- Analog:
Temperature, can take any value[-1,12.8,25.002,… etc.].
- Sine waves are analog.
Sensors Sensors:
A device that transforms the physical quantity into electrical
value.
Ex.: Light sensor transduce the light into change in voltage or
resistance.
Sensors Light sensors:
- Photo-Resistor [photo-cell].
- Photo-Diode.
- Photo-Transistor.
Sensors Photo Resistor:
- The value of the resistance depends on
the incident light density.
- 1 K-Ohm at light, 10 K-Ohm at
darkness.
Photo Diode:
- The current is controlled by the incident light density.
Photo Transistor:
- Base-emitter junction is controlled
by the incident light density, has an
amplification effect.
2 Arduino Coding.
Stylize, edit, and animate your media
Integer: used with integer variables with value between
2147483647 and -2147483647.
Ex: int x=1200;
Character: used with single character, represent value from -127
to 128.
Ex. char c=‘r’;
Long: Long variables are extended size variables for number
storage, and store 32 bits (4 bytes), from -2,147,483,648 to
2,147,483,647.
Ex. long u=199203;
Floating-point numbers can be as large as 3.4028235E+38 and as
low as -3.4028235E+38. They are stored as 32 bits (4 bytes) of
information.
Ex. float num=1.291; [The same as double type]
Data Types and operators
You may need to know about these typed: Array, Boolean, byte, etc. here.
Statement represents a command, it ends with ;
Ex:
int x;
x=13;
Operators are symbols that used to indicate a specific
function:
- Math operators: [+,-,*,/,%,^]
- Logic operators: [==, !=, &&, ||]
- Comparison operators: [==, >, <, !=, <=, >=]
Syntax:
; Semicolon, {} curly braces, //single line
comment, /*Multi-line comments*/
Statement and operators:
Compound Operators:
++ (increment)
-- (decrement)
+= (compound addition)
-= (compound subtraction)
*= (compound multiplication)
/= (compound division)
Statement and operators:
If Conditioning:
if(condition)
{
statements-1;
…
Statement-N;
}
else if(condition2)
{
Statements;
}
Else{statements;}
Control statements:
Switch case:
switch (var) {
case 1:
//do something when var equals 1
break;
case 2:
//do something when var equals 2
break;
default:
// if nothing else matches, do the default
// default is optional
}
Control statements:
Do… while:
do
{
Statements;
}
while(condition); // the statements are run at least once.
While:
While(condition)
{statements;}
for
for (int i=0; i <= val; i++){
statements;
}
Loop statements:
Use break statement to stop the loop whenever needed.
Void setup(){}
Used to indicate the initial values of system on starting.
Void loop(){}
Contains the statements that will run whenever the
system is powered after setup.
Code structure:
Led blinking example:
Used functions:
pinMode();
digitalRead();
digitalWrite();
delay(time_ms);
other functions:
analogRead();
analogWrite();//PWM.
Input and output:
Motor control using Arduino:
Make a motor rotate 2 sec clockwise, and 5 sec counter-
clockwise in an infinite loop;
Time: 10 min.
Workshop:
3 References…
Start learning Arduino from here…
You can download the Arduino IDE
(The program used to write code and
uploading it to arduino boards) from:
http://arduino.cc/en/Main/Software
Arduino IDE:
Here you can learn how to program Arduino and what each code
means and do, from here:
http://arduino.cc/en/Reference/HomePage
Arduino Reference:
VLSI EGY- I.GEEK – S3Geeks
Thanks for coming 

More Related Content

PPTX
Introduction to arduino
PPTX
arduino
PDF
introductiontoarduino-130219180141-phpapp01.pdf
PPTX
introductiontoarduino-130219180141-phpapp01 (1).pptx
PPTX
Introduction to Arduino Hardware and Programming
PDF
introductiontoarduino-111120102058-phpapp02.pdf
PPT
Arduino_CSE ece ppt for working and principal of arduino.ppt
PPTX
Introduction to the Arduino
Introduction to arduino
arduino
introductiontoarduino-130219180141-phpapp01.pdf
introductiontoarduino-130219180141-phpapp01 (1).pptx
Introduction to Arduino Hardware and Programming
introductiontoarduino-111120102058-phpapp02.pdf
Arduino_CSE ece ppt for working and principal of arduino.ppt
Introduction to the Arduino

Similar to introductiontoarduino-130219180141-phpapp01.pptx (20)

PPSX
Arduino by yogesh t s'
PPTX
PPTX
Introduction to Arduino session and basically it depends how you us and where...
DOCX
Arduino PAPER ABOUT INTRODUCTION
PDF
VHDL or Verilog: describe your adder and correction logic
PPTX
Ardui no
PDF
arduinoworkshop-160204051621.pdf
PPTX
Introduction to Arduino and Robotics tech
PPTX
arduino-1.pptxbxavvgAzccgzs fla sh ga aana
PDF
Arduino: Arduino starter kit
PPTX
Arduino board program for Mobile robotss
PPTX
Chapter 5 Arduino Microcontroller Systems .pptx
PPT
Arduino Platform with C programming.
PPTX
teststststststLecture_3_2022_Arduino.pptx
PPTX
Robotics Session day 1
PPTX
Introduction To Arduino-converted for s.pptx
PPTX
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
PPTX
Introduction to Arduino and Hands on to Iot
PDF
arduino
Arduino by yogesh t s'
Introduction to Arduino session and basically it depends how you us and where...
Arduino PAPER ABOUT INTRODUCTION
VHDL or Verilog: describe your adder and correction logic
Ardui no
arduinoworkshop-160204051621.pdf
Introduction to Arduino and Robotics tech
arduino-1.pptxbxavvgAzccgzs fla sh ga aana
Arduino: Arduino starter kit
Arduino board program for Mobile robotss
Chapter 5 Arduino Microcontroller Systems .pptx
Arduino Platform with C programming.
teststststststLecture_3_2022_Arduino.pptx
Robotics Session day 1
Introduction To Arduino-converted for s.pptx
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
Introduction to Arduino and Hands on to Iot
arduino
Ad

More from BEVARAVASUDEVAAP1813 (20)

PPTX
Tasks, functions and User Defined Programss.pptx
PPTX
Workshop Outline ppt on UVM using sv.pptx
PDF
Basic electrical properties of MOSFET circuits.pdf
PDF
introduction and basic electrical properties.pdf
PPTX
hardware security security-210714143458.pptx
PPT
FPGA and ASIC technologies comparison.ppt
PPT
Introduction of Basic Input Output System.ppt
PPTX
Design your carrier in VLSI and chip design.pptx
PPTX
ASIC design flow and Stracuture of FPGA.pptx
PPTX
Module-4 Embedded target boards and interfacing.pptx
PPTX
vlsitestingtechniquesand asic flow1.pptx
PPTX
different sensors used in embedded system.pptx
PPTX
Module-3 Basic digital and analog circuits.pptx
PPTX
embedded system on board communication.pptx
PPT
SEng522Seminar hardware/software codesign.ppt
PPTX
metastabilityusbdh-13259131170927-phpapp01-120106233309-phpapp01.pptx
PPT
Dynamic CMOS and Domino logic design .ppt
PPT
Module-3 embedded system firmware code.ppt
PPT
Module-3 Embedded syatem firmware design.ppt
PDF
ICTBIG 2024 conference on VLSI and ES.pdf
Tasks, functions and User Defined Programss.pptx
Workshop Outline ppt on UVM using sv.pptx
Basic electrical properties of MOSFET circuits.pdf
introduction and basic electrical properties.pdf
hardware security security-210714143458.pptx
FPGA and ASIC technologies comparison.ppt
Introduction of Basic Input Output System.ppt
Design your carrier in VLSI and chip design.pptx
ASIC design flow and Stracuture of FPGA.pptx
Module-4 Embedded target boards and interfacing.pptx
vlsitestingtechniquesand asic flow1.pptx
different sensors used in embedded system.pptx
Module-3 Basic digital and analog circuits.pptx
embedded system on board communication.pptx
SEng522Seminar hardware/software codesign.ppt
metastabilityusbdh-13259131170927-phpapp01-120106233309-phpapp01.pptx
Dynamic CMOS and Domino logic design .ppt
Module-3 embedded system firmware code.ppt
Module-3 Embedded syatem firmware design.ppt
ICTBIG 2024 conference on VLSI and ES.pdf
Ad

Recently uploaded (20)

PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Current and future trends in Computer Vision.pptx
PPT
Mechanical Engineering MATERIALS Selection
PDF
PPT on Performance Review to get promotions
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
web development for engineering and engineering
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Geodesy 1.pptx...............................................
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
737-MAX_SRG.pdf student reference guides
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Artificial Intelligence
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
OOP with Java - Java Introduction (Basics)
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Current and future trends in Computer Vision.pptx
Mechanical Engineering MATERIALS Selection
PPT on Performance Review to get promotions
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Model Code of Practice - Construction Work - 21102022 .pdf
web development for engineering and engineering
additive manufacturing of ss316l using mig welding
Geodesy 1.pptx...............................................
Internet of Things (IOT) - A guide to understanding
737-MAX_SRG.pdf student reference guides
R24 SURVEYING LAB MANUAL for civil enggi
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Artificial Intelligence
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Automation-in-Manufacturing-Chapter-Introduction.pdf
OOP with Java - Java Introduction (Basics)

introductiontoarduino-130219180141-phpapp01.pptx

  • 1. Unit-IV Embedded Target boards and interfacing Presented By: Dr. Vasudeva
  • 2. Contents:  Introduction [20 min]: 1. What is Micro-Controller? 2. What is Arduino? 3. Types of Arduino. 4. Arduino UNO board. 5. Sensors: - Digital, Analog sensors. - Light sensors [IR sensor, Photo-Resistor].  Coding structure and examples [30 min]: 1. Data types and operators. 2. What is “Function”? 3. Control statements [if, if… else, switch case.]. 4. Loop statements[while, for, do… while.]. 5. Common functions.  Workshop[20 min] DC motor control:
  • 4. Famous microcontroller manufacturers are MicroChip, Atmel, Intel, Analog devices, and more. [list] It is a micro-computer. As any computer it has internal CPU, RAM, IOs interface. It is used for control purposes, and for data analysis. Micro-Controller:
  • 5. Arduino. What is Arduino? A microcontroller board, contains on-board power supply, USB port to communicate with PC, and an Atmel microcontroller chip. It simplify the process of creating any control system by providing the standard board that can be programmed and connected to the system without the need to any sophisticated PCB design and implementation. It is an open source hardware, any one can get the details of its design and modify it or make his own one himself.
  • 6. Arduino boards: UNO Mega LilyPad Arduino BT Arduino Nano Arduino Mini
  • 7. Arduino UNO: Digital output ~: PWM. 0,1: Serial port. In circuit Serial programming Atmel MicroController Analog input. Power Supply USB port Power input
  • 8. Digital and analog. Digital or Analog? All physical quantities are analog. Analog means that the quantity can take any value between its minimum value and maximum value. Digital means that the quantity can take specific levels of values with specific offset between each other. Ex: 1- Digital: English alpha consists of 26 letter, there is no letter between A and B. - Square waves are Digital. Ex.: 2- Analog: Temperature, can take any value[-1,12.8,25.002,… etc.]. - Sine waves are analog.
  • 9. Sensors Sensors: A device that transforms the physical quantity into electrical value. Ex.: Light sensor transduce the light into change in voltage or resistance.
  • 10. Sensors Light sensors: - Photo-Resistor [photo-cell]. - Photo-Diode. - Photo-Transistor.
  • 11. Sensors Photo Resistor: - The value of the resistance depends on the incident light density. - 1 K-Ohm at light, 10 K-Ohm at darkness. Photo Diode: - The current is controlled by the incident light density. Photo Transistor: - Base-emitter junction is controlled by the incident light density, has an amplification effect.
  • 12. 2 Arduino Coding. Stylize, edit, and animate your media
  • 13. Integer: used with integer variables with value between 2147483647 and -2147483647. Ex: int x=1200; Character: used with single character, represent value from -127 to 128. Ex. char c=‘r’; Long: Long variables are extended size variables for number storage, and store 32 bits (4 bytes), from -2,147,483,648 to 2,147,483,647. Ex. long u=199203; Floating-point numbers can be as large as 3.4028235E+38 and as low as -3.4028235E+38. They are stored as 32 bits (4 bytes) of information. Ex. float num=1.291; [The same as double type] Data Types and operators You may need to know about these typed: Array, Boolean, byte, etc. here.
  • 14. Statement represents a command, it ends with ; Ex: int x; x=13; Operators are symbols that used to indicate a specific function: - Math operators: [+,-,*,/,%,^] - Logic operators: [==, !=, &&, ||] - Comparison operators: [==, >, <, !=, <=, >=] Syntax: ; Semicolon, {} curly braces, //single line comment, /*Multi-line comments*/ Statement and operators:
  • 15. Compound Operators: ++ (increment) -- (decrement) += (compound addition) -= (compound subtraction) *= (compound multiplication) /= (compound division) Statement and operators:
  • 17. Switch case: switch (var) { case 1: //do something when var equals 1 break; case 2: //do something when var equals 2 break; default: // if nothing else matches, do the default // default is optional } Control statements:
  • 18. Do… while: do { Statements; } while(condition); // the statements are run at least once. While: While(condition) {statements;} for for (int i=0; i <= val; i++){ statements; } Loop statements: Use break statement to stop the loop whenever needed.
  • 19. Void setup(){} Used to indicate the initial values of system on starting. Void loop(){} Contains the statements that will run whenever the system is powered after setup. Code structure:
  • 20. Led blinking example: Used functions: pinMode(); digitalRead(); digitalWrite(); delay(time_ms); other functions: analogRead(); analogWrite();//PWM. Input and output:
  • 21. Motor control using Arduino: Make a motor rotate 2 sec clockwise, and 5 sec counter- clockwise in an infinite loop; Time: 10 min. Workshop:
  • 22. 3 References… Start learning Arduino from here…
  • 23. You can download the Arduino IDE (The program used to write code and uploading it to arduino boards) from: http://arduino.cc/en/Main/Software Arduino IDE:
  • 24. Here you can learn how to program Arduino and what each code means and do, from here: http://arduino.cc/en/Reference/HomePage Arduino Reference:
  • 25. VLSI EGY- I.GEEK – S3Geeks Thanks for coming 

Editor's Notes

  • #1: This presentation demonstrates the new capabilities of PowerPoint and it is best viewed in Slide Show. These slides are designed to give you great ideas for the presentations you’ll create in PowerPoint 2010! For more sample templates, click the File tab, and then on the New tab, click Sample Templates.
  • #10: http://hades.mech.northwestern.edu/index.php/Optoreflector http://hades.mech.northwestern.edu/index.php/Optointerrupter
  • #11: http://hades.mech.northwestern.edu/index.php/Optoreflector http://hades.mech.northwestern.edu/index.php/Optointerrupter http://learn.parallax.com/node/299