1 Chapters 2 And 3 Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A. Hebel Southern.

Slides:



Advertisements
Similar presentations
Chapter 6: Digital Display
Advertisements

Chapter 3: Digital Inputs - Pushbuttons
1 Chapter 8: Frequency and Sound Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A.
1 Chapter 9: Electronic Building Blocks Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin.
1 Chapter 2: Light on- Lights off Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A.
1 Chapter 7: Measuring Light Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A. Hebel.
Electric Circuits Notes
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!
1 Chapter 4: Controlling Motion Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A.
Electricity and Electronics Technology Education Dept. Bellwood-Antis Middle School Mr. Mackereth.
Input and Output Developed by: Electronic Systems Technologies College of Applied Sciences and Arts Southern Illinois University Carbondale
Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall.
1 Chapter 5: Measuring Rotation Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A.
Slide Menlo Drive Suite 100 Rocklin, CA Presentation based on: “What’s a Microcontroller?" by Andy Lindsay Presented by Andy.
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
1 Chapter 4: Hitachi HM55B Compass Module Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass Module Presented by: Andy Lindsay Parallax, Inc.
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.
1 Chapter 8: Frequency and Sound Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A.
Introductory Electronics Summer Institute 2004 Michelle Vidberg Peter Beens.
Lecture 13: Basic Circuit Theory I EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 4/1/13.
Slide Menlo Drive Suite 100 Rocklin, CA Presentation based on: “What’s a Microcontroller?" by Andy Lindsay Presented by Jessica.
Boe-Bot Review.
1 Chapter 3: Tilt with the Memsic Dual-Axis Accelerometer Smart Sensors and Applications Chapter 3: Tilt with the Memsic Dual-Axis Accelerometer Presented.
1 Chapter 1: Parallax Serial LCD Display Smart Sensors and Applications Chapter 1: Parallax Serial LCD Display Presented by: Andy Lindsay Parallax, Inc.
1 A Modification of Chapters 5 & 7 Slides Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by:
Slide 1 Presentation based on: “Robotics: with the Boe-Bot" by Andy Lindsay Menlo Drive Suite 100 Rocklin, CA
1 Chapter 6: More Accelerometer Projects Chapter 7: LCD Bar Graphs for Distance and Tilt Smart Sensors and Applications Chapter 6: More Accelerometer Projects.
1 With the Parallax USB Oscilloscope Understanding Signals With the Parallax USB Oscilloscope Presented by: Andy Lindsay Parallax, Inc.
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,
1 Chapter 6: Light Sensitive Navigation With Photoresistors Presentation based on: "Robotics with the Boe-Bot" By Andy Lindsay Parallax, Inc Presentation.
1 Chapter 1: Getting Started Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A. Hebel.
Slide 1 IR Remote for the Boe-Bot IR Remote for the Boe-Bot.
Slide 1 IR Remote for the Boe-Bot IR Remote for the Boe-Bot.
© 2002 University of North Carolina at Charlotte, ALL RIGHTS RESERVED Basic DC Circuits Review.
1 “Something to put it in perspective…” Slide Show Name “Something to put it in perspective…” Presented by: Andy Lindsay Parallax, Inc.
1 Chapter 1: Getting Started Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A. Hebel.
CSC522 Embedded Systems Introduction to Circuit Design.
Slide Menlo Drive Suite 100 Rocklin, CA Presentation based on: “What’s a Microcontroller?" by Andy Lindsay Presented by Andy.
1 Parallax BASIC Stamp ® Tutorial Developed by: Electronic Systems Technologies College of Applied Sciences and Arts Southern Illinois University Carbondale.
Series and Parallel Wiring GET A CALCULATOR!!!!!.
Slide Menlo Drive Suite 100 Rocklin, CA
PHY 235 Robotics Workshop Day 4 Robotic Behaviors, Light Sensing, Voltage Dividers, LCD-MOD.
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. 
Resistors Foundations of Technology Resistors © 2013 International Technology and Engineering Educators Association, STEM  Center for Teaching and Learning™
1 Chapter 5: Accelerometer Gaming Basics Smart Sensors and Applications Chapter 5: Accelerometer Gaming Basics Presented by: Andy Lindsay Parallax, Inc.
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. 
Electric Current Everything (water, heat, smells, …) flows from areas of high concentration to areas of lower concentration. Electricity is no different.
Controlling an LED with a switch. 2 breadboard place where you can build electric circuits really quickly the magical breadboard.
Circuits Electric Current Series vs. Parallel. Let’s Review 0 What is electricity?
Chapter 19: Current, Resistance, and Directed-Current Circuits
Chapter 1: Getting Started
Introduction to Electricity
Introduction to Electricity
Introduction to Electricity animatedscience. co
Chapter 8: Frequency and Sound
Circuit Theory Laws Circuit Theory Laws Digital Electronics TM
Basic circuits Electrical circuits Electrical properties Ohm’s law
Introductory Electronics
Circuit Theory Laws Circuit Theory Laws Digital Electronics TM
Electrical Circuits Properties of an electrical circuit include Voltage Volts V Current Amps A Resistance Ohms Ω.
Chapter 1: Getting Started
Chapter 7: Measuring Light
Chapter 5: Measuring Rotation
Presentation transcript:

1 Chapters 2 And 3 Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A. Hebel Southern Illinois University Carbondale College of Applied Sciences and Arts Electronic Systems Technologies Electronic Systems Technologies 9/02/03

2 Use and Copyright This presentation supplements "What's a Microcontroller" by Andy Lindsay. (Link to text)Link to text This presentation is not a replacement for the text. Important concepts of the text are highlighted. gold In some cases, additional material has been added to augment the text. Denoted by titles colored gold. Full program listings are generally not provided in the presentation. Distribution: This presentation may be freely distributed without modifications. Modifications are permitted by schools and organizations for internal use only. Credits, use and copyright slides must remain.

3 COPYRIGHTS AND TRADEMARKS This documentation is Copyright 2003 by Parallax, Inc. By downloading or obtaining a printed copy of this documentation or software you agree that it is to be used exclusively with Parallax products. Any other uses are not permitted and may represent a violation of Parallax copyrights, legally punishable according to Federal copyright or intellectual property laws. Any duplication of this documentation for commercial uses is expressly prohibited by Parallax, Inc. Check with Parallax for approval prior to duplicating any of our documentation in part or whole for any use. BASIC Stamp is a registered trademark of Parallax, Inc. If you decide to use the name BASIC Stamp on your web page or in printed material, you must state that "BASIC Stamp is a registered trademark of Parallax, Inc." Other brand and product names are trademarks or registered trademarks of their respective holders. DISCLAIMER OF LIABILITY Parallax, Inc. and Southern Illinois University are not responsible for special, incidental, or consequential damages resulting from any breach of warranty, or under any legal theory, including lost profits, downtime, goodwill, damage to or replacement of equipment or property, or any costs of recovering, reprogramming, or reproducing any data stored in or used with Parallax products. Parallax is also not responsible for any personal damage, including that to life and health, resulting from use of any of our products. You take full responsibility for your BASIC Stamp application, no matter how life threatening it may be.

4 Voltage and Current Voltage and current can be compared to water pressure and flow. When the valve is opened, what will happen? What determines how fast the water will flow?

5 Of course water will flow from the fuller tank because it has greater pressure than the empty tank. The flow rate is dependent on: The difference in pressure between the two tanks. The amount of restriction to flow in the pipe and valve. The water that flows from your facet is dependent on the height of your town's water tank, the size of the pipes, and how far you open the faucet.

6 In a battery, there is surplus of electrons on one side, and a deficiency of electrons on the other side (holes). When a circuit is completed, such as putting an LED in it, a flow exists from one side to the other. This is called Current.

7 Current can be viewed in one of 2 ways: Electron Flow: Electrons flow from the negative side(-) to the positive side. OR Hole Flow or Conventional Flow: Holes, or the absence of electrons, move from positive to negative as the electrons move Electrons (-) Holes (+) An atom with an excess of electrons has a – charge. One with a deficiency of electrons has a + charge.

8 Which version of flow is used doesn't matter. How much flows does. Just as with the water tanks: The greater the pressure, or the difference in potential (Voltage), the greater the amount of current that can flow in a unit time (Amperes). The greater the restriction to flow (Ohms), the lower the amount current that can flow.

9 Ohm's Law Ohms Law states: The amount of current (I) that will flow is proportional to the voltage applied (V), and inversely proportional to the resistance (R) of the circuit. I = V/R As Resistance increases, current decreases.

