ARDUINO
BY
SALIH MAHMOD
What is arduino
 Arduino is an open-source prototyping platform based on
easy-to-use hardware and software. Arduino boards are
able to read inputs - light on a sensor, a finger on a
button, or a Twitter message - and turn it into an output -
activating a motor, turning on an LED, publishing
something online. You can tell your board what to do by
sending a set of instructions to the microcontroller on the
board. To do so you use the arduino programming
language (based on wiring), and the arduino software
(IDE), based on processing .
Arduino development process
 Level1 based on 8 bit mcu like arduino uno ,mega ,nano , micro, lilypad
and demulive
Arduino development process
 Level2 based on 32 bit mcu like arduino due , zero and teensyduino
Arduino development process
 Level3 FPGA boards with mcu and programmed by arduino software
platform like papilio pro , one and duo .
Arduino architecture
 We will talk here about more common board arduino uno
Digital and Analog
Arduino programming platform (IDE)
 we program arduino using an programming languge named
“Arduino c” also we can program it using matlab , labview
,python ,c# ,flowcode and embedded c
 To start with arduio
1- download the arduino software (IDE)
2- connect the board
3- install the drivers
4- launch the arduino application
5- write code or open an example
6- select your board
7- select your serial port
8- upload the program
Arduino IDE
 Here we will go to arduino IDE to see it
Arduino c program body
-‫المتغيرات‬ ‫عن‬ ‫االعالن‬ ‫يتم‬
‫وانواعها‬ ‫وقيمها‬
-‫ت‬ ‫التي‬ ‫الدوال‬ ‫كتابة‬ ‫يتم‬‫نفذ‬
‫التشغيل‬ ‫عند‬ ‫واحدة‬ ‫مرة‬
-‫يع‬ ‫التي‬ ‫الدوال‬ ‫كتابة‬ ‫يتم‬‫اد‬
‫حيث‬ ‫دورة‬ ‫كل‬ ‫تنفيذها‬
‫بهذا‬ ‫يكتب‬ ‫الذي‬ ‫البرنامج‬
‫بصور‬ ‫يتكرر‬ ‫يبقى‬ ‫الجزء‬‫ة‬
‫النهائية‬ ‫حلقة‬
Data type
Digital I/O
 pinMode(pin, mode);
pin:- the number of the pin whose mode you wish to set
mode:- INPUT or OUTPUT
 digitalWrite(pin, value);
pin:- the pin number
value:- HIGH or LOW
 digitalRead(pin);
pin:- the number of the digital pin you want to read (int)
returns:- HIGH or LOW
Pullup and pulldown resistors
 If a pull-down resistor is used, the input pin will be LOW when the switch is
open and HIGH when the switch is closed.
 If a pull-up resistor is used, the input pin will be HIGH when the switch is
open and LOW when the switch is closed.
-To active pullup resistor in
arduino use this function
pinMode(2,INPUT_PULLUP)
;
this active pullup for pin 2
therefore
we will connect switch
between GND and pin2
Analog I/O
 analogRead(pin);
pin:- the number of the analog input pin to read from (0 to
5 on most boards)
returns:- int (0 to 1023)
 analogWrite(pin, value);
pin:- the pin to write to.
value:- the duty cycle: between 0 (always off) and 255
(always on).
Here we haven't DAC to generate an analog output but we
use PWM
PWM(Pulse Width Modulation)
- PWM, is a technique for getting
analog results with digital means.
Digital control is used to create a
square wave, a signal switched
between on and off. This on-off
pattern can simulate voltages in
between full on (5 Volts) and off (0
Volts) by changing the portion of
the time the signal spends on
versus the time that the signal
spends off.
Time functions
 millis() ;
Returns the number of milliseconds since the Arduino board began
running the current program. This number will overflow (go back to
zero), after approximately 50 days
 micros() ;
returns the number of microseconds since the Arduino board
began running the current program. This number will overflow (go
back to zero), after approximately 70 minutes.
 delay(ms) ;
ms: the number of milliseconds to pause (unsigned long)
Blink code example
Hardware Required
- Arduino Board
- LED
- resistor less than
1kohm
Blink code example
 void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Analog example I/O
Arduino shields
Arduino libraries
 Libraries are a collection of
code that makes it easy for
you to connect to a sensor,
display, module, etc. For
example, the built-
in LiquidCrystal library
makes it easy to talk to
character LCD displays.
There are hundreds of
additional libraries available
on the Internet for download.
Liquid crystal code example
Sensors and actuators
Sensors and actuators
Arduino اردوينو

More Related Content

