Arduino Introduction to Arduino Mohamed Hussien mohamed.hussien3@hotmail.com
Contents  What is Arduino?  Why Arduino ?  Types of Arduino  Arduino Language  Arduino IDE
What is Arduino?  Open Source physical computing platform you can make your own board, or buy one.  Arduino is an open-source platform used for building electronics projects.  Arduino consists of both a physical programmable circuit board (often referred to as a microcontroller) and a piece of software, or IDE (Integrated Development Environment) that runs on your computer.  Very widespread, many projects openly available.  Extra HW (shields) available.
Why Arduino ?  Well documented , a lot of examples and a great community  Open source Hardware/Software  Work on different OS (Linux , Windows and Mac)  USB connection  Cheap
Types of Arduino  Arduino Uno  Arduino Mega  Arduino Leonardo  Arduino micro  LilyPad Arduino USB  Arduino Pro Mini  Arduino Fio  Arduino Robot
Arduino Uno
Arduino Uno  Microcontroller ATmega328  Digital I/O Pins 14 (of which 6 provide PWM output)  Analog Input Pins 6  Clock Speed 16 MHz  USB connection to PC via printer cable  Power from USB or external power supply
Arduino Mega
Arduino Mega  Microcontroller ATmega2560  Digital I/O Pins 54 (of which 15 provide PWM output)  Analog Input Pins 16  Clock Speed 16 MHz  USB connection to PC  Power from USB or external power supply  USB Port for connection to android smartphones
Arduino Leonardo
Arduino micro
LilyPad Arduino USB
Arduino Pro Mini
Arduino Fio
Arduino Esplora
Arduino Esplora
Arduino Shields  Shields are boards that can be plugged on top of the Arduino PCB extending its capabilities. The different shields follow the same philosophy as the original toolkit: they are easy to mount, and cheap to produce.
Arduino Shields  Arduino GSM Shield
Arduino Shields  Arduino Ethernet Shield
Arduino Shields  Arduino WiFi Shield
Arduino Shields  Arduino Motor Shield
How does Arduino work?  Write a code in your computer  Upload it to the Arduino board  Arduino board can the be used standalone
Arduino Language  C like syntax, but simplified  Abstracts the pin naming to numbers  Trades efficience for ease of use  Easy to learn, yet powerful  Lots of example code  Easy to reuse C-code from other projects  Libraries can be written in C++  Lots of libraries available
Arduino IDE 1 2 3 4
Arduino IDE  Examples
Examples  Blinking led
Examples  Blinking led // Example 01 : Blinking LED const int LED = 13; void setup () { pinMode(LED, OUTPUT); } void loop () { digitalWrite(LED, HIGH); delay(1000); digitalWrite(LED, LOW); delay(1000); } Declare variables Initialize pins i/o Program body
Examples  Blinking led
Examples  Blinking led with switch
Examples  Blinking led with switch // Example 02 : Blinking LED With Switch const int ledPin = 13; const int buttonPin = 2; int val; void setup ( ) { pinMode(ledPin, OUTPUT); pinMode(buttonPin, INPUT); } Declare variables Initialize pins i/o
Examples  Blinking led with switch // Example 02 : Blinking LED With Switch void loop() { val = digitalRead(buttonPin); if (val == HIGH) { digitalWrite(ledPin, HIGH); delay(1000); digitalWrite(ledPin, LOW); delay(1000); } else {digitalWrite(ledPin, LOW); } } Program body
Good Bye 

Introduction to arduino

  • 1.
    Arduino Introduction to Arduino MohamedHussien mohamed.hussien3@hotmail.com
  • 2.
    Contents  What isArduino?  Why Arduino ?  Types of Arduino  Arduino Language  Arduino IDE
  • 3.
    What is Arduino? Open Source physical computing platform you can make your own board, or buy one.  Arduino is an open-source platform used for building electronics projects.  Arduino consists of both a physical programmable circuit board (often referred to as a microcontroller) and a piece of software, or IDE (Integrated Development Environment) that runs on your computer.  Very widespread, many projects openly available.  Extra HW (shields) available.
  • 4.
    Why Arduino ? Well documented , a lot of examples and a great community  Open source Hardware/Software  Work on different OS (Linux , Windows and Mac)  USB connection  Cheap
  • 5.
    Types of Arduino Arduino Uno  Arduino Mega  Arduino Leonardo  Arduino micro  LilyPad Arduino USB  Arduino Pro Mini  Arduino Fio  Arduino Robot
  • 6.
  • 7.
    Arduino Uno  MicrocontrollerATmega328  Digital I/O Pins 14 (of which 6 provide PWM output)  Analog Input Pins 6  Clock Speed 16 MHz  USB connection to PC via printer cable  Power from USB or external power supply
  • 8.
  • 9.
    Arduino Mega  MicrocontrollerATmega2560  Digital I/O Pins 54 (of which 15 provide PWM output)  Analog Input Pins 16  Clock Speed 16 MHz  USB connection to PC  Power from USB or external power supply  USB Port for connection to android smartphones
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
    Arduino Shields  Shieldsare boards that can be plugged on top of the Arduino PCB extending its capabilities. The different shields follow the same philosophy as the original toolkit: they are easy to mount, and cheap to produce.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
    How does Arduinowork?  Write a code in your computer  Upload it to the Arduino board  Arduino board can the be used standalone
  • 23.
    Arduino Language  Clike syntax, but simplified  Abstracts the pin naming to numbers  Trades efficience for ease of use  Easy to learn, yet powerful  Lots of example code  Easy to reuse C-code from other projects  Libraries can be written in C++  Lots of libraries available
  • 24.
  • 25.
  • 26.
  • 27.
    Examples  Blinking led //Example 01 : Blinking LED const int LED = 13; void setup () { pinMode(LED, OUTPUT); } void loop () { digitalWrite(LED, HIGH); delay(1000); digitalWrite(LED, LOW); delay(1000); } Declare variables Initialize pins i/o Program body
  • 28.
  • 29.
  • 30.
    Examples  Blinking ledwith switch // Example 02 : Blinking LED With Switch const int ledPin = 13; const int buttonPin = 2; int val; void setup ( ) { pinMode(ledPin, OUTPUT); pinMode(buttonPin, INPUT); } Declare variables Initialize pins i/o
  • 31.
    Examples  Blinking ledwith switch // Example 02 : Blinking LED With Switch void loop() { val = digitalRead(buttonPin); if (val == HIGH) { digitalWrite(ledPin, HIGH); delay(1000); digitalWrite(ledPin, LOW); delay(1000); } else {digitalWrite(ledPin, LOW); } } Program body
  • 32.