Arduino Introduction (Blinking LED) Presentation (workshop #5)
-
Upload
uncg-university-libraries -
Category
Education
-
view
174 -
download
2
description
Transcript of Arduino Introduction (Blinking LED) Presentation (workshop #5)
![Page 1: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/1.jpg)
THIRTY MINUTES TO MAKING:ARDUINO BASICS: THE BLINKING LED
![Page 2: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/2.jpg)
PARTS!
![Page 3: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/3.jpg)
PARTS!
• Arduino
![Page 4: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/4.jpg)
PARTS!
• Arduino
• Components (LEDs, resistors, etc.)
![Page 5: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/5.jpg)
PARTS!
• Arduino
• Components (LEDs, resistors, etc.)
Your brain
![Page 6: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/6.jpg)
ARDUINO?
![Page 7: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/7.jpg)
ARDUINO?
• A programmable microcontroller
![Page 8: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/8.jpg)
ARDUINO?
• A programmable microcontroller
• Can take digital or analog inputs, process them, and return digital or analog outputs.
![Page 9: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/9.jpg)
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.
![Page 10: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/10.jpg)
PROGRAMMING?
![Page 11: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/11.jpg)
PROGRAMMING?
• We’re making sentences.
![Page 12: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/12.jpg)
PROGRAMMING?
• We’re making sentences.
• They have rules.
![Page 13: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/13.jpg)
PROGRAMMING?
• We’re making sentences.
• They have rules.
• They have to make sense.
![Page 14: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/14.jpg)
PROGRAMMING?
• We’re making sentences.
• They have rules.
• They have to make sense.
• They end in a semicolon (not a period).
![Page 15: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/15.jpg)
MORE SPECIFICALLY?
![Page 16: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/16.jpg)
MORE SPECIFICALLY?
Case-sensitive (capitals and lowercase are IMPORTANT).
![Page 17: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/17.jpg)
MORE SPECIFICALLY?
Case-sensitive (capitals and lowercase are IMPORTANT).
• Certain words have specific meanings.
![Page 18: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/18.jpg)
MORE SPECIFICALLY?
Case-sensitive (capitals and lowercase are IMPORTANT).
• Certain words have specific meanings.
Read on some pins and write to other pins.
![Page 19: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/19.jpg)
WHAT ARE PINS?
![Page 20: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/20.jpg)
WHAT ARE PINS?
• Little boxes at the top and bottom of the Arduino
![Page 21: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/21.jpg)
WHAT ARE PINS?
• Little boxes at the top and bottom of the Arduino
• Allow the Arduino to read and write electrical signals.
![Page 22: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/22.jpg)
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.
![Page 23: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/23.jpg)
SIGNALS? THINK OF WATER:
![Page 24: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/24.jpg)
SIGNALS? THINK OF WATER:
Faucets and drains
![Page 25: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/25.jpg)
SIGNALS? THINK OF WATER:
Faucets and drains
• An OUTPUT is like a faucet.
![Page 26: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/26.jpg)
SIGNALS? THINK OF WATER:
Faucets and drains
• An OUTPUT is like a faucet.
• An INPUT is like a drain in your sink.
![Page 27: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/27.jpg)
FAUCETS?
![Page 28: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/28.jpg)
FAUCETS?
• A faucet that is on is HIGH – water is running.
![Page 29: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/29.jpg)
FAUCETS?
• A faucet that is on is HIGH – water is running.
• A faucet that is off is LOW – water is off.
![Page 30: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/30.jpg)
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.
![Page 31: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/31.jpg)
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.
![Page 32: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/32.jpg)
DRAINS?
![Page 33: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/33.jpg)
DRAINS?
• Signal goes in - water is going into it.
![Page 34: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/34.jpg)
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.
![Page 35: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/35.jpg)
GOING ON A ROAD TRIP?
![Page 36: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/36.jpg)
GOING ON A ROAD TRIP?
• Things to do before you get started.
![Page 37: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/37.jpg)
GOING ON A ROAD TRIP?
• Things to do before you get started.
Get gas
• Wash windows
• Pack the car
![Page 38: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/38.jpg)
GOING ON A ROAD TRIP?
• Things to do before you get started.
Get gas
• Wash windows
• Pack the car
• Start the car
![Page 39: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/39.jpg)
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
![Page 40: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/40.jpg)
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
![Page 41: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/41.jpg)
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.
![Page 42: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/42.jpg)
THIS ISN’T A VACATION, SIR.
![Page 43: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/43.jpg)
THIS ISN’T A VACATION, SIR.
• Declarations
int pin = 12;
![Page 44: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/44.jpg)
THIS ISN’T A VACATION, SIR.
• Declarations
int pin = 12;
• Start it up
• void setup(){ stuff you do once goes here }
![Page 45: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/45.jpg)
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 }
![Page 46: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/46.jpg)
SEE IT IN ACTION!
![Page 47: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/47.jpg)
QUESTIONS?
![Page 48: Arduino Introduction (Blinking LED) Presentation (workshop #5)](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562be03d8b42a595e8b4dc3/html5/thumbnails/48.jpg)
NEXT SESSION:
• Thirty Minutes To Making: Arduino Basics - Programming
• November 12, 2014 at 12:15pm
• http://uncg.libguides.com/workshops