SlideShare a Scribd company logo
Getting Started with Arduino
Introduction to Physical Computing
Edited by Alvaro Soto-Fernandez
The City University of New York
Architectural Technology Dept.
Getting Started with Arduino
2
Introduction
Arduino is an open-source physical computing
platform for developing interactive devices that
are able to sense the environment using sensors (
electronic components that convert real-world data
into electrical signals), and interact with the world
using actuators, electronic components that can
convert electric signals into a physical action. Arduino
is based on a simple micro-controller board, and a
IDE (development environment) for writing software
that controls the behavior of the board. Arduino
projects can be standalone, or they can communicate
with other software running on your computer (e.g.
Grasshopper, Processing, Flash, etc). The open-
source (and cross-platform) IDE can be downloaded
for free at www.arduino.cc.
Getting Started with Arduino
3
The Hardware
The Arduino board Fig. 1 is a small microcontroller
board (circuit) manufactured by the Arduino
Corporation, that contains a whole computer on a
small chip, the ATmega168, which is less powerful
than new computers, but cheaper and very useful for
prototyping and to build interactive devices.
The Arduino Corporation is not alone in the
development of user-friendly microcontroller
platforms. Here are some reasons why you might
choose Arduino over its ā€œcompetitorsā€:
1.	 Open-source - (you can download the circuit
diagram, buy all the components, and make your
own).
2.	 Cross-platform (works well on both PC and
Macintosh)
3.	 Inexpensive (around $30)
4.	 Already established techniques of interfacing
with popular software environments.
5.	 A large community of users (great technical
support).
Fig. 1 -Arduino prototyping board
Getting Started with Arduino
4
The Hardware
The Arduino team have placed on the board all the
components (resistors, capacitors, regulators, etc_
that are required for this microcontroller to work
properly and to communicate with other computers.
The most often used elements of this hardware
interface are highlighted in Fig 2.
•	 DC Power In: This is a plug that accepts a
2.1mm barrel with a positive tip (center positive).
The Arduino board will happily accept any voltage
between 7-12 and a current between 100-
500mA. 9V batteries (with the appropriate barrel
adaptor) are acceptable.
•	 USB: Universal Serial Bus is used to communicate
in both directions between Arduino and a
computer. When in use, the USB port can also
power the Arduino board, eliminating the need for
an external DC power supply.
•	 Power Out: When powered (either by DC supply
or USB), the Arduino board provides regulated
power outputs for the rest of your project (5v,
3.3v, and GND – 0 potential).
•	 Atmel Chip: This chip is the brain of the Arduino
board. It contains the Arduino ā€œbootloaderā€,
which is essentially a program that runs on the
chip that allows you to upload and run custom
programs written by you to the chip. When you
upload programs to the chip using the Arduino
IDE, you are replacing your previously uploaded
program and not the bootloader. The bootloader
is ā€œpermanently burnedā€ to the chip’s memory
(not really, but it takes more effort to remove the
bootloader if you did want a completely blanks
chip for some reason).
Fig. 2 -Hardware Interface
Getting Started with Arduino
5
The Hardware
•	 Analog Pins: The Arduino Uno board has six
analog pins for measuring continuous data from
the outside world. By default, each pin measures
voltage from 0v-5v and converts that voltage into
a range of 0-1023 (10-bit resolution). Each pin is
readable by your custom program uploaded onto
the Atmel chip (if you instruct the program to do
so).
•	 Digital Pins: The Arduino Uno board has 14 digital
pins that can be both read and written to. Digital
pins measure voltage from 0v-5v but in contrast
to analog pins, convert that measurement into a
binary of either HIGH or LOW. High being 5v and
low being 0v (or GROUND). Several specific digital
pins can multipurpose for specialized tasks like
serial communication (TX & RX) and Pulse Width
Modulation (PWM).
•	 Reset Button: This is a simple push button that
when pressed tells your Arduino program to run
again from the beginning (it does not erase the
Atmel chip or your program).
Getting Started with Arduino
6
The Software
Interface
The IDE (Integrated Development Environment) is an
open-source program running on your computer that
allows you to write sketches for the Arduino board
in a simple language modeled after the Processing
(www.processing.org) language. With this technology
the Arduino replaces the need for hard wiring circuits
from scratch with a software program which is easier
to use than other programing languages and easier to
modify than hardware alone. After you have installed
(for detailed instruction on installation depending on
your operating system, go here: http://arduino.cc/en/
Guide/HomePage ) and opened the Arduino IDE, Fig.
3 is what you will see.
The Arduino IDE interface is very simple, there are
four main parts (shown in Fig. 4):
•	 Text Editor: This is the heart of the Arduino IDE
and where you write your programs (Arduino calls
them ā€œsketchesā€).
•	 Console: This is where the IDE outputs
information regarding your sketch (errors, upload
status)
•	 Tool Bar: These icons provide a shortcut to the
most often used operations. From left to right they
are ā€œVerify (check sketch for errors)ā€, ā€œUploadā€,
ā€œNewā€, ā€œOpenā€, ā€œSaveā€, and ā€œSerial Monitor.ā€
•	 Menu Bar: The menu bar gives you access to
all of the IDE’s functionality including some very
important settings that should be adjusted before
anything else.
Fig. 3 -Arduino IDE Fig. 4 -Four main parts of Arduino IDE
Menu Bar
Tool Bar
Text Editor
Console
Getting Started with Arduino
7
The Software
Setting up the Arduino Board
Once you have downloaded and installed the Arduino
IDE, before uploading any sketch, make sure the
IDE is setup to recognize the type of Arduino board
you are planing to upload to. There are several types
of Arduino boards that differ in size, circuitry, chip
memory, number of I/O (In/Out) pins and add-on
capabilities (e.g. Ethernet connectivity). Arduino UNO
js the most recent simplify version of the board.
Next, in order for the IDE to communicate with your
board, you also have to select the correct Serial Port
that your board is installed on. Select your Arduino
board from Tools > Board (ad shown in Fig, 5), and
the line of communication on which it is installed from
Tools > Serial Port (select the port that begins with /
dev/cu.usbserial-).
Now you can Start programing.
Fig. 5 -Setting up the Arduino Board
Getting Started with Arduino
8
The Software
Setting up the Sketchbook Folder
However, before you write your first sketch, you should
know the location of your ā€œSketchbook.ā€ Each sketch
you write is automatically saved in a folder of the
same name, and these sketch folders as a collection
are stored in another folder called a sketchbook. The
location of your sketchbook can be set in your Arduino
preferences in the menu bar under File > Preferences
(as shown in Fig. 6).
Now you can quickly access any sketch you have
written in the menu bar under File > Sketchbook.
Fig. 6 -Setting up the Sketchbook Folder
Getting Started with Arduino
9
Run Your First Sketch
Blinking LED
The LED blinking sketch, found in FIle > Examples
> Basic > Blink, is the first program you should run
to test whether your Arduino board is working and is
configured correctly. This sketch is also very useful for
starters to learn how to program the microcontroller. A
light-emitting diode (LED), is an electronic component
more efficient than a light bulb and requires lower
voltages to operate.
The Arduino board comes with an LED preinstalled,
you can also add your own LED to pin 13 and ground.
FIg. 7
Fig. 7 -LED to Pin 13

More Related Content

What's hot (20)

Arduino experimenters guide hq
Arduino experimenters guide hqArduino experimenters guide hq
Arduino experimenters guide hq
Andreis Santos
Ā 
Arduino Model's
Arduino Model'sArduino Model's
Arduino Model's
Ali Izmir
Ā 
Arduino as an embedded industrial controller
Arduino as an embedded industrial controllerArduino as an embedded industrial controller
Arduino as an embedded industrial controller
Jose Luis Poza LujƔn
Ā 
Intro to Arduino.ppt
Intro to Arduino.pptIntro to Arduino.ppt
Intro to Arduino.ppt
jonathan Dietz
Ā 
Fun with arduino
Fun with arduinoFun with arduino
Fun with arduino
Ravikumar Tiwari
Ā 
Ardunio
ArdunioArdunio
Ardunio
DILEEP KUMAR
Ā 
Ardui no
Ardui no Ardui no
Ardui no
Amol Sakhalkar
Ā 
Arduino 101
Arduino 101Arduino 101
Arduino 101
Giorgio Aresu
Ā 
Arduino
ArduinoArduino
Arduino
Jerin John
Ā 
IOTC08 The Arduino Platform
IOTC08 The Arduino PlatformIOTC08 The Arduino Platform
IOTC08 The Arduino Platform
Eoin Brazil
Ā 
Embedded system programming using Arduino microcontroller
Embedded system programming using Arduino microcontrollerEmbedded system programming using Arduino microcontroller
Embedded system programming using Arduino microcontroller
Arun Kumar
Ā 
Arduino Full Tutorial
Arduino Full TutorialArduino Full Tutorial
Arduino Full Tutorial
Akshay Sharma
Ā 
Arduino course
Arduino courseArduino course
Arduino course
Ahmed Shelbaya
Ā 
Arduino slides
Arduino slidesArduino slides
Arduino slides
sdcharle
Ā 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshop
atuline
Ā 
Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009
Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009
Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009
Eoin Brazil
Ā 
Arduino Programming Software Development
Arduino Programming Software DevelopmentArduino Programming Software Development
Arduino Programming Software Development
Sanjay Kumar
Ā 
Arduino tutorial
Arduino tutorialArduino tutorial
Arduino tutorial
HarikaReddy115
Ā 
Arduino for Beginners
Arduino for BeginnersArduino for Beginners
Arduino for Beginners
Sarwan Singh
Ā 
Arduino Day 1 Presentation
Arduino Day 1 PresentationArduino Day 1 Presentation
Arduino Day 1 Presentation
Yogendra Tamang
Ā 
Arduino experimenters guide hq
Arduino experimenters guide hqArduino experimenters guide hq
Arduino experimenters guide hq
Andreis Santos
Ā 
Arduino Model's
Arduino Model'sArduino Model's
Arduino Model's
Ali Izmir
Ā 
Arduino as an embedded industrial controller
Arduino as an embedded industrial controllerArduino as an embedded industrial controller
Arduino as an embedded industrial controller
Jose Luis Poza LujƔn
Ā 
Intro to Arduino.ppt
Intro to Arduino.pptIntro to Arduino.ppt
Intro to Arduino.ppt
jonathan Dietz
Ā 
IOTC08 The Arduino Platform
IOTC08 The Arduino PlatformIOTC08 The Arduino Platform
IOTC08 The Arduino Platform
Eoin Brazil
Ā 
Embedded system programming using Arduino microcontroller
Embedded system programming using Arduino microcontrollerEmbedded system programming using Arduino microcontroller
Embedded system programming using Arduino microcontroller
Arun Kumar
Ā 
Arduino Full Tutorial
Arduino Full TutorialArduino Full Tutorial
Arduino Full Tutorial
Akshay Sharma
Ā 
Arduino slides
Arduino slidesArduino slides
Arduino slides
sdcharle
Ā 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshop
atuline
Ā 
Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009
Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009
Arduino Lecture 4 - Interactive Media CS4062 Semester 2 2009
Eoin Brazil
Ā 
Arduino Programming Software Development
Arduino Programming Software DevelopmentArduino Programming Software Development
Arduino Programming Software Development
Sanjay Kumar
Ā 
Arduino tutorial
Arduino tutorialArduino tutorial
Arduino tutorial
HarikaReddy115
Ā 
Arduino for Beginners
Arduino for BeginnersArduino for Beginners
Arduino for Beginners
Sarwan Singh
Ā 
Arduino Day 1 Presentation
Arduino Day 1 PresentationArduino Day 1 Presentation
Arduino Day 1 Presentation
Yogendra Tamang
Ā 

Similar to Getting Started With Arduino_Tutorial (20)

Lecture 7
Lecture 7Lecture 7
Lecture 7
vishal choudhary
Ā 
Embedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptxEmbedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptx
aartis110
Ā 
arduino uno.pptx
arduino uno.pptxarduino uno.pptx
arduino uno.pptx
NeeladriBijayMisra
Ā 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
Jawaher Abdulwahab Fadhil
Ā 
aurduino-200107075953.pdf
aurduino-200107075953.pdfaurduino-200107075953.pdf
aurduino-200107075953.pdf
HebaEng
Ā 
Arduino: On-board components description, IDE and Programming
Arduino: On-board components description, IDE and Programming Arduino: On-board components description, IDE and Programming
Arduino: On-board components description, IDE and Programming
Pawan Dubey, PhD
Ā 
Fund. of IoT LAB - CO 252.pptx
Fund. of IoT LAB                  - CO 252.pptxFund. of IoT LAB                  - CO 252.pptx
Fund. of IoT LAB - CO 252.pptx
y22co015
Ā 
Report on arduino
Report on arduinoReport on arduino
Report on arduino
Ravi Phadtare
Ā 
Arduino Development For Beginners
Arduino Development For BeginnersArduino Development For Beginners
Arduino Development For Beginners
FTS seminar
Ā 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Damien Magoni
Ā 
Intro arduino
Intro arduinoIntro arduino
Intro arduino
MaLcom MooNwalker
Ā 
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCHWORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
hugoshan513
Ā 
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCHWORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
ijdpsjournal
Ā 
notes about Arduino
notes about Arduinonotes about Arduino
notes about Arduino
Hesham Elsherbieny
Ā 
Arduino
ArduinoArduino
Arduino
VigneshABME
Ā 
Embedded system application
Embedded system applicationEmbedded system application
Embedded system application
Dhruwank Vankawala
Ā 
INTRODUCTION_TO_ARDUINO uno, applications
INTRODUCTION_TO_ARDUINO uno, applicationsINTRODUCTION_TO_ARDUINO uno, applications
INTRODUCTION_TO_ARDUINO uno, applications
ssuser478d0e
Ā 
Introduction to Arduino (Parts of Arduino Microcontroller) .pptx
Introduction to Arduino (Parts of Arduino Microcontroller) .pptxIntroduction to Arduino (Parts of Arduino Microcontroller) .pptx
Introduction to Arduino (Parts of Arduino Microcontroller) .pptx
JhonatanGarciaMendez
Ā 
Q2 Arduino Draft Q2 Arduino Draft Q2 Arduino Draft
Q2 Arduino Draft Q2 Arduino Draft Q2 Arduino DraftQ2 Arduino Draft Q2 Arduino Draft Q2 Arduino Draft
Q2 Arduino Draft Q2 Arduino Draft Q2 Arduino Draft
Kameshvra Dela Cruz
Ā 
Oop 2014 embedded systems with open source hardware v2
Oop 2014 embedded systems with open source hardware v2Oop 2014 embedded systems with open source hardware v2
Oop 2014 embedded systems with open source hardware v2
Michael Stal
Ā 
Embedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptxEmbedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptx
aartis110
Ā 
aurduino-200107075953.pdf
aurduino-200107075953.pdfaurduino-200107075953.pdf
aurduino-200107075953.pdf
HebaEng
Ā 
Arduino: On-board components description, IDE and Programming
Arduino: On-board components description, IDE and Programming Arduino: On-board components description, IDE and Programming
Arduino: On-board components description, IDE and Programming
Pawan Dubey, PhD
Ā 
Fund. of IoT LAB - CO 252.pptx
Fund. of IoT LAB                  - CO 252.pptxFund. of IoT LAB                  - CO 252.pptx
Fund. of IoT LAB - CO 252.pptx
y22co015
Ā 
Report on arduino
Report on arduinoReport on arduino
Report on arduino
Ravi Phadtare
Ā 
Arduino Development For Beginners
Arduino Development For BeginnersArduino Development For Beginners
Arduino Development For Beginners
FTS seminar
Ā 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Damien Magoni
Ā 
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCHWORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
hugoshan513
Ā 
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCHWORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
WORKING PRINCIPLE OF ARDUINO AND USING IT AS A TOOL FOR STUDY AND RESEARCH
ijdpsjournal
Ā 
Embedded system application
Embedded system applicationEmbedded system application
Embedded system application
Dhruwank Vankawala
Ā 
INTRODUCTION_TO_ARDUINO uno, applications
INTRODUCTION_TO_ARDUINO uno, applicationsINTRODUCTION_TO_ARDUINO uno, applications
INTRODUCTION_TO_ARDUINO uno, applications
ssuser478d0e
Ā 
Introduction to Arduino (Parts of Arduino Microcontroller) .pptx
Introduction to Arduino (Parts of Arduino Microcontroller) .pptxIntroduction to Arduino (Parts of Arduino Microcontroller) .pptx
Introduction to Arduino (Parts of Arduino Microcontroller) .pptx
JhonatanGarciaMendez
Ā 
Q2 Arduino Draft Q2 Arduino Draft Q2 Arduino Draft
Q2 Arduino Draft Q2 Arduino Draft Q2 Arduino DraftQ2 Arduino Draft Q2 Arduino Draft Q2 Arduino Draft
Q2 Arduino Draft Q2 Arduino Draft Q2 Arduino Draft
Kameshvra Dela Cruz
Ā 
Oop 2014 embedded systems with open source hardware v2
Oop 2014 embedded systems with open source hardware v2Oop 2014 embedded systems with open source hardware v2
Oop 2014 embedded systems with open source hardware v2
Michael Stal
Ā 
Ad

More from NYCCTfab (20)

Fusion 360 Tutorial
Fusion 360 TutorialFusion 360 Tutorial
Fusion 360 Tutorial
NYCCTfab
Ā 
Citytech HTML/CSS Guide
Citytech HTML/CSS GuideCitytech HTML/CSS Guide
Citytech HTML/CSS Guide
NYCCTfab
Ā 
Ultimaker 2+
Ultimaker 2+Ultimaker 2+
Ultimaker 2+
NYCCTfab
Ā 
Robot Studio
Robot StudioRobot Studio
Robot Studio
NYCCTfab
Ā 
Roland Primer 3D Scanner
Roland Primer 3D ScannerRoland Primer 3D Scanner
Roland Primer 3D Scanner
NYCCTfab
Ā 
Lighting with Photoshop
Lighting with PhotoshopLighting with Photoshop
Lighting with Photoshop
NYCCTfab
Ā 
Fusion 360 Tutorial
Fusion 360 TutorialFusion 360 Tutorial
Fusion 360 Tutorial
NYCCTfab
Ā 
Architectural diagrams
Architectural diagramsArchitectural diagrams
Architectural diagrams
NYCCTfab
Ā 
Advanced Techniques in Photoshop
Advanced Techniques in PhotoshopAdvanced Techniques in Photoshop
Advanced Techniques in Photoshop
NYCCTfab
Ā 
Adobe Premiere Pro
Adobe Premiere ProAdobe Premiere Pro
Adobe Premiere Pro
NYCCTfab
Ā 
VRay Lighting for Rhino
VRay Lighting for RhinoVRay Lighting for Rhino
VRay Lighting for Rhino
NYCCTfab
Ā 
Adobe Illustrator CC 2018
Adobe Illustrator CC 2018 Adobe Illustrator CC 2018
Adobe Illustrator CC 2018
NYCCTfab
Ā 
Silicone Mold Primer
Silicone Mold PrimerSilicone Mold Primer
Silicone Mold Primer
NYCCTfab
Ā 
Presentation Board Layout
Presentation Board Layout Presentation Board Layout
Presentation Board Layout
NYCCTfab
Ā 
CPD Dental Cam Primer
CPD Dental Cam PrimerCPD Dental Cam Primer
CPD Dental Cam Primer
NYCCTfab
Ā 
Temperature and Light Logger (UA-002-64)
Temperature and Light Logger (UA-002-64)Temperature and Light Logger (UA-002-64)
Temperature and Light Logger (UA-002-64)
NYCCTfab
Ā 
Telaire CO2 Sensor (Tel-7001)
Telaire CO2 Sensor (Tel-7001)Telaire CO2 Sensor (Tel-7001)
Telaire CO2 Sensor (Tel-7001)
NYCCTfab
Ā 
UX90-002 Light & Occupancy Logger
UX90-002 Light & Occupancy LoggerUX90-002 Light & Occupancy Logger
UX90-002 Light & Occupancy Logger
NYCCTfab
Ā 
Light Meter (LM-120)
Light Meter (LM-120)Light Meter (LM-120)
Light Meter (LM-120)
NYCCTfab
Ā 
Temperature and Relative Humidity Ext
Temperature and Relative Humidity ExtTemperature and Relative Humidity Ext
Temperature and Relative Humidity Ext
NYCCTfab
Ā 
Fusion 360 Tutorial
Fusion 360 TutorialFusion 360 Tutorial
Fusion 360 Tutorial
NYCCTfab
Ā 
Citytech HTML/CSS Guide
Citytech HTML/CSS GuideCitytech HTML/CSS Guide
Citytech HTML/CSS Guide
NYCCTfab
Ā 
Ultimaker 2+
Ultimaker 2+Ultimaker 2+
Ultimaker 2+
NYCCTfab
Ā 
Robot Studio
Robot StudioRobot Studio
Robot Studio
NYCCTfab
Ā 
Roland Primer 3D Scanner
Roland Primer 3D ScannerRoland Primer 3D Scanner
Roland Primer 3D Scanner
NYCCTfab
Ā 
Lighting with Photoshop
Lighting with PhotoshopLighting with Photoshop
Lighting with Photoshop
NYCCTfab
Ā 
Fusion 360 Tutorial
Fusion 360 TutorialFusion 360 Tutorial
Fusion 360 Tutorial
NYCCTfab
Ā 
Architectural diagrams
Architectural diagramsArchitectural diagrams
Architectural diagrams
NYCCTfab
Ā 
Advanced Techniques in Photoshop
Advanced Techniques in PhotoshopAdvanced Techniques in Photoshop
Advanced Techniques in Photoshop
NYCCTfab
Ā 
Adobe Premiere Pro
Adobe Premiere ProAdobe Premiere Pro
Adobe Premiere Pro
NYCCTfab
Ā 
VRay Lighting for Rhino
VRay Lighting for RhinoVRay Lighting for Rhino
VRay Lighting for Rhino
NYCCTfab
Ā 
Adobe Illustrator CC 2018
Adobe Illustrator CC 2018 Adobe Illustrator CC 2018
Adobe Illustrator CC 2018
NYCCTfab
Ā 
Silicone Mold Primer
Silicone Mold PrimerSilicone Mold Primer
Silicone Mold Primer
NYCCTfab
Ā 
Presentation Board Layout
Presentation Board Layout Presentation Board Layout
Presentation Board Layout
NYCCTfab
Ā 
CPD Dental Cam Primer
CPD Dental Cam PrimerCPD Dental Cam Primer
CPD Dental Cam Primer
NYCCTfab
Ā 
Temperature and Light Logger (UA-002-64)
Temperature and Light Logger (UA-002-64)Temperature and Light Logger (UA-002-64)
Temperature and Light Logger (UA-002-64)
NYCCTfab
Ā 
Telaire CO2 Sensor (Tel-7001)
Telaire CO2 Sensor (Tel-7001)Telaire CO2 Sensor (Tel-7001)
Telaire CO2 Sensor (Tel-7001)
NYCCTfab
Ā 
UX90-002 Light & Occupancy Logger
UX90-002 Light & Occupancy LoggerUX90-002 Light & Occupancy Logger
UX90-002 Light & Occupancy Logger
NYCCTfab
Ā 
Light Meter (LM-120)
Light Meter (LM-120)Light Meter (LM-120)
Light Meter (LM-120)
NYCCTfab
Ā 
Temperature and Relative Humidity Ext
Temperature and Relative Humidity ExtTemperature and Relative Humidity Ext
Temperature and Relative Humidity Ext
NYCCTfab
Ā 
Ad

Recently uploaded (20)

Measuring Microsoft 365 Copilot and Gen AI Success
Measuring Microsoft 365 Copilot and Gen AI SuccessMeasuring Microsoft 365 Copilot and Gen AI Success
Measuring Microsoft 365 Copilot and Gen AI Success
Nikki Chapple
Ā 
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Nikki Chapple
Ā 
The case for on-premises AI
The case for on-premises AIThe case for on-premises AI
The case for on-premises AI
Principled Technologies
Ā 
Jira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : IntroductionJira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : Introduction
Ravi Teja
Ā 
Introducing FME Realize: A New Era of Spatial Computing and AR
Introducing FME Realize: A New Era of Spatial Computing and ARIntroducing FME Realize: A New Era of Spatial Computing and AR
Introducing FME Realize: A New Era of Spatial Computing and AR
Safe Software
Ā 
LSNIF: Locally-Subdivided Neural Intersection Function
LSNIF: Locally-Subdivided Neural Intersection FunctionLSNIF: Locally-Subdivided Neural Intersection Function
LSNIF: Locally-Subdivided Neural Intersection Function
Takahiro Harada
Ā 
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
End-to-end Assurance for SD-WAN & SASE with ThousandEyesEnd-to-end Assurance for SD-WAN & SASE with ThousandEyes
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
ThousandEyes
Ā 
SDG 9000 Series: Unleashing multigigabit everywhere
SDG 9000 Series: Unleashing multigigabit everywhereSDG 9000 Series: Unleashing multigigabit everywhere
SDG 9000 Series: Unleashing multigigabit everywhere
Adtran
Ā 
Microsoft Build 2025 takeaways in one presentation
Microsoft Build 2025 takeaways in one presentationMicrosoft Build 2025 takeaways in one presentation
Microsoft Build 2025 takeaways in one presentation
Digitalmara
Ā 
Palo Alto Networks Cybersecurity Foundation
Palo Alto Networks Cybersecurity FoundationPalo Alto Networks Cybersecurity Foundation
Palo Alto Networks Cybersecurity Foundation
VICTOR MAESTRE RAMIREZ
Ā 
Improving Developer Productivity With DORA, SPACE, and DevEx
Improving Developer Productivity With DORA, SPACE, and DevExImproving Developer Productivity With DORA, SPACE, and DevEx
Improving Developer Productivity With DORA, SPACE, and DevEx
Justin Reock
Ā 
Supercharge Your AI Development with Local LLMs
Supercharge Your AI Development with Local LLMsSupercharge Your AI Development with Local LLMs
Supercharge Your AI Development with Local LLMs
Francesco Corti
Ā 
TrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy ContractingTrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy Contracting
TrustArc
Ā 
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk TechniciansOffshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
john823664
Ā 
Kubernetes Cloud Native Indonesia Meetup - May 2025
Kubernetes Cloud Native Indonesia Meetup - May 2025Kubernetes Cloud Native Indonesia Meetup - May 2025
Kubernetes Cloud Native Indonesia Meetup - May 2025
Prasta Maha
Ā 
Cognitive Chasms - A Typology of GenAI Failure Failure Modes
Cognitive Chasms - A Typology of GenAI Failure Failure ModesCognitive Chasms - A Typology of GenAI Failure Failure Modes
Cognitive Chasms - A Typology of GenAI Failure Failure Modes
Dr. Tathagat Varma
Ā 
Evaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical ContentEvaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical Content
Paul Groth
Ā 
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Lorenzo Miniero
Ā 
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptxECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
Jasper Oosterveld
Ā 
Agentic AI - The New Era of Intelligence
Agentic AI - The New Era of IntelligenceAgentic AI - The New Era of Intelligence
Agentic AI - The New Era of Intelligence
Muzammil Shah
Ā 
Measuring Microsoft 365 Copilot and Gen AI Success
Measuring Microsoft 365 Copilot and Gen AI SuccessMeasuring Microsoft 365 Copilot and Gen AI Success
Measuring Microsoft 365 Copilot and Gen AI Success
Nikki Chapple
Ā 
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Nikki Chapple
Ā 
Jira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : IntroductionJira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : Introduction
Ravi Teja
Ā 
Introducing FME Realize: A New Era of Spatial Computing and AR
Introducing FME Realize: A New Era of Spatial Computing and ARIntroducing FME Realize: A New Era of Spatial Computing and AR
Introducing FME Realize: A New Era of Spatial Computing and AR
Safe Software
Ā 
LSNIF: Locally-Subdivided Neural Intersection Function
LSNIF: Locally-Subdivided Neural Intersection FunctionLSNIF: Locally-Subdivided Neural Intersection Function
LSNIF: Locally-Subdivided Neural Intersection Function
Takahiro Harada
Ā 
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
End-to-end Assurance for SD-WAN & SASE with ThousandEyesEnd-to-end Assurance for SD-WAN & SASE with ThousandEyes
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
ThousandEyes
Ā 
SDG 9000 Series: Unleashing multigigabit everywhere
SDG 9000 Series: Unleashing multigigabit everywhereSDG 9000 Series: Unleashing multigigabit everywhere
SDG 9000 Series: Unleashing multigigabit everywhere
Adtran
Ā 
Microsoft Build 2025 takeaways in one presentation
Microsoft Build 2025 takeaways in one presentationMicrosoft Build 2025 takeaways in one presentation
Microsoft Build 2025 takeaways in one presentation
Digitalmara
Ā 
Palo Alto Networks Cybersecurity Foundation
Palo Alto Networks Cybersecurity FoundationPalo Alto Networks Cybersecurity Foundation
Palo Alto Networks Cybersecurity Foundation
VICTOR MAESTRE RAMIREZ
Ā 
Improving Developer Productivity With DORA, SPACE, and DevEx
Improving Developer Productivity With DORA, SPACE, and DevExImproving Developer Productivity With DORA, SPACE, and DevEx
Improving Developer Productivity With DORA, SPACE, and DevEx
Justin Reock
Ā 
Supercharge Your AI Development with Local LLMs
Supercharge Your AI Development with Local LLMsSupercharge Your AI Development with Local LLMs
Supercharge Your AI Development with Local LLMs
Francesco Corti
Ā 
TrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy ContractingTrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy Contracting
TrustArc
Ā 
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk TechniciansOffshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
john823664
Ā 
Kubernetes Cloud Native Indonesia Meetup - May 2025
Kubernetes Cloud Native Indonesia Meetup - May 2025Kubernetes Cloud Native Indonesia Meetup - May 2025
Kubernetes Cloud Native Indonesia Meetup - May 2025
Prasta Maha
Ā 
Cognitive Chasms - A Typology of GenAI Failure Failure Modes
Cognitive Chasms - A Typology of GenAI Failure Failure ModesCognitive Chasms - A Typology of GenAI Failure Failure Modes
Cognitive Chasms - A Typology of GenAI Failure Failure Modes
Dr. Tathagat Varma
Ā 
Evaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical ContentEvaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical Content
Paul Groth
Ā 
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Lorenzo Miniero
Ā 
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptxECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
Jasper Oosterveld
Ā 
Agentic AI - The New Era of Intelligence
Agentic AI - The New Era of IntelligenceAgentic AI - The New Era of Intelligence
Agentic AI - The New Era of Intelligence
Muzammil Shah
Ā 

Getting Started With Arduino_Tutorial

  • 1. Getting Started with Arduino Introduction to Physical Computing Edited by Alvaro Soto-Fernandez The City University of New York Architectural Technology Dept.
  • 2. Getting Started with Arduino 2 Introduction Arduino is an open-source physical computing platform for developing interactive devices that are able to sense the environment using sensors ( electronic components that convert real-world data into electrical signals), and interact with the world using actuators, electronic components that can convert electric signals into a physical action. Arduino is based on a simple micro-controller board, and a IDE (development environment) for writing software that controls the behavior of the board. Arduino projects can be standalone, or they can communicate with other software running on your computer (e.g. Grasshopper, Processing, Flash, etc). The open- source (and cross-platform) IDE can be downloaded for free at www.arduino.cc.
  • 3. Getting Started with Arduino 3 The Hardware The Arduino board Fig. 1 is a small microcontroller board (circuit) manufactured by the Arduino Corporation, that contains a whole computer on a small chip, the ATmega168, which is less powerful than new computers, but cheaper and very useful for prototyping and to build interactive devices. The Arduino Corporation is not alone in the development of user-friendly microcontroller platforms. Here are some reasons why you might choose Arduino over its ā€œcompetitorsā€: 1. Open-source - (you can download the circuit diagram, buy all the components, and make your own). 2. Cross-platform (works well on both PC and Macintosh) 3. Inexpensive (around $30) 4. Already established techniques of interfacing with popular software environments. 5. A large community of users (great technical support). Fig. 1 -Arduino prototyping board
  • 4. Getting Started with Arduino 4 The Hardware The Arduino team have placed on the board all the components (resistors, capacitors, regulators, etc_ that are required for this microcontroller to work properly and to communicate with other computers. The most often used elements of this hardware interface are highlighted in Fig 2. • DC Power In: This is a plug that accepts a 2.1mm barrel with a positive tip (center positive). The Arduino board will happily accept any voltage between 7-12 and a current between 100- 500mA. 9V batteries (with the appropriate barrel adaptor) are acceptable. • USB: Universal Serial Bus is used to communicate in both directions between Arduino and a computer. When in use, the USB port can also power the Arduino board, eliminating the need for an external DC power supply. • Power Out: When powered (either by DC supply or USB), the Arduino board provides regulated power outputs for the rest of your project (5v, 3.3v, and GND – 0 potential). • Atmel Chip: This chip is the brain of the Arduino board. It contains the Arduino ā€œbootloaderā€, which is essentially a program that runs on the chip that allows you to upload and run custom programs written by you to the chip. When you upload programs to the chip using the Arduino IDE, you are replacing your previously uploaded program and not the bootloader. The bootloader is ā€œpermanently burnedā€ to the chip’s memory (not really, but it takes more effort to remove the bootloader if you did want a completely blanks chip for some reason). Fig. 2 -Hardware Interface
  • 5. Getting Started with Arduino 5 The Hardware • Analog Pins: The Arduino Uno board has six analog pins for measuring continuous data from the outside world. By default, each pin measures voltage from 0v-5v and converts that voltage into a range of 0-1023 (10-bit resolution). Each pin is readable by your custom program uploaded onto the Atmel chip (if you instruct the program to do so). • Digital Pins: The Arduino Uno board has 14 digital pins that can be both read and written to. Digital pins measure voltage from 0v-5v but in contrast to analog pins, convert that measurement into a binary of either HIGH or LOW. High being 5v and low being 0v (or GROUND). Several specific digital pins can multipurpose for specialized tasks like serial communication (TX & RX) and Pulse Width Modulation (PWM). • Reset Button: This is a simple push button that when pressed tells your Arduino program to run again from the beginning (it does not erase the Atmel chip or your program).
  • 6. Getting Started with Arduino 6 The Software Interface The IDE (Integrated Development Environment) is an open-source program running on your computer that allows you to write sketches for the Arduino board in a simple language modeled after the Processing (www.processing.org) language. With this technology the Arduino replaces the need for hard wiring circuits from scratch with a software program which is easier to use than other programing languages and easier to modify than hardware alone. After you have installed (for detailed instruction on installation depending on your operating system, go here: http://arduino.cc/en/ Guide/HomePage ) and opened the Arduino IDE, Fig. 3 is what you will see. The Arduino IDE interface is very simple, there are four main parts (shown in Fig. 4): • Text Editor: This is the heart of the Arduino IDE and where you write your programs (Arduino calls them ā€œsketchesā€). • Console: This is where the IDE outputs information regarding your sketch (errors, upload status) • Tool Bar: These icons provide a shortcut to the most often used operations. From left to right they are ā€œVerify (check sketch for errors)ā€, ā€œUploadā€, ā€œNewā€, ā€œOpenā€, ā€œSaveā€, and ā€œSerial Monitor.ā€ • Menu Bar: The menu bar gives you access to all of the IDE’s functionality including some very important settings that should be adjusted before anything else. Fig. 3 -Arduino IDE Fig. 4 -Four main parts of Arduino IDE Menu Bar Tool Bar Text Editor Console
  • 7. Getting Started with Arduino 7 The Software Setting up the Arduino Board Once you have downloaded and installed the Arduino IDE, before uploading any sketch, make sure the IDE is setup to recognize the type of Arduino board you are planing to upload to. There are several types of Arduino boards that differ in size, circuitry, chip memory, number of I/O (In/Out) pins and add-on capabilities (e.g. Ethernet connectivity). Arduino UNO js the most recent simplify version of the board. Next, in order for the IDE to communicate with your board, you also have to select the correct Serial Port that your board is installed on. Select your Arduino board from Tools > Board (ad shown in Fig, 5), and the line of communication on which it is installed from Tools > Serial Port (select the port that begins with / dev/cu.usbserial-). Now you can Start programing. Fig. 5 -Setting up the Arduino Board
  • 8. Getting Started with Arduino 8 The Software Setting up the Sketchbook Folder However, before you write your first sketch, you should know the location of your ā€œSketchbook.ā€ Each sketch you write is automatically saved in a folder of the same name, and these sketch folders as a collection are stored in another folder called a sketchbook. The location of your sketchbook can be set in your Arduino preferences in the menu bar under File > Preferences (as shown in Fig. 6). Now you can quickly access any sketch you have written in the menu bar under File > Sketchbook. Fig. 6 -Setting up the Sketchbook Folder
  • 9. Getting Started with Arduino 9 Run Your First Sketch Blinking LED The LED blinking sketch, found in FIle > Examples > Basic > Blink, is the first program you should run to test whether your Arduino board is working and is configured correctly. This sketch is also very useful for starters to learn how to program the microcontroller. A light-emitting diode (LED), is an electronic component more efficient than a light bulb and requires lower voltages to operate. The Arduino board comes with an LED preinstalled, you can also add your own LED to pin 13 and ground. FIg. 7 Fig. 7 -LED to Pin 13