SlideShare a Scribd company logo
Intro to Arduino
      Class
     Intro to Arduino

  Held at CRASHspace
    Taught by Quin
        8/11/12
Thank you to SparkFun for
   sharing the original
      presentation!
Schedule

•   Getting started with Arduino and electronics
•   Project 1 & 2
•   Break
•   Project 3, 4, & 5
•   Explaining More Code
•   Q&A + Project Time
Arduino Board
    “Strong Friend” Created in Ivrea, Italy
in 2005 by Massimo Banzi & David Cuartielles
           Open Source Hardware
             Atmel Processor
   Coding is accessible (C++, Processing)
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?
Intro to Arduino
Arduino Shields

 PCB
 
   
   
   Built Shield
 
   
   Inserted
Shield
Arduino Shields


   Micro SD

   
   MP3 Trigger
                                
   
   Joystick
Components
Name          Image
   Type
           Function         Notes


                       Digital Input   Closes or       Polarized,
Button                                 opens circuit   needs resistor
                       Analog Input Variable
Trimpot                             resistor
LDR                    Analog Input Variable           Also known as
                                    resistor           photoresistor

Temp                   Analog Input Variable
                                    resistor
Sensor
Flex Sensor            Analog Input Variable
                                    resistor
                        Dig. &
                                   16,777,216          Ooh... So
RGB LED                 Analog
                        Output
                                   different           pretty.
                                   colors
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 (+5V) and Ground
          (GND)
Power is the current that goes through
the circuit, and ground is the current
return path (collector)

Always make sure that Power and
Ground never touch directly, or the
circuit will short.

Make sure to not use over 10V, just
5V, and 3.3V, so no shock will occur.
What’s a Breadboard?
One of the most useful tools in an engineer or
  Maker’s toolkit. The four most important things
  to remember:
• Breadboard is very easy to prototype with
• A breadboard is easier than soldering
• A lot of those little holes are connected, which
  ones?
• Breadboards can break
What’s a Breadboard?
Analog and Digital
• All Arduino signals are either Analog or
  Digital
• All computers including Arduino, only
  understand Digital
• It is important to understand the
  difference between Analog and Digital
  signals since Analog signals require an
  Analog to Digital conversion
Analog to Digital Conversion

An ADC is a device that samples a
continuous quantity of digital signals,
compares it to discrete time, then
outputs an analog signal.

The ADC (analog) compatible pins on
the Arduino are A0, A1, A2, A3, A4,
and A5
I/O, or Input/Output

Input is any signal entering an
 electrical system.

Output is any signal exiting an
electrical system.
Output
 Output is any signal exiting an electrical system

• Almost all systems that use physical computing
will have some form of output
• Outputs include LEDs, a motor, a piezo buzzer,
and an RGB LED
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

To output a signal that pretends to be Analog, use
this code:
analogWrite (pinNumber, value);
Where value is a number 0 - 255
Output

To output a signal that pretends to be
analog (anywhere in between on and
off), you will have to use a PWM pin.
All PWM pins on the Arduino are
market with a “~” on the digital side.
Output
       Output is always Digital
Using a Digital signal that pretends to be an
Analog signal is called Pulse Width Modulation

Use Pulse Width Modulation, or P.W.M., for
anything that requires a signal between HIGH and
LOW (1-254, with 0 being off and 255 being on)

P.W.M. is available on Arduino Leonardo digital
pins 3, 5, 6, 9, 10, 11, and 13
Installing Drivers for Mac
The first time you plug a Leonardo into a Mac, the
"Keyboard Setup Assistant" will launch. There's
nothing to configure with the Leonardo, so you can
close this dialogue by clicking the red button in the
top left of the window.
Installing Drivers for Windows
This method has been tested on Windows XP and 7:

• Plug in your board and wait for Windows to begin
  its driver installation process. If the installer does
  not launch automatically, Navigate to the
  Windows Device Manager (Start>Control
  Panel>Hardware) and find the Arduino Leonardo
  listing. Right click and choose Update driver.

• If prompted to search for drivers online, choose
  "No, not this time". And click Next
Installing Drivers for Windows
Installing Drivers for Windows
• When asked to install automatically or from a
  specific location, select "Install from a list or
  specific location" and press Next
Installing Drivers for Windows
• Choose "Search for the best driver in these
  locations", and check the box "incude this
  location in the search". Click the Browse button
  and navigate to your Arduino 1.0.1 or later
  installation. Select the drivers folder an click OK
Installing Drivers for Windows
Installing Drivers for Windows
Click Next. You will receive a notification that the
  Leonardo has not passed Windows Logo testing.
  Click on the button Continue Anyway