10 The Resistor The resistor is a device used to limit the amount of current in a circuit. Because it is so small, color bands are used to identify the value. 1 st Band: 1 st Digit 2 nd Band: 2 nd Digit 3 rd Band: Multiplier 4 th Band (if present): Tolerance. Schematic Symbol Part Drawing

11 For the resistor shown: Yellow = 4, 1 st Digit Violet = 7, 2 nd Digit Brown = 1, add 1 zero. 470 Ohm or 470  Tolerance is how far off it could be from the labeled value: Gold: 5% Silver: 10% none: 20%

12 What is the resistance of a resistor colored Brown-Black-Orange? (Click slide for answer) Answer: Brown = 1, Black = 0, Orange = 3 1, 0, + 3 zeros = 10,000 ohms or 10K Ohm

13 Breadboard Area A Breadboard is an electrical testing area for prototyping by quickly connecting components. The rows are electrically connected to make connections between devices. Headers are provided on 2 sides for: I/O connections to the BASIC Stamp (P0-P15) Vdd: + Voltage Vss: - Voltage Vin: Supply Voltage from battery or wall transformer Use of Vin should be used only as directed as it can damage the BASIC Stamp or components.

14 Activity #1 Building and Testing the Light Circuit Construct the circuit per your text. As the current path from Vdd(+) to Vss(-) is completed, the LED will light. What happens if the LED is reversed? What happens if a 1K ohm resistor is used?

15 What happens when both sides are connected to the same supply? With no difference in potential (electrical pressure), no current will flow, and the LED will not light.

16 Activity #2: On/Off Control With the BASIC Stamp With the BASIC Stamp the Input/Output pins (P0-P15) are controlled to supply either the Vdd (+) or Vss (-) potential. This will control whether a device has a path for current to flow or not.

17 Connect the circuit per your text.

18 Enter the code to control and run per the text:

19 The LED should be flashing on and off once per second. Key Commands: HIGH 14: Places I/O pin P14 High. This correlates to 5V or Vdd (digital 1). Current flows between P14 and Vss energizing the LED. PAUSE 500: BASIC Stamp pauses operation for the specified time in milliseconds. 500 milliseconds = 0.5 seconds LOW 14: Places I/O pin P14 Low. This correlates to 0V or Vss (digital 0). Current does not flow between P14 and Vss, LED is not energized. DO and LOOP: Creates a looping structure for repetition.

20 Activity #1: Testing a PushButton/LED Circuit The pushbuttons supplied with the kits are normally-open, momentary contact. That is, the switch does not make contact until the button is pressed. Once released, it returns to the open position. Open State: The pins on either side are electrically the same point. With the button released, there is no path for electrons between pins 1,4 and 2,3.

21 Closed State: With the button pressed, a conductive material bridges the gap allowing electrons, and thus current, to flow.

22 Pushbutton Test Circuit This circuit demonstrates how the push- buttons switch allows current to flow when closed. Not pressed - Open: No current flow, LED is not-lit. Pressed – Open: Current flows lighting the LED.

23 This circuit demonstrates how the switch can create a short-circuit around the LED. Current will take the easiest path and not flow through the LED. Shorts are usually not desirable. Note that resistor is still in the path either way to ensure excessive current is not drawn.

24 Activity #2: Reading a Pushbutton Construct the circuit. Pay attention to the values/colors of the resistors.

25 Enter and test the code by occasionally pressing the pushbutton and monitoring the state in the DEBUG Window.

26 DEBUG ? IN3 displays the value of I/O P3 in the DEBUG Window. Which state relates to 1? Pressed or not pressed?

27 When the switch is pressed, Vdd (+5V) is sensed at the input of P3. When the switch is released, Vss (0V) is sensed at the input of P3. The 10K  resistor prevents a short circuit from Vdd to Vss

28 In this configuration, the 10K  is said to be a Pull-Down resistor since it is pulling the input down to ground or Vss when the button is not active (not pressed). The switch is said to be Active-High since activating it (pressing it) will cause the input of P3 to be High.

29 This configuration shows a Pull-Up resistor to Vdd, with an Active-Low button. When the same code is ran with this configuration, when will IN3 be a value of 1?

30 A BASIC Stamp input must always be pulled high or low. If not connected to either, it is said to be floating and produce erratic readings as voltages at the pin fluctuate around 1.4V. 1.4V = High The majority of switches on devices are configured for Active-Low. This is due to input current-draw considerations of most semi-conductor devices.