arduino introduction (blinking led) presentation (workshop #5)

48
THIRTY MINUTES TO MAKING: ARDUINO BASICS: THE BLINKING LED

Upload: uncg-university-libraries

Post on 25-May-2015

177 views

Category:

Education


2 download

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, 2014

TRANSCRIPT

Page 1: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

THIRTY MINUTES TO MAKING:ARDUINO BASICS: THE BLINKING LED

Page 2: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

PARTS!

 

 

 

Page 3: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

PARTS!

• Arduino

 

 

Page 4: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

PARTS!

• Arduino

• Components (LEDs, resistors, etc.)

 

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

PARTS!

• Arduino

• Components (LEDs, resistors, etc.)

  Your brain

Page 6: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

ARDUINO?

 

 

 

Page 7: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

ARDUINO?

• A programmable microcontroller

 

 

Page 8: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

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)

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)

PROGRAMMING?

 

 

 

 

Page 11: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

PROGRAMMING?

• We’re making sentences.

 

 

 

Page 12: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

PROGRAMMING?

• We’re making sentences.

• They have rules.

 

 

Page 13: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

PROGRAMMING?

• We’re making sentences.

• They have rules.

• They have to make sense.

 

Page 14: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

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)

MORE SPECIFICALLY?

 

 

 

Page 16: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

MORE SPECIFICALLY?

  Case-sensitive (capitals and lowercase are IMPORTANT).

 

 

Page 17: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

MORE SPECIFICALLY?

  Case-sensitive (capitals and lowercase are IMPORTANT).

• Certain words have specific meanings.

 

Page 18: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

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)

WHAT ARE PINS?

 

 

 

Page 20: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

WHAT ARE PINS?

• Little boxes at the top and bottom of the Arduino

 

 

Page 21: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

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)

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)

SIGNALS? THINK OF WATER:

 

 

 

Page 24: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

SIGNALS? THINK OF WATER:

  Faucets and drains

 

 

Page 25: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

SIGNALS? THINK OF WATER:

  Faucets and drains

• An OUTPUT is like a faucet.

 

Page 26: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

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)

FAUCETS?

 

 

 

 

Page 28: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

FAUCETS?

• A faucet that is on is HIGH – water is running.

 

 

 

Page 29: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

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)

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)

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)

DRAINS?

 

 

Page 33: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

DRAINS?

• Signal goes in - water is going into it.

 

Page 34: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

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)

GOING ON A ROAD TRIP?

 

 

 

 

 

 

 

 

 

Page 36: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

GOING ON A ROAD TRIP?

• Things to do before you get started.

 

 

 

 

 

 

 

 

Page 37: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

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)

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)

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)

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)

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)

THIS ISN’T A VACATION, SIR.

 

 

 

 

 

 

Page 43: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

THIS ISN’T A VACATION, SIR.

• Declarations

  int pin = 12;

 

 

 

 

Page 44: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

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)

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)

SEE IT IN ACTION!

Page 47: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

QUESTIONS?

Page 48: Arduino  Introduction (Blinking LED)  Presentation (workshop #5)

NEXT SESSION:

• Thirty Minutes To Making: Arduino Basics - Programming

• November 12, 2014 at 12:15pm

• http://uncg.libguides.com/workshops