SlideShare una empresa de Scribd logo
1 de 9
Descargar para leer sin conexión
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

Más contenido relacionado

La actualidad más candente

Arduino experimenters guide hq
Arduino experimenters guide hqArduino experimenters guide hq
Arduino experimenters guide hqAndreis Santos
 
Arduino Model's
Arduino Model'sArduino Model's
Arduino Model'sAli Izmir
 
Arduino as an embedded industrial controller
Arduino as an embedded industrial controllerArduino as an embedded industrial controller
Arduino as an embedded industrial controllerJose Luis Poza Luján
 
IOTC08 The Arduino Platform
IOTC08 The Arduino PlatformIOTC08 The Arduino Platform
IOTC08 The Arduino PlatformEoin Brazil
 
Embedded system programming using Arduino microcontroller
Embedded system programming using Arduino microcontrollerEmbedded system programming using Arduino microcontroller
Embedded system programming using Arduino microcontrollerArun Kumar
 
Arduino Full Tutorial
Arduino Full TutorialArduino Full Tutorial
Arduino Full TutorialAkshay Sharma
 
Arduino slides
Arduino slidesArduino slides
Arduino slidessdcharle
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshopatuline
 
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 2009Eoin Brazil
 
Arduino Programming Software Development
Arduino Programming Software DevelopmentArduino Programming Software Development
Arduino Programming Software DevelopmentSanjay Kumar
 
Arduino for Beginners
Arduino for BeginnersArduino for Beginners
Arduino for BeginnersSarwan Singh
 
Arduino Day 1 Presentation
Arduino Day 1 PresentationArduino Day 1 Presentation
Arduino Day 1 PresentationYogendra Tamang
 

La actualidad más candente (20)

Arduino experimenters guide hq
Arduino experimenters guide hqArduino experimenters guide hq
Arduino experimenters guide hq
 
Arduino Model's
Arduino Model'sArduino Model's
Arduino Model's
 
Arduino as an embedded industrial controller
Arduino as an embedded industrial controllerArduino as an embedded industrial controller
Arduino as an embedded industrial controller
 
Intro to Arduino.ppt
Intro to Arduino.pptIntro to Arduino.ppt
Intro to Arduino.ppt
 
Fun with arduino
Fun with arduinoFun with arduino
Fun with arduino
 
Ardunio
ArdunioArdunio
Ardunio
 
Ardui no
Ardui no Ardui no
Ardui no
 
Arduino 101
Arduino 101Arduino 101
Arduino 101
 
Arduino
ArduinoArduino
Arduino
 
IOTC08 The Arduino Platform
IOTC08 The Arduino PlatformIOTC08 The Arduino Platform
IOTC08 The Arduino Platform
 
Embedded system programming using Arduino microcontroller
Embedded system programming using Arduino microcontrollerEmbedded system programming using Arduino microcontroller
Embedded system programming using Arduino microcontroller
 
Arduino Full Tutorial
Arduino Full TutorialArduino Full Tutorial
Arduino Full Tutorial
 
Arduino course
Arduino courseArduino course
Arduino course
 
Arduino slides
Arduino slidesArduino slides
Arduino slides
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshop
 
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
 
Arduino Programming Software Development
Arduino Programming Software DevelopmentArduino Programming Software Development
Arduino Programming Software Development
 
Arduino tutorial
Arduino tutorialArduino tutorial
Arduino tutorial
 
Arduino for Beginners
Arduino for BeginnersArduino for Beginners
Arduino for Beginners
 
Arduino Day 1 Presentation
Arduino Day 1 PresentationArduino Day 1 Presentation
Arduino Day 1 Presentation
 

Similar a Getting Started With Arduino_Tutorial

Embedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptxEmbedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptxaartis110
 
aurduino-200107075953.pdf
aurduino-200107075953.pdfaurduino-200107075953.pdf
aurduino-200107075953.pdfHebaEng
 
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
 
Arduino Development For Beginners
Arduino Development For BeginnersArduino Development For Beginners
Arduino Development For BeginnersFTS seminar
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to ArduinoDamien 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 RESEARCHijdpsjournal
 
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 v2Michael Stal
 
Arduino and Circuits.docx
Arduino and Circuits.docxArduino and Circuits.docx
Arduino and Circuits.docxAjay578679
 
Introduction to arduino ppt main
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt maineddy royappa
 
Getting startedwitharduino ch04
Getting startedwitharduino ch04Getting startedwitharduino ch04
Getting startedwitharduino ch04Anil Yadav
 

Similar a Getting Started With Arduino_Tutorial (20)

Lecture 7
Lecture 7Lecture 7
Lecture 7
 
Embedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptxEmbedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptx
 
arduino uno.pptx
arduino uno.pptxarduino uno.pptx
arduino uno.pptx
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 
aurduino-200107075953.pdf
aurduino-200107075953.pdfaurduino-200107075953.pdf
aurduino-200107075953.pdf
 
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
 
Report on arduino
Report on arduinoReport on arduino
Report on arduino
 
Arduino Development For Beginners
Arduino Development For BeginnersArduino Development For Beginners
Arduino Development For Beginners
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Intro arduino
Intro arduinoIntro arduino
Intro arduino
 
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
 
notes about Arduino
notes about Arduinonotes about Arduino
notes about Arduino
 
Arduino
ArduinoArduino
Arduino
 
Embedded system application
Embedded system applicationEmbedded system application
Embedded system application
 
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
 
Arduino and Circuits.docx
Arduino and Circuits.docxArduino and Circuits.docx
Arduino and Circuits.docx
 
Introduction to arduino ppt main
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt main
 
raushan
raushanraushan
raushan
 
Getting startedwitharduino ch04
Getting startedwitharduino ch04Getting startedwitharduino ch04
Getting startedwitharduino ch04
 
Arduino
ArduinoArduino
Arduino
 

Más de NYCCTfab

Fusion 360 Tutorial
Fusion 360 TutorialFusion 360 Tutorial
Fusion 360 TutorialNYCCTfab
 
Citytech HTML/CSS Guide
Citytech HTML/CSS GuideCitytech HTML/CSS Guide
Citytech HTML/CSS GuideNYCCTfab
 
Ultimaker 2+
Ultimaker 2+Ultimaker 2+
Ultimaker 2+NYCCTfab
 
Robot Studio
Robot StudioRobot Studio
Robot StudioNYCCTfab
 
Roland Primer 3D Scanner
Roland Primer 3D ScannerRoland Primer 3D Scanner
Roland Primer 3D ScannerNYCCTfab
 
Lighting with Photoshop
Lighting with PhotoshopLighting with Photoshop
Lighting with PhotoshopNYCCTfab
 
Fusion 360 Tutorial
Fusion 360 TutorialFusion 360 Tutorial
Fusion 360 TutorialNYCCTfab
 
Architectural diagrams
Architectural diagramsArchitectural diagrams
Architectural diagramsNYCCTfab
 
Advanced Techniques in Photoshop
Advanced Techniques in PhotoshopAdvanced Techniques in Photoshop
Advanced Techniques in PhotoshopNYCCTfab
 
Adobe Premiere Pro
Adobe Premiere ProAdobe Premiere Pro
Adobe Premiere ProNYCCTfab
 
VRay Lighting for Rhino
VRay Lighting for RhinoVRay Lighting for Rhino
VRay Lighting for RhinoNYCCTfab
 
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 PrimerNYCCTfab
 
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 PrimerNYCCTfab
 
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 LoggerNYCCTfab
 
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 ExtNYCCTfab
 

Más de NYCCTfab (20)

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

Último

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 

Último (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 

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