1 Chapter 5: Measuring Rotation Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A.

Slides:



Advertisements
Similar presentations
Chapter 9 Capacitors.
Advertisements

Chapter 6: Digital Display
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.
4/22/ MAKING YOUR ROBOTS SEE Building and Testing Photosensitive eyes.
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.
Parallax, Inc. Presentation based on: “Robotics: with the Boe-Bot"
1 Boe-Bot Parts BOE-BOT Lecture #1b DE - Digital Electronics.
1 Lecture 1: Your Boe-Bot's Servo Motors Presentation based on: "Robotics with the Boe-Bot" By Andy Lindsay Parallax, Inc Presentation developed by: Martin.
Servos The material presented is taken from a variety of sources including:
1 Chapter 4: Controlling Motion Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A.
BEXS100 - Basic Electricity Unit 19 Capacitors. Unit Objectives List the three (3) factors that determine the capacitance of a capacitor Explain electrostatic.
ELECTRONICS TECHNOLOGY CAPACITANCE
Digital Tachometer ENGR 4803 Electromechanical Systems & Mechatronics.
Copyright © 2013 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 6 The Operational Amplifier.
Capacitors in a Basic Circuit
Input and Output Developed by: Electronic Systems Technologies College of Applied Sciences and Arts Southern Illinois University Carbondale
Digital I/O Connecting to the Outside World
CAPACITORS & RESISTORS. RESISTORS A resistor, like batteries and lights, can also be present in an electrical circuit. A resistor limits the flow of electricity.
Lec. (4) Chapter (2) AC- circuits Capacitors and transient current 1.
Sensors Material taken from Robotics with the Boe-Bot.
Slide Menlo Drive Suite 100 Rocklin, CA Presentation based on: “What’s a Microcontroller?" by Andy Lindsay Presented by Andy.
Basic Stamp Quick Start. Basic Stamp II Self contained computer –“Micro-controller” Specialized for “embedded” computing (sensing and controlling things)
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.
Slide Menlo Drive Suite 100 Rocklin, CA Presentation based on: “What’s a Microcontroller?" by Andy Lindsay Presented by Jessica.
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.
1 Parallax BASIC Stamp ® Tutorial Developed by: Electronic Systems Technologies College of Applied Sciences and Arts Southern Illinois University Carbondale.
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.
Sensors Material taken from Robotics with the Boe-Bot.
1 Chapters 2 And 3 Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A. Hebel Southern.
Digital Electronics Board-of-Education : Input. Board of Education - Input This presentation will explain, both from a hardware and software perspective,
1 “Something to put it in perspective…” Slide Show Name “Something to put it in perspective…” Presented by: Andy Lindsay Parallax, Inc.
1 Lecture 1: Your Boe-Bot's Servo Motors Presentation based on: "Robotics with the Boe-Bot" By Andy Lindsay Parallax, Inc Presentation developed by: Martin.
1 Chapter 1: Getting Started Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A. Hebel.
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.
Slide Menlo Drive Suite 100 Rocklin, CA
Phys102 Lecture 10 & 11 DC Circuits Key Points EMF and Terminal Voltage Resistors in Series and in Parallel Circuits Containing Resistor and Capacitor.
Engineering Science EAB_S_127 Electricity Chapter 3.
1 Chapter 5: Accelerometer Gaming Basics Smart Sensors and Applications Chapter 5: Accelerometer Gaming Basics Presented by: Andy Lindsay Parallax, Inc.
Capacitance. Device that stores electric charge. Construction: A capacitor is two conducting plates separated by a finite distance Typically separated.
Slide Menlo Drive Suite 100 Rocklin, CA
Light Dependent Resistor
Prototyping with Microcontrollers and Sensors
AUTOMATIC TEMPERATURE CONTROLLED FAN USING 8051
Chapter 1: Getting Started
DIGITAL CALCULATOR USING 8051
Servos The material presented is taken from a variety of sources including:
Servos The material presented is taken from a variety of sources including:
Servos The material presented is taken from a variety of sources including:
CAPACITANCE.
Material taken from Robotics with the Boe-Bot
Chapter 8: Frequency and Sound
Chapter 1: Getting Started
Chapter 7: Measuring Light
Chapter 5: Measuring Rotation
Presentation transcript:

1 Chapter 5: Measuring Rotation 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/1/03

