Movatterモバイル変換


[0]ホーム

URL:


Ahmed Sakr, profile picture
Uploaded byAhmed Sakr
PPTX, PDF161,612 views

Introduction to arduino

This document provides an introduction to line follower competitions using Arduino microcontrollers. It discusses what a microcontroller is and types of Arduino boards. The coding structure is explained, covering data types, functions, control statements and loop statements. A workshop section describes how to control a DC motor using Arduino to rotate clockwise for 2 seconds and counter-clockwise for 5 seconds in an infinite loop.

Embed presentation

Downloaded 13,094 times
Line follower competition.Introduction to...Arduino
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:
IntroductionDesign, organize, and collaborate
Famous microcontrollermanufacturers are MicroChip,Atmel, Intel, Analog devices, andmore.[list]It is a micro-computer. As anycomputer it has internal CPU, RAM,IOs interface.It is used for control purposes, andfor data analysis.Micro-Controller:
Arduino. What is Arduino?A microcontroller board, contains on-board power supply, USBport to communicate with PC, and an Atmel microcontrollerchip.It simplify the process of creating any control system byproviding the standard board that can be programmed andconnected to the system without the need to any sophisticatedPCB design and implementation.It is an open source hardware, any one can get the details of itsdesign and modify it or make his own one himself.
Arduino boards:UNO Mega LilyPadArduino BT Arduino Nano Arduino Mini
Arduino UNO:Digital output~: PWM.0,1: Serial port.In circuit SerialprogrammingAtmelMicroControllerAnalog input.Power SupplyUSB portPower input
Digitalandanalog. Digital or Analog?All physical quantities are analog.Analog means that the quantity can take any value between itsminimum value and maximum value.Digital means that the quantity can take specific levels of valueswith specific offset between each other.Ex: 1- Digital:English alpha consists of 26 letter, there is no letter between Aand 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 electricalvalue.Ex.: Light sensor transduce the light into change in voltage orresistance.
Sensors Light sensors:- Photo-Resistor [photo-cell].- Photo-Diode.- Photo-Transistor.
Sensors Photo Resistor:- The value of the resistance depends onthe incident light density.- 1 K-Ohm at light, 10 K-Ohm atdarkness.Photo Diode:- The current is controlled by the incident light density.Photo Transistor:- Base-emitter junction is controlledby the incident light density, has anamplification effect.
Arduino Coding.Stylize, edit, and animate your media
Integer: used with integer variables with value between2147483647 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 numberstorage, and store 32 bits (4 bytes), from -2,147,483,648 to2,147,483,647.Ex. long u=199203;Floating-point numbers can be as large as 3.4028235E+38and as low as -3.4028235E+38. They are stored as 32 bits (4bytes) of information.Ex. float num=1.291; [The same as double type]Data Types and operatorsYou 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 specificfunction:- Math operators: [+,-,*,/,%,^]- Logic operators: [==, !=, &&, ||]- Comparison operators: [==, >, <, !=, <=, >=]Syntax:; Semicolon, {} curly braces, //single linecomment, /*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 1break;case 2://do something when var equals 2break;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;}forfor (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 thesystem 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:
References…Start learning Arduino from here…
You can download the Arduino IDE(The program used to write code anduploading it to arduino boards) from:http://arduino.cc/en/Main/SoftwareArduino IDE:
Here you can learn how to program Arduino and what each codemeans and do, from here:http://arduino.cc/en/Reference/HomePageArduino Reference:
VLSI EGY- I.GEEK – S3GeeksThanks for coming 

Recommended

PDF
Arduino Workshop Day 1 - Basic Arduino
 
PPTX
Basics of arduino uno
PPTX
Ardui no
PPTX
Introduction to Arduino Hardware and Programming
PDF
Arduino Workshop Day 2 - Advance Arduino & DIY
 
