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
Ad

More Related Content

What's hot (20)

Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the Arduino
Charles A B Jr
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino uno
Rahat Sood
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
avikdhupar
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
Qtechknow
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshop
atuline
 
Arduino
ArduinoArduino
Arduino
Jerin John
 
Arduino technical session 1
Arduino technical session 1Arduino technical session 1
Arduino technical session 1
Audiomas Soni
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino Microcontroller
Mujahid Hussain
 
Arduino Microcontroller
Arduino MicrocontrollerArduino Microcontroller
Arduino Microcontroller
Shyam Mohan
 
Arduino Platform with C programming.
Arduino Platform with C programming.Arduino Platform with C programming.
Arduino Platform with C programming.
Govind Jha
 
Introduction to Arduino and Circuits
Introduction to Arduino and CircuitsIntroduction to Arduino and Circuits
Introduction to Arduino and Circuits
Jason Griffey
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
yeokm1
 
Arduino Workshop Day 2
Arduino  Workshop Day 2Arduino  Workshop Day 2
Arduino Workshop Day 2
Yogendra Tamang
 
Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009
Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009
Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009
Eoin Brazil
 
Ardui no
Ardui no Ardui no
Ardui no
Amol Sakhalkar
 
Arduino: Arduino lcd
Arduino: Arduino lcdArduino: Arduino lcd
Arduino: Arduino lcd
SANTIAGO PABLO ALBERTO
 
Arduino slides
Arduino slidesArduino slides
Arduino slides
sdcharle
 
CTC - What is Arduino
CTC - What is ArduinoCTC - What is Arduino
CTC - What is Arduino
David Cuartielles
 
Intro to Arduino.ppt
Intro to Arduino.pptIntro to Arduino.ppt
Intro to Arduino.ppt
jonathan Dietz
 
Different Arduino Boards
Different Arduino BoardsDifferent Arduino Boards
Different Arduino Boards
Mitwa Palkhiwala
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the Arduino
Charles A B Jr
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino uno
Rahat Sood
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
avikdhupar
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
Qtechknow
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshop
atuline
 
Arduino technical session 1
Arduino technical session 1Arduino technical session 1
Arduino technical session 1
Audiomas Soni
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino Microcontroller
Mujahid Hussain
 
Arduino Microcontroller
Arduino MicrocontrollerArduino Microcontroller
Arduino Microcontroller
Shyam Mohan
 
Arduino Platform with C programming.
Arduino Platform with C programming.Arduino Platform with C programming.
Arduino Platform with C programming.
Govind Jha
 
Introduction to Arduino and Circuits
Introduction to Arduino and CircuitsIntroduction to Arduino and Circuits
Introduction to Arduino and Circuits
Jason Griffey
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
yeokm1
 
Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009
Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009
Arduino Lecture 2 - Interactive Media CS4062 Semester 2 2009
Eoin Brazil
 
Arduino slides
Arduino slidesArduino slides
Arduino slides
sdcharle
 

Viewers also liked (18)

Zak World of Facades, Chennai, 14th June @ Taj Coromandel
Zak World of Facades, Chennai, 14th June @ Taj CoromandelZak World of Facades, Chennai, 14th June @ Taj Coromandel
Zak World of Facades, Chennai, 14th June @ Taj Coromandel
Zak Trade Fairs & Exhibitions Pvt. Ltd.
 
Resume 2015
Resume 2015Resume 2015
Resume 2015
Emily Walden
 
Sound effect manipulation word 5
Sound effect manipulation word 5Sound effect manipulation word 5
Sound effect manipulation word 5
halo4robo
 
(Inter)national Facades: Integral Facade Design (MSc3 project) by Charlotte H...
(Inter)national Facades: Integral Facade Design (MSc3 project) by Charlotte H...(Inter)national Facades: Integral Facade Design (MSc3 project) by Charlotte H...
(Inter)national Facades: Integral Facade Design (MSc3 project) by Charlotte H...
Jasper Moelker
 