Installing Drivers for Windows
• After a few moments, a window will tell you the
  wizard has finished installing software for
  Arduino Leonardo. Press the Finish button

(from arduino.cc)
Intro to Arduino
Intro to Arduino
Board Type
Serial Port / COM Port
Circuit 1: Basic Blink




                         33
34
Parts of the Sketch
void setup() {}




                  36
void loop ( ) { }
Why do I make a comment?

• Comments are great ways to
  remind you what you did,
  teach other people what that
  code means, or to make a
  long description for your
  whole piece of code for
  licenses, date, and author
Comments

• Comments are ignored by
  the compiler
• Comments can be anywhere
• Comments can start with
  a // for a one-line comment
• Another type of comment is
  multiple lines and starts with
  a /* and ends with a */
Example of Comment:
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
Input
  Input is any signal entering an electrical system
•Both digital and analog sensors are forms of input
•Input can also take many other forms: Keyboards,
a mouse, buttons, light sensors, or just plain
voltage from a circuit
Analog Input
• To connect an analog Input to your Arduino, use
  Analog Pins # 0 - 5

• To get an analog reading:

 analogRead (pinNumber);

• Analog Input varies from 0 to 1023 on an
  Arduino
Downloading Code

https://github.com/Qtechknow/
  Arduino-Code/zipball/master/
Circuit 2: Analog Reading
Intro to Arduino
Intro to Arduino
Digital Sensors/Digital Input
• Digital Input could be a switch or a button

• To connect digital input to your Arduino use
  Digital Pins # 0 – 13 (Although pins # 0 & 1 are
  also used for serial)

• 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 Sensors/Digital Input
• Digital sensors are more straight forward than
  Analog

• No matter what the sensor, there are only two
  settings: On and Off (for buttons, pressed, or
  not)
• Signal is always either HIGH (On) or LOW (Off)

• Voltage signal for HIGH will be a little less than
  5V on your Leonardo

• Voltage signal for LOW will be 0V on most
  systems
Parts for Circuit 3:

Arduino Leonardo
Breadboard
Pushbutton (2)
LED (2)
Resistor - 10K Ohm (2)
Resistor - 330 Ohm (2)
Jumper Wire
Circuit 3: Buttons
Intro to Arduino
Intro to Arduino
Semicolons

Semicolons are needed after every line
of code, except for void setup(), void
loop(), and a few others
Operators

      The equals sign

 = is used to assign a value

== is used to compare values
Operators


&& is “and”

 || is “or”
Variables

Basic variable types:

Boolean (on or off)
Integer (a number)
Character (a letter)
Declaring Variables

  Boolean: boolean
   variableName;
Declaring Variables

    Boolean: boolean
     variableName;

Integer: int variableName;
Declaring Variables

      Boolean: boolean
       variableName;

  Integer: int variableName;

Character: char variableName;
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 =
        “Crashspace”;
Variable Scope
Where you declare your variables
           matters
Circuit 4: ArduSensor + LED
Circuit 4: ArduSensor+LED
Intro to Arduino
Common Functions