PPT
Intro to Arduino
PPTX
Introduction to the Arduino
PPTX
Lesson sample introduction to arduino
PPTX
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
PPTX
PPT ON Arduino
PPT
Arduino
PPTX
Smart Blind stick by using arduino uno and sensor
PPTX
Arduino course
PPT
Embedded System Presentation
PPTX
Arduino slides
PDF
Introduction to Arduino Programming
PPTX
Printed Circuit Board Basics
PPT
Sensors
PPTX
Electronics ppt
PPTX
2. block diagram and components of embedded system
PPTX
Introduction to arduino ppt main
PPTX
anti sleep alarm for students
PPS
What is Arduino ?
PPTX
Wi-Fi Esp8266 nodemcu
PPTX
Printed board circuit design (Pcb) PPT
PPTX
Ultrasonic sensor
PPTX
Traffic light controller
PPT
Power supply
PDF
Arduino Lecture 1 - Introducing the Arduino
PPTX
Introduction to Arduino

More Related Content

PDF
Arduino Workshop Day 1 - Basic Arduino
 
PPTX
Basics of arduino uno
PPTX
Ardui no
PPTX
Introduction to Arduino Hardware and Programming
PDF
Arduino Workshop Day 2 - Advance Arduino & DIY
 
PPT
Intro to Arduino
PPTX
Introduction to the Arduino
PPTX
Lesson sample introduction to arduino
Arduino Workshop Day 1 - Basic Arduino
 
Basics of arduino uno
Ardui no
Introduction to Arduino Hardware and Programming
Arduino Workshop Day 2 - Advance Arduino & DIY
 
Intro to Arduino
Introduction to the Arduino
Lesson sample introduction to arduino

What's hot

PPTX
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
PPTX
PPT ON Arduino
PPT
Arduino
PPTX
Smart Blind stick by using arduino uno and sensor
PPTX
Arduino course
PPT
Embedded System Presentation
PPTX
Arduino slides
PDF
Introduction to Arduino Programming
PPTX
Printed Circuit Board Basics
PPT
Sensors
PPTX
Electronics ppt
PPTX
2. block diagram and components of embedded system
PPTX
Introduction to arduino ppt main
PPTX
anti sleep alarm for students
PPS
What is Arduino ?
PPTX
Wi-Fi Esp8266 nodemcu
PPTX
Printed board circuit design (Pcb) PPT
PPTX
Ultrasonic sensor
PPTX
Traffic light controller
PPT
Power supply
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
PPT ON Arduino
Arduino
Smart Blind stick by using arduino uno and sensor
Arduino course
Embedded System Presentation
Arduino slides
Introduction to Arduino Programming
Printed Circuit Board Basics
Sensors
Electronics ppt
2. block diagram and components of embedded system
Introduction to arduino ppt main
anti sleep alarm for students
What is Arduino ?
Wi-Fi Esp8266 nodemcu
Printed board circuit design (Pcb) PPT
Ultrasonic sensor
Traffic light controller
Power supply

Viewers also liked

PDF
Arduino Lecture 1 - Introducing the Arduino
PPTX
Introduction to Arduino
PPTX
Introduction to Arduino & Robotics
PPTX
Introduction to IOT
ODP
Introduction to Arduino
PPTX
Arduino and c programming
PDF
IoT: An introduction
PPTX
Motor driver
PPTX
ROBOTICS AND ITS APPLICATIONS
PDF
ITT 18 Practicas Basicas de Arduino
DOCX
Arduino Full Tutorial
PDF
Libro de proyectos del kit oficial de Arduino en castellano completo - Arduin...
DOCX
Manual basico de practicas con Arduino uno
PDF
Curso Arduino práctico 2014
PDF
20 Magnificos proyectos para ARDUINO
 
Arduino Lecture 1 - Introducing the Arduino
Introduction to Arduino
Introduction to Arduino & Robotics
Introduction to IOT
Introduction to Arduino
Arduino and c programming
IoT: An introduction
Motor driver
ROBOTICS AND ITS APPLICATIONS
ITT 18 Practicas Basicas de Arduino
Arduino Full Tutorial
Libro de proyectos del kit oficial de Arduino en castellano completo - Arduin...
Manual basico de practicas con Arduino uno
Curso Arduino práctico 2014
20 Magnificos proyectos para ARDUINO
 

Similar to Introduction to arduino