Plooto - Next Generation Payment Processing Security
Plooto - Next Generation Payment Processing SecurityPlooto - Next Generation Payment Processing Security
Plooto - Next Generation Payment Processing Security
Plooto
 
IU-LT 002
IU-LT 002IU-LT 002
IU-LT 002
Anas Muhammad Yahya
 
P4 Architecture (Panels (png version)) by Jasper Moelker
P4 Architecture (Panels (png version)) by Jasper MoelkerP4 Architecture (Panels (png version)) by Jasper Moelker
P4 Architecture (Panels (png version)) by Jasper Moelker
Jasper Moelker
 
Bringing back the excitement to data analysis
Bringing back the excitement to data analysisBringing back the excitement to data analysis
Bringing back the excitement to data analysis
Data Science London
 
Queens University Project Showreel
Queens University Project ShowreelQueens University Project Showreel
Queens University Project Showreel
Kingspan Insulated Panels
 
La desigual distribución de la población
La desigual distribución de la poblaciónLa desigual distribución de la población
La desigual distribución de la población
Abraham Galindo Manning
 
Endlich wieder Messe - Teil 4: So funktioniert Ihr neues Messegespräch
Endlich wieder Messe - Teil 4: So funktioniert Ihr neues MessegesprächEndlich wieder Messe - Teil 4: So funktioniert Ihr neues Messegespräch
Endlich wieder Messe - Teil 4: So funktioniert Ihr neues Messegespräch
Markus Deixler-Wimmer
 
Acme Competition
Acme CompetitionAcme Competition
Acme Competition
Sierra Peterson
 
Leads facade- Design Develope Deliver
Leads facade- Design Develope DeliverLeads facade- Design Develope Deliver
Leads facade- Design Develope Deliver
Leads Facade
 
Machine Learning and Hadoop: Present and Future
Machine Learning and Hadoop: Present and FutureMachine Learning and Hadoop: Present and Future
Machine Learning and Hadoop: Present and Future
Data Science London
 
Photoshoot and photoshop
Photoshoot and photoshopPhotoshoot and photoshop
Photoshoot and photoshop
niamhbarrett
 
Word Association Test by ISSB Guideline
Word Association Test by ISSB GuidelineWord Association Test by ISSB Guideline
Word Association Test by ISSB Guideline
ISSBGuideline
 
Smart Hanger Based on Arduino Uno
Smart Hanger Based on Arduino UnoSmart Hanger Based on Arduino Uno
Smart Hanger Based on Arduino Uno
mugia_islami
 
Sound effect manipulation word 5
Sound effect manipulation word 5Sound effect manipulation word 5
Sound effect manipulation word 5
halo4robo
 
(Inter)national Facades: Integral Facade Design (MSc3 project) by Charlotte H...
(Inter)national Facades: Integral Facade Design (MSc3 project) by Charlotte H...(Inter)national Facades: Integral Facade Design (MSc3 project) by Charlotte H...
(Inter)national Facades: Integral Facade Design (MSc3 project) by Charlotte H...
Jasper Moelker
 
Plooto - Next Generation Payment Processing Security
Plooto - Next Generation Payment Processing SecurityPlooto - Next Generation Payment Processing Security
Plooto - Next Generation Payment Processing Security
Plooto
 
P4 Architecture (Panels (png version)) by Jasper Moelker
P4 Architecture (Panels (png version)) by Jasper MoelkerP4 Architecture (Panels (png version)) by Jasper Moelker
P4 Architecture (Panels (png version)) by Jasper Moelker
Jasper Moelker
 
Bringing back the excitement to data analysis
Bringing back the excitement to data analysisBringing back the excitement to data analysis
Bringing back the excitement to data analysis
Data Science London
 
La desigual distribución de la población
La desigual distribución de la poblaciónLa desigual distribución de la población
La desigual distribución de la población
Abraham Galindo Manning
 