pinMode(pin, kind); (declares pins)
analogRead(pin); (reads an analog pin)
digitalWrite(pin, state); (tells a pin to
   turn on (5V), or turn off (0V)
if() {} (tells something to do a function,
   when something else happens
for() {} (tells something to do a function
   over and over)
Setup
           void setup ( ) {




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; }
If
if ( this is true ) { do this; }
Conditional
if ( this is true ) { do this; }
Action
if ( this is true ) { do this; }
Else
else { do this; }
Basic Repetition

for (int count = 0; count<10; count++)
{
//for action code goes here
//this could be anything
}
Basic Repetition

for (int count = 0; count<10; count++)
{
//for action code goes here
}
Basic Repetition

for (int count = 0; count<10; count++)
{
//for action code goes here
}
Basic Repetition

for (int count = 0; count<10; count++)
{
//for action code goes here
}
Basic Repetition

for (int count = 0; count<10; count++)
{
//for action code goes here
}
Basic Repetition

for (int count = 0; count<10; count++)
{
//for action code goes here
}
Basic Repetition

for (int count = 0; count<10; count++)
{
//for action code goes here
}
Circuit 5: Meter
Intro to Arduino
Intro to Arduino
Q&A and Project time

More Related Content

What's hot (20)

IoT with Arduino
IoT with ArduinoIoT with Arduino
IoT with Arduino
Arvind Singh
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
baabtra.com - No. 1 supplier of quality freshers
 
PPT ON Arduino
PPT ON Arduino PPT ON Arduino
PPT ON Arduino
Ravi Phadtare
 
What is Arduino ?
What is Arduino ?What is Arduino ?
What is Arduino ?
Niket Chandrawanshi
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
avikdhupar
 
TMS320C5x
TMS320C5xTMS320C5x
TMS320C5x
DeekshithaReddy23
 
VERY LARGE SCALE INTEGRATION (VLSI) TECHNOLOGY
VERY LARGE SCALE INTEGRATION (VLSI) TECHNOLOGYVERY LARGE SCALE INTEGRATION (VLSI) TECHNOLOGY
VERY LARGE SCALE INTEGRATION (VLSI) TECHNOLOGY
Seelam Vasavi Sai Viswanada Prabhu Deva Kumar
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
Wingston
 
Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to Microcontroller
Nikhil Sharma
 
Introduction to Arduino & Robotics
Introduction to Arduino & Robotics Introduction to Arduino & Robotics
Introduction to Arduino & Robotics
Zubayer Al Billal Khan
 
C language ppt
C language pptC language ppt
C language ppt
Ğäùråv Júñêjå
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the Arduino
Charles A B Jr
 
Study of 8051 microcontroller
Study of 8051 microcontrollerStudy of 8051 microcontroller
Study of 8051 microcontroller
918007165995
 
Introduction to arduino!
Introduction to arduino!Introduction to arduino!
Introduction to arduino!
Makers of India
 
M.TECH IEEE.Technical seminar paper for Vlsi design and embedded systems.
M.TECH IEEE.Technical seminar paper for Vlsi design and embedded systems.M.TECH IEEE.Technical seminar paper for Vlsi design and embedded systems.
M.TECH IEEE.Technical seminar paper for Vlsi design and embedded systems.
Suchitra goudar
 
Seminar on field programmable gate array
Seminar on field programmable gate arraySeminar on field programmable gate array
Seminar on field programmable gate array
Saransh Choudhary
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino uno
Rahat Sood
 
8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )
8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )
8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )
Tarun Khaneja
 
Arduino course
Arduino courseArduino course
Arduino course
Ahmed Shelbaya
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
Anija Nair
 

Viewers also liked (20)

Intro to Arduino Revision #2
Intro to Arduino Revision #2Intro to Arduino Revision #2
Intro to Arduino Revision #2
Qtechknow
 
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
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
Ahmed Sakr
 
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
 
morning!, by Mia Diwasasri
morning!, by Mia Diwasasrimorning!, by Mia Diwasasri
morning!, by Mia Diwasasri
Sari Asih
 
Arduino
ArduinoArduino
Arduino
Dinesh Kumar
 
Tema1
Tema1Tema1
Tema1
Colegio Jefferson y Universidad de Guayaquil
 
Arduino practicas
Arduino practicasArduino practicas
Arduino practicas
Rafael Eduardo G
 
Interfacing bluetooth with arduino
Interfacing bluetooth with arduinoInterfacing bluetooth with arduino
Interfacing bluetooth with arduino
Jairaj Jangle
 
Student2student: Arduino Project-based Learning
Student2student: Arduino Project-based LearningStudent2student: Arduino Project-based Learning
Student2student: Arduino Project-based Learning
Technological Ecosystems for Enhancing Multiculturality
 
Arduino Introduction by coopermaa
Arduino Introduction by coopermaaArduino Introduction by coopermaa
Arduino Introduction by coopermaa
馬 萬圳
 
Controlling an Arduino with Android
Controlling an Arduino with AndroidControlling an Arduino with Android
Controlling an Arduino with Android
A. Hernandez
 
Cassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshopCassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshop
tomtobback
 
Aurdino presentation
Aurdino presentationAurdino presentation
Aurdino presentation
C.Vamsi Krishna
 
Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Android Control Hardware and Arduino IoT ( 22 Aug 15 )Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Adun Nanthakaew
 
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
 
Curso Arduino práctico 2014
Curso Arduino práctico  2014Curso Arduino práctico  2014
Curso Arduino práctico 2014
Jose Antonio Vacas
 
Heart beat detector using arduino
Heart beat detector using arduinoHeart beat detector using arduino
Heart beat detector using arduino
Varshaa Khandagale
 
Arduino Development For Beginners
Arduino Development For BeginnersArduino Development For Beginners
Arduino Development For Beginners
FTS seminar
 
Intro to Arduino Revision #2
Intro to Arduino Revision #2Intro to Arduino Revision #2
Intro to Arduino Revision #2
Qtechknow
 
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
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
Ahmed Sakr
 
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
 
morning!, by Mia Diwasasri
morning!, by Mia Diwasasrimorning!, by Mia Diwasasri
morning!, by Mia Diwasasri
Sari Asih
 
Interfacing bluetooth with arduino
Interfacing bluetooth with arduinoInterfacing bluetooth with arduino
Interfacing bluetooth with arduino
Jairaj Jangle
 
