Class #6: Experiment The 555-Timer & Pulse Width Modulation

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

ENGR-4300 Fall 2006 Project 3 Project 3 Build a 555-Timer

Project 3 Build a 555-Timer

Class #3: Experiment Signals, Instrumentation, and Basic Circuits

Class #7: Experiment L & C Circuits: Filters and Energy Revisited

Class #8: Experiment Diodes Part I

To design/build monostable multivibrators using 555 IC and verify their operation using measurements by observing waveforms.

Class #9: Experiment Diodes Part II: LEDs

Electronic Instrumentation

EE 3101 ELECTRONICS I LABORATORY EXPERIMENT 9 LAB MANUAL APPLICATIONS OF IC BUILDING BLOCKS

555 Timer and Its Application

). The THRESHOLD works in exactly the opposite way; whenever the THRESHOLD input is above 2/3V CC

PHYS225 Lecture 18. Electronic Circuits

Police Siren Circuit using NE555 Timer

OBJECTIVE The purpose of this exercise is to design and build a pulse generator.

t w = Continue to the next page, where you will draw a diagram of your design.

PRESENTATION ON 555 TIMER A Practical Approach

DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS

Experiment 5.A. Basic Wireless Control. ECEN 2270 Electronics Design Laboratory 1

Experiment EB2: IC Multivibrator Circuits

Electronics. RC Filter, DC Supply, and 555

Multivibrators. Department of Electrical & Electronics Engineering, Amrita School of Engineering

LABORATORY 4. Palomar College ENGR210 Spring 2017 ASSIGNED: 3/21/17

Lab 6: Exploring the Servomotor Controller Circuit

EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter

Due date: Sunday, November 8 (midnight) Reading: HH sections , (pgs , )

ASTABLE MULTIVIBRATOR

Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET REV. NO. : REV.

Electronic Metronome. Using a 555 Timer

CHAPTER 4: 555 TIMER. Dr. Wan Mahani Hafizah binti Wan Mahmud

Introduction to IC-555. Compiled By: Chanakya Bhatt EE, IT-NU

Lab #7: Transient Response of a 1 st Order RC Circuit

FACTFILE: GCSE Technology and Design

Electronic Concepts and Troubleshooting 101. Experiment 1

Getting to know the 555

Chapter 16: Oscillators

LABORATORY 2: Bridge circuits, Superposition, Thevenin Circuits, and Amplifier Circuits

ENGR-4300 Electronic Instrumentation Quiz 3 Fall 2010 Name Section

Electronic Instrumentation

Class #3: Experiment Signals, Instrumentation, and Basic Circuits

LABORATORY 3: Transient circuits, RC, RL step responses, 2 nd Order Circuits

ECE 2010 Laboratory # 5 J.P.O Rourke

555 Astable Kit MitchElectronics 2018

University of California at Berkeley Donald A. Glaser Physics 111A Instrumentation Laboratory

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Lab Timer: Blinking LED Lights and Pulse Generator

FACTFILE: GCSE Technology and Design

Physics 116B TLC555 Timer Circuit

Chapter 13: Comparators

ENGR 210 Lab 12: Analog to Digital Conversion

LABORATORY 6 v3 TIME DOMAIN

Lab 2 Revisited Exercise

ET 304A Laboratory Tutorial-Circuitmaker For Transient and Frequency Analysis

EE320L Electronics I. Laboratory. Laboratory Exercise #3. Operational Amplifier Application Circuits. Angsuman Roy

DIGITAL ELECTRONICS: LOGIC AND CLOCKS

Community College of Allegheny County Unit 4 Page #1. Timers and PWM Motor Control

Using LTSPICE to Analyze Circuits

Digital Applications of the Operational Amplifier

EG572EX: ELECTRONIC CIRCUITS I 555 TIMERS

Draw in the space below a possible arrangement for the resistor and capacitor. encapsulated components

B.E. SEMESTER III (ELECTRICAL) SUBJECT CODE: X30902 Subject Name: Analog & Digital Electronics

