arduino introduction (blinking led) presentation (workshop #5)
DESCRIPTION
This Arduino Introduction presentation are the power point slides - see the PDF version for a step by step screenshots of what we showed live during the online workshops. A workshop as part of series of online workshops, stemmed from an LSTA grant to educate librarians and library school students on makerspaces, especially in academic libraries. October 15, 2014TRANSCRIPT
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