Living with the Lab Using Your Arduino, Breadboard and Multimeter EAS 199A Fall 2011 Work in teams of two!

Slides:



Advertisements
Similar presentations
Khaled A. Al-Utaibi Interfacing an LED The Light Emitting Diode (LED) Applications DC Characteristics & Operation Interfacing to.
Advertisements

MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
Using the Board of Education Breadboard and Your Multimeter ENGR 120 Work in teams of two!
Using the Arduino to Make an LED Flash Work in teams of two! living with the lab digital I/O pins (I/O = input / output) USB cable plug power pins.
Voltage Drops Around Closed Loops 470  220  5V   220  living with the lab.
Arduino. Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It's an open-source.
Basic Circuits – Lab 1 Xmedia Spring Basically Power –Provides energy for the sensor and the output Sensor –Changes aspects of the circuit based.
Embedded Programming and Robotics Lesson 1 Basic Electricity and Electronics Transistor Basics Lesson 1 -- Basic Electricity1.
Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
Experiment 3 Ohm’s Law.  The goals of Experiment 3 are:  To identify resistors based upon their color code.  To construct a two-resistor circuit using.
Basic Circuits – Lab 1 Xmedia Spring Basically Power –Provides energy for the sensor and the output Sensor –Changes aspects of the circuit based.
Embedded Programming and Robotics
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Write a program that will automatically control the brightness of a light based on the surrounding light level. Automatic Night Light.
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
Instrumental Analysis Electrical Components and Circuits.
Breadboards, Multimeters, and Resistors EGR1301. Your Multimeter leads probes pincer clips – good for working with Boe-Bot wiring You will use the multimeter.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Experiments Day 1 & 2 Resistors, Potentiometers and Photocells.
Experiments Day 1 Resistors.. Electronic Technology Definition: The technology of using small amounts of electricity for controlling, detecting, collecting,
Cascade switching of an LED EAS 199B Winter 2013.
470  220  Gnd5V Currents Through Parallel Resistors 1 living with the lab © 2011 LWTL faculty team.
Voltage Drops Around Closed Loops 470  220  5V   220  living with the lab © 2012 David Hall.
Digital Multimeter (DMM) Used to measure the following: Voltage – DC and AC Current – DC and AC Resistance Capacitance Temperature – w/ extra probe Also.
Computer Hardware Technology
How an NPN Transistor Works
Two basic types Ceramic disk Electrolytic Has positive and negative sides Farads – unit of measure (F) Microfarads(uF) and picofarads (pF) Cans have value.
Resistor Colour Code Why the Colour Code? The Colour code was developed to overcome two basic problems; Difficult to print and see numbers on a.
Daily Sprint START 1. If a computer uses 3A of current and is supplied with 120V of voltage, then what is the total resistance of the computer? 2. A circuit.
Resistors Foundations of Technology Resistors © 2013 International Technology and Engineering Educators Association, STEM  Center for Teaching and Learning™
Microcontroller basics Embedded systems for mortals.
Using Your Arduino, Breadboard and Multimeter ME 120 Fall 2013 Work in teams of two!
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
Controlling an LED with a switch. 2 breadboard place where you can build electric circuits really quickly the magical breadboard.
1 Transistor. 2 Transistors are used to turn components on and off They come in all different shapes and sizes.
Resistance. Resistor A resistor is part of an electric circuit that resists the flow of electric current. As current flows through a resistor, some of.
Prototyping with Microcontrollers and Sensors. Overview Objective Background Information Problem Statement Materials Procedure Assignment Closing.
Building Circuits.
Having fun with code, using Arduino in a middle school CS classroom
Experiment #1 Measurement of Resistance
Prototyping with Microcontrollers and Sensors
Microcontroller basics
UTA010 : Engineering Design – II
An Arduino Workshop A Microcontroller.
Resistors How can we intentionally change the amount of resistance in our circuit?
Welcome to Arduino A Microcontroller.
Introduction to Arduino Microcontrollers
Introduction to Arduino Microcontrollers
How to avoid catching things on fire.
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
Resistance Resistance Gateway To Technology
using the Arduino to make LEDs flash
Digital Multimeter (DMM)
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
JC Technology Resistors.
Welcome to Digital Electronics using the Arduino Board
Chapter 1 Introduction of Arduino
Arduino Part 4 Let there be more light.
How an NPN Transistor Works
Prototyping with Micro-controllers, Sensors, and Materials
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino Motor Lab Inspired by NYU ITP project
Prototyping with Micro-controllers, Sensors, and Materials
Arduino Uno circuit basics
Prototyping with Micro-controllers, Sensors, and Materials
Intro to Arduino Part 2 The Breadboard
Prototyping with Micro-controllers, Sensors, and Materials
Arduino程式範例.
2019 Investing Now Summer Program
Presentation transcript:

Living with the Lab Using Your Arduino, Breadboard and Multimeter EAS 199A Fall 2011 Work in teams of two!