PDF
introductiontoarduino-130219180141-phpapp01.pdf
PPTX
arduino
PPTX
PPT
Arduino_CSE ece ppt for working and principal of arduino.ppt
PPTX
Introduction to Arduino and Robotics tech
PDF
Arduino: Arduino starter kit
PPTX
Arduino presentation that talks about basics of arduino.pptx
PDF
VHDL or Verilog: describe your adder and correction logic
PDF
introductiontoarduino-111120102058-phpapp02.pdf
PDF
arduinoworkshop-160204051621.pdf
PPSX
Arduino by yogesh t s'
PDF
Arduino experimenters guide ARDX
PDF
Ardx experimenters-guide-web
PDF
arduino
 
PPTX
introductiontoarduino-130219180141-phpapp01.pptx
PPTX
introductiontoarduino-130219180141-phpapp01 (1).pptx
PPTX
Introduction to Arduino session and basically it depends how you us and where...
PPTX
Audible Objects
PDF
Ardx eg-spar-web-rev10
introductiontoarduino-130219180141-phpapp01.pdf
arduino
Arduino_CSE ece ppt for working and principal of arduino.ppt
Introduction to Arduino and Robotics tech
Arduino: Arduino starter kit
Arduino presentation that talks about basics of arduino.pptx
VHDL or Verilog: describe your adder and correction logic
introductiontoarduino-111120102058-phpapp02.pdf
arduinoworkshop-160204051621.pdf
Arduino by yogesh t s'
Arduino experimenters guide ARDX
Ardx experimenters-guide-web
arduino
 
introductiontoarduino-130219180141-phpapp01.pptx
introductiontoarduino-130219180141-phpapp01 (1).pptx
Introduction to Arduino session and basically it depends how you us and where...
Audible Objects
Ardx eg-spar-web-rev10

More from Ahmed Sakr

PPTX
RF Microelectronics - Basic concepts - nonlinearity
PPTX
Lead-acid standby Battery charger.
PDF
برمجة الأردوينو - اليوم الثالث.
PPSX
Subsampling Multi-standard receiver design, Part-1
PDF
برمجة الأردوينو - اليوم الأول
PPTX
Noise in RF microelectronics
PPTX
Projects types
PDF
برمجة الأردوينو - اليوم الثاني
PPTX
أمة ريادة الأعمال - نموذج إسرائيل
PDF
The engineers we need
PPTX
Project managment - What a project is .
PDF
الأندلس درة العالم
PPTX
Marketing research
RF Microelectronics - Basic concepts - nonlinearity
Lead-acid standby Battery charger.
برمجة الأردوينو - اليوم الثالث.
Subsampling Multi-standard receiver design, Part-1
برمجة الأردوينو - اليوم الأول
Noise in RF microelectronics
Projects types
برمجة الأردوينو - اليوم الثاني
أمة ريادة الأعمال - نموذج إسرائيل
The engineers we need
Project managment - What a project is .
الأندلس درة العالم
Marketing research

Recently uploaded

PDF
_Final_Guilt_and_Shame_Part_2.pdf_______
PDF
the-science-delusion-rupert-sheldrake.pdf
PDF
Gallup Clifton Strengths All 34-Reynir Orn Bachmann Gudmundsson.pdf
PDF
Journaling for Self-Discovery and Mental Health
PDF
Writing Informative Or Explanatory Texts Presentation_20251210_184051_0000.pdf
PPT
chapter 1.ppt3333333333rrrrrrrrkkkkkkkkkkk
_Final_Guilt_and_Shame_Part_2.pdf_______
the-science-delusion-rupert-sheldrake.pdf
Gallup Clifton Strengths All 34-Reynir Orn Bachmann Gudmundsson.pdf
Journaling for Self-Discovery and Mental Health
Writing Informative Or Explanatory Texts Presentation_20251210_184051_0000.pdf
chapter 1.ppt3333333333rrrrrrrrkkkkkkkkkkk

