SlideShare a Scribd company logo
1 of 25
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

What's hot

Arduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the ArduinoArduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the ArduinoEoin Brazil
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the ArduinoWingston
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to ArduinoOmer Kilic
 
Arduino slides
Arduino slidesArduino slides
Arduino slidessdcharle
 
Arduino Microcontroller
Arduino MicrocontrollerArduino Microcontroller
Arduino MicrocontrollerShyam Mohan
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingEmmanuel Obot
 
Introduction to arduino ppt main
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt maineddy royappa
 
Arduino Workshop Day 1 - Basic Arduino
Arduino Workshop Day 1 - Basic ArduinoArduino Workshop Day 1 - Basic Arduino
Arduino Workshop Day 1 - Basic ArduinoVishnu
 
Arduino and c programming
Arduino and c programmingArduino and c programming
Arduino and c programmingPunit Goswami
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduinoAhmed Sakr
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to ArduinoRichard Rixham
 
What are the different types of arduino boards
What are the different types of arduino boardsWhat are the different types of arduino boards
What are the different types of arduino boardselprocus
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshopatuline
 

What's hot (20)

Arduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the ArduinoArduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the Arduino
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
 
Arduino course
Arduino courseArduino course
Arduino course
 
Arduino
ArduinoArduino
Arduino
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Arduino slides
Arduino slidesArduino slides
Arduino slides
 
Waht is Arduino
Waht is ArduinoWaht is Arduino
Waht is Arduino
 
Arduino Microcontroller
Arduino MicrocontrollerArduino Microcontroller
Arduino Microcontroller
 
Arduino presentation
Arduino presentationArduino presentation
Arduino presentation
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
 
Introduction to arduino ppt main
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt main
 
Arduino Workshop Day 1 - Basic Arduino
Arduino Workshop Day 1 - Basic ArduinoArduino Workshop Day 1 - Basic Arduino
Arduino Workshop Day 1 - Basic Arduino
 
Arduino and c programming
Arduino and c programmingArduino and c programming
Arduino and c programming
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
What are the different types of arduino boards
What are the different types of arduino boardsWhat are the different types of arduino boards
What are the different types of arduino boards
 
I/O Ports
I/O Ports I/O Ports
I/O Ports
 
Embedded Systems and IoT
Embedded Systems and IoTEmbedded Systems and IoT
Embedded Systems and IoT
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshop
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 

Viewers also liked

Senior Project Presentation
Senior Project PresentationSenior Project Presentation
Senior Project PresentationTim Heath
 
الدارة الكهربائية البسيطة
الدارة الكهربائية البسيطةالدارة الكهربائية البسيطة
الدارة الكهربائية البسيطةMinistère de l'éducation
 
ميكروكنترولر بشرح م احمد سميرفايد
ميكروكنترولر بشرح م احمد سميرفايدميكروكنترولر بشرح م احمد سميرفايد
ميكروكنترولر بشرح م احمد سميرفايدMahmoud Wanis
 
Hardware startup v3
Hardware startup v3Hardware startup v3
Hardware startup v3yahya tawil
 
برمجة الأردوينو لليافعين
برمجة الأردوينو لليافعينبرمجة الأردوينو لليافعين
برمجة الأردوينو لليافعينWikilogia
 
Hardware startup
Hardware startup Hardware startup
Hardware startup yahya tawil
 
برمجة الأردوينو - اليوم الثاني
برمجة الأردوينو - اليوم الثانيبرمجة الأردوينو - اليوم الثاني
برمجة الأردوينو - اليوم الثانيAhmed Sakr
 
التعامل مع بيئة برمجة أردوينو
التعامل مع بيئة برمجة أردوينوالتعامل مع بيئة برمجة أردوينو
التعامل مع بيئة برمجة أردوينوWikilogia
 
أساسيات الحساسات والإشارة التماثلية في الأردوينو لليافعين
أساسيات الحساسات والإشارة التماثلية في الأردوينو لليافعينأساسيات الحساسات والإشارة التماثلية في الأردوينو لليافعين
أساسيات الحساسات والإشارة التماثلية في الأردوينو لليافعينWikilogia
 
درس أنواع أجهزة الحاسب الآلي أول متوسط
درس أنواع أجهزة الحاسب الآلي أول متوسطدرس أنواع أجهزة الحاسب الآلي أول متوسط
درس أنواع أجهزة الحاسب الآلي أول متوسطMAJEED3691
 
أنواع أجهزة الحاسب
أنواع أجهزة الحاسبأنواع أجهزة الحاسب
أنواع أجهزة الحاسبtahanisaad
 
Business Model Canvas (Arabic) - نموذج العمل التجاري
Business Model Canvas (Arabic) - نموذج العمل التجاريBusiness Model Canvas (Arabic) - نموذج العمل التجاري
Business Model Canvas (Arabic) - نموذج العمل التجاريEmad Saif
 
