SlideShare a Scribd company logo
Introduction to Arduino
KU1101 Pengantar Rekayasa dan Desain
What is Arduino?
 An open-source electronic microcontroller board
 Originally built for designer & artists – people with little technical expertise
 We can easily program to understand and interact with the environment
Board Comparison
Name Processor
Operating
/Input
Voltage
CPU
Speed
Analog
In/Out
Digital
IO/PWM
EEPROM
[kB]
SRAM
[kB]
Flash [kB] USB
UART
Mega
2560
ATmega25
60
5 V / 7-12
V
16 MHz 16/0 54/15 4 8 256 Regular
4
Uno
ATmega32
8P
5 V / 7-12
V
16 MHz 6/0 14/6 1 2 32 Regular
1
Nano
ATmega16
8
ATmega32
8P
5 V / 7-9
V
16 MHz 8/0 14/6
0.512
1
1
2
16
32
Mini
1
Exploring Arduino Board
Minimum Requirement for a Project
 Arduino Board
 USB Cable
 PC with Arduino IDE
 Power Adapter (7V to 12V)
Powering Up External Devices
 3.3V and 5V pins to power up external device
 GND to share common ground
 Vin and GND as Arduino power source
Analog Signal vs Digital Signal
 Nearly all physical processes are analog.
Start an Arduino Project
 Installing Arduino IDE
 Installing the Drivers
Arduino IDE
 Verify: check and compile
 Upload: compile and upload program to board
 Serial Monitor: communicate via serial connection with Arduino
Hello, World! (not really)
const unsigned int LED_PIN = 13;
const unsigned int PAUSE = 500;
void setup() {
// put your setup code here, to run once:
pinMode(LED_PIN, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LED_PIN, HIGH);
delay(PAUSE);
digitalWrite(LED_PIN, LOW);
delay(PAUSE);
}
Using Serial Ports
const unsigned int LED_PIN = 13;
const unsigned int BAUD_RATE = 9600;
void setup() {
// put your setup code here, to run once:
// Arduino Uno, 0=RX, 1=TX
pinMode(LED_PIN, OUTPUT);
Serial.begin(BAUD_RATE);
}
void loop() {
// put your main code here, to run repeatedly:
if (Serial.available() > 0) {
// read the first byte
int command = Serial.read();
if (command == '1') {
digitalWrite(LED_PIN, HIGH);
Serial.println("LED on");
} else if (command == '2') {
digitalWrite(LED_PIN, LOW);
Serial.println("LED off");
} else {
Serial.print("Unknown command: ");
Serial.println(command);
}
}
}
Common Components
Binary Dice
Push Button
Reference
 Malk Schmidt. Arduino, 2nd Edition. The Pragmatics Programmer. 2015
 Cornel Amariel. Arduino Development Cookbook. Packt Publishing. 2015
 Arduino Reference. https://www.arduino.cc/en/Reference

More Related Content

PDF
Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009
PPTX
Aurdino presentation
PPTX
Arduino Day 1 Presentation
PPTX
Introduction to Arduino
PDF
Arduino Lecture 1 - Introducing the Arduino
PDF
IOTC08 The Arduino Platform
PDF
Introduction to Arduino Programming
PPTX
Lesson sample introduction to arduino
Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009
Aurdino presentation
Arduino Day 1 Presentation
Introduction to Arduino
Arduino Lecture 1 - Introducing the Arduino
IOTC08 The Arduino Platform
Introduction to Arduino Programming
Lesson sample introduction to arduino

What's hot (20)