Endlich wieder Messe - Teil 4: So funktioniert Ihr neues Messegespräch
Endlich wieder Messe - Teil 4: So funktioniert Ihr neues MessegesprächEndlich wieder Messe - Teil 4: So funktioniert Ihr neues Messegespräch
Endlich wieder Messe - Teil 4: So funktioniert Ihr neues Messegespräch
Markus Deixler-Wimmer
 
Leads facade- Design Develope Deliver
Leads facade- Design Develope DeliverLeads facade- Design Develope Deliver
Leads facade- Design Develope Deliver
Leads Facade
 
Machine Learning and Hadoop: Present and Future
Machine Learning and Hadoop: Present and FutureMachine Learning and Hadoop: Present and Future
Machine Learning and Hadoop: Present and Future
Data Science London
 
Photoshoot and photoshop
Photoshoot and photoshopPhotoshoot and photoshop
Photoshoot and photoshop
niamhbarrett
 
Word Association Test by ISSB Guideline
Word Association Test by ISSB GuidelineWord Association Test by ISSB Guideline
Word Association Test by ISSB Guideline
ISSBGuideline
 
Smart Hanger Based on Arduino Uno
Smart Hanger Based on Arduino UnoSmart Hanger Based on Arduino Uno
Smart Hanger Based on Arduino Uno
mugia_islami
 
Ad

Similar to Introduction to Arduino (20)

Cassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshopCassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshop
tomtobback
 
Arduino . .
Arduino             .                             .Arduino             .                             .
Arduino . .
dryazhinians
 
01_DIGITAL IO.pptx
01_DIGITAL IO.pptx01_DIGITAL IO.pptx
01_DIGITAL IO.pptx
ssuser593a2d
 
Arduino intro.pptx
Arduino intro.pptxArduino intro.pptx
Arduino intro.pptx
SanthanaMari11
 
Arduino Programming Basic
Arduino Programming BasicArduino Programming Basic
Arduino Programming Basic
LITS IT Ltd,LASRC.SPACE,SAWDAGOR BD,FREELANCE BD,iREV,BD LAW ACADEMY,SMART AVI,HEA,HFSAC LTD.
 
VERY NICE FOR CSE 3RD YEAR AND IOT STUDENTS
VERY NICE FOR CSE 3RD YEAR AND IOT STUDENTSVERY NICE FOR CSE 3RD YEAR AND IOT STUDENTS
VERY NICE FOR CSE 3RD YEAR AND IOT STUDENTS
neelamsanjeevkumar
 
Arduino workshop
Arduino workshopArduino workshop
Arduino workshop
mayur1432
 
How to use an Arduino
How to use an ArduinoHow to use an Arduino
How to use an Arduino
AntonAndreev13
 
01 Intro to the Arduino and it's basics.ppt
01 Intro to the Arduino and it's basics.ppt01 Intro to the Arduino and it's basics.ppt
01 Intro to the Arduino and it's basics.ppt
pindi2197
 
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNOINTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
vasankarponnapalli2
 
Arduino windows remote control
Arduino windows remote controlArduino windows remote control
Arduino windows remote control
VilayatAli5
 
INTRODUCTION TO ARDUINO and sensors for arduino.pptx
INTRODUCTION TO ARDUINO and sensors for arduino.pptxINTRODUCTION TO ARDUINO and sensors for arduino.pptx
INTRODUCTION TO ARDUINO and sensors for arduino.pptx
Jo Mebs
 
Introduction to arduino ppt main
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt main
eddy royappa
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Amarjeetsingh Thakur
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Amarjeetsingh Thakur
 
Simply arduino
Simply arduinoSimply arduino
Simply arduino
Abdullah Sharaf
 
What is Arduino ?
What is Arduino ?What is Arduino ?
What is Arduino ?
Niket Chandrawanshi
 