2 Presentation Index Use and Copyright Adjusting Dials and Monitoring Using a potentiometer as a variable resistor Activity #1: Building/Testing Potentiometer Circuit Activity #1: Building/Testing Potentiometer Circuit Activity #2: Measuring Using Time Introducing the Capacitor Polled RC Time Activity #3: Reading with BASIC Stamp RCTIME Program Explanation Activity #4: Servo Control with Potentiometer Chapter #4 Review

3 Use and Copyright This presentation supplements "What's a Microcontroller" by Andy Lindsay. (Link to text at Parallax)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.

4 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.

5 Adjusting Dials and Monitoring Dials are ideal input devices for adjustments such as room lighting and volume levels. They are also used inside devices for feedback, such as inside the servo to sense actual position.

6 Using a potentiometer as a variable resistor The device inside the dial is called a variable resistor or potentiometer. They are used in dials, joysticks, and many other devices which need to produce an output in reference to a position. Potentiometers can be packaged many different ways.

7 The potentiometer is a resistor with two terminals similar to a regular resistor, but also has a wiper terminal to adjust where contact is made.

8 The distance from the wiper to each terminal determines the resistance for that path. The minimum resistance will be 0 ohms, and the maximum will be the rating of the potentiometer, such as 10K . Low resistance High resistance Low resistance

9 Activity #1: Building/Testing Potentiometer Circuit Construct the circuit and observe the LED's brightness at different settings of the potentiometer.

10 When the LED was brightest, was the potentiometer resistance highest or lowest in the path to the LED? When the LED was brightest, was the potentiometer wiper closest or furthest from terminal connected to Vdd? (click for answers) Lowest Closest

11 Activity #2: Measuring Using Time In this activity an RC-network (Resistor- Capacitor) is used to form a circuit. The capacitor is charged and discharged at different rates determined by the resistor and the capacitor sizes.

12 Introducing the Capacitor The capacitor is a device which can store an electron charge. Its size is expressed typically in microfarads (  F) or millionths of Farads. Certain types of capacitors are polarity sensitive, that is, they can only be connected in one direction. Connecting a polarity sensitive capacitor backwards can cause the device to explode. Wear safety glasses. Ensure proper polarity when connecting.

13

14 Polled RC Time In the Polled RC Time circuit the following occurs: Button is pressed charging the capacitor. 5V The button is released, the BASIC Stamp begins timing and the capacitor begins to discharge.

15 3.The BASIC Stamp continues timing until input P7 changes to a low (drops below 1.4V). LOOP UNTIL IN7=0 4.Time is displayed in tenths of seconds. V => 1.4V Logic 1 V < 1.4V Logic 0

16 The time to discharge the capacitor is in proportion to the size of the resistor and capacitor network (RC). The larger the capacitance (C), the greater the charge it can hold, increasing time. The larger the resistance (R), the slower the capacitor will discharge, increasing time.

17 Activity #3: Reading with BASIC Stamp The BASIC Stamp has an instruction to perform much of the timing operation automatically: RCTIME Pin, State, Variable Where: Pin is the pin the RC network is connected. State is the initial state when timing begins. Variable is the memory location to store the results. Just like PULSOUT the time is the number of 2uS increments.

18 ReadPotWithRCTime Program

19 RCTIME Program Explanation Declare variable time to hold results. DO-LOOP code block: Set I/O P7 HIGH (5V). Wait 100 mS to charge capacitor and stabilize DEBUG screen. Execute RCTime instruction: Time until capacitor discharges and P7 leaves defined state (1). Store results in variable Time. Display Time results.

20 Scope Capture End of High, RCTime begins timing. 1.4V threshold crossed after 9mS (5mS/Div) 9mS / 2uS = count of 4500

21 Activity #4: Servo Control with Potentiometer In this activity the value of RCTime is used to control a servo. The RCTime reading is offset to be within the controllable range of the servo ( ). A constant is used to hold the offset value: Offset CON 300 Pin I/O's are named using CON: rcPIN CON 7

22 Chapter #4 Review A potentiometer is a variable resistor where the wiper is used to adjust the resistance. Capacitors are used to hold a charge. A resistor and capacitor are used to form an RC network. The rate of charge or discharge is dependent on the values of R and C. An input pin will read high (1) until voltage drops below 1.4V. Polling can be used to measure how long it takes the capacitor to reach 1.4V. RCTime measures the discharge time and stores the results in a variable as 2uS increments.