SlideShare a Scribd company logo
Intro to Arduino Class	

!
Deezmaker 3D Printer Store and Hackerspace	

Taught by Quin Etnyre	

July 26, 2014
Thank you to SparkFun for sharing
the original presentation!
What is Open Source?
• Release your design files to the public	

• Free access for anyone who wants to learn	

• Everyone gains knowledge, companies or
hobbyists	

• You are able to remake/remix the project to suit
your own needs	

• When you credit the original designer
What is the Arduino?
Intended for anyone to create interactive projects	

“Strong Friend” Created in Ivrea, Italy 	

in 2005 by Massimo Banzi & David Cuartielles	

Open Source Hardware	

Atmel 8-Bit Processor	

Coding is easy for anyone to learn
Why do I want an Arduino?
Arduino is a 8-bit prototyping system that is
easy for the modern developer, designer, hacker,
kid, or someone that has no experience in this
type of genre to use.	

!
But why is important to all of us?
Schedule
• Introduction to Arduino and Installing Software	

• Project 1	

• Electronics Concepts	

• Project 2	

• Arduino IDE in Depth	

• Project 3	

• Break	

• Project 4	

• Explaining More Code	

• Project 5, 6, & 7	

• ProjectTime with more ArduSensors
Kit Contents
Intro to Arduino Revision #2
Arduino IDE
The Arduino IDE (Integrated Development
Environment) is where we develop our code,
and upload the code to the Arduino Leonardo
board. You can download the latest software
here:	

!
Arduino 1.0.5: 	

bit.ly/arduinoide
Downloading Code
!
bit.ly/deezmakercode	

!
Put the downloaded folder on your
desktop
Arduino Drivers
Mac:	

 	

 	

 	

 	

 	

 	

 	

 	

 Click Red ‘X’	

!
!
Windows XP / 7 / 8:	

!
!
!
Windows XP / 7 Secondary Option: http://bit.ly/
arduino-windows
Intro to Arduino Revision #2
Intro to Arduino Revision #2
Board Type
Serial Port / COM Port
Which COM/Serial Port?
Mac: /dev/tty.usbmodemfd131
!
Interchangeable #: 
!
Windows: COM#
Device Manager:
!
Start>Control
Panel>System &
Security>Device 
Manager>Ports
What’s a Breadboard?
Circuit 1: Basic Blink
19
Add more LEDs!
Arduino Shields
LCDTouch RGB LED WiFi
ArduSensors - ‘Mini Shields’
Concepts of Electronics
• Polarity	

• Power /Voltage and Ground	

• Analog and Digital	

• Inputs and Outputs	

• PWM	

• Arduino IDE Review	

• Analog Inputs
Polarity
Polarity is when there are two or more different
sides (or leads) of a component that have
different qualities that can not be reversed.	

!
Examples: batteries, LEDs, buttons
Power / Voltage and Ground
(GND)
Use only 5V or 3.3V in your projects
Power
+
-
Circuit
Analog and Digital
• All Arduino signals are either Analog or Digital 	

• All computers can only understand Digital	

• Digital Pins D0 - D13 on Arduino	

• Special pins that are ADC enabled (analog to
digital converter) we can connect sensors to	

• Analog Pins A0 - A5 on Arduino
I/O, or Input/Output
Input is any signal 	

entering an electrical 	

system/Arduino.	

!
Output is any signal 	

exiting an electrical 	

system.
Output
Output is always Digital	

!
To Output a Digital signal (On or Off) use this code: 	

	

!
digitalWrite (pinNumber, value);
!
Where value is HIGH (on) or LOW (off), both in caps
Output
To ‘Fade’ an LED or to output a voltage in-between 0V and 5V,
use PWM	

!
Use this code to output an ‘analog’ signal:	

analogWrite (pinNumber, value); 	

Where value is a number 0 - 255. (0V to 5V)	

!
PWM is available on Arduino Leonardo digital pins 3, 5, 6, 9,
10, 11, and 13, and marked with a ‘~’.
Output
Output is always Digital, even when it’s P.W.M.
!
For P.W.M. the Arduino pin turns on, then off very fast
!
!
P.W.M. Signal @ 25%
 
 
 P.W.M. Signal @ 75%

 P.W.M. Signal