Value Proposition Design (Arabic ) - تصميم القيمة المقدمة
Value Proposition Design (Arabic ) - تصميم القيمة المقدمة Value Proposition Design (Arabic ) - تصميم القيمة المقدمة
Value Proposition Design (Arabic ) - تصميم القيمة المقدمة Emad Saif
 
Business Model Canvas Poster - English
Business Model Canvas Poster - EnglishBusiness Model Canvas Poster - English
Business Model Canvas Poster - EnglishEmad Saif
 
Business Model Canvas In Arabic - إبتكار نموذج العمل التجاري
Business Model Canvas In Arabic - إبتكار نموذج العمل التجاري Business Model Canvas In Arabic - إبتكار نموذج العمل التجاري
Business Model Canvas In Arabic - إبتكار نموذج العمل التجاري Emad Saif
 
تصميم وإبتكار نماذج الأعمال أو النماذج الربحية Business Models
تصميم وإبتكار نماذج الأعمال أو النماذج الربحية Business Modelsتصميم وإبتكار نماذج الأعمال أو النماذج الربحية Business Models
تصميم وإبتكار نماذج الأعمال أو النماذج الربحية Business ModelsHatem Kameli
 

Viewers also liked (20)

Fablogiapresent
FablogiapresentFablogiapresent
Fablogiapresent
 
Senior Project Presentation
Senior Project PresentationSenior Project Presentation
Senior Project Presentation
 
الدارة الكهربائية البسيطة
الدارة الكهربائية البسيطةالدارة الكهربائية البسيطة
الدارة الكهربائية البسيطة
 
ميكروكنترولر بشرح م احمد سميرفايد
ميكروكنترولر بشرح م احمد سميرفايدميكروكنترولر بشرح م احمد سميرفايد
ميكروكنترولر بشرح م احمد سميرفايد
 
c++ كتاب برمجه
  c++ كتاب برمجه  c++ كتاب برمجه
c++ كتاب برمجه
 
Oh intro
Oh introOh intro
Oh intro
 
Hardware startup v3
Hardware startup v3Hardware startup v3
Hardware startup v3
 
برمجة الأردوينو لليافعين
برمجة الأردوينو لليافعينبرمجة الأردوينو لليافعين
برمجة الأردوينو لليافعين
 
Oh intro v2
Oh intro v2Oh intro v2
Oh intro v2
 
Hardware startup
Hardware startup Hardware startup
Hardware startup
 
برمجة الأردوينو - اليوم الثاني
برمجة الأردوينو - اليوم الثانيبرمجة الأردوينو - اليوم الثاني
برمجة الأردوينو - اليوم الثاني
 
التعامل مع بيئة برمجة أردوينو
التعامل مع بيئة برمجة أردوينوالتعامل مع بيئة برمجة أردوينو
التعامل مع بيئة برمجة أردوينو
 
أساسيات الحساسات والإشارة التماثلية في الأردوينو لليافعين
أساسيات الحساسات والإشارة التماثلية في الأردوينو لليافعينأساسيات الحساسات والإشارة التماثلية في الأردوينو لليافعين
أساسيات الحساسات والإشارة التماثلية في الأردوينو لليافعين
 
درس أنواع أجهزة الحاسب الآلي أول متوسط
درس أنواع أجهزة الحاسب الآلي أول متوسطدرس أنواع أجهزة الحاسب الآلي أول متوسط
درس أنواع أجهزة الحاسب الآلي أول متوسط
 
أنواع أجهزة الحاسب
أنواع أجهزة الحاسبأنواع أجهزة الحاسب
أنواع أجهزة الحاسب
 
Business Model Canvas (Arabic) - نموذج العمل التجاري
Business Model Canvas (Arabic) - نموذج العمل التجاريBusiness Model Canvas (Arabic) - نموذج العمل التجاري
Business Model Canvas (Arabic) - نموذج العمل التجاري
 
Value Proposition Design (Arabic ) - تصميم القيمة المقدمة
Value Proposition Design (Arabic ) - تصميم القيمة المقدمة Value Proposition Design (Arabic ) - تصميم القيمة المقدمة
Value Proposition Design (Arabic ) - تصميم القيمة المقدمة
 
Business Model Canvas Poster - English
Business Model Canvas Poster - EnglishBusiness Model Canvas Poster - English
Business Model Canvas Poster - English
 
Business Model Canvas In Arabic - إبتكار نموذج العمل التجاري
Business Model Canvas In Arabic - إبتكار نموذج العمل التجاري Business Model Canvas In Arabic - إبتكار نموذج العمل التجاري
Business Model Canvas In Arabic - إبتكار نموذج العمل التجاري
 
