Controlling an LED with a switch. 2 breadboard place where you can build electric circuits really quickly the magical breadboard.

Slides:



Advertisements
Similar presentations
Breadboarding and Electronic Components. What is a Breadboard? Sometimes called a proto-board Reusable platform for temporarily built electronic circuits.
Advertisements

Electricity and Circuits
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
Using the Board of Education Breadboard and Your Multimeter ENGR 120 Work in teams of two!
1 Boe-Bot Parts BOE-BOT Lecture #1b DE - Digital Electronics.
Living with the Lab Using Your Arduino, Breadboard and Multimeter EAS 199A Fall 2011 Work in teams of two!
Voltage Drops Around Closed Loops 470  220  5V   220  living with the lab.
Simple Electronics: Ring Oscillator
Designed by Emilius K..  A resistor is a passive two-terminal electrical component that implements electrical resistance as a circuit element.passivetwo-terminalelectrical.
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.
Presented by Tim Surtell in association with
Purpose Learn how to use basic electronic equipment:
You will need the following parts from your kit: 1.Breadboard ohm resistor (brown, black, brown, gold) 3.1 LED (light emitting diode) 4.1 Potentiometer.
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
BASIC Stamp Editor Once installed, the Stamp Editor will be available on your desktop, and as a menu option under Start  Program Files  Parallax Inc.
Gate Anode Cathode. You will need the following parts from your kit: 1.Breadboard ohms resistor (red, red, brown, gold) ohms resistor (brown,
Switches & whiskers on the Arduino living with the lab lever arm switches mounted to Arduino © 2012 David Hall.
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.
Boe-Bot Review.
Daily Sprint START In your own words describe the functions of the following: variable resistor photoresistor fixed resistor.
1 Basic Electronics Voltage (V or E): Potential difference between 2 points. Volts. (+) - A lack of electrons (-) – A surplus of electrons When a circuit.
NPN Foundations of Technology NPN © 2013 International Technology and Engineering Educators Association, STEM  Center for Teaching and Learning™ Foundations.
Basic Circuits Foundations of Technology Basic Circuits © 2013 International Technology and Engineering Educators Association, STEM  Center for Teaching.
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,
SCR (Silicon-Controlled Rectifier) Foundations of Technology SCR (Silicon-Controlled Rectifier) © 2013 International Technology and Engineering Educators.
Potentiometer Foundations of Technology Potentiometer © 2013 International Technology and Engineering Educators Association, STEM  Center for Teaching.
Capacitor Foundations of Technology Capacitor © 2013 International Technology and Engineering Educators Association, STEM  Center for Teaching and Learning™
Introduction to Electric Circuits. What is Electricity? No one really knows… A good definition for our class is: “Electricity is the flow of electrons.
Introduction to Electric Circuits. What is Electricity? No one really knows… A good definition for our class is: “Electricity is the flow of electrons.
Voltage, V Voltage tells us how hard a positive charge is pushed between two different points. Something, such as a battery, is needed to create a voltage.
220  470  Gnd5V Currents Through Parallel Resistors 1 living with the lab © 2012 David Hall.
470  220  Gnd5V Currents Through Parallel Resistors 1 living with the lab © 2011 LWTL faculty team.
Digital Electronics Board-of-Education : Input. Board of Education - Input This presentation will explain, both from a hardware and software perspective,
Physics 2225: Working With Electronic Equipment Purpose  Learn how to use basic electronic equipment: Digital multi meter Oscilloscope Function generator.
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.
ECS642U Embedded Systems Simple Electronics William Marsh.
Computer Hardware Technology
How an NPN Transistor Works
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.
Analog to Digital Converter David Wallace English 314.
Basic Stamp OEM module By Wilmer Arellano. 2  The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form. 
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™
Here are some graphics for the ohm’s law lesson. Read through the book, work out the assigned problems, and come up with a lesson plan (written on paper)
CONDUCTION, INSULATION AND PROTECTION. CONDUCTION Energy (eg. Electrical) transfer from one material to another by direct contact. Conductors are materials.
Using Your Arduino, Breadboard and Multimeter ME 120 Fall 2013 Work in teams of two!
Building controller with joystick and buttons. put joystick together (keep things in order below)
Diode Foundations of Technology Diode © 2013 International Technology and Engineering Educators Association, STEM  Center for Teaching and Learning™ Foundations.
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.
Building Circuits.
Experiment #1 Measurement of Resistance
Introduction to Electric Circuits
Resistance A resistor is a component in a circuit that transforms electrical energy into other types of energy. Some resistors like the heating element.
Introduction to Handshaking Communication with SSC-32
Circuit Introduction Section 1:
Resistance Resistance Gateway To Technology
Digital Multimeter (DMM)
JC Technology Resistors.
Basic Electronics Part Two: Electronic Components.
Circuits Lecture 3.
Arduino Part 4 Let there be more light.
How a PNP Transistor Works
How an NPN Transistor Works
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Passive Infrared Sensor
Intro to Arduino Part 2 The Breadboard
Presentation transcript:

controlling an LED with a switch

2 breadboard place where you can build electric circuits really quickly the magical breadboard

3 breadboard (for building circuits) digital input / output pins 0 to 15 image credit: power pins and digital input output V dd = 5V + V ss = 0V or ground -

check voltage between V dd and V ss 1. press wires into holes (Vdd and Vss) 2. turn knob to DCV (voltage) 3. look at reading

we will use 220 ohm and a 10,000 ohm resistors Example: 10k  resistor: 1 = brown 0 = blace Add 3 zeros to 10 to make 10,000 so 3 = orange So, 10kΩ = brown, black, orange colordigit black0 brown1 red2 orange3 yellow4 green5 blue6 violet7 gray8 white9 first digit second digit number of zeros tolerance gold = ±5% silver = ±20% 5 (find these in your kit)

set multimeter to measure  R = k  check resistance 220  resistor 6

LEDs (light emitting diodes) Diagram from Wikipedia description of an LED electronic symbol The flat spot on the LED must be connected to ground (GND)

connecting an LED Electricity can only flow one way through an LED (or any diode). LED = Light Emitting Diode Diagram from the Parallax Robotics book 8

LED (short leg to Vss) hook up LED 220  resistor 9 Vdd (5 volts) Vss (ground)

LED (short leg to Vss) hook up LED like this and run this program 220  resistor 10 P0 (pin zero) Vss (ground) jumper wire (color doesn’t matter)

Causes pin 0 to output a constant 5V (Vdd) how the program works infinite loop Causes pin 0 to output a constant 0V (Vss) HIGH = 5V and LOW = 0V (Always!!!!) wait 50 ms Wait 50 ms 11

12 hooking up your switch when the switch is not pressed, electricity can pass through the normally closed (NC) path when the switch is pressed, electricity can pass through the normally open (NO) path

check two switches with multimeters (forward & left) 2. turn knob to Ω (electrical resistance in ohms) 1. hook up switch like this look at reading O.L = over the limit or infinite resistance (switch is open) if a small number shows up (a few ohms), then the switch is working! (switch is closed)

digital input to P2 (pin 2) wire goes to P2 This program prints the status of P2, which is one when P2 is high an zero when P2 is low. The command DEBUG BIN IN2 prints the status of P2 as a binary number.

make LED blink when switch is pressed 220Ω P0 (pin 0) Vss = ground 10k  switch P2 (pin 2) Vdd = 5V Vss = ground Vss (ground) resistor to P0 and wire to P2