rising
Circuit 2:
31
Arduino IDE in Depth
• Parts of the Sketch	

• setup()	

• loop()	

• Comments	

• Analog Input
Parts of the Sketch
void setup() {}
34
!
!
void loop ( ) { }
!
!
!
!
!
!
!
!
Example of Comment:
Comments
• Comments are ignored by the compiler/
verifier	

• Comments can be anywhere	

• Starts with a // for a one-line comment 	

• Starts with a /* and ends with a */ for a
multiple-line comment	

• Great ways to remind you what you did, teach
other people what that code means
Analog Input
• To connect an analog Input to your Arduino, use
Analog Pins #A0 - A5	

!
• To get an analog reading, use the code: 	

	

 analogRead(pinNumber);	

!
• Analog Input varies from 0 to 1023 on an Arduino
Circuit 3: Analog Reading
Intro to Arduino Revision #2
Break
Digital Sensors/Digital Input
• Digital Input could be a switch or a button	

• To connect digital input to your Arduino use Digital
Pins # D0 – D13	

• Digital Input needs a pinMode command (in setup):	

	

 pinMode(pinNumber, INPUT); 	

	

 Make sure to use caps for INPUT	

• To get a digital reading: digitalRead(pinNumber);	

• Digital Input values are only HIGH (On) or LOW
(Off)
Digital Sensors/Digital Input
• Digital sensors are more straight forward than
Analog	

!
• No matter what the sensor, there are only two
settings: On and Off	

!
• Voltage signal for LOW (off) will be 0V, and HIGH
(on) will be 5V
Parts for Circuit 4:
Arduino Leonardo	

Breadboard	

Pushbutton (2)	

LED (2)	

Resistor - 10K Ohm (2)	

Resistor - 330 Ohm (2)	