تصميم وإبتكار نماذج الأعمال أو النماذج الربحية Business Models
تصميم وإبتكار نماذج الأعمال أو النماذج الربحية Business Modelsتصميم وإبتكار نماذج الأعمال أو النماذج الربحية Business Models
تصميم وإبتكار نماذج الأعمال أو النماذج الربحية Business Models
 

Similar to Arduino اردوينو

Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptxHebaEng
 
Arduino and Circuits.docx
Arduino and Circuits.docxArduino and Circuits.docx
Arduino and Circuits.docxAjay578679
 
Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixelssdcharle
 
IoT Basics with few Embedded System Connections for sensors
IoT Basics with few Embedded System Connections for sensorsIoT Basics with few Embedded System Connections for sensors
IoT Basics with few Embedded System Connections for sensorssaritasapkal
 
Interface stepper motor through Arduino using LABVIEW.
Interface stepper motor through Arduino using LABVIEW.Interface stepper motor through Arduino using LABVIEW.
Interface stepper motor through Arduino using LABVIEW.Ankita Tiwari
 
Arduino workshop
Arduino workshopArduino workshop
Arduino workshopmayur1432
 
Arduino windows remote control
Arduino windows remote controlArduino windows remote control
Arduino windows remote controlVilayatAli5
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slidesmkarlin14
 
Introduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).pptIntroduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).pptansariparveen06
 
Arduino Programming Familiarization
Arduino Programming FamiliarizationArduino Programming Familiarization
Arduino Programming FamiliarizationAmit Kumer Podder
 
Ch_2_8,9,10.pptx
Ch_2_8,9,10.pptxCh_2_8,9,10.pptx
Ch_2_8,9,10.pptxyosikit826
 
Cassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshopCassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshoptomtobback
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerMujahid Hussain
 

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

Arduino intro.pptx
Arduino intro.pptxArduino intro.pptx
Arduino intro.pptx
 
Fun with arduino
Fun with arduinoFun with arduino
Fun with arduino
 
Arduino Programming Basic
Arduino Programming BasicArduino Programming Basic
Arduino Programming Basic
 
Arduino programming
Arduino programmingArduino programming
Arduino programming
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptx
 
Arduino and Circuits.docx
Arduino and Circuits.docxArduino and Circuits.docx
Arduino and Circuits.docx
 
Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixels
 
How to use an Arduino
How to use an ArduinoHow to use an Arduino
How to use an Arduino
 
Neno Project.docx
Neno Project.docxNeno Project.docx
Neno Project.docx
 
IoT Basics with few Embedded System Connections for sensors
IoT Basics with few Embedded System Connections for sensorsIoT Basics with few Embedded System Connections for sensors
IoT Basics with few Embedded System Connections for sensors
 
Interface stepper motor through Arduino using LABVIEW.
Interface stepper motor through Arduino using LABVIEW.Interface stepper motor through Arduino using LABVIEW.
Interface stepper motor through Arduino using LABVIEW.
 
Arduino workshop
Arduino workshopArduino workshop
Arduino workshop
 
Arduino windows remote control
Arduino windows remote controlArduino windows remote control
Arduino windows remote control
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slides
 
What is arduino
What is arduinoWhat is arduino
What is arduino
 
Introduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).pptIntroduction to Arduino 16822775 (2).ppt
Introduction to Arduino 16822775 (2).ppt
 
Arduino Programming Familiarization
Arduino Programming FamiliarizationArduino Programming Familiarization
Arduino Programming Familiarization
 
Ch_2_8,9,10.pptx
Ch_2_8,9,10.pptxCh_2_8,9,10.pptx
Ch_2_8,9,10.pptx
 
Cassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshopCassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshop
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino Microcontroller
 

More from salih mahmod

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

More from salih mahmod (6)

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

Recently uploaded

Autonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptAutonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptbibisarnayak0
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Crystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxCrystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxachiever3003
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptNarmatha D
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgsaravananr517913
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptMadan Karki
 
Risk Management in Engineering Construction Project
Risk Management in Engineering Construction ProjectRisk Management in Engineering Construction Project
Risk Management in Engineering Construction ProjectErbil Polytechnic University
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating SystemRashmi Bhat
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONjhunlian
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solidnamansinghjarodiya
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - GuideGOPINATHS437943
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdfHafizMudaserAhmad
 

Recently uploaded (20)

Autonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptAutonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.ppt
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Crystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxCrystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptx
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.ppt
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.ppt
 
Risk Management in Engineering Construction Project
Risk Management in Engineering Construction ProjectRisk Management in Engineering Construction Project
Risk Management in Engineering Construction Project
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating System
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solid
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - Guide
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf
 

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.