Syed IoT - module 5
Syed  IoT - module 5Syed  IoT - module 5
Syed IoT - module 5
Syed Mustafa
 
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
4 IOT 18ISDE712  MODULE 4 IoT Physical Devices and End Point-Aurdino  Uno.pdf4 IOT 18ISDE712  MODULE 4 IoT Physical Devices and End Point-Aurdino  Uno.pdf
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
Jayanthi Kannan MK
 
Arduino cic3
Arduino cic3Arduino cic3
Arduino cic3
Jeni Shah
 
Cassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshopCassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshop
tomtobback
 
01_DIGITAL IO.pptx
01_DIGITAL IO.pptx01_DIGITAL IO.pptx
01_DIGITAL IO.pptx
ssuser593a2d
 
VERY NICE FOR CSE 3RD YEAR AND IOT STUDENTS
VERY NICE FOR CSE 3RD YEAR AND IOT STUDENTSVERY NICE FOR CSE 3RD YEAR AND IOT STUDENTS
VERY NICE FOR CSE 3RD YEAR AND IOT STUDENTS
neelamsanjeevkumar
 
Arduino workshop
Arduino workshopArduino workshop
Arduino workshop
mayur1432
 
01 Intro to the Arduino and it's basics.ppt
01 Intro to the Arduino and it's basics.ppt01 Intro to the Arduino and it's basics.ppt
01 Intro to the Arduino and it's basics.ppt
pindi2197
 
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNOINTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
vasankarponnapalli2
 
Arduino windows remote control
Arduino windows remote controlArduino windows remote control
Arduino windows remote control
VilayatAli5
 
INTRODUCTION TO ARDUINO and sensors for arduino.pptx
INTRODUCTION TO ARDUINO and sensors for arduino.pptxINTRODUCTION TO ARDUINO and sensors for arduino.pptx
INTRODUCTION TO ARDUINO and sensors for arduino.pptx
Jo Mebs
 
Introduction to arduino ppt main
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt main
eddy royappa
 
Syed IoT - module 5
Syed  IoT - module 5Syed  IoT - module 5
Syed IoT - module 5
Syed Mustafa
 
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
4 IOT 18ISDE712  MODULE 4 IoT Physical Devices and End Point-Aurdino  Uno.pdf4 IOT 18ISDE712  MODULE 4 IoT Physical Devices and End Point-Aurdino  Uno.pdf
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
Jayanthi Kannan MK
 
Arduino cic3
Arduino cic3Arduino cic3
Arduino cic3
Jeni Shah
 
Ad

Recently uploaded (20)

Reese McCrary_ The Role of Perseverance in Engineering Success.pdf
Reese McCrary_ The Role of Perseverance in Engineering Success.pdfReese McCrary_ The Role of Perseverance in Engineering Success.pdf
Reese McCrary_ The Role of Perseverance in Engineering Success.pdf
Reese McCrary
 
theory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptxtheory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptx
sanchezvanessa7896
 
ISO 9001 quality management systemPPT.pptx
ISO 9001 quality management systemPPT.pptxISO 9001 quality management systemPPT.pptx
ISO 9001 quality management systemPPT.pptx
mesfin608
 
Artificial Intelligence introduction.pptx
Artificial Intelligence introduction.pptxArtificial Intelligence introduction.pptx
Artificial Intelligence introduction.pptx
DrMarwaElsherif
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
Novel Plug Flow Reactor with Recycle For Growth Control
Novel Plug Flow Reactor with Recycle For Growth ControlNovel Plug Flow Reactor with Recycle For Growth Control
Novel Plug Flow Reactor with Recycle For Growth Control
Chris Harding
 
New Microsoft PowerPoint Presentation.pdf
New Microsoft PowerPoint Presentation.pdfNew Microsoft PowerPoint Presentation.pdf
New Microsoft PowerPoint Presentation.pdf
mohamedezzat18803
 
Degree_of_Automation.pdf for Instrumentation and industrial specialist
Degree_of_Automation.pdf for  Instrumentation  and industrial specialistDegree_of_Automation.pdf for  Instrumentation  and industrial specialist
Degree_of_Automation.pdf for Instrumentation and industrial specialist
shreyabhosale19
 