Arduino Introduction by coopermaa
Arduino Introduction by coopermaaArduino Introduction by coopermaa
Arduino Introduction by coopermaa
馬 萬圳
 
Controlling an Arduino with Android
Controlling an Arduino with AndroidControlling an Arduino with Android
Controlling an Arduino with Android
A. Hernandez
 
Cassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshopCassiopeia Ltd - standard Arduino workshop
Cassiopeia Ltd - standard Arduino workshop
tomtobback
 
Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Android Control Hardware and Arduino IoT ( 22 Aug 15 )Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Adun Nanthakaew
 
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
 
Heart beat detector using arduino
Heart beat detector using arduinoHeart beat detector using arduino
Heart beat detector using arduino
Varshaa Khandagale
 
Arduino Development For Beginners
Arduino Development For BeginnersArduino Development For Beginners
Arduino Development For Beginners
FTS seminar
 

Similar to Intro to Arduino (20)

ArduinoSectionI-slides.ppt
ArduinoSectionI-slides.pptArduinoSectionI-slides.ppt
ArduinoSectionI-slides.ppt
Lam Hung
 
Making things sense - Day 1 (May 2011)
Making things sense - Day 1 (May 2011)Making things sense - Day 1 (May 2011)
Making things sense - Day 1 (May 2011)
markumoto
 
arduino.ppt
arduino.pptarduino.ppt
arduino.ppt
sunilkumar652338
 
Arduino-workshop.computer engineering.pdf
Arduino-workshop.computer engineering.pdfArduino-workshop.computer engineering.pdf
Arduino-workshop.computer engineering.pdf
AbhishekGiri933736
 
Arduino Foundations
Arduino FoundationsArduino Foundations
Arduino Foundations
John Breslin
 
Audible Objects
Audible ObjectsAudible Objects
Audible Objects
Leif Bloomquist
 
arduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdfarduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdf
AbdErrezakChahoub
 
02 Sensors and Actuators Understand .pdf
02 Sensors and Actuators Understand .pdf02 Sensors and Actuators Understand .pdf
02 Sensors and Actuators Understand .pdf
engsharaf2025
 
arduino Simon power point presentation.ppt
arduino Simon power point presentation.pptarduino Simon power point presentation.ppt
arduino Simon power point presentation.ppt
JuniorAsong
 
Arduino Programming Basic
Arduino Programming BasicArduino Programming Basic
Arduino Programming Basic
LITS IT Ltd,LASRC.SPACE,SAWDAGOR BD,FREELANCE BD,iREV,BD LAW ACADEMY,SMART AVI,HEA,HFSAC LTD.
 
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
 
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
 
introductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdfintroductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdf
HebaEng
 
Arduino
ArduinoArduino
Arduino
LetzkuLetz Castro
 
Arduino - Learning.pdf
Arduino - Learning.pdfArduino - Learning.pdf
Arduino - Learning.pdf
KhalilSedki1
 
Intro to Arduino.ppt
Intro to Arduino.pptIntro to Arduino.ppt
Intro to Arduino.ppt
jonathan Dietz
 
Arduino is an open-source electronics platform that has an easy-to-use physic...
Arduino is an open-source electronics platform that has an easy-to-use physic...Arduino is an open-source electronics platform that has an easy-to-use physic...
Arduino is an open-source electronics platform that has an easy-to-use physic...
ssuseraa8a48
 
Fundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptFundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.ppt
ansariparveen06
 
ArduinoSectionI-slides.ppt
ArduinoSectionI-slides.pptArduinoSectionI-slides.ppt
ArduinoSectionI-slides.ppt
Lam Hung
 
Making things sense - Day 1 (May 2011)
Making things sense - Day 1 (May 2011)Making things sense - Day 1 (May 2011)
Making things sense - Day 1 (May 2011)
markumoto
 
Arduino-workshop.computer engineering.pdf
Arduino-workshop.computer engineering.pdfArduino-workshop.computer engineering.pdf
Arduino-workshop.computer engineering.pdf
AbhishekGiri933736
 
Arduino Foundations
Arduino FoundationsArduino Foundations
Arduino Foundations
John Breslin
 
arduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdfarduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdf
AbdErrezakChahoub
 
02 Sensors and Actuators Understand .pdf
02 Sensors and Actuators Understand .pdf02 Sensors and Actuators Understand .pdf
02 Sensors and Actuators Understand .pdf
engsharaf2025
 
arduino Simon power point presentation.ppt
arduino Simon power point presentation.pptarduino Simon power point presentation.ppt
arduino Simon power point presentation.ppt
JuniorAsong
 
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
 