Jumper Wires
Circuit 4: Buttons
Intro to Arduino Revision #2
`
Intro to Arduino Revision #2
Operators
The equals sign	

!
= is used to assign a value	

!
== is used to compare values	

!
&& is “and”	

!
|| is “or”
Variables
Basic variable types:	

!
Boolean (on or off)	

Integer (a number)	

Character (a letter)	

String (a phrase)
Declaring Variables
Boolean: boolean variableName;	

!
Integer: int variableName;	

!
Character: char variableName;	

String: stringName [ ];
Assigning Variables
Boolean: variableName = true;	

or variableName = false;
Assigning Variables
Boolean: variableName = true;	

or variableName = false;	

Integer: variableName = 32767;	

or variableName = -32768;
Assigning Variables
Boolean: variableName = true;	

or variableName = false;	

Integer: variableName = 32767;	

or variableName = -32768;	

Character: variableName = ‘A’;	

or stringName = “Deezmaker”;
Circuit 5: ArduSensor + LED
Intro to Arduino Revision #2
Setup

void setup ( ) { 

pinMode (13, OUTPUT); }
!
!
!
Inputs & Outputs are declared in
setup, this is done by using the
pinMode function
This particular example declares digital pin # 13 as
an output, remember to use CAPS
!
!
If Statements
if ( this is true ) { do this; }
!
!
!
!
!
!
Basic Repetition
!
for (int count = 0; count<10; count++)
{
//for action code goes here
//this could be anything
}
Circuit 6: LED Bounce
Intro to Arduino Revision #2
Intro to Arduino Revision #2
Circuit 7: Meter
Intro to Arduino Revision #2
Intro to Arduino Revision #2
ProjectTime with more
ArduSensors
Ad

More Related Content

What's hot (20)

Arduino learning
Arduino   learningArduino   learning
Arduino learning
Anil Yadav
 
Arduino slides
Arduino slidesArduino slides
Arduino slides
sdcharle
 
Arduino spooky projects_class1
Arduino spooky projects_class1Arduino spooky projects_class1
Arduino spooky projects_class1
Felipe Belarmino
 
IOTC08 The Arduino Platform
IOTC08 The Arduino PlatformIOTC08 The Arduino Platform
IOTC08 The Arduino Platform
Eoin Brazil
 
Arduino electronics cookbook
Arduino electronics cookbookArduino electronics cookbook
Arduino electronics cookbook
Felipe Belarmino
 
From Arduino to LinnStrument
From Arduino to LinnStrumentFrom Arduino to LinnStrument
From Arduino to LinnStrument
Geert Bevin
 
Porte à puce - Automatic Door based on Arduino UNO R3
Porte à puce - Automatic Door based on Arduino UNO R3Porte à puce - Automatic Door based on Arduino UNO R3
Porte à puce - Automatic Door based on Arduino UNO R3
Meifani Sumadijaya
 
Introduction to Arduino Programming
Introduction to Arduino ProgrammingIntroduction to Arduino Programming
Introduction to Arduino Programming
James Lewis
 
Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors B...
Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors  B...Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors  B...
Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors B...
Faqih Fadhila Ardiansyah
 
Porte à puce - Smart Safety Door based on Arduino UNO R3
Porte à puce - Smart Safety Door based on Arduino UNO R3Porte à puce - Smart Safety Door based on Arduino UNO R3
Porte à puce - Smart Safety Door based on Arduino UNO R3
Meifani Sumadijaya
 
Cassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshopCassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshop
tomtobback
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino Microcontroller
Mujahid Hussain
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Luki B. Subekti
 
Arduino Day 1 Presentation
Arduino Day 1 PresentationArduino Day 1 Presentation
Arduino Day 1 Presentation
Yogendra Tamang
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
Ahmed Sakr
 
Arduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the ArduinoArduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the Arduino
Eoin Brazil
 
Arduino
ArduinoArduino
Arduino
Jerin John
 
Getting startedwitharduino ch04
Getting startedwitharduino ch04Getting startedwitharduino ch04
Getting startedwitharduino ch04
Anil Yadav
 
02 General Purpose Input - Output on the Arduino
02   General Purpose Input -  Output on the Arduino02   General Purpose Input -  Output on the Arduino
02 General Purpose Input - Output on the Arduino
Wingston
 
Arduino 8-step drum sequencer 3 channels
Arduino 8-step drum sequencer 3 channelsArduino 8-step drum sequencer 3 channels
Arduino 8-step drum sequencer 3 channels
tomtobback
 
Arduino learning
Arduino   learningArduino   learning
Arduino learning
Anil Yadav
 
Arduino slides
Arduino slidesArduino slides
Arduino slides
sdcharle
 
Arduino spooky projects_class1
Arduino spooky projects_class1Arduino spooky projects_class1
Arduino spooky projects_class1
Felipe Belarmino
 
IOTC08 The Arduino Platform
IOTC08 The Arduino PlatformIOTC08 The Arduino Platform
IOTC08 The Arduino Platform
Eoin Brazil
 
Arduino electronics cookbook
Arduino electronics cookbookArduino electronics cookbook
Arduino electronics cookbook
Felipe Belarmino
 
From Arduino to LinnStrument
From Arduino to LinnStrumentFrom Arduino to LinnStrument
From Arduino to LinnStrument
Geert Bevin
 
Porte à puce - Automatic Door based on Arduino UNO R3
Porte à puce - Automatic Door based on Arduino UNO R3Porte à puce - Automatic Door based on Arduino UNO R3
Porte à puce - Automatic Door based on Arduino UNO R3
Meifani Sumadijaya
 
Introduction to Arduino Programming
Introduction to Arduino ProgrammingIntroduction to Arduino Programming
Introduction to Arduino Programming
James Lewis
 
Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors B...
Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors  B...Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors  B...
Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors B...
Faqih Fadhila Ardiansyah
 
Porte à puce - Smart Safety Door based on Arduino UNO R3
Porte à puce - Smart Safety Door based on Arduino UNO R3Porte à puce - Smart Safety Door based on Arduino UNO R3
Porte à puce - Smart Safety Door based on Arduino UNO R3
Meifani Sumadijaya
 
Cassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshopCassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshop
tomtobback
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino Microcontroller
Mujahid Hussain
 
Arduino Day 1 Presentation
Arduino Day 1 PresentationArduino Day 1 Presentation
Arduino Day 1 Presentation
Yogendra Tamang
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
Ahmed Sakr
 
Arduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the ArduinoArduino Lecture 1 - Introducing the Arduino
Arduino Lecture 1 - Introducing the Arduino
Eoin Brazil
 
Getting startedwitharduino ch04
Getting startedwitharduino ch04Getting startedwitharduino ch04
Getting startedwitharduino ch04
Anil Yadav
 
02 General Purpose Input - Output on the Arduino
02   General Purpose Input -  Output on the Arduino02   General Purpose Input -  Output on the Arduino
02 General Purpose Input - Output on the Arduino
Wingston
 
Arduino 8-step drum sequencer 3 channels
Arduino 8-step drum sequencer 3 channelsArduino 8-step drum sequencer 3 channels
Arduino 8-step drum sequencer 3 channels
tomtobback
 

Viewers also liked (20)

Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
avikdhupar
 
Hello Arduino.
Hello Arduino.Hello Arduino.
Hello Arduino.
mkontopo
 
morning!, by Mia Diwasasri
morning!, by Mia Diwasasrimorning!, by Mia Diwasasri
morning!, by Mia Diwasasri
Sari Asih
 
Introduction to Arduino @ Open Tech School - Berlin (6 Dec 2012)
Introduction to Arduino @ Open Tech School - Berlin (6 Dec 2012)Introduction to Arduino @ Open Tech School - Berlin (6 Dec 2012)
Introduction to Arduino @ Open Tech School - Berlin (6 Dec 2012)
Alessandro Contini
 
Introducción a Arduino r2
Introducción a Arduino r2Introducción a Arduino r2
Introducción a Arduino r2
Marino Linaje Trigueros
 
Tema1
Tema1Tema1
Tema1
Colegio Jefferson y Universidad de Guayaquil
 
Is Computer Science Science?
Is Computer Science Science?Is Computer Science Science?
Is Computer Science Science?
Daniel Cukier
 
Computer science -
Computer science -Computer science -
Computer science -
RAKSHA SRIVASTAVA
 
Intro Inteligencia Artificial (AI)
Intro Inteligencia Artificial (AI)Intro Inteligencia Artificial (AI)
Intro Inteligencia Artificial (AI)
Iván Sanchez Vera
 
Intro to Artificial inteligence
Intro to Artificial inteligenceIntro to Artificial inteligence
Intro to Artificial inteligence
Zeeshan Tariq
 
Arduino Intro Guide 2
Arduino Intro Guide 2Arduino Intro Guide 2
Arduino Intro Guide 2
elketeaches
 
AI A Slight Intro
AI A Slight IntroAI A Slight Intro
AI A Slight Intro
Omar Enayet
 
Fields in computer science
Fields in computer scienceFields in computer science
Fields in computer science
UC San Diego
 
Arduino practicas
Arduino practicasArduino practicas
Arduino practicas
Rafael Eduardo G
 
Intro arduino English
Intro arduino EnglishIntro arduino English
Intro arduino English
SOAEnsAD
 
Raspberry Pi - Introduzione, caratteristiche, programmazione, casi d'uso
Raspberry Pi - Introduzione, caratteristiche, programmazione, casi d'usoRaspberry Pi - Introduzione, caratteristiche, programmazione, casi d'uso
Raspberry Pi - Introduzione, caratteristiche, programmazione, casi d'uso
gianlucaghettini
 
Introduction to Embedded System
Introduction to Embedded SystemIntroduction to Embedded System
Introduction to Embedded System
Zakaria Gomaa
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
falepiz
 
Manual basico de practicas con Arduino uno
Manual basico de practicas con Arduino unoManual basico de practicas con Arduino uno
Manual basico de practicas con Arduino uno
Ramiro Hernandez Michua
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Richard Rixham
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
avikdhupar
 
Hello Arduino.
Hello Arduino.Hello Arduino.
Hello Arduino.
mkontopo
 
morning!, by Mia Diwasasri
morning!, by Mia Diwasasrimorning!, by Mia Diwasasri
morning!, by Mia Diwasasri
Sari Asih
 
Introduction to Arduino @ Open Tech School - Berlin (6 Dec 2012)
Introduction to Arduino @ Open Tech School - Berlin (6 Dec 2012)Introduction to Arduino @ Open Tech School - Berlin (6 Dec 2012)
Introduction to Arduino @ Open Tech School - Berlin (6 Dec 2012)
Alessandro Contini
 
Is Computer Science Science?
Is Computer Science Science?Is Computer Science Science?
Is Computer Science Science?
Daniel Cukier
 
Intro Inteligencia Artificial (AI)
Intro Inteligencia Artificial (AI)Intro Inteligencia Artificial (AI)
Intro Inteligencia Artificial (AI)
Iván Sanchez Vera
 
Intro to Artificial inteligence
Intro to Artificial inteligenceIntro to Artificial inteligence
Intro to Artificial inteligence
Zeeshan Tariq
 
Arduino Intro Guide 2
Arduino Intro Guide 2Arduino Intro Guide 2
Arduino Intro Guide 2
elketeaches
 
AI A Slight Intro
AI A Slight IntroAI A Slight Intro
AI A Slight Intro
Omar Enayet
 
Fields in computer science
Fields in computer scienceFields in computer science
Fields in computer science
UC San Diego
 
Intro arduino English
Intro arduino EnglishIntro arduino English
Intro arduino English
SOAEnsAD
 
Raspberry Pi - Introduzione, caratteristiche, programmazione, casi d'uso
Raspberry Pi - Introduzione, caratteristiche, programmazione, casi d'usoRaspberry Pi - Introduzione, caratteristiche, programmazione, casi d'uso
Raspberry Pi - Introduzione, caratteristiche, programmazione, casi d'uso
gianlucaghettini
 
Introduction to Embedded System
Introduction to Embedded SystemIntroduction to Embedded System
Introduction to Embedded System
Zakaria Gomaa
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
falepiz
 
Manual basico de practicas con Arduino uno
Manual basico de practicas con Arduino unoManual basico de practicas con Arduino uno
Manual basico de practicas con Arduino uno
Ramiro Hernandez Michua
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
Richard Rixham
 
Ad

Similar to Intro to Arduino Revision #2 (20)

Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixels
sdcharle
 
teststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxteststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptx
ethannguyen1618
 
Arduino microcontroller ins and outs with pin diagram
Arduino microcontroller ins and outs with pin diagramArduino microcontroller ins and outs with pin diagram
Arduino microcontroller ins and outs with pin diagram
ArifatunNesa
 
13223971.ppt
13223971.ppt13223971.ppt
13223971.ppt
SuYee13
 
arduino and its introduction deep dive ppt.pptx
arduino and its introduction deep dive ppt.pptxarduino and its introduction deep dive ppt.pptx
arduino and its introduction deep dive ppt.pptx
SruSru1
 
Arduino.pptx
Arduino.pptxArduino.pptx
Arduino.pptx
AadilKk
 
arduino Simon power point presentation.ppt
arduino Simon power point presentation.pptarduino Simon power point presentation.ppt
arduino Simon power point presentation.ppt
JuniorAsong
 
arduinoSimon.ppt
arduinoSimon.pptarduinoSimon.ppt
arduinoSimon.ppt
Kishor Mhaske
 
arduinoSimon.ppt
arduinoSimon.pptarduinoSimon.ppt
arduinoSimon.ppt
ZainIslam20
 
arduinoSimon.ppt
arduinoSimon.pptarduinoSimon.ppt
arduinoSimon.ppt
AkhandPratapSingh86
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
Jawaher Abdulwahab Fadhil
 
The IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basicsThe IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basics
The IOT Academy
 
ArduinoSectionI-slides.ppt
ArduinoSectionI-slides.pptArduinoSectionI-slides.ppt
ArduinoSectionI-slides.ppt
Lam Hung
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slides
mkarlin14
 
Arduino course
Arduino courseArduino course
Arduino course
Ahmed Shelbaya
 
Arduino intro.pptx
Arduino intro.pptxArduino intro.pptx
Arduino intro.pptx
AlexRiv4
 
arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdf
ssusere5db05
 
Introduction to Arduino Webinar
Introduction to Arduino WebinarIntroduction to Arduino Webinar
Introduction to Arduino Webinar
Fragiskos Fourlas
 
The document proceeds to explain the main components of an Arduino Uno board ...
The document proceeds to explain the main components of an Arduino Uno board ...The document proceeds to explain the main components of an Arduino Uno board ...
The document proceeds to explain the main components of an Arduino Uno board ...
QucngV
 
What is Arduino ?
What is Arduino ?What is Arduino ?
What is Arduino ?
Niket Chandrawanshi
 
Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixels
sdcharle
 
teststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxteststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptx
ethannguyen1618
 
Arduino microcontroller ins and outs with pin diagram
Arduino microcontroller ins and outs with pin diagramArduino microcontroller ins and outs with pin diagram
Arduino microcontroller ins and outs with pin diagram
ArifatunNesa
 
13223971.ppt
13223971.ppt13223971.ppt
13223971.ppt
SuYee13
 
arduino and its introduction deep dive ppt.pptx
arduino and its introduction deep dive ppt.pptxarduino and its introduction deep dive ppt.pptx
arduino and its introduction deep dive ppt.pptx
SruSru1
 
Arduino.pptx
Arduino.pptxArduino.pptx
Arduino.pptx
AadilKk
 
arduino Simon power point presentation.ppt
arduino Simon power point presentation.pptarduino Simon power point presentation.ppt
arduino Simon power point presentation.ppt
JuniorAsong
 
arduinoSimon.ppt
arduinoSimon.pptarduinoSimon.ppt
arduinoSimon.ppt
ZainIslam20
 
The IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basicsThe IoT Academy IoT training Arduino Part 1 basics
The IoT Academy IoT training Arduino Part 1 basics
The IOT Academy
 
ArduinoSectionI-slides.ppt
ArduinoSectionI-slides.pptArduinoSectionI-slides.ppt
ArduinoSectionI-slides.ppt
Lam Hung
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slides
mkarlin14
 
Arduino intro.pptx
Arduino intro.pptxArduino intro.pptx
Arduino intro.pptx
AlexRiv4
 
arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdf
ssusere5db05
 
Introduction to Arduino Webinar
Introduction to Arduino WebinarIntroduction to Arduino Webinar
Introduction to Arduino Webinar
Fragiskos Fourlas
 
The document proceeds to explain the main components of an Arduino Uno board ...
The document proceeds to explain the main components of an Arduino Uno board ...The document proceeds to explain the main components of an Arduino Uno board ...
The document proceeds to explain the main components of an Arduino Uno board ...
QucngV
 
Ad

Recently uploaded (20)

The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Vibe Coding_ Develop a web application using AI (1).pdf
Vibe Coding_ Develop a web application using AI (1).pdfVibe Coding_ Develop a web application using AI (1).pdf
Vibe Coding_ Develop a web application using AI (1).pdf
Baiju Muthukadan
 
Webinar - Top 5 Backup Mistakes MSPs and Businesses Make .pptx
Webinar - Top 5 Backup Mistakes MSPs and Businesses Make   .pptxWebinar - Top 5 Backup Mistakes MSPs and Businesses Make   .pptx
Webinar - Top 5 Backup Mistakes MSPs and Businesses Make .pptx
MSP360
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
5kW Solar System in India – Cost, Benefits & Subsidy 2025
5kW Solar System in India – Cost, Benefits & Subsidy 20255kW Solar System in India – Cost, Benefits & Subsidy 2025
5kW Solar System in India – Cost, Benefits & Subsidy 2025
Ksquare Energy Pvt. Ltd.
 
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdfAre Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Telecoms Supermarket
 
AsyncAPI v3 : Streamlining Event-Driven API Design
AsyncAPI v3 : Streamlining Event-Driven API DesignAsyncAPI v3 : Streamlining Event-Driven API Design
AsyncAPI v3 : Streamlining Event-Driven API Design
leonid54
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Canadian book publishing: Insights from the latest salary survey - Tech Forum...
Canadian book publishing: Insights from the latest salary survey - Tech Forum...Canadian book publishing: Insights from the latest salary survey - Tech Forum...
Canadian book publishing: Insights from the latest salary survey - Tech Forum...
BookNet Canada
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Play It Safe: Manage Security Risks - Google Certificate
Play It Safe: Manage Security Risks - Google CertificatePlay It Safe: Manage Security Risks - Google Certificate
Play It Safe: Manage Security Risks - Google Certificate
VICTOR MAESTRE RAMIREZ
 
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Raffi Khatchadourian
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Vibe Coding_ Develop a web application using AI (1).pdf
Vibe Coding_ Develop a web application using AI (1).pdfVibe Coding_ Develop a web application using AI (1).pdf
Vibe Coding_ Develop a web application using AI (1).pdf
Baiju Muthukadan
 
Webinar - Top 5 Backup Mistakes MSPs and Businesses Make .pptx
Webinar - Top 5 Backup Mistakes MSPs and Businesses Make   .pptxWebinar - Top 5 Backup Mistakes MSPs and Businesses Make   .pptx
Webinar - Top 5 Backup Mistakes MSPs and Businesses Make .pptx
MSP360
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
5kW Solar System in India – Cost, Benefits & Subsidy 2025
5kW Solar System in India – Cost, Benefits & Subsidy 20255kW Solar System in India – Cost, Benefits & Subsidy 2025
5kW Solar System in India – Cost, Benefits & Subsidy 2025
Ksquare Energy Pvt. Ltd.
 
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdfAre Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Telecoms Supermarket
 
AsyncAPI v3 : Streamlining Event-Driven API Design
AsyncAPI v3 : Streamlining Event-Driven API DesignAsyncAPI v3 : Streamlining Event-Driven API Design
AsyncAPI v3 : Streamlining Event-Driven API Design
leonid54
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Canadian book publishing: Insights from the latest salary survey - Tech Forum...
Canadian book publishing: Insights from the latest salary survey - Tech Forum...Canadian book publishing: Insights from the latest salary survey - Tech Forum...
Canadian book publishing: Insights from the latest salary survey - Tech Forum...
BookNet Canada
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Play It Safe: Manage Security Risks - Google Certificate
Play It Safe: Manage Security Risks - Google CertificatePlay It Safe: Manage Security Risks - Google Certificate
Play It Safe: Manage Security Risks - Google Certificate
VICTOR MAESTRE RAMIREZ
 
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Raffi Khatchadourian
 

Intro to Arduino Revision #2

  • 1. Intro to Arduino Class ! Deezmaker 3D Printer Store and Hackerspace Taught by Quin Etnyre July 26, 2014
  • 2. Thank you to SparkFun for sharing the original presentation!
  • 3. What is Open Source? • Release your design files to the public • Free access for anyone who wants to learn • Everyone gains knowledge, companies or hobbyists • You are able to remake/remix the project to suit your own needs • When you credit the original designer
  • 4. What is the Arduino? Intended for anyone to create interactive projects “Strong Friend” Created in Ivrea, Italy in 2005 by Massimo Banzi & David Cuartielles Open Source Hardware Atmel 8-Bit Processor Coding is easy for anyone to learn
  • 5. Why do I want an Arduino? Arduino is a 8-bit prototyping system that is easy for the modern developer, designer, hacker, kid, or someone that has no experience in this type of genre to use. ! But why is important to all of us?
  • 6. Schedule • Introduction to Arduino and Installing Software • Project 1 • Electronics Concepts • Project 2 • Arduino IDE in Depth • Project 3 • Break • Project 4 • Explaining More Code • Project 5, 6, & 7 • ProjectTime with more ArduSensors
  • 9. Arduino IDE The Arduino IDE (Integrated Development Environment) is where we develop our code, and upload the code to the Arduino Leonardo board. You can download the latest software here: ! Arduino 1.0.5: bit.ly/arduinoide
  • 10. Downloading Code ! bit.ly/deezmakercode ! Put the downloaded folder on your desktop
  • 11. Arduino Drivers Mac: Click Red ‘X’ ! ! Windows XP / 7 / 8: ! ! ! Windows XP / 7 Secondary Option: http://bit.ly/ arduino-windows
  • 15. Serial Port / COM Port
  • 16. Which COM/Serial Port? Mac: /dev/tty.usbmodemfd131 ! Interchangeable #: ! Windows: COM# Device Manager: ! Start>Control Panel>System & Security>Device Manager>Ports
  • 19. 19
  • 22. ArduSensors - ‘Mini Shields’
  • 23. Concepts of Electronics • Polarity • Power /Voltage and Ground • Analog and Digital • Inputs and Outputs • PWM • Arduino IDE Review • Analog Inputs
  • 24. Polarity Polarity is when there are two or more different sides (or leads) of a component that have different qualities that can not be reversed. ! Examples: batteries, LEDs, buttons
  • 25. Power / Voltage and Ground (GND) Use only 5V or 3.3V in your projects Power + - Circuit
  • 26. Analog and Digital • All Arduino signals are either Analog or Digital • All computers can only understand Digital • Digital Pins D0 - D13 on Arduino • Special pins that are ADC enabled (analog to digital converter) we can connect sensors to • Analog Pins A0 - A5 on Arduino
  • 27. I/O, or Input/Output Input is any signal entering an electrical system/Arduino. ! Output is any signal exiting an electrical system.
  • 28. Output Output is always Digital ! To Output a Digital signal (On or Off) use this code: ! digitalWrite (pinNumber, value); ! Where value is HIGH (on) or LOW (off), both in caps
  • 29. Output To ‘Fade’ an LED or to output a voltage in-between 0V and 5V, use PWM ! Use this code to output an ‘analog’ signal: analogWrite (pinNumber, value); Where value is a number 0 - 255. (0V to 5V) ! PWM is available on Arduino Leonardo digital pins 3, 5, 6, 9, 10, 11, and 13, and marked with a ‘~’.
  • 30. Output Output is always Digital, even when it’s P.W.M. ! For P.W.M. the Arduino pin turns on, then off very fast ! ! P.W.M. Signal @ 25% P.W.M. Signal @ 75% P.W.M. Signal rising
  • 32. Arduino IDE in Depth • Parts of the Sketch • setup() • loop() • Comments • Analog Input
  • 33. Parts of the Sketch
  • 35. ! ! void loop ( ) { } ! ! ! ! ! ! ! !
  • 37. Comments • Comments are ignored by the compiler/ verifier • Comments can be anywhere • Starts with a // for a one-line comment • Starts with a /* and ends with a */ for a multiple-line comment • Great ways to remind you what you did, teach other people what that code means
  • 38. Analog Input • To connect an analog Input to your Arduino, use Analog Pins #A0 - A5 ! • To get an analog reading, use the code: analogRead(pinNumber); ! • Analog Input varies from 0 to 1023 on an Arduino
  • 39. Circuit 3: Analog Reading
  • 41. Break
  • 42. Digital Sensors/Digital Input • Digital Input could be a switch or a button • To connect digital input to your Arduino use Digital Pins # D0 – D13 • Digital Input needs a pinMode command (in setup): pinMode(pinNumber, INPUT); Make sure to use caps for INPUT • To get a digital reading: digitalRead(pinNumber); • Digital Input values are only HIGH (On) or LOW (Off)
  • 43. Digital Sensors/Digital Input • Digital sensors are more straight forward than Analog ! • No matter what the sensor, there are only two settings: On and Off ! • Voltage signal for LOW (off) will be 0V, and HIGH (on) will be 5V
  • 44. Parts for Circuit 4: Arduino Leonardo Breadboard Pushbutton (2) LED (2) Resistor - 10K Ohm (2) Resistor - 330 Ohm (2) Jumper Wires
  • 47. `
  • 49. Operators The equals sign ! = is used to assign a value ! == is used to compare values ! && is “and” ! || is “or”
  • 50. Variables Basic variable types: ! Boolean (on or off) Integer (a number) Character (a letter) String (a phrase)
  • 51. Declaring Variables Boolean: boolean variableName; ! Integer: int variableName; ! Character: char variableName; String: stringName [ ];
  • 52. Assigning Variables Boolean: variableName = true; or variableName = false;
  • 53. Assigning Variables Boolean: variableName = true; or variableName = false; Integer: variableName = 32767; or variableName = -32768;
  • 54. Assigning Variables Boolean: variableName = true; or variableName = false; Integer: variableName = 32767; or variableName = -32768; Character: variableName = ‘A’; or stringName = “Deezmaker”;
  • 57. Setup
 void setup ( ) { 
 pinMode (13, OUTPUT); } ! ! ! Inputs & Outputs are declared in setup, this is done by using the pinMode function This particular example declares digital pin # 13 as an output, remember to use CAPS
  • 58. ! ! If Statements if ( this is true ) { do this; } ! ! ! !
  • 59. ! ! Basic Repetition ! for (int count = 0; count<10; count++) { //for action code goes here //this could be anything }
  • 60. Circuit 6: LED Bounce