Introduction to arduino

  • 1.
  • 2.
    Contents: Introduction [20min]: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:
  • 3.
  • 4.
    Famous microcontrollermanufacturers areMicroChip,Atmel, Intel, Analog devices, andmore.[list]It is a micro-computer. As anycomputer it has internal CPU, RAM,IOs interface.It is used for control purposes, andfor data analysis.Micro-Controller:
  • 5.
    Arduino. What isArduino?A microcontroller board, contains on-board power supply, USBport to communicate with PC, and an Atmel microcontrollerchip.It simplify the process of creating any control system byproviding the standard board that can be programmed andconnected to the system without the need to any sophisticatedPCB design and implementation.It is an open source hardware, any one can get the details of itsdesign and modify it or make his own one himself.
  • 6.
    Arduino boards:UNO MegaLilyPadArduino BT Arduino Nano Arduino Mini
  • 7.
    Arduino UNO:Digital output~:PWM.0,1: Serial port.In circuit SerialprogrammingAtmelMicroControllerAnalog input.Power SupplyUSB portPower input
  • 8.
    Digitalandanalog. Digital orAnalog?All physical quantities are analog.Analog means that the quantity can take any value between itsminimum value and maximum value.Digital means that the quantity can take specific levels of valueswith specific offset between each other.Ex: 1- Digital:English alpha consists of 26 letter, there is no letter between Aand 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 devicethat transforms the physical quantity into electricalvalue.Ex.: Light sensor transduce the light into change in voltage orresistance.
  • 10.
    Sensors Light sensors:-Photo-Resistor [photo-cell].- Photo-Diode.- Photo-Transistor.
  • 11.
    Sensors Photo Resistor:-The value of the resistance depends onthe incident light density.- 1 K-Ohm at light, 10 K-Ohm atdarkness.Photo Diode:- The current is controlled by the incident light density.Photo Transistor:- Base-emitter junction is controlledby the incident light density, has anamplification effect.
  • 12.
    Arduino Coding.Stylize, edit,and animate your media
  • 13.
    Integer: used withinteger variables with value between2147483647 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 numberstorage, and store 32 bits (4 bytes), from -2,147,483,648 to2,147,483,647.Ex. long u=199203;Floating-point numbers can be as large as 3.4028235E+38and as low as -3.4028235E+38. They are stored as 32 bits (4bytes) of information.Ex. float num=1.291; [The same as double type]Data Types and operatorsYou may need to know about these typed: Array, Boolean, byte, etc. here.
  • 14.
    Statement represents acommand, it ends with ;Ex:int x;x=13;Operators are symbols that used to indicate a specificfunction:- Math operators: [+,-,*,/,%,^]- Logic operators: [==, !=, &&, ||]- Comparison operators: [==, >, <, !=, <=, >=]Syntax:; Semicolon, {} curly braces, //single linecomment, /*Multi-line comments*/Statement and operators:
  • 15.
    Compound Operators:++ (increment)--(decrement)+= (compound addition)-= (compound subtraction)*= (compound multiplication)/= (compound division)Statement and operators:
  • 16.
  • 17.
    Switch case:switch (var){case 1://do something when var equals 1break;case 2://do something when var equals 2break;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;}forfor (int i=0; i <= val; i++){statements;}Loop statements:Use break statement to stop the loop whenever needed.
  • 19.
    Void setup(){}Used toindicate the initial values of system on starting.Void loop(){}Contains the statements that will run whenever thesystem is powered after setup.Code structure:
  • 20.
    Led blinking example:Usedfunctions:pinMode();digitalRead();digitalWrite();delay(time_ms);other functions:analogRead();analogWrite();//PWM.Input and output:
  • 21.
    Motor control usingArduino:Make a motor rotate 2 sec clockwise, and 5 sec counter-clockwise in an infinite loop;Time: 10 min.Workshop:
  • 22.
  • 23.
    You can downloadthe Arduino IDE(The program used to write code anduploading it to arduino boards) from:http://arduino.cc/en/Main/SoftwareArduino IDE:
  • 24.
    Here you canlearn how to program Arduino and what each codemeans and do, from here:http://arduino.cc/en/Reference/HomePageArduino Reference:
  • 25.
    VLSI EGY- I.GEEK– S3GeeksThanks for coming 

Editor's Notes

  • #2 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.
  • #11 http://hades.mech.northwestern.edu/index.php/Optoreflectorhttp://hades.mech.northwestern.edu/index.php/Optointerrupter
  • #12 http://hades.mech.northwestern.edu/index.php/Optoreflectorhttp://hades.mech.northwestern.edu/index.php/Optointerrupterhttp://learn.parallax.com/node/299

[8]ページ先頭

©2009-2025 Movatter.jp