PDF
Introducing the Arduino
PPTX
Basics of arduino uno
PPT
Intro to Arduino
KEY
Intro to Arduino
PPTX
Arduino Workshop
PPTX
Arduino
PPT
Arduino technical session 1
PPTX
Introduction to Arduino Microcontroller
PPTX
Arduino Microcontroller
PPT
Arduino Platform with C programming.
PDF
Introduction to Arduino and Circuits
PPTX
Introduction to Arduino
PPTX
Arduino Workshop Day 2
PDF
Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009
PPTX
Ardui no
PDF
Arduino: Arduino lcd
PPTX
Arduino slides
PDF
CTC - What is Arduino
PPTX
Intro to Arduino.ppt
PPTX
Different Arduino Boards
Introducing the Arduino
Basics of arduino uno
Intro to Arduino
Intro to Arduino
Arduino Workshop
Arduino
Arduino technical session 1
Introduction to Arduino Microcontroller
Arduino Microcontroller
Arduino Platform with C programming.
Introduction to Arduino and Circuits
Introduction to Arduino
Arduino Workshop Day 2
Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009
Ardui no
Arduino: Arduino lcd
Arduino slides
CTC - What is Arduino
Intro to Arduino.ppt
Different Arduino Boards
Ad

Viewers also liked (18)

PDF
Zak World of Facades, Chennai, 14th June @ Taj Coromandel
DOCX
Resume 2015
DOCX
Sound effect manipulation word 5
PDF
(Inter)national Facades: Integral Facade Design (MSc3 project) by Charlotte H...
PDF
Plooto - Next Generation Payment Processing Security
PDF
PDF
P4 Architecture (Panels (png version)) by Jasper Moelker
PDF
Bringing back the excitement to data analysis
PDF
Queens University Project Showreel
PDF
La desigual distribución de la población
PDF
Endlich wieder Messe - Teil 4: So funktioniert Ihr neues Messegespräch
PDF
Acme Competition
PDF
Leads facade- Design Develope Deliver
PDF
Cyber Crime Investigation
PDF
Machine Learning and Hadoop: Present and Future
DOCX
Photoshoot and photoshop
PPTX
Word Association Test by ISSB Guideline
PPTX
Smart Hanger Based on Arduino Uno
Zak World of Facades, Chennai, 14th June @ Taj Coromandel
Resume 2015
Sound effect manipulation word 5
(Inter)national Facades: Integral Facade Design (MSc3 project) by Charlotte H...
Plooto - Next Generation Payment Processing Security
P4 Architecture (Panels (png version)) by Jasper Moelker
Bringing back the excitement to data analysis
Queens University Project Showreel
La desigual distribución de la población
Endlich wieder Messe - Teil 4: So funktioniert Ihr neues Messegespräch
Acme Competition
Leads facade- Design Develope Deliver
Cyber Crime Investigation
Machine Learning and Hadoop: Present and Future
Photoshoot and photoshop
Word Association Test by ISSB Guideline
Smart Hanger Based on Arduino Uno
Ad

Similar to Introduction to Arduino (20)

PDF
Cassiopeia Ltd - standard Arduino workshop
PPTX
Arduino . .
PPTX
01_DIGITAL IO.pptx
PPTX
Arduino intro.pptx
PDF
VERY NICE FOR CSE 3RD YEAR AND IOT STUDENTS
PPTX
Arduino workshop
PPTX
How to use an Arduino
PDF
Arduino-workshop.computer engineering.pdf
PPT
01 Intro to the Arduino and it's basics.ppt
PPTX
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
DOCX
Arduino windows remote control
PPTX
INTRODUCTION TO ARDUINO and sensors for arduino.pptx
PPTX
Introduction to arduino ppt main
PPTX
Introduction to Arduino
PPTX
Introduction to Arduino
PPTX
This will give the basic introduction to a arduino
DOCX
Simply arduino
PPS
What is Arduino ?
PDF
Syed IoT - module 5
Cassiopeia Ltd - standard Arduino workshop
Arduino . .
01_DIGITAL IO.pptx
Arduino intro.pptx
VERY NICE FOR CSE 3RD YEAR AND IOT STUDENTS
Arduino workshop
How to use an Arduino
Arduino-workshop.computer engineering.pdf
01 Intro to the Arduino and it's basics.ppt
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
Arduino windows remote control
INTRODUCTION TO ARDUINO and sensors for arduino.pptx
Introduction to arduino ppt main
Introduction to Arduino
Introduction to Arduino
This will give the basic introduction to a arduino
Simply arduino
What is Arduino ?
Syed IoT - module 5