Living with the Lab Your Multimeter leads probes pincer clips – good for working with breadboard wiring You will use the multimeter to understand and troubleshoot circuits, mostly measuring DC voltage, resistance and DC current. Turn knob to select the type of measurement. (push these onto probes)

Living with the Lab The Arduino Duemilanove Power can be provided through the USB cable (+5V from the computer) or externally (7-12V supply recommended) Duemilanove means “2009” in Italian

Living with the Lab The Arduino Uno Power can be provided through the USB cable (+5V from the computer) or externally (7-12V supply recommended) The Arduino Uno was released in September 2010 as an update to the Duemilanove

Living with the Lab Measure V in Vin is the voltage of the power supply. The USB supplies a nominal 5V (4.43V was measured when this photo was taken)

Living with the Lab Change power source and measure Vin In this photo, a 7V DC power supply was plugged into the power jack of the Arduino.

Living with the Lab Check Voltage at 5V Power Pin The on-board voltage regulator maintains the voltage on the 5V pin at about 5V The measured voltage is close to 5V target.

Living with the Lab Check Voltage at 3.3V Pin The FIDI chip on the Arduino, which helps the microcontroller talk with your computer through the USB cable, also has an on-board voltage regulator that outputs 3.3V. If you need less than 5V for a project, you can use the 3.3V pin, Which provides about 3.3V. The current draw from the 3V3 pin is limited to 50mA. max power = V∙I = 3.3V∙0.05A = 0.165W = 165mW

Living with the Lab Select Resistors Find the 330  and the 10k  resistors from your parts kit. Now, find the 10k  resistor. Example: 330  resistor: 3 = orange Add 1 zero to 33 to make 330, so 1 = brown So, 330 = orange, orange, brown colordigit black0 brown1 red2 orange3 yellow4 green5 blue6 violet7 gray8 white9 first digit second digit number of zeros tolerance gold = ±5% silver = ±20%

Living with the Lab Check Resistance of Resistors

Living with the Lab Building a circuit on a breadboard

Living with the Lab LED circuit: Two equivalent pictures

Living with the Lab Building an LED Circuit Supplies: 2 two jumper wires – colors don’t matter, but red is usually used for positive, and black is used for negative LED 330 Ω and 10kΩ resistors Arduino Breadboard USB cable from your computer)

Living with the Lab LEDs Electricity can only flow one way through an LED (or any diode). The flat spot on the LED must be connected to ground (GND). LED = Light Emitting Diode Diagram from Wikipedia description of an LED electronic symbol + -

Living with the Lab Building an always-on LED Circuit Short leg of LED connects to ground wire

Living with the Lab Breadboard LED circuit

Living with the Lab The Circuit These circuit diagrams are equivalent Symbol for ground (GND)

Living with the Lab Replace the 330  Resistor with the 10k  Resistor What happens and Why?? ANSWER: The smaller resistor (330 ) provides less resistance to current than the larger resistor (10k  ). For the same applied voltage, increasing the resistance decreases the current. Therefore, replacing the 300 resistor with the 10k resistor reduces the current and causes the LED to glow less brightly. What would happen if you forgot to put in a resistor? You would probably burn up your LED.

Living with the Lab Arduino program to blink an LED Build the circuit on the breadboard –A slight modification to always-on LED circuit Write your first Arduino program Use the digital (on/off) output to turn LED on and off

Living with the Lab Connect the Power Wire to Pin 2 (Use P2 as a digital output) Enter and run the following program: void setup() { // initialize pin as an output: pinMode(2, OUTPUT); } void loop() { // turn the LED on digitalWrite(2, HIGH); // wait 1 second = 1000 ms delay(1000); // turn the LED off digitalWrite(2, LOW); // wait for 500 ms delay(500); }

Living with the Lab How the Program Works HIGH = 5V and LOW = 0V (Always!!!!) void setup() { pinMode(2, OUTPUT); } void loop() { digitalWrite(2, HIGH); delay(1000); digitalWrite(2, LOW); delay(500); } initialize pin 2 as an output infinite loop set pin 2 to LOW (0V) wait 500 ms set pin 2 to HIGH (5V) wait 1000 ms time (ms) voltage (V) 0V 5V 500 ms1000 ms

Living with the Lab Now Experiment on Your Own! (1)Try changing the time to 1.5 seconds on and 1 second off (2)Connect the resistor to digital pin 5 and change the program to match (3)Blink out SOS in Morse code (dot-dot-dot-dash-dash-dash-dot-dot-dot) a.three short pulses (0.25 seconds each) followed by... b.three long pulses (0.75 second each) followed by... c.three short pulses (0.25 seconds each) followed by... d.a brief pause (1 second) e.repeat a through d using an infinite loop Show your instructor when you have completed exercise (3)

Living with the Lab Find the each command in the reference section of arduino.cc (discuss each command with others at your table) void setup() { // initialize the digital pin as an output: pinMode(2, OUTPUT); } void loop() { digitalWrite(2, HIGH); // set the LED on delay(1000); // wait for a second digitalWrite(2, LOW); // set the LED off delay(500); // wait for 500 ms }