15
Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 2012 David Hall

Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall

Embed Size (px)

Citation preview

Page 1: Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall

Using Your Arduino, Breadboard and Multimeter

Work in teams of two!

living with the lab

1© 2012 David Hall

Page 2: Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall

living with the lab

2

The content of this presentation is for informational purposes only and is intended only for students attending Louisiana Tech University.

The author of this information does not make any claims as to the validity or accuracy of the information or methods presented.

Any procedures demonstrated here are potentially dangerous and could result in injury or damage.

Louisiana Tech University and the State of Louisiana, their officers, employees, agents or volunteers, are not liable or responsible for any injuries, illness, damage or losses which may result from your using the materials or ideas, or from your performing the experiments or procedures depicted in this presentation.

If you do not agree, then do not view this content.

The copyright label, the Louisiana Tech logo, and the “living with the lab” identifier should not be removed from this presentation.

You may modify this work for your own purposes as long as attribution is clearly provided.

DISCLAIMER & USAGE

Page 3: Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall

Your Multimeter

leads

probes

You will use the multimeter to understand and troubleshoot circuits, mostlymeasuring DC voltage, resistance and DC current.

turn knob to what youwould like to measure

pincer clips – good for workingwith robot wiring

(push these onto probes)

living with the lab

3

Page 4: Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall

The Arduino Duemilanove (older version of the Uno)

14 digital I/O pins (I/O = input / output)

USB cable plug

external power plug

microcontroller(the brains)Power can be provided through the USB cable (+5V from

the computer) or externally (7-12V supply recommended)

power pins

on-board voltageregulator

analog input pins

living with the lab

4

Page 5: Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall

Measure VinVin will be the same as your power supply voltage. The battery pack here has8 AA batteries, resulting in approximately 12V (11.68V was measured)

Vin = power supply voltage Gnd = ground (negative)

switch to DC Volts

living with the lab

5

Page 6: Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall

Check Voltage at 5V Power PinThe on-board voltage regulator reduces the voltage from Vin down to about 5V

5V = power from on-board voltage regulator Gnd = ground (negative)

switch to DC Volts

Notice that the regulated voltage is very close to the “target” of 5V

living with the lab

6

Page 7: Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall

Check Voltage at 3V3 PinThe Arduino also has an on-board voltage regulator that outputs 3.3V.

3.3V = power from USB chip Gnd = ground (negative)

switch to DC Volts

If you ever need less than 5Vfor a project, you can use thispin. The current that you candraw from this pin is limited to50mA.

max power = V I ∙ = 3.3V 0.05A∙

= 0.165W= 165mW

living with the lab

7

Page 8: Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall

Select Resistors Find the 470W and the 10k W resistors from your parts kit.

Now, find the 10kW resistor.

Example: 470 W resistor:

4 = yellow7 = violetAdd 1 zero to 47 to make 470, so 1 = brown

So, 470 = yellow, violet, brown

color digit

black 0

brown 1

red 2

orange 3

yellow 4

green 5

blue 6

violet 7

gray 8

white 9

firstdigit

seconddigit

numberof zeros

tolerancegold = ±5%

silver = ±20%

living with the lab

8

Page 9: Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall

set multimeterto measure W

R ~ 470W

Check Resistance of Resistors

470W resistor

living with the lab

9

Page 10: Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall

LEDs (Light Emitting Diodes)

Electricity can only flow one way through an LED (or any diode). The flat spot on the LED must be connected to ground (GND).

Diagram from Wikipedia description of an LED

electronic symbol

+ -

living with the lab

10

Page 11: Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall

Building an LED Circuit

Supplies:• 2 wires – cut a little longer than the jumper wires

that come with your kit and strip the ends• LED• 470W resistor• battery pack (or you can power the system using

the USB cable from your computer)

living with the lab

11

Page 12: Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall

Building an LED Circuit(the next slide explains how the breadboard works)

red wire to +5V supplygreen wire to Gnd

short leg of LED connectsto ground wire

living with the lab

12

Page 13: Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall

Breadboarding

these pins arenot connected

these pins areconnected

the two sidesare not connected

living with the lab

13

Page 14: Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall

The Circuit

5V+

-

470W

470W

5V

these circuit diagramsare equivalent

symbol for ground (Gnd)

living with the lab

14

Page 15: Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall

Replace the 470 W Resistor with the 10kW ResistorWhat happens and Why??

ANSWER: The smaller resistor (470W) provides less resistance to current thanthe larger resistor (10kW). Since more current passes through the smallerresistor, more current also passes through the LED making it brighter.

What would happen if you forgot to put in a resistor? You would probably burn up your LED.

living with the lab

15

The End