ME456: Mechatronics Systems Design Lecture 3 Chapter 2: Lights On –Lights Off Prof. Clark J. Radcliffe Mechanical Engineering Michigan State University.

Slides:



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

10 Ways to Ruin Your Mini-Max microcontroller (and lose $69)
Basic Electronic Components
1 Chapter 2: Light on- Lights off Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A.
Fair Use Building and Research Labs Presents
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!
Light Emitting Diode: LED. What is an LED?  Light-emitting diode  Semiconductor  Has polarity.
ECE 265 – LECTURE 13 Interface to switches and LEDs 7/3/ ECE265.
Digital I/O Connecting to the Outside World
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.
Presented by Tim Surtell in association with
© 2012 Pearson Education. Upper Saddle River, NJ, All rights reserved. Electronic Devices, 9th edition Thomas L. Floyd Electronic Devices Ninth.
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
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
Ch4 Electronic Components Circuit/Schematic Symbols.
1 Applied Control Systems Technology. 2 Pin configuration Applied Control Systems.
Purpose of Voltage Regulators
1 Basic Electronics Voltage (V or E): Potential difference between 2 points. Volts. (+) - A lack of electrons (-) – A surplus of electrons When a circuit.
Practice Problems to become familiar with circuits and circuit diagrams.
MICRO CONTROLLER MODULE 1. Learning Objectives Name some gadgets that use microcontrollers. Define a microcontroller. Differentiate between a computer.
Series and Parallel Circuits Making Electricity Work for Us.
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. 
Electronic Components Circuit/Schematic Symbols. RESISTOR Resistors restrict the flow of electric current, for example a resistor is placed in series.
ME456: Mechatronics Prof. Clark J. Radcliffe Mechanical Engineering
Electronics Speaker Project Mr Sanders.
Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.
Analog to Digital Converter David Wallace English 314.
ME456:Mechatronics WAM Chapter 1: Getting Started Prof. Clark J. Radcliffe Mechanical Engineering Michigan State University
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. 
Concepts of Engineering and Technology Basic Electricity and Electronics: DC Circuits Copyright © Texas Education Agency, All rights reserved. 1.
Unit 13 Electric Circuits
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. 
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. 
Electronics for Physical Computing Materials: capacitor, diode, LED, transistor, switch,resistor, relay, proto board, multimeter.
Introduction to Electronic Circuits Khansaa Almansor.
Controlling an LED with a switch. 2 breadboard place where you can build electric circuits really quickly the magical breadboard.
Class Parts List Breadboard 1 Wire kit 1 Red LEDs 3 Green LEDs 3 Yellow LEDs 1 Photoresistor 1 xPiezo sensor 1 Button 3 Slide button, switch 1 Reed switch.
Sensors and Actuators Simple Sensors Switches and Pots Other Sensors Simple Actuators LEDs and Buzzers DC Motors MAE 156A.
IAT 267 Introduction to Technological Systems 1 Week 2 Workshop Basics of Electronic Circuits.
WARM UP Draw a picture of a SERIES Circuit. Show a battery, a switch, and a light bulb in your drawing. Draw a picture of a PARALLEL Circuit. Show a battery,
Electronic Devices Ninth Edition Floyd Chapter 17.
Pulse Detector Ramiro Duarte, Clayton Greenbaum Frank Paynter
Fair Use Building and Research Labs Presents
Unit 3 – Fundamentals of Electronics Examination Specifications
Unit 3 – Fundamentals of Electronics Examination Specifications
How to avoid catching things on fire.
Electronic Education Kits
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.
Components and Schematics
PLC Hardware Components.
Raspberry Pi: External Inputs & Outputs
Saving Lighting Energy with the BBC micro:bit
Light Emitting Diode: LED
Basic Electronics Part Two: Electronic Components.
Fair Use Building and Research Labs Presents
Comparator Circuits AIM:
Basic circuits Electrical circuits Electrical properties Ohm’s law
Light Emitting Diode: LED
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Electricity and Circuits
Light Emitting Diode: LED
Voltage, Current and Resistance
I/O Experiments Assignment 1.
Presentation transcript:

ME456: Mechatronics Systems Design Lecture 3 Chapter 2: Lights On –Lights Off Prof. Clark J. Radcliffe Mechanical Engineering Michigan State University

Indicator Lights First external device An Output to human operator –Indicates binary condition On/Off, True/False, OK/Fault, etc. Your Indicator Light – the LED –“Light Emitting Diode” Makes other outputs possible

LED Electrical Properties –Constant “diode drop” of volts Depends on color (semiconductor) used –Current: Max about 15 ma, Min about 5 ma Get light anywhere in that range –Too much of either… SMOKE!!!

Current Limiting Resistor Assume 5 volt supply –Resistance, Ohm = Potential/current But there is no 500 Ohm Resistor … –Use 470 Ohm (Closest to 500)

Wrong Current Limit? With 5 volt supply and 1 volt diode drop –R = 220: I = V/R = (5-1)/220 = 18.2 mA –R = 470: I = V/R = (5-1)/470 = 8.5 mA –R = 690: I = V/R = (5-1)/690 = 5.8 mA Either 220 or 470 are commonly used

The Board of Education Has connections directly to BS2 pins No current protection for I/O pins –Too much current (over mA) burns out I/O pin Be Careful… –The BS2 you save may be yours…

The Homework Board Built-in 220 Ohm current limiters –Why??? To limit max current (short) on any pin I = V/R = 5 volt/220 Ohm = 23 mA –This protects the BS2 components from an inadvertent short When can this happen? –Let’s talk I/O pins

The Homework Board 220 Ohm resistors protect I/O pins 220 Ohm Resistors (16) Breadboard Serial Connector 9 volt Battery Connector Reset Switch I/O pin current limited to 5 volt/220 Ohm = 23 mA

Basic Stamp I/O Pins Two Operating Conditions –“Input” or “High Impedance” Used to sense level –Near 5 volts (above 3.5 volts) = “True”, “1” –Near 0 volts (below 1.5 volts) = “False”, “0” Input impedance is about 10M Ohm (very high) –I = 5 volts/10x10 6 Ohm = 5 10x10 -7 Amp (very small) –“Output” or “Low Impedance” Used to set level… “1” = 5 volts, “0” = 0 volts No change in potential with current –UNTIL you overload pin

BS2 I/O pin Overload Set I/O pin to “output”, then –Pin = 0 connected to 5 volts => OVERLOAD –Pin = 1 connected to 0 volts => OVERLOAD In either case, I/O pin is competing with power supply and one will lose –Usually the I/O pin Power supply = 2 A, pin = 25 mA max

Turning LEDs On/Off Two Methods… Active High (what the book does) LED goes on when P14 is High

Turning LED’s On/Off Active Low (Often Recommended) LED goes on when P14 is Low Many microcontroller pins work best as sinks Vdd (5v) P14 (0v) + - Current

Bi-Color LED A Red and Green LED packaged as one Pin 1 = “+”, Pin 2 = “-” yields Red Pin 1 = “-”, Pin 2 = “+” yields Green Look for the clear LED… in your package

Basic Stamp Commands HIGH pin –sets a pin to output and 5v LOW pin – sets a pin to output and 0v PAUSE count –pauses count milliseconds FOR … NEXT –Allows for a fixed number of repeats DO … LOOP (new in PBASIC 2.5) –Allows for an infinite number of repeats

Solid State Relays Your ticket to real POWER 2 mA “ON” gives 0-30 A I/O pin +5v Vdd Load AC or DC Power