PPTX
Introduction to arduino
PDF
Lecture 2 (microcontroller- المتحكم الدقيق)
PPTX
Introduction to arduino ppt main
PDF
السلامة والصحة المهنية
PPTX
Arduino : how to get started
PPTX
Hardness testing
PDF
2.2 rig components
PDF
أردوينو بالعربي
Introduction to arduino
Lecture 2 (microcontroller- المتحكم الدقيق)
Introduction to arduino ppt main
السلامة والصحة المهنية
Arduino : how to get started
Hardness testing
2.2 rig components
أردوينو بالعربي

What's hot (20)

PPTX
Lesson sample introduction to arduino
PDF
برمجة الأردوينو - اليوم الأول
PPTX
Basics of arduino uno
PDF
Arduino Workshop Day 1 - Basic Arduino
PDF
Embedded system and its platforms
PPT
Intro to Arduino
PPTX
Arduino Workshop
PPTX
Introduction to Arduino
PDF
Arduino Workshop Day 2 - Advance Arduino & DIY
PPTX
Introduction to Arduino
PPTX
Introduction to Arduino
PPTX
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
PPTX
Introduction to Arduino
PPTX
Arduino Introduction (Blinking LED) Presentation (workshop #5)
PDF
Report on arduino
PDF
Introduction of Arduino Uno
PPTX
PPTX
What are the different types of arduino boards
PDF
Blinking a Single LED
PPTX
Pull up & pull down resistors
Lesson sample introduction to arduino
برمجة الأردوينو - اليوم الأول
Basics of arduino uno
Arduino Workshop Day 1 - Basic Arduino
Embedded system and its platforms
Intro to Arduino
Arduino Workshop
Introduction to Arduino
Arduino Workshop Day 2 - Advance Arduino & DIY
Introduction to Arduino
Introduction to Arduino
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Introduction to Arduino
Arduino Introduction (Blinking LED) Presentation (workshop #5)
Report on arduino
Introduction of Arduino Uno
What are the different types of arduino boards
Blinking a Single LED
Pull up & pull down resistors
Ad

Viewers also liked (20)

PDF
Fablogiapresent
PDF
Waht is Arduino
DOCX
Senior Project Presentation
PDF
الدارة الكهربائية البسيطة
PDF
ميكروكنترولر بشرح م احمد سميرفايد
PDF
c++ كتاب برمجه
PDF
Oh intro
PDF
Hardware startup v3
PPT
برمجة الأردوينو لليافعين
PDF
Oh intro v2
PDF
Hardware startup
PDF
برمجة الأردوينو - اليوم الثالث.
PDF
برمجة الأردوينو - اليوم الثاني
PPT
التعامل مع بيئة برمجة أردوينو
PPT
أساسيات الحساسات والإشارة التماثلية في الأردوينو لليافعين
PPTX
درس أنواع أجهزة الحاسب الآلي أول متوسط
PPTX
أنواع أجهزة الحاسب
PDF
Business Model Canvas (Arabic) - نموذج العمل التجاري
PDF
Value Proposition Design (Arabic ) - تصميم القيمة المقدمة
PDF
Business Model Canvas Poster - English
Fablogiapresent
Waht is Arduino
Senior Project Presentation
الدارة الكهربائية البسيطة
ميكروكنترولر بشرح م احمد سميرفايد
c++ كتاب برمجه
Oh intro
Hardware startup v3
برمجة الأردوينو لليافعين
Oh intro v2
Hardware startup
برمجة الأردوينو - اليوم الثالث.
برمجة الأردوينو - اليوم الثاني
التعامل مع بيئة برمجة أردوينو
أساسيات الحساسات والإشارة التماثلية في الأردوينو لليافعين
درس أنواع أجهزة الحاسب الآلي أول متوسط
أنواع أجهزة الحاسب
Business Model Canvas (Arabic) - نموذج العمل التجاري
Value Proposition Design (Arabic ) - تصميم القيمة المقدمة
Business Model Canvas Poster - English
Ad

Similar to Arduino اردوينو (20)

PPTX
Arduino intro.pptx
PPTX
Fun with arduino
PPTX
Arduino programming
PPTX
Arduino Workshop (3).pptx
DOCX
Arduino and Circuits.docx
PPTX
Arduino Slides With Neopixels
PPTX
Presentation of online Internship Program on Arduino completed at INTERNSHALA
PPTX
Arduino . .
PPTX
IOT-UNIT 3.pptxaaaasasasasasasaasasasasas
PPTX
How to use an Arduino
PPTX
arduino and its introduction deep dive ppt.pptx
PPTX
IoT applications With Arduino coding and real life examples
DOCX
Neno Project.docx
PPTX
INTRODUCTION TO ARDUINO and sensors for arduino.pptx
PDF
Arduino-workshop.computer engineering.pdf
PPT
IoT Basics with few Embedded System Connections for sensors
PDF
Interface stepper motor through Arduino using LABVIEW.
PPTX
Arduino workshop
DOCX
Arduino windows remote control
Arduino intro.pptx
Fun with arduino
Arduino programming
Arduino Workshop (3).pptx
Arduino and Circuits.docx
Arduino Slides With Neopixels
Presentation of online Internship Program on Arduino completed at INTERNSHALA
Arduino . .
IOT-UNIT 3.pptxaaaasasasasasasaasasasasas
How to use an Arduino
arduino and its introduction deep dive ppt.pptx
IoT applications With Arduino coding and real life examples
Neno Project.docx
INTRODUCTION TO ARDUINO and sensors for arduino.pptx
Arduino-workshop.computer engineering.pdf
IoT Basics with few Embedded System Connections for sensors
Interface stepper motor through Arduino using LABVIEW.
Arduino workshop
Arduino windows remote control

More from salih mahmod (6)

PDF
ابتكار من اجل التنمية 2016
PDF
innovation for development ابتكار من اجل التنمية
PPSX
Embedded systems الانظمة المدمجة
PPS
Hackerspace & mosulspace
PPSX
Enterpreneutship - ريادة الاعمال
PPSX
Design thinking - التفكير التصميمي
ابتكار من اجل التنمية 2016
innovation for development ابتكار من اجل التنمية
Embedded systems الانظمة المدمجة
Hackerspace & mosulspace
Enterpreneutship - ريادة الاعمال
Design thinking - التفكير التصميمي

Recently uploaded (20)

PDF
BBC NW_Tech Facilities_30 Odd Yrs Ago [J].pdf
PDF
Design and Implementation of Low-Cost Electric Vehicles (EVs) Supercharger: A...
PDF
COMPARATIVE ANALYSIS REPORT BY NDIDIAMAKA .G. ISRAEL
PPTX
CC PPTS unit-I PPT Notes of Cloud Computing
PPTX
L1111-Important Microbial Mechanisms.pptx
PPTX
highway-150803160405-lva1-app6891 (1).pptx
PPTX
5-2d2b20afbe-basic-concepts-of-mechanics.ppt
PPTX
22ME926Introduction to Business Intelligence and Analytics, Advanced Integrat...
PDF
AI agent, robotics based Smart Construction 2025
PPTX
sinteringn kjfnvkjdfvkdfnoeneornvoirjoinsonosjf).pptx
PPT
Module_1_Lecture_1_Introduction_To_Automation_In_Production_Systems2023.ppt
PPTX
quantum theory on the next future in.pptx
PDF
Human CELLS and structure in Anatomy and human physiology
PDF
ITEC 1010 - Information and Organizations Database System and Big data
PPTX
1. Effective HSEW Induction Training - EMCO 2024, O&M.pptx
PPTX
Module 1 – Introduction to Computer Networks: Foundations of Data Communicati...
PPTX
Cloud Security and Privacy-Module-1.pptx
PDF
1.-fincantieri-investor-presentation2.pdf
PPTX
Electric vehicle very important for detailed information.pptx
DOCX
web lab manual for fifth semester BE course fifth semester vtu belgaum
BBC NW_Tech Facilities_30 Odd Yrs Ago [J].pdf
Design and Implementation of Low-Cost Electric Vehicles (EVs) Supercharger: A...
COMPARATIVE ANALYSIS REPORT BY NDIDIAMAKA .G. ISRAEL
CC PPTS unit-I PPT Notes of Cloud Computing
L1111-Important Microbial Mechanisms.pptx
highway-150803160405-lva1-app6891 (1).pptx
5-2d2b20afbe-basic-concepts-of-mechanics.ppt
22ME926Introduction to Business Intelligence and Analytics, Advanced Integrat...
AI agent, robotics based Smart Construction 2025
sinteringn kjfnvkjdfvkdfnoeneornvoirjoinsonosjf).pptx
Module_1_Lecture_1_Introduction_To_Automation_In_Production_Systems2023.ppt
quantum theory on the next future in.pptx
Human CELLS and structure in Anatomy and human physiology
ITEC 1010 - Information and Organizations Database System and Big data
1. Effective HSEW Induction Training - EMCO 2024, O&M.pptx
Module 1 – Introduction to Computer Networks: Foundations of Data Communicati...
Cloud Security and Privacy-Module-1.pptx
1.-fincantieri-investor-presentation2.pdf
Electric vehicle very important for detailed information.pptx
web lab manual for fifth semester BE course fifth semester vtu belgaum