Efficient Algorithms for Isogeny Computation on Hyperelliptic Curves: Their A...
Efficient Algorithms for Isogeny Computation on Hyperelliptic Curves: Their A...Efficient Algorithms for Isogeny Computation on Hyperelliptic Curves: Their A...
Efficient Algorithms for Isogeny Computation on Hyperelliptic Curves: Their A...
IJCNCJournal
 
Compiler Design_Syntax Directed Translation.pptx
Compiler Design_Syntax Directed Translation.pptxCompiler Design_Syntax Directed Translation.pptx
Compiler Design_Syntax Directed Translation.pptx
RushaliDeshmukh2
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
charlesdick1345
 
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxLidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
RishavKumar530754
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
Resistance measurement and cfd test on darpa subboff model
Resistance measurement and cfd test on darpa subboff modelResistance measurement and cfd test on darpa subboff model
Resistance measurement and cfd test on darpa subboff model
INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR
 
introduction to machine learining for beginers
introduction to machine learining for beginersintroduction to machine learining for beginers
introduction to machine learining for beginers
JoydebSheet
 
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Journal of Soft Computing in Civil Engineering
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)
Vəhid Gəruslu
 
Reese McCrary_ The Role of Perseverance in Engineering Success.pdf
Reese McCrary_ The Role of Perseverance in Engineering Success.pdfReese McCrary_ The Role of Perseverance in Engineering Success.pdf
Reese McCrary_ The Role of Perseverance in Engineering Success.pdf
Reese McCrary
 
theory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptxtheory-slides-for react for beginners.pptx
theory-slides-for react for beginners.pptx
sanchezvanessa7896
 
ISO 9001 quality management systemPPT.pptx
ISO 9001 quality management systemPPT.pptxISO 9001 quality management systemPPT.pptx
ISO 9001 quality management systemPPT.pptx
mesfin608
 
Artificial Intelligence introduction.pptx
Artificial Intelligence introduction.pptxArtificial Intelligence introduction.pptx
Artificial Intelligence introduction.pptx
DrMarwaElsherif
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
Novel Plug Flow Reactor with Recycle For Growth Control
Novel Plug Flow Reactor with Recycle For Growth ControlNovel Plug Flow Reactor with Recycle For Growth Control
Novel Plug Flow Reactor with Recycle For Growth Control
Chris Harding
 
New Microsoft PowerPoint Presentation.pdf
New Microsoft PowerPoint Presentation.pdfNew Microsoft PowerPoint Presentation.pdf
New Microsoft PowerPoint Presentation.pdf
mohamedezzat18803
 
Degree_of_Automation.pdf for Instrumentation and industrial specialist
Degree_of_Automation.pdf for  Instrumentation  and industrial specialistDegree_of_Automation.pdf for  Instrumentation  and industrial specialist
Degree_of_Automation.pdf for Instrumentation and industrial specialist
shreyabhosale19
 
Efficient Algorithms for Isogeny Computation on Hyperelliptic Curves: Their A...
Efficient Algorithms for Isogeny Computation on Hyperelliptic Curves: Their A...Efficient Algorithms for Isogeny Computation on Hyperelliptic Curves: Their A...
Efficient Algorithms for Isogeny Computation on Hyperelliptic Curves: Their A...
IJCNCJournal
 
Compiler Design_Syntax Directed Translation.pptx
Compiler Design_Syntax Directed Translation.pptxCompiler Design_Syntax Directed Translation.pptx
Compiler Design_Syntax Directed Translation.pptx
RushaliDeshmukh2
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
charlesdick1345
 
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxLidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
RishavKumar530754
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
introduction to machine learining for beginers
introduction to machine learining for beginersintroduction to machine learining for beginers
introduction to machine learining for beginers
JoydebSheet
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)
Vəhid Gəruslu
 

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