HIGH LOW Astable multivibrators HIGH LOW 1:1

Lab 1: Non-Ideal Operational Amplifier and Op-Amp Circuits

Electronic Instrumentation ENGR-4300 Fall 2002 Project 2: Optical Communications Link

Lecture 14: 555 Timers

Experiment #6: Biasing an NPN BJT Introduction to CE, CC, and CB Amplifiers

Analog Electronic Circuits Lab-manual

Fig 1: The symbol for a comparator

Class #16: Experiment Matlab and Data Analysis

ECE ECE285. Electric Circuit Analysis I. Spring Nathalia Peixoto. Rev.2.0: Rev Electric Circuits I

ELEC2 (JUN15ELEC201) General Certificate of Education Advanced Subsidiary Examination June Further Electronics TOTAL. Time allowed 1 hour

MODULE TITLE : OPERATIONAL AMPLIFIERS TOPIC TITLE : OSCILLATORS LESSON 2 : RELAXATION OSCILLATORS

Electronics and Instrumentation Name ENGR-4220 Spring 1999 Section Experiment 4 Introduction to Operational Amplifiers

LIC & COMMUNICATION LAB MANUAL

R 2. Out R 3. Ctrl C 2

ENGR-4300 Electronic Instrumentation Quiz 3 Spring 2011 Name Section

Electronics Design Laboratory Lecture #4. ECEN 2270 Electronics Design Laboratory

Diodes. Diodes, Page 1

Lab 2: Diode Characteristics and Diode Circuits

EE320L Electronics I. Laboratory. Laboratory Exercise #2. Basic Op-Amp Circuits. Angsuman Roy. Department of Electrical and Computer Engineering

EE 2274 DIODE OR GATE & CLIPPING CIRCUIT

Real Analog - Circuits 1 Chapter 1: Lab Projects

Engineering 3821 Fall Pspice TUTORIAL 1. Prepared by: J. Tobin (Class of 2005) B. Jeyasurya E. Gill

ELG3331: Digital Tachometer Introduction to Mechatronics by DG Alciatore and M B Histand

Lab 12: Timing sequencer (Version 1.3)

Operational Amplifiers

1. Hand Calculations (in a manner suitable for submission) For the circuit in Fig. 1 with f = 7.2 khz and a source vin () t 1.

Physics 335 Lab 1 Intro to Digital Logic

Name. Draw circuit diagrams for all problems, especially as you simplify the circuits.

DEPARTMENT OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE MASSACHUSETTS INSTITUTE OF TECHNOLOGY CAMBRIDGE, MASSACHUSETTS 02139

Tektronix Courseware. Academic Labs. Sample Labs from Popular Electrical and Electronics Engineering Curriculum

Lab 5: MOSFET I-V Characteristics

University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013

Experiment # 1 Introduction to Lab Equipment

ECEN Network Analysis Section 3. Laboratory Manual

For the op amp circuit above, how is the output voltage related to the input voltage? = 20 k R 2

Comparators, positive feedback, and relaxation oscillators

Lab 3: BJT I-V Characteristics

Linear Integrated Circuits

Lab #10: Finite State Machine Design

Physics 310 Lab 6 Op Amps

Transcription:

Class #6: Experiment The 555-Timer & Pulse Width Modulation Purpose: In this experiment we look at the 555-timer, a device that uses digital devices and other electronic switching elements to generate pulses. Background: Before doing this experiment, students should be able to Analyze simple circuits consisting of combinations of resistors. Do a transient (time dependent) simulation of circuits using LTspice Build simple circuits consisting of combinations of resistors on protoboards and measure input and output voltages vs. time. Learning Outcomes: Students will be able to Characterize the operation of a 555 Timer in Astable Multivibrator configuration both experimentally and using SPICE simulation. Equipment Required: Analog Discovery (with Waveforms Software) Voltmeter (DMM or Analog Discovery) Oscilloscope (Analog Discovery) Function Generator (Analog Discovery) +5V (+Vcc) Power Supply (Analog Discovery, be sure to use V+ and Ground and not V-) 555-Timer IC Pre-Lab Required Reading: Before beginning the lab, at least one team member must read over and be generally acquainted with this document and the other materials listed for this class. Hand-Drawn Circuit Diagrams: Before beginning the lab, hand-drawn circuit diagrams must be prepared for all circuits either to be analyzed using SPICE or physically built and characterized using your Analog Discovery board. Part A The 555-Timer Background The 555-Timer: The 555-timer is a chip that allows us to create a variety of useful digital and analog signals. Much like the op-amp, it can be used to perform different functions depending upon what circuit you place it into. The 555-timer can be used to generate digital pulses. When it is wired as a one-shot (also called mono-stable mode), it generates a single, clean, digital pulse at the output, when it experiences a (possibly noisy) pulse at the input. This is useful when de-bouncing a mechanical switch or in the famous Clapper circuit. In this experiment, we are concerned with the 555-timer when it is wired in astable mode. This is also called an astable multivibrator. In this mode, the 555-timer circuit creates a stream of regular pulses. The wiring diagram for the 555-timer in astable mode is shown in Figure A-1. K. A. Connor, - 1 - Revised: 19 September 2018