Arduino اردوينو

  • 2. What is arduino  Arduino is an open-source prototyping platform based on easy-to-use hardware and software. Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a Twitter message - and turn it into an output - activating a motor, turning on an LED, publishing something online. You can tell your board what to do by sending a set of instructions to the microcontroller on the board. To do so you use the arduino programming language (based on wiring), and the arduino software (IDE), based on processing .
  • 3. Arduino development process  Level1 based on 8 bit mcu like arduino uno ,mega ,nano , micro, lilypad and demulive
  • 4. Arduino development process  Level2 based on 32 bit mcu like arduino due , zero and teensyduino
  • 5. Arduino development process  Level3 FPGA boards with mcu and programmed by arduino software platform like papilio pro , one and duo .
  • 6. Arduino architecture  We will talk here about more common board arduino uno
  • 8. Arduino programming platform (IDE)  we program arduino using an programming languge named “Arduino c” also we can program it using matlab , labview ,python ,c# ,flowcode and embedded c  To start with arduio 1- download the arduino software (IDE) 2- connect the board 3- install the drivers 4- launch the arduino application 5- write code or open an example 6- select your board 7- select your serial port 8- upload the program
  • 9. Arduino IDE  Here we will go to arduino IDE to see it
  • 10. Arduino c program body -‫المتغيرات‬ ‫عن‬ ‫االعالن‬ ‫يتم‬ ‫وانواعها‬ ‫وقيمها‬ -‫ت‬ ‫التي‬ ‫الدوال‬ ‫كتابة‬ ‫يتم‬‫نفذ‬ ‫التشغيل‬ ‫عند‬ ‫واحدة‬ ‫مرة‬ -‫يع‬ ‫التي‬ ‫الدوال‬ ‫كتابة‬ ‫يتم‬‫اد‬ ‫حيث‬ ‫دورة‬ ‫كل‬ ‫تنفيذها‬ ‫بهذا‬ ‫يكتب‬ ‫الذي‬ ‫البرنامج‬ ‫بصور‬ ‫يتكرر‬ ‫يبقى‬ ‫الجزء‬‫ة‬ ‫النهائية‬ ‫حلقة‬
  • 12. Digital I/O  pinMode(pin, mode); pin:- the number of the pin whose mode you wish to set mode:- INPUT or OUTPUT  digitalWrite(pin, value); pin:- the pin number value:- HIGH or LOW  digitalRead(pin); pin:- the number of the digital pin you want to read (int) returns:- HIGH or LOW
  • 13. Pullup and pulldown resistors  If a pull-down resistor is used, the input pin will be LOW when the switch is open and HIGH when the switch is closed.  If a pull-up resistor is used, the input pin will be HIGH when the switch is open and LOW when the switch is closed. -To active pullup resistor in arduino use this function pinMode(2,INPUT_PULLUP) ; this active pullup for pin 2 therefore we will connect switch between GND and pin2
  • 14. Analog I/O  analogRead(pin); pin:- the number of the analog input pin to read from (0 to 5 on most boards) returns:- int (0 to 1023)  analogWrite(pin, value); pin:- the pin to write to. value:- the duty cycle: between 0 (always off) and 255 (always on). Here we haven't DAC to generate an analog output but we use PWM
  • 15. PWM(Pulse Width Modulation) - PWM, is a technique for getting analog results with digital means. Digital control is used to create a square wave, a signal switched between on and off. This on-off pattern can simulate voltages in between full on (5 Volts) and off (0 Volts) by changing the portion of the time the signal spends on versus the time that the signal spends off.
  • 16. Time functions  millis() ; Returns the number of milliseconds since the Arduino board began running the current program. This number will overflow (go back to zero), after approximately 50 days  micros() ; returns the number of microseconds since the Arduino board began running the current program. This number will overflow (go back to zero), after approximately 70 minutes.  delay(ms) ; ms: the number of milliseconds to pause (unsigned long)
  • 17. Blink code example Hardware Required - Arduino Board - LED - resistor less than 1kohm
  • 18. Blink code example  void setup() { // initialize digital pin 13 as an output. pinMode(13, OUTPUT); } // the loop function runs over and over again forever void loop() { digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(13, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second }
  • 21. Arduino libraries  Libraries are a collection of code that makes it easy for you to connect to a sensor, display, module, etc. For example, the built- in LiquidCrystal library makes it easy to talk to character LCD displays. There are hundreds of additional libraries available on the Internet for download.