KEMBAR78
Arduino Introduction (Blinking LED) Presentation (workshop #5) | PPTX
THIRTY MINUTES TO 
MAKING: 
ARDUINO BASICS: THE BLINKING LED
PARTS!
PARTS! 
• Arduino
PARTS! 
• Arduino 
• Components (LEDs, resistors, etc.)
PARTS! 
• Arduino 
• Components (LEDs, resistors, etc.) 
Your brain
ARDUINO?
ARDUINO? 
• A programmable microcontroller
ARDUINO? 
• A programmable microcontroller 
• Can take digital or analog inputs, process 
them, and return digital or analog outputs.
ARDUINO? 
• A programmable microcontroller 
• Can take digital or analog inputs, process 
them, and return digital or analog outputs. 
• Get stuff, think about stuff, do stuff.
PROGRAMMING?
PROGRAMMING? 
• We’re making sentences.
PROGRAMMING? 
• We’re making sentences. 
• They have rules.
PROGRAMMING? 
• We’re making sentences. 
• They have rules. 
• They have to make sense.
PROGRAMMING? 
• We’re making sentences. 
• They have rules. 
• They have to make sense. 
• They end in a semicolon (not a period).
MORE SPECIFICALLY?
MORE SPECIFICALLY? 
Case-sensitive (capitals and lowercase are 
IMPORTANT).
MORE SPECIFICALLY? 
Case-sensitive (capitals and lowercase are 
IMPORTANT). 
• Certain words have specific meanings.
MORE SPECIFICALLY? 
Case-sensitive (capitals and lowercase are 
IMPORTANT). 
• Certain words have specific meanings. 
Read on some pins and write to other pins.
WHAT ARE PINS?
WHAT ARE PINS? 
• Little boxes at the top and bottom of the 
Arduino
WHAT ARE PINS? 
• Little boxes at the top and bottom of the 
Arduino 
• Allow the Arduino to read and write electrical 
signals.
WHAT ARE PINS? 
• Little boxes at the top and bottom of the 
Arduino 
• Allow the Arduino to read and write electrical 
signals. 
The program interprets their meaning.
SIGNALS? THINK OF WATER:
SIGNALS? THINK OF WATER: 
Faucets and drains
SIGNALS? THINK OF WATER: 
Faucets and drains 
• An OUTPUT is like a faucet.
SIGNALS? THINK OF WATER: 
Faucets and drains 
• An OUTPUT is like a faucet. 
• An INPUT is like a drain in your sink.
FAUCETS?
FAUCETS? 
• A faucet that is on is HIGH – water is running.
FAUCETS? 
• A faucet that is on is HIGH – water is running. 
• A faucet that is off is LOW – water is off.
FAUCETS? 
• A faucet that is on is HIGH – water is running. 
• A faucet that is off is LOW – water is off. 
• A pin set to OUTPUT and then given a ‘write 
HIGH’ command sends a signal out.
FAUCETS? 
• A faucet that is on is HIGH – water is running. 
• A faucet that is off is LOW – water is off. 
• A pin set to OUTPUT and then given a ‘write 
HIGH’ command sends a signal out. 
• That same pin, given a ‘write LOW’ command 
stops sending an electrical signal.
DRAINS?
DRAINS? 
• Signal goes in - water is going into it.
DRAINS? 
• Signal goes in - water is going into it. 
A pin set to INPUT and then given a read 
command allows the signal to come in.
GOING ON A ROAD TRIP?
GOING ON A ROAD TRIP? 
• Things to do before you get started.
GOING ON A ROAD TRIP? 
• Things to do before you get started. 
Get gas 
• Wash windows 
• Pack the car
GOING ON A ROAD TRIP? 
• Things to do before you get started. 
Get gas 
• Wash windows 
• Pack the car 
• Start the car
GOING ON A ROAD TRIP? 
• Things to do before you get started. 
Get gas 
• Wash windows 
• Pack the car 
• Start the car 
• Turn the key 
• Back it out of the driveway
GOING ON A ROAD TRIP? 
• Things to do before you get started. 
Get gas 
• Wash windows 
• Pack the car 
• Start the car 
• Turn the key 
• Back it out of the driveway 
Drive
GOING ON A ROAD TRIP? 
• Things to do before you get started. 
Get gas 
• Wash windows 
• Pack the car 
• Start the car 
• Turn the key 
• Back it out of the driveway 
Drive 
• Keep going until you stop.
THIS ISN’T A VACATION, SIR.
THIS ISN’T A VACATION, SIR. 
• Declarations 
int pin = 12;
THIS ISN’T A VACATION, SIR. 
• Declarations 
int pin = 12; 
• Start it up 
• void setup(){ stuff you do once goes here }
THIS ISN’T A VACATION, SIR. 
• Declarations 
int pin = 12; 
• Start it up 
• void setup(){ stuff you do once goes here } 
• Get driving 
void loop() { stuff you keep doing goes here }
SEE IT IN ACTION!
QUESTIONS?
NEXT SESSION: 
• Thirty Minutes To Making: Arduino Basics - 
Programming 
• November 12, 2014 at 12:15pm 
• http://uncg.libguides.com/workshops

Arduino Introduction (Blinking LED) Presentation (workshop #5)

  • 1.
    THIRTY MINUTES TO MAKING: ARDUINO BASICS: THE BLINKING LED
  • 2.
  • 3.
  • 4.
    PARTS! • Arduino • Components (LEDs, resistors, etc.)
  • 5.
    PARTS! • Arduino • Components (LEDs, resistors, etc.) Your brain
  • 6.
  • 7.
    ARDUINO? • Aprogrammable microcontroller
  • 8.
    ARDUINO? • Aprogrammable microcontroller • Can take digital or analog inputs, process them, and return digital or analog outputs.
  • 9.
    ARDUINO? • Aprogrammable microcontroller • Can take digital or analog inputs, process them, and return digital or analog outputs. • Get stuff, think about stuff, do stuff.
  • 10.
  • 11.
    PROGRAMMING? • We’remaking sentences.
  • 12.
    PROGRAMMING? • We’remaking sentences. • They have rules.
  • 13.
    PROGRAMMING? • We’remaking sentences. • They have rules. • They have to make sense.
  • 14.
    PROGRAMMING? • We’remaking sentences. • They have rules. • They have to make sense. • They end in a semicolon (not a period).
  • 15.
  • 16.
    MORE SPECIFICALLY? Case-sensitive(capitals and lowercase are IMPORTANT).
  • 17.
    MORE SPECIFICALLY? Case-sensitive(capitals and lowercase are IMPORTANT). • Certain words have specific meanings.
  • 18.
    MORE SPECIFICALLY? Case-sensitive(capitals and lowercase are IMPORTANT). • Certain words have specific meanings. Read on some pins and write to other pins.
  • 19.
  • 20.
    WHAT ARE PINS? • Little boxes at the top and bottom of the Arduino
  • 21.
    WHAT ARE PINS? • Little boxes at the top and bottom of the Arduino • Allow the Arduino to read and write electrical signals.
  • 22.
    WHAT ARE PINS? • Little boxes at the top and bottom of the Arduino • Allow the Arduino to read and write electrical signals. The program interprets their meaning.
  • 23.
  • 24.
    SIGNALS? THINK OFWATER: Faucets and drains
  • 25.
    SIGNALS? THINK OFWATER: Faucets and drains • An OUTPUT is like a faucet.
  • 26.
    SIGNALS? THINK OFWATER: Faucets and drains • An OUTPUT is like a faucet. • An INPUT is like a drain in your sink.
  • 27.
  • 28.
    FAUCETS? • Afaucet that is on is HIGH – water is running.
  • 29.
    FAUCETS? • Afaucet that is on is HIGH – water is running. • A faucet that is off is LOW – water is off.
  • 30.
    FAUCETS? • Afaucet that is on is HIGH – water is running. • A faucet that is off is LOW – water is off. • A pin set to OUTPUT and then given a ‘write HIGH’ command sends a signal out.
  • 31.
    FAUCETS? • Afaucet that is on is HIGH – water is running. • A faucet that is off is LOW – water is off. • A pin set to OUTPUT and then given a ‘write HIGH’ command sends a signal out. • That same pin, given a ‘write LOW’ command stops sending an electrical signal.
  • 32.
  • 33.
    DRAINS? • Signalgoes in - water is going into it.
  • 34.
    DRAINS? • Signalgoes in - water is going into it. A pin set to INPUT and then given a read command allows the signal to come in.
  • 35.
    GOING ON AROAD TRIP?
  • 36.
    GOING ON AROAD TRIP? • Things to do before you get started.
  • 37.
    GOING ON AROAD TRIP? • Things to do before you get started. Get gas • Wash windows • Pack the car
  • 38.
    GOING ON AROAD TRIP? • Things to do before you get started. Get gas • Wash windows • Pack the car • Start the car
  • 39.
    GOING ON AROAD TRIP? • Things to do before you get started. Get gas • Wash windows • Pack the car • Start the car • Turn the key • Back it out of the driveway
  • 40.
    GOING ON AROAD TRIP? • Things to do before you get started. Get gas • Wash windows • Pack the car • Start the car • Turn the key • Back it out of the driveway Drive
  • 41.
    GOING ON AROAD TRIP? • Things to do before you get started. Get gas • Wash windows • Pack the car • Start the car • Turn the key • Back it out of the driveway Drive • Keep going until you stop.
  • 42.
    THIS ISN’T AVACATION, SIR.
  • 43.
    THIS ISN’T AVACATION, SIR. • Declarations int pin = 12;
  • 44.
    THIS ISN’T AVACATION, SIR. • Declarations int pin = 12; • Start it up • void setup(){ stuff you do once goes here }
  • 45.
    THIS ISN’T AVACATION, SIR. • Declarations int pin = 12; • Start it up • void setup(){ stuff you do once goes here } • Get driving void loop() { stuff you keep doing goes here }
  • 46.
    SEE IT INACTION!
  • 47.
  • 48.
    NEXT SESSION: •Thirty Minutes To Making: Arduino Basics - Programming • November 12, 2014 at 12:15pm • http://uncg.libguides.com/workshops