arduinoSimon.ppt
arduinoSimon.pptarduinoSimon.ppt
arduinoSimon.ppt
ZainIslam20
 
introductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdfintroductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdf
HebaEng
 
Arduino - Learning.pdf
Arduino - Learning.pdfArduino - Learning.pdf
Arduino - Learning.pdf
KhalilSedki1
 
Arduino is an open-source electronics platform that has an easy-to-use physic...
Arduino is an open-source electronics platform that has an easy-to-use physic...Arduino is an open-source electronics platform that has an easy-to-use physic...
Arduino is an open-source electronics platform that has an easy-to-use physic...
ssuseraa8a48
 
Fundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptFundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.ppt
ansariparveen06
 

Recently uploaded (20)

Introducing the OSA 3200 SP and OSA 3250 ePRC
Introducing the OSA 3200 SP and OSA 3250 ePRCIntroducing the OSA 3200 SP and OSA 3250 ePRC
Introducing the OSA 3200 SP and OSA 3250 ePRC
Adtran
 
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
 
Cybersecurity Fundamentals: Apprentice - Palo Alto Certificate
Cybersecurity Fundamentals: Apprentice - Palo Alto CertificateCybersecurity Fundamentals: Apprentice - Palo Alto Certificate
Cybersecurity Fundamentals: Apprentice - Palo Alto Certificate
VICTOR MAESTRE RAMIREZ
 
Palo Alto Networks Cybersecurity Foundation
Palo Alto Networks Cybersecurity FoundationPalo Alto Networks Cybersecurity Foundation
Palo Alto Networks Cybersecurity Foundation
VICTOR MAESTRE RAMIREZ
 
Nix(OS) for Python Developers - PyCon 25 (Bologna, Italia)
Nix(OS) for Python Developers - PyCon 25 (Bologna, Italia)Nix(OS) for Python Developers - PyCon 25 (Bologna, Italia)
Nix(OS) for Python Developers - PyCon 25 (Bologna, Italia)
Peter Bittner
 
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
 
Contributing to WordPress With & Without Code.pptx
Contributing to WordPress With & Without Code.pptxContributing to WordPress With & Without Code.pptx
Contributing to WordPress With & Without Code.pptx
Patrick Lumumba
 
TrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy ContractingTrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy Contracting
TrustArc
 
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
 
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
James Anderson
 
Create Your First AI Agent with UiPath Agent Builder
Create Your First AI Agent with UiPath Agent BuilderCreate Your First AI Agent with UiPath Agent Builder
Create Your First AI Agent with UiPath Agent Builder
DianaGray10
 
AI Trends - Mary Meeker
AI Trends - Mary MeekerAI Trends - Mary Meeker
AI Trends - Mary Meeker
Razin Mustafiz
 
Securiport - A Border Security Company
Securiport  -  A Border Security CompanySecuriport  -  A Border Security Company
Securiport - A Border Security Company
Securiport
 
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
Jasper Oosterveld
 
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
 
STKI Israel Market Study 2025 final v1 version
STKI Israel Market Study 2025 final v1 versionSTKI Israel Market Study 2025 final v1 version
STKI Israel Market Study 2025 final v1 version
Dr. Jimmy Schwarzkopf
 
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
 
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
 
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
 
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
 
Introducing the OSA 3200 SP and OSA 3250 ePRC
Introducing the OSA 3200 SP and OSA 3250 ePRCIntroducing the OSA 3200 SP and OSA 3250 ePRC
Introducing the OSA 3200 SP and OSA 3250 ePRC
Adtran
 
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
 
Cybersecurity Fundamentals: Apprentice - Palo Alto Certificate
Cybersecurity Fundamentals: Apprentice - Palo Alto CertificateCybersecurity Fundamentals: Apprentice - Palo Alto Certificate
Cybersecurity Fundamentals: Apprentice - Palo Alto Certificate
VICTOR MAESTRE RAMIREZ
 
Palo Alto Networks Cybersecurity Foundation
Palo Alto Networks Cybersecurity FoundationPalo Alto Networks Cybersecurity Foundation
Palo Alto Networks Cybersecurity Foundation
VICTOR MAESTRE RAMIREZ
 
Nix(OS) for Python Developers - PyCon 25 (Bologna, Italia)
Nix(OS) for Python Developers - PyCon 25 (Bologna, Italia)Nix(OS) for Python Developers - PyCon 25 (Bologna, Italia)
Nix(OS) for Python Developers - PyCon 25 (Bologna, Italia)
Peter Bittner
 
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
 
Contributing to WordPress With & Without Code.pptx
Contributing to WordPress With & Without Code.pptxContributing to WordPress With & Without Code.pptx
Contributing to WordPress With & Without Code.pptx
Patrick Lumumba
 
TrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy ContractingTrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy Contracting
TrustArc
 
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
 
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
James Anderson
 
Create Your First AI Agent with UiPath Agent Builder
Create Your First AI Agent with UiPath Agent BuilderCreate Your First AI Agent with UiPath Agent Builder
Create Your First AI Agent with UiPath Agent Builder
DianaGray10
 
AI Trends - Mary Meeker
AI Trends - Mary MeekerAI Trends - Mary Meeker
AI Trends - Mary Meeker
Razin Mustafiz
 
Securiport - A Border Security Company
Securiport  -  A Border Security CompanySecuriport  -  A Border Security Company
Securiport - A Border Security Company
Securiport
 
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
Jasper Oosterveld
 
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
 
STKI Israel Market Study 2025 final v1 version
STKI Israel Market Study 2025 final v1 versionSTKI Israel Market Study 2025 final v1 version
STKI Israel Market Study 2025 final v1 version
Dr. Jimmy Schwarzkopf
 
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
 
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
 
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
 
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
 

Intro to Arduino

  • 1. Intro to Arduino Class Intro to Arduino Held at CRASHspace Taught by Quin 8/11/12
  • 2. Thank you to SparkFun for sharing the original presentation!
  • 3. Schedule • Getting started with Arduino and electronics • Project 1 & 2 • Break • Project 3, 4, & 5 • Explaining More Code • Q&A + Project Time
  • 4. Arduino Board “Strong Friend” Created in Ivrea, Italy in 2005 by Massimo Banzi & David Cuartielles Open Source Hardware Atmel Processor Coding is accessible (C++, Processing)
  • 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?
  • 7. Arduino Shields PCB Built Shield Inserted Shield
  • 8. Arduino Shields Micro SD MP3 Trigger Joystick
  • 9. Components Name Image Type Function Notes Digital Input Closes or Polarized, Button opens circuit needs resistor Analog Input Variable Trimpot resistor LDR Analog Input Variable Also known as resistor photoresistor Temp Analog Input Variable resistor Sensor Flex Sensor Analog Input Variable resistor Dig. & 16,777,216 Ooh... So RGB LED Analog Output different pretty. colors
  • 10. 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
  • 11. Power (+5V) and Ground (GND) Power is the current that goes through the circuit, and ground is the current return path (collector) Always make sure that Power and Ground never touch directly, or the circuit will short. Make sure to not use over 10V, just 5V, and 3.3V, so no shock will occur.
  • 12. What’s a Breadboard? One of the most useful tools in an engineer or Maker’s toolkit. The four most important things to remember: • Breadboard is very easy to prototype with • A breadboard is easier than soldering • A lot of those little holes are connected, which ones? • Breadboards can break
  • 14. Analog and Digital • All Arduino signals are either Analog or Digital • All computers including Arduino, only understand Digital • It is important to understand the difference between Analog and Digital signals since Analog signals require an Analog to Digital conversion
  • 15. Analog to Digital Conversion An ADC is a device that samples a continuous quantity of digital signals, compares it to discrete time, then outputs an analog signal. The ADC (analog) compatible pins on the Arduino are A0, A1, A2, A3, A4, and A5
  • 16. I/O, or Input/Output Input is any signal entering an electrical system. Output is any signal exiting an electrical system.
  • 17. Output Output is any signal exiting an electrical system • Almost all systems that use physical computing will have some form of output • Outputs include LEDs, a motor, a piezo buzzer, and an RGB LED
  • 18. 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 To output a signal that pretends to be Analog, use this code: analogWrite (pinNumber, value); Where value is a number 0 - 255
  • 19. Output To output a signal that pretends to be analog (anywhere in between on and off), you will have to use a PWM pin. All PWM pins on the Arduino are market with a “~” on the digital side.
  • 20. Output Output is always Digital Using a Digital signal that pretends to be an Analog signal is called Pulse Width Modulation Use Pulse Width Modulation, or P.W.M., for anything that requires a signal between HIGH and LOW (1-254, with 0 being off and 255 being on) P.W.M. is available on Arduino Leonardo digital pins 3, 5, 6, 9, 10, 11, and 13
  • 21. Installing Drivers for Mac The first time you plug a Leonardo into a Mac, the "Keyboard Setup Assistant" will launch. There's nothing to configure with the Leonardo, so you can close this dialogue by clicking the red button in the top left of the window.
  • 22. Installing Drivers for Windows This method has been tested on Windows XP and 7: • Plug in your board and wait for Windows to begin its driver installation process. If the installer does not launch automatically, Navigate to the Windows Device Manager (Start>Control Panel>Hardware) and find the Arduino Leonardo listing. Right click and choose Update driver. • If prompted to search for drivers online, choose "No, not this time". And click Next
  • 24. Installing Drivers for Windows • When asked to install automatically or from a specific location, select "Install from a list or specific location" and press Next
  • 25. Installing Drivers for Windows • Choose "Search for the best driver in these locations", and check the box "incude this location in the search". Click the Browse button and navigate to your Arduino 1.0.1 or later installation. Select the drivers folder an click OK
  • 27. Installing Drivers for Windows Click Next. You will receive a notification that the Leonardo has not passed Windows Logo testing. Click on the button Continue Anyway
  • 28. Installing Drivers for Windows • After a few moments, a window will tell you the wizard has finished installing software for Arduino Leonardo. Press the Finish button (from arduino.cc)
  • 32. Serial Port / COM Port
  • 33. Circuit 1: Basic Blink 33
  • 34. 34
  • 35. Parts of the Sketch
  • 37. void loop ( ) { }
  • 38. Why do I make a comment? • Comments are great ways to remind you what you did, teach other people what that code means, or to make a long description for your whole piece of code for licenses, date, and author
  • 39. Comments • Comments are ignored by the compiler • Comments can be anywhere • Comments can start with a // for a one-line comment • Another type of comment is multiple lines and starts with a /* and ends with a */
  • 41. 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
  • 42. Input Input is any signal entering an electrical system •Both digital and analog sensors are forms of input •Input can also take many other forms: Keyboards, a mouse, buttons, light sensors, or just plain voltage from a circuit
  • 43. Analog Input • To connect an analog Input to your Arduino, use Analog Pins # 0 - 5 • To get an analog reading: analogRead (pinNumber); • Analog Input varies from 0 to 1023 on an Arduino
  • 45. Circuit 2: Analog Reading
  • 48. Digital Sensors/Digital Input • Digital Input could be a switch or a button • To connect digital input to your Arduino use Digital Pins # 0 – 13 (Although pins # 0 & 1 are also used for serial) • 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 );
  • 49. 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 (for buttons, pressed, or not) • Signal is always either HIGH (On) or LOW (Off) • Voltage signal for HIGH will be a little less than 5V on your Leonardo • Voltage signal for LOW will be 0V on most systems
  • 50. Parts for Circuit 3: Arduino Leonardo Breadboard Pushbutton (2) LED (2) Resistor - 10K Ohm (2) Resistor - 330 Ohm (2) Jumper Wire
  • 54. Semicolons Semicolons are needed after every line of code, except for void setup(), void loop(), and a few others
  • 55. Operators The equals sign = is used to assign a value == is used to compare values
  • 56. Operators && is “and” || is “or”
  • 57. Variables Basic variable types: Boolean (on or off) Integer (a number) Character (a letter)
  • 58. Declaring Variables Boolean: boolean variableName;
  • 59. Declaring Variables Boolean: boolean variableName; Integer: int variableName;
  • 60. Declaring Variables Boolean: boolean variableName; Integer: int variableName; Character: char variableName;
  • 61. Declaring Variables Boolean: boolean variableName; Integer: int variableName; Character: char variableName; String: stringName [ ];
  • 62. Assigning Variables Boolean: variableName = true; or variableName = false;
  • 63. Assigning Variables Boolean: variableName = true; or variableName = false; Integer: variableName = 32767; or variableName = -32768;
  • 64. Assigning Variables Boolean: variableName = true; or variableName = false; Integer: variableName = 32767; or variableName = -32768; Character: variableName = ‘A’; or stringName = “Crashspace”;
  • 65. Variable Scope Where you declare your variables matters
  • 69. Common Functions pinMode(pin, kind); (declares pins) analogRead(pin); (reads an analog pin) digitalWrite(pin, state); (tells a pin to turn on (5V), or turn off (0V) if() {} (tells something to do a function, when something else happens for() {} (tells something to do a function over and over)
  • 70. Setup void setup ( ) { 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
  • 71. If Statements if ( this is true ) { do this; }
  • 72. If if ( this is true ) { do this; }
  • 73. Conditional if ( this is true ) { do this; }
  • 74. Action if ( this is true ) { do this; }
  • 75. Else else { do this; }
  • 76. Basic Repetition for (int count = 0; count<10; count++) { //for action code goes here //this could be anything }
  • 77. Basic Repetition for (int count = 0; count<10; count++) { //for action code goes here }
  • 78. Basic Repetition for (int count = 0; count<10; count++) { //for action code goes here }
  • 79. Basic Repetition for (int count = 0; count<10; count++) { //for action code goes here }
  • 80. Basic Repetition for (int count = 0; count<10; count++) { //for action code goes here }
  • 81. Basic Repetition for (int count = 0; count<10; count++) { //for action code goes here }
  • 82. Basic Repetition for (int count = 0; count<10; count++) { //for action code goes here }

Editor's Notes

  • #2: Ask What their name is, and why they took this class, what they dream of making\n
  • #3: \n
  • #4: Hopefully, everyone has. If not, give them the download drive, download to desktop, and then retrieve from them.\n
  • #5: Original Arduino team is 5.\n
  • #6: Projects.\n
  • #7: Explain everything, and have everybody look at theirs. We&amp;#x2019;re going to use these later.\n
  • #8: These are soldered Joystick Shields. Shields are used to expand the possibilities of the Arduino.\n
  • #9: \n
  • #10: These are commonly used components.\n
  • #11: Take a look at the LEDs, talk about cathode and anode.\n
  • #12: \n
  • #13: \n
  • #14: Look on your Breadboards. On the back, there is some adhesive covering the back, but here&amp;#x2019;s what&amp;#x2019;s inside.\n
  • #15: Key concept.\n
  • #16: Look at your Arduino. The bottom right of the Arduino should be all analog pins.\n
  • #17: \n
  • #18: \n
  • #19: Code is a different language than english.\n
  • #20: Have them look at their Arduino and identify the PWM pins.\n
  • #21: \n
  • #22: They have handouts on this.\n
  • #23: \n
  • #24: \n
  • #25: \n
  • #26: \n
  • #27: \n
  • #28: \n
  • #29: \n
  • #30: Now open up Arduino 1.0.1. Sketches are programs filled with code.\n
  • #31: \n
  • #32: \n
  • #33: Click on Find Arduino...\nNow, plug the USB cable into the Arduino, then into your computer.\nThe correct Serial/COM port should appear. \nRemember this port name.\nPress OK, and you should be done.\n\nFor Macs, this should be something like /dev/tty.usbserialft/\nFor Windows, this should be something above COM 3. COM 1 and 2 are usually reserved for Windows hardware ports.\n
  • #34: This sketch will blink the built in LED.\n
  • #35: File examples basic blink\nOpen arduino\nEncourage delay change\nChange blink to analog write.\n
  • #36: \n
  • #37: \n
  • #38: \n
  • #39: \n
  • #40: \n
  • #41: If you look back at the Blink sketch that we just made, you will see some comments up at the top.\n
  • #42: \n
  • #43: \n
  • #44: \n
  • #45: \n
  • #46: To get the code, go into the folder that you just downloaded, open the ArduSensorPotRead folder, and double click on the file named ArduSensorPotRead.ino.\n
  • #47: Once opening the Serial Monitor (pressing the magnifying glass in the upper right hand corner), you will see that there will be a constant value between 1 and 1000. Now tell them about how to turn it. Once code has been explained, have them change the 1000 to 100 or 10 or 5 or something.\n
  • #48: \n
  • #49: \n
  • #50: \n
  • #51: \n
  • #52: To get this code, go into the previous folder that we downloaded, open up the DigitalinputEx folder, and double click on DigitalinputEx.ino. Write connections on whiteboard.\n
  • #53: When you press one of the buttons, it will light one of the LEDs. When you press the other button, it will light the other LED.\n
  • #54: \n
  • #55: Take a look at the last example. This uses semicolons\n
  • #56: \n
  • #57: \n
  • #58: \n
  • #59: \n
  • #60: \n
  • #61: \n
  • #62: \n
  • #63: True=On\nFalse=Off\n
  • #64: anywhere in between those numbers for integers\n
  • #65: A string is a bunch of characters put together, or as we know it, words.\n
  • #66: \n
  • #67: Just plug in your ArduSensor Pot like you did before. This is the same circuit as #2, but a different sketch has been written for a different project.\n
  • #68: This will make the built in LED blink at a certain rate depending on how much you turn the potentiometer.\n
  • #69: \n
  • #70: \n
  • #71: This sets pin 13 as an output. \n
  • #72: This basically says that if the button is pressed, turn the LED on.\n
  • #73: \n
  • #74: \n
  • #75: \n
  • #76: Else means that if the if doesn&amp;#x2019;t run (basically the if isn&amp;#x2019;t true), the next function will work. This means that at least one piece of the code will run all of the time.\n
  • #77: If this is zero, and this is ten, this piece of code will run 10 times before moving on to the rest of the code.\n
  • #78: \n
  • #79: \n
  • #80: \n
  • #81: \n
  • #82: \n
  • #83: \n
  • #84: This project makes the QBar Graph light up proportionally to the value of the potentiometer, making a simple meter.\n
  • #85: \n
  • #86: \n
  • #87: \n