1 Freq T T 1 2 Figure A-1. Inside the 555-Timer: In order to understand how the 555-timer can create this regular stream of pulses, we need to look inside and see how it functions. As you can see in Figure A-2, the inside of the device contains many of the components we have not yet studied. We will, as one of our goals in this class is to understand the functioning of this clever device. In this experiment, we will focus on what the 555 IC does rather than on how it does it. Figure A-2. First note that there is a voltage divider along the left side of the diagram. This divides a DC source voltage at Vcc into three equal voltages. Therefore, P1 is equal to (2/3)Vcc and P2 is equal to (1/3)Vcc. The voltage divider is the only part of the 555 that we have discussed so far. The other devices inside the 555 will be mentioned now, but only focus on what their job is, not on how they do it. Next to the voltage divider, there are two comparators. The Threshold Comparator compares the voltage at pin 6 (the Threshold) to the voltage at P1. The Trigger Comparator compares the voltage at pin 2 (the Trigger) to the voltage at P2. The outputs of these two comparators are used to control a flip flop. The output of the flip flop is attached to the 555-timer chip s pin 3 (Output). The 555-timer chip has one more feature, a transistor switch. This switch will be off when the Output pin is high and the signal at pin 7 (Discharge) will not be influenced by the switch. When the Output pin 3 is low, however, the transistor switch is closed. This forces the Discharge pin to ground. The key take-away point is that pin 7 will either be floating (not connected to anything or will be connected to ground. This is controlled by the transistor acting as a switch. How this is used is discussed in the next paragraph. The 555-Timer in Astable mode: When we wire the 555-timer in astable mode, we create a circuit that generates a string of pulses with the same period and duty cycle. The nature of these pulses is determined by the values of the R1, R2, and C1 K. A. Connor, - 2 - Revised: 19 September 2018

located outside of the timer in the diagram for the Basic Astable Mode on the previous page. We have seen that when current flows through a series combination of a resistor R and a capacitor C, that the circuit responds with a characteristic time constant = RC. The on-time for each pulse is determined by how fast the capacitor C1 charges when the transistor switch is open and the output of the timer chip at pin 3 is high. In this case, the capacitor is attached to the source voltage through the resistors R1 and R2. The charging time constant is charge = C1(R1+R2). When the capacitor has charged up to (2/3)Vcc, the Threshold Comparator tells the flip flop to switch, the output goes low and the transistor switch closes. The off-time for each pulse is determined by how fast the capacitor discharges to ground through the transistor. The discharge path is through R2 to pin 7 to ground, so the discharging rate is discharge = C1(R2). When the capacitor has discharged down to (1/3)Vcc, the Trigger Comparator tells the flip flop to switch again, the output goes high, the transistor opens, and the capacitor is no longer attached to ground at pin 7. The capacitor begins to charge again and the cycle repeats. By selecting just the right values for the resistors and capacitors in this circuit, we can make the voltage at pin 3 (the OUTPUT) go from zero to V CC at whatever rate we desire. We can also control the percentage of time that the output will be on relative to the length of an entire cycle. The equations that govern this behavior are: T ON 0.693( R1 R2) C1 T OFF 0.693( R2) C1 f T ON 1 T OFF 1.44 ( R1 2R2) C1 Pulse width modulation: One of the most important things we can use 555-timers for is to control and drive a large variety of systems with pulse width modulation. The power of pulse width modulation comes from its simplicity. Rather than controlling the flow of some liquid by carefully opening a valve part way, you can alternately open and close the valve fully in such a manner that the average open time produces the same effect as a partially open valve. In effect, the rate of flow is controlled by the duty cycle of the controlling voltage. It is much easier to fully open or close a valve than to precisely open it part way. One can also apply power to a motor in this manner to control the speed of rotation or to an LED to control light level. The key goal of this modulation process is to achieve a desired average value for some process. The range of possibilities is shown in Figure A-3 where A has a high duty cycle (fast) and C a low duty cycle (slow). Experiment Figure A-3. Simulation of a 555-timer circuit In this part of the experiment, we will use LTspice IV to demonstrate the operation of the 555-timer chip in astable mode. K. A. Connor, - 3 - Revised: 19 September 2018

Draw the circuit in Figure A-4 in LTspice. Figure A-4. Run the simulation. o Perform a transient analysis in increments of 2us up to 5ms. o Plot the threshold/trigger, discharge and output voltages. The trigger voltage is pin 2 and the threshold voltage is pin 6. (They are tied together by the external circuit.) The discharge voltage is pin 7, and the output is taken at pin 3. o Include a copy of the plot and your circuit in your report. o Verify that the timer output changes according to the rules listed for the 555-timer in astable mode. Use the plot to find the time period that the output is ON and the time period that the output is OFF. Note: Do not use the first cycle of pulses produced by the timer circuit. It takes one cycle to settle in to its steady-state condition. One of these times should be equal to 0.693(R1+R2)C1 while the other should be equal to 0.693(R2)C1. Which is which? What is the total period of this output? To be able to read the times more easily, use the cursors. To open a cursor, use your mouse to click on the name of the output voltage at the top of the screen. To add a second cursor (to read both ends of a time period simultaneously), click on the voltage name again. The locations of the cursors will be displayed in the cursor window. (See Figure A-5) When your mouse nears the location of a cursor on the screen, its number will appear. Then you can move it wherever you wish. o Which of the three signals on your plot corresponds to the charging and discharging of the capacitor, C1? To what voltage does it charge each time? To what voltage does it discharge? What is the rate of charge? Is the rate of discharge the same? Figure A-5 Determine the average voltage of the signal. o Change the end time for the transient analysis to 100ms. o Display only the output voltage (pin 3) on your plot. o Rerun the simulation. o Hold down the Ctrl key and click on the name of the voltage trace again. This time a new window will appear that shows the average of the signal for the time period displayed in the plot. o Copy the plot generated for the output voltage and label it with its duty cycle and average output voltage. Show your annotated plot and live simulation to a TA or instructor, explain why your results make sense and then have them sign here. (TA/Inst) K. A. Connor, - 4 - Revised: 19 September 2018

Find a larger and smaller average voltage for your circuit o Find an expression for the duty cycle of an astable 555-timer circuit using the equations given. Consider what relative values of R1 and R2 would produce the highest duty cycle and what relative values of R1 and R2 would produce the smallest duty cycle. o Now, using any combination for 3k, 10k or 30k resistors (only one of each value) for R1 and R2, find the combination of two resistors which results in the largest average voltage and the combination of two resistors which results in the smallest average voltage. o Copy the plot for each of these two cases, write the values for R1 and R2 you used on each plot. Also have LTspice tell you the average output voltage, using the method described above, and add the average voltage to your plots. Include these two plots in your report. o Verify in each case that the pulses produced by the multivibrator circuit obey the design rules. If the simulation does not work, the design rules are probably violated. Build the 555-timer circuit on your protoboard In this part of the experiment, we will build the astable multivibrator and then see how it can be modified to produce slower and faster output pulses. We will observe the output pulses with a LED. Wire the astable multivibrator shown in Figure A-6 on your protoboard. Use the =5V DC output from the Analog Discovery board for V CC. Use any color LED. It does not have to be red. Please pay close attention to the 555 Timer Chip pinouts, which are described in both the video and PowerPoint slides for this class. Note: If you do not have components that match the ones in the circuit exactly, use the closest value. For example, for the 330Ω resistor, use the 470Ω in your kit. +Vcc Figure A-6. Record your results. o You will not be able to see the LED flash because the period of your circuit is too fast. o Take an Analog Discovery picture of your output. (That is, measure the output voltage with Channel 1) o Copy this plot and include it in your report. o What is the period of your output signal? What are the off-time and on-time? Use the equations to calculate what these values should be. How do they compare? Slow down the pulses so that you can observe them with the LED. Do not change components with power applied to the circuit. Turn power off before you make the changes and then turn it back on. o Keeping the resistors R1 and R2 the same, determine a new value for C1 such that the period of the timer will be around 1 second. o Replace C1 in your circuit and observe the LED. Does it flash once a second? o What is your on-time and off-time now? How are these related to the on- and off-times of the original circuit? Why does this relationship hold? (TA/Inst) K. A. Connor, - 5 - Revised: 19 September 2018

Part B Pulse Width Modulation Background For background, read the Wikipedia entry on Pulse Width Modulation. https://en.wikipedia.org/wiki/pulsewidth_modulation. Also, the Sparkfun tutorial: https://learn.sparkfun.com/tutorials/pulse-width-modulation and the information from All About Circuits: http://www.allaboutcircuits.com/textbook/semiconductors/chpt-11/pulsewidth-modulation/. Do not expect to understand everything. Rather, focus on the main idea that duty cycle translates to signal average. Experiment Pulse Width Modulation with Analog Discovery Disconnect the 330Ω resistor (or 470Ω if that is what you are using) and the LED from the 555 Timer circuit and connect them to the first Analog Discovery function generator (AWG1) and ground. Measure the input voltage with Channel 1 of the scope. It is not necessary to measure across the LED in this experiment. W1 and 1+ are connected to the left end of the resistor and GND and 1- are connected to the bottom end of the LED. The circuit is shown in Figure B-1. Set up the function generator so that it produces a train of square pulses at a frequency of 1Hz, with Figure B-1 maximum voltage = 3V and minimum voltage = 0V. That is, the pulses are only positive. The function generator window should look like the one in Figure B-2 below. Figure B-2 Turn on the function generator and describe what you see as you observe the LED. Next, check the box above the word Symmetry. This will allow us to vary the duty cycle. Vary the duty cycle throughout its range from 0% to 100% and describe what you observe. Set the duty cycle back to 50%. Turn off the function generator. Now adjust the frequency to 200Hz (see Figure B-3 below). Describe what you see now. Again vary the duty cycle from 0% to 100% in steps of 10% and describe what you see. While you are varying the duty cycle, measure the voltage that is being produced by the function generator using a DC Voltmeter (the cheap $3 meter from Harbor Freight will work just fine. Record the measurement for each duty cycle. (TA/Inst) K. A. Connor, - 6 - Revised: 19 September 2018

Finally, at 50% duty cycle, reduce the frequency of the square pulses until you can see the LED flash. Observe the LED both directly and to the side using your peripheral vision. Record the value of the highest frequency that you are able to sense flashing looking in both directions. Are they the same? How does this frequency relate to the refresh rate of video displays? Figure B-3 K. A. Connor, - 7 - Revised: 19 September 2018