Recently uploaded (20)

PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
Geodesy 1.pptx...............................................
PPTX
web development for engineering and engineering
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
additive manufacturing of ss316l using mig welding
PDF
composite construction of structures.pdf
PPT
Mechanical Engineering MATERIALS Selection
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
DOCX
573137875-Attendance-Management-System-original
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPT
Project quality management in manufacturing
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
Model Code of Practice - Construction Work - 21102022 .pdf
Geodesy 1.pptx...............................................
web development for engineering and engineering
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Safety Seminar civil to be ensured for safe working.
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
additive manufacturing of ss316l using mig welding
composite construction of structures.pdf
Mechanical Engineering MATERIALS Selection
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
573137875-Attendance-Management-System-original
Foundation to blockchain - A guide to Blockchain Tech
Project quality management in manufacturing
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...

Introduction to Arduino

  • 1. Introduction to Arduino KU1101 Pengantar Rekayasa dan Desain
  • 2. What is Arduino?  An open-source electronic microcontroller board  Originally built for designer & artists – people with little technical expertise  We can easily program to understand and interact with the environment
  • 3. Board Comparison Name Processor Operating /Input Voltage CPU Speed Analog In/Out Digital IO/PWM EEPROM [kB] SRAM [kB] Flash [kB] USB UART Mega 2560 ATmega25 60 5 V / 7-12 V 16 MHz 16/0 54/15 4 8 256 Regular 4 Uno ATmega32 8P 5 V / 7-12 V 16 MHz 6/0 14/6 1 2 32 Regular 1 Nano ATmega16 8 ATmega32 8P 5 V / 7-9 V 16 MHz 8/0 14/6 0.512 1 1 2 16 32 Mini 1
  • 5. Minimum Requirement for a Project  Arduino Board  USB Cable  PC with Arduino IDE  Power Adapter (7V to 12V)
  • 6. Powering Up External Devices  3.3V and 5V pins to power up external device  GND to share common ground  Vin and GND as Arduino power source
  • 7. Analog Signal vs Digital Signal  Nearly all physical processes are analog.
  • 8. Start an Arduino Project  Installing Arduino IDE  Installing the Drivers
  • 9. Arduino IDE  Verify: check and compile  Upload: compile and upload program to board  Serial Monitor: communicate via serial connection with Arduino
  • 10. Hello, World! (not really) const unsigned int LED_PIN = 13; const unsigned int PAUSE = 500; void setup() { // put your setup code here, to run once: pinMode(LED_PIN, OUTPUT); } void loop() { // put your main code here, to run repeatedly: digitalWrite(LED_PIN, HIGH); delay(PAUSE); digitalWrite(LED_PIN, LOW); delay(PAUSE); }
  • 11. Using Serial Ports const unsigned int LED_PIN = 13; const unsigned int BAUD_RATE = 9600; void setup() { // put your setup code here, to run once: // Arduino Uno, 0=RX, 1=TX pinMode(LED_PIN, OUTPUT); Serial.begin(BAUD_RATE); } void loop() { // put your main code here, to run repeatedly: if (Serial.available() > 0) { // read the first byte int command = Serial.read(); if (command == '1') { digitalWrite(LED_PIN, HIGH); Serial.println("LED on"); } else if (command == '2') { digitalWrite(LED_PIN, LOW); Serial.println("LED off"); } else { Serial.print("Unknown command: "); Serial.println(command); } } }
  • 15. Reference  Malk Schmidt. Arduino, 2nd Edition. The Pragmatics Programmer. 2015  Cornel Amariel. Arduino Development Cookbook. Packt Publishing. 2015  Arduino Reference. https://www.arduino.cc/en/Reference