Fig. 1 Tachometer Built from Old CD, DC Motor, and Photogate

Similar documents
Lab 1: DC Measurements (R, V, I)

Name: Resistors and Basic Resistive Circuits. Objective: To gain experience with data acquisition proto-boards physical resistors. Table of Contents:

Lab 7: Let s Make a Little Noise

PHY 351/651 LABORATORY 5 The Diode Basic Properties and Circuits

Lab 7 LEDs to the Rescue!

Practical 2P12 Semiconductor Devices

Class #9: Experiment Diodes Part II: LEDs

Name: First-Order Response: RC Networks Objective: To gain experience with first-order response of RC circuits

Lab 2: Introduction to NI ELVIS, Multisim, and LabVIEW

Lab 12: Timing sequencer (Version 1.3)

LAB PROJECT 2. Lab Exercise

LABORATORY 8 DIODE CIRCUITS

Lab 9 RF Wireless Communications

Lab 8: Beer Bottle Symphony

ECE3204 D2015 Lab 1. See suggested breadboard configuration on following page!

9 Feedback and Control

Part 1. Using LabVIEW to Measure Current

DESIGN OF AN ANALOG FIBER OPTIC TRANSMISSION SYSTEM

ELR 4202C Project: Finger Pulse Display Module

Parts to be supplied by the student: Breadboard and wires IRLZ34N N-channel enhancement-mode power MOSFET transistor

Lab 3: Digital Multimeter and Voltage Generator

Lab 15: Lock in amplifier (Version 1.4)

Dept. of Electrical, Computer and Biomedical Engineering. Inverting and non inverting amplifier

BME/ISE 3512 Bioelectronics. Laboratory Five - Operational Amplifiers

LAB 1 AN EXAMPLE MECHATRONIC SYSTEM: THE FURBY

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Hands-On Introduction to EE Lab Skills Laboratory No. 2 BJT, Op Amps IAP 2008

Electronics 1 Lab (CME 2410) School of Informatics & Computing German Jordanian University Laboratory Experiment (10) Junction FETs

1.0 Introduction to VirtualBench

Figure 1: Diode Measuring Circuit

Laboratory Preliminaries and Data Acquisition Using LabVIEW

Lab Session 4 Hardware

Electronics. RC Filter, DC Supply, and 555

Applications of diodes

Physics 120 Lab 1 (2018) - Instruments and DC Circuits

Revised: Summer 2010

UNIVERSITY OF CALIFORNIA, SANTA BARBARA Department of Electrical and Computer Engineering. ECE 2A & 2B Laboratory Equipment Information

Lab 2: Linear and Nonlinear Circuit Elements and Networks

LABORATORY 7 v2 BOOST CONVERTER

EKT 314/4 LABORATORIES SHEET

Experiment P48: Transistor Lab 1 The NPN Transistor as a Digital Switch (Power Amplifier, Voltage Sensor)

Laboratory Manual for EL-492

Optical Theremin CDR

ECE U401/U211-Introduction to Electrical Engineering Lab. Lab 4

Laboratory Project 1a: Power-Indicator LED's

Fig. 1. NI Elvis System

Experiment 15: Diode Lab Part 1

Touchless Control: Hand Motion Triggered Light Timer

Experiment P49: Transistor Lab 2 Current Gain: The NPN Emitter-Follower Amplifier (Power Amplifier, Voltage Sensor)

The Field Effect Transistor

Exercise 1: DC Operation of a NOT and an OR-TIE

Physics 309 Lab 3 Bipolar junction transistor

EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter

Agilent AEDS-962x for 150 LPI Ultra Small Optical Encoder Modules

the reactance of the capacitor, 1/2πfC, is equal to the resistance at a frequency of 4 to 5 khz.

Chapter 7: Instrumentation systems

I = I 0 cos 2 θ (1.1)

ENGR 210 Lab 12: Analog to Digital Conversion

NI mydaq. Contents USER GUIDE AND SPECIFICATIONS. ni.com/manuals

Photodiode types. Fig Transistor Optocouplers & Opto Sensors

Practical 2P12 Semiconductor Devices

Laboratory Preliminaries and Data Acquisition Using LabVIEW

EE 300W Lab 2: Optical Theremin Critical Design Review

Facility of Engineering. Biomedical Engineering Department. Medical Electronic Lab BME (317) Post-lab Forms

Teaching Mechanical Students to Build and Analyze Motor Controllers

EE 230 Lab Lab 9. Prior to Lab

Figure 1 Diode schematic symbol (left) and physical representation (right)

Lab 2: Designing an Optical Theremin. EE 300W Section 5 Team #3: Penn Power United Gregory Hodgkiss, Nasser Aljadeed 10/23/15

CHAPTER 6. Motor Driver

University of Utah Electrical & Computer Engineering Department ECE 1250 Lab 4 Pulse Width Modulation Circuit

EE 300W 001 Lab 2: Optical Theremin. Cole Fenton Matthew Toporcer Michael Wilson

ANALOG TO DIGITAL CONVERTER

DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS

Data Sheet. HEDS-9710, HEDS-9711 Small Optical Encoder Modules 360 Ipi Analog Current Output. Features. Description. Block Diagram.

CHAPTER 7 HARDWARE IMPLEMENTATION

INTRODUCTION TO NI ELVIS II

ECE 53A: Fundamentals of Electrical Engineering I

codestrip, these modules detect relative linear position.

Momentum and Impulse. Objective. Theory. Investigate the relationship between impulse and momentum.

THE PENNSYLVANIA STATE UNIVERSITY. Lab 2: Designing Optical Theremin Instrument. EE 300W Section 001. Nathaniel Houtz, Ji Eun Shin, Peter Wu 2/22/2013

BIPOLAR JUNCTION TRANSISTOR (BJT) NOISE MEASUREMENTS 1

Electromagnetic spectrum

EE 110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Lab 6 Diodes: Half-Wave and Full-Wave Rectifiers Converting AC to DC

Chapter 1: DC circuit basics

Using Signal Express to Automate Analog Electronics Experiments

CENG4480 Embedded System Development and Applications The Chinese University of Hong Kong Laboratory 1: Op Amp (I)

GENERATION OF SIGNALS USING LABVIEW FOR MAGNETIC COILS WITH POWER AMPLIFIERS

IVI STEP TYPES. Contents

EE 368 Electronics Lab. Experiment 10 Operational Amplifier Applications (2)

NON-AMPLIFIED HIGH SPEED PHOTODETECTOR USER S GUIDE

Putting it all Together

Lecture 3: Sensors, signals, ADC and DAC

BME/ISE 3512 Laboratory - Three Diode (1N4001)

ECE 220 Laboratory 3 Thevenin Equivalent Circuits, Constant Current Source, and Inverting Amplifier

1.5µm PbSe Power Detector

Electronic Instrumentation ENGR-4300 Fall 2004 Section Experiment 7 Introduction to the 555 Timer, LEDs and Photodiodes

Function Generator Using Op Amp Ic 741 Theory

Lecture 2 Analog circuits...or How to detect the Alarm beacon

LM2900 LM3900 LM3301 Quad Amplifiers

2-Terminal Device Characteristics and Diode Characterization

Common-Source Amplifiers

Transcription:

Lab 4: Photogate Fun Introduction Surging through the heart of microprocessors are digital pulses, single pulses, bursts of pulses, and wave trains of pulses. Pulses are the lifegiving blood of all digital systems and of NI mydaq. Simple high or low signals transmit data based on their state, timing, rate, and pattern. They are the simplest measurement a computer can make. Fig. 1 Tachometer Built from Old CD, DC Motor, and Photogate Purpose This Lab uses mydaq to measure pulse counts, counts/second, or the pulse length. An infrared photogate will be built and used to measure the speed and acceleration of a small toy race car hurtling down a track. Equipment NI mydaq TL072 or Equivalent Op Amp 10 Ω Resistor Solderless Breadboard Optional: Matchbox toy race car and 3 cm x 3 cm card Counter Circuits Infrared LED SI5312-H or Equivalent Phototransistor SI5811 or Equivalent (lens is black) National Instruments Corporation 1

Resistors: Two 22 kω, One 4.7 kω, One 100 Ω, and One 68 kω Transistor 2Ν3904 Prerequisite Reference Materials Using the NI ELVISmx DMM: http://decibel.ni.com/content/docs/doc-12877 Using the FGEN: http://decibel.ni.com/content/docs/doc-12940 Using the Scope: http://decibel.ni.com/content/docs/doc-12942 Some Background on IR Photogates An IR photogate uses a phototransistor to measure the amount of light from an optical beam originating from an IR LED. Infrared light is chosen so as to minimize any signal from ambient light sources often found in our normal working environment. We cannot see infrared light, but a phototransistor can. When the optical beam is blocked, the phototransistor changes from a high to a low state. This transition signals the start of a pulse. When the optical beam is unblocked, the phototransistor changes back to its normal state (i.e., from a low state to a high state). The low to high signals the end of a pulse. The pulse described is a negative pulse (HI-LO-HI). It is often inverted to (LO-HI- LO) by a transistor amplifier. The time between the start and end of pulse is the pulse length or width (Fig. 2). Fig. 2 Pulse Definitions Infrared Light-Emitting Diode (LED) (Optional) The I-V characteristic curve of an LED is most informative. Build an I-V curve tracer following the circuit found in V-I Characteristic II Nonlinear Devices by E. Doering: I-V Curve Tracer Video: http://decibel.ni.com/content/docs/doc-12661 This uses an op amp configured as a voltage follower (current booster), a 10 Ω resistor, a breadboard, and mydaq. 2 ni.com

Fig. 3 The characteristic I-V curve of an Infrared Light-Emitting Diode In the forward-biased region, the current rises exponentially for V > 1.0 volts (Fig. 3). The IR LED can take a maximum current of 100 ma. In our circuit, the forward-biased current is about 40 ma {(5 V-1.0 V)/100 Ω}. Exercise 4-1: Building the Photogate Circuit Assemble the circuit components for the counter circuit. Measure and record all of the resistors using the DMM(Ω). Build the following photogate circuit, as shown in Fig. 4. Fig. 4 Photogate Circuit MyDAQ provides the power supply (5 V and DGND) to bias the LED, the photodiode, and the single-transistor amplifier circuit. Measure the voltage at the output points x and y using DMM(V). National Instruments Corporation 3

Fill in the chart: Vx Vy Optical beam unblocked Optical beam blocked Note: The range of the output Vy falls within the digital TTL logic levels (0 or 1). The photogate output signal (DIO 0/1) can be input into the mydaq digital input lines. Exercise 4-2: Measuring Speed with the Photogate Building the Test Car Find an old Matchbox or toy race car and secure a card (3 cm x 3 cm) to its roof (Fig. 5). Plastic airplane glue, silicon glue, or a hot glue gun can be used. If no car is available, one can simply move the card manually over the photodetector. Fig. 5 Small Racing Car with Card Glued to Roof Align the photogate perpendicular to the car s line of motion at a height so that when the car passes through the photogate, the optical beam will be 4 ni.com

blocked by the card. Just in case you don t have racetrack lying around, you can build a ramp out of angled wood or cardboard. Adding sides to the ramp is helpful to guide the car down the track and through the sensor gate. Measuring the Car s Speed Connect the photogate output to the mydaq socket (AI 0+) and the circuit ground to (AI 0 -). Use the oscilloscope Scope with the following settings: Photogate Output to AI 0 Channel 0 Source AI 0, 1 v/div Time Base 200 msec/div Trigger-Edge, Channel 0 source, Level 0.2 V Horizontal Position 10% Acquisition Mode [Run Once] Run the car past the sensor to view the photogate pulse. Note: The intrinsic Scope Timeout feature limits our ability to see the pulse on an expanded time scale. Another approach uses NI ELVISmx Oscilloscope VI and provides more flexibility. Launch and View the LabVIEW program Pulse Logger.vi. Fig. 6 Sequence of Pulses Displayed on a LabVIEW Graph The sample rate has been set to 10 k samples per second in (Fig. 6). The record length has been set to 50 k samples. Thus, the recording time is 50 k/10 k (samples/samples per sec) or 5 seconds. This provides a window of time to catch the car hurtling down the ramp. National Instruments Corporation 5

You can change the record length to suit your application. Set the car on top of the ramp, let it go, and press [Run]. Observe the signal on oscilloscope, as in Fig. 7. To expand the scale to better see the pulse, pick a time a little earlier than the start of the pulse. Replace the origin value of the photogate signal graph with this value. The y-axis (amplitude) may also need to be adjusted. Pick a time a little later than the end of the pulse time and replace the maximum time (5 seconds) with this value. Note: Make sure AutoScale x-axis is unchecked. Fig. 7 Zoom in on the x axis of the Pulse by Modifying the First and Last Values Measure the start time, stop time, pulse width, and pulse amplitude from the trace. To calculate the speed of the car, it is just the length of the card (3 cm)/(pulse width). Here is Another Way: The DAQ Assistant Express VI can be configured to measure pulse width directly. Open a blank LabVIEW VI and go to the block diagram panel. Select the DAQ Assistant VI and place it on a block diagram. Choose the following options: 6 ni.com

Acquire Signals/Counter Input/Pulse Width/ctro/ [Finish]. Verify the final settings: Starting Edge: Rising Acquisition Mode: 1 Sample (on Demand) Click [OK] Note: Connect the Photogate output to mydaq socket DIO 1 and circuit ground back to DGND Load and view the LabVIEW program Pulse Width.vi to see how to finish your program. Click on [Run] and send the car down the ramp. The program gives both the measured pulse width and the speed of the car as it zooms past the photogate. Wow! That was easy. Exercise 4-3: Photogate Fun Now that we have an idea of pulses and how to measure them, here are a few project ideas. Events: An event is signaled by a rising edge or a falling edge. Hook your photogate up to detect the opening of a window or the refrigerator door (great for those on a diet). Once you have detected an event, sound the alarm: play a weird sound, activate a buzzer, play a recorded message or your favorite song. Note: Sound generation is covered in Labs 7, 8, and 9. Load and view the LabVIEW program Pulse Counter.vi to see how easy it is to count events. Pulse: A pulse is signaled by a rising edge followed by a falling edge (positive pulse), while the reverse order forms a negative pulse. Have a race night. Build an interesting track. See who has the fastest car. Extend the width of the photogate by replacing the LED source with a laser pointer. Now you can have a human race. Add a camera at the finish line for a photo-finish or sound a checkered flag. Pulse Trains: A sequence of uniform pulses (pulse + delay, pulse + delay, etc.) forms a rectangular wave or a square wave (if pulse width = delay). National Instruments Corporation 7

Pulse waveforms can be described with parameters like frequency, period, On time, and Off time. A tachometer is a measurement of the angular speed of a wheel expressed in the number of pulses per second (frequency) or revolutions per minute (rpm). Attach a CD to a motor (Fig. 8). Cut a hole in the edge of the CD the width of the optical beam. As the disc spins, a wave train is produced by the photogate that is proportional to the angular speed. References: Introduction to NI ELVIS II, B.E. Paton, Lab 10 Mechanical Motion. 8 ni.com