experiment 21

24
Experiment 21 Design a Traffic Arrow

Upload: tate

Post on 24-Feb-2016

48 views

Category:

Documents


0 download

DESCRIPTION

Experiment 21. Design a Traffic Arrow. Just so it is clear. There is NO final in this course!. 10% Portion of Final Grade. There was a statement about online lecture quizzes and other activities that is worth 10% of your final grade. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Experiment  21

Experiment 21

Design a Traffic Arrow

Page 2: Experiment  21

Just so it is clear

There is NO final in this course!

Page 3: Experiment  21

10% Portion of Final Grade

There was a statement about online lecture quizzes and other activities that is worth 10% of your final grade.

This will be a short writing exercise where you will provide input to the ECE department on your experience in the online lab course.

This will be posted on the Assignments section of the course Scholar site and will be due on August 14.

Page 4: Experiment  21

Design a Traffic Arrow

0 1 2

3

4

6

You should place the LEDs on your ANDY board in a similar configuration.

Page 5: Experiment  21

Sequence

1. All LEDs are off2. 20-40 ms later, Section 1 LEDs turn on3. 20-40 ms later, Section 2 LEDs turn on

Section 1 LEDs remain on4. 20-40 ms later, Section 3 LEDs turn on

Section 1 and 2 LEDs remain on3. 20-40 ms later, Section 4 LEDs turn on

Section 1-3 LEDs remain on

Page 6: Experiment  21

All LEDs are off

Page 7: Experiment  21

Section 1 LEDs are on

Page 8: Experiment  21

Section 2 LEDs are on

Page 9: Experiment  21

Section 3 LEDs are on

Page 10: Experiment  21

All LEDs are on

Page 11: Experiment  21

All LEDs are off

Page 12: Experiment  21

To obtain desired clock frequency for pulse generator

• Use digital clock (CLCK) on the ANDY board be used.– The minium clock frequency is ~ 70 Hz—a frequency well

above the maximum suggested in lab manual. – To slow down the clock, connect two 100 μF electrolytic

capacitors (in series) to the EXT CAP socket header on the ANDY board.

Note: it is critical to wire electrolytic capacitors with the correct polarity as discussed in Section 3.1 of this text.

• Or, use the square wave pulse on the Velleman or Analog Discovery arbitrary function generator.

Page 13: Experiment  21

Electrolytic Capacitor with the ANDY Board

The positive lead of capacitor C1 should be plugged into either the top-left or bottom-left pin of the EXT CAP socket header (J17). The negative lead of capacitor C2 must be connected to ground.

There is a negative sign on this side of the capacitor. Also, the negative lead is shorter than the positive lead.

Page 14: Experiment  21
Page 15: Experiment  21

Block Diagram of Circuit

• Charging of C3 is determined by R4C3 time constant.

Page 16: Experiment  21

• Discharging of C3 is accomplished using LED 6 when the clock pulse from the ANDY board is at 0V.

Page 17: Experiment  21

Diodes (even LEDs) act like switches

• When the voltage on the positive side of the diode is greater than the voltage on the negative side plus the turn-on voltage (~2V), the diode conducts current.

• When the voltage on the positive side is less than the voltage on the negative side plus the turn-on voltage (~2V), the diode acts like an open circuit.

Page 18: Experiment  21

Operation of LED 6VLED6 < 2V5 – VC3 > -2V

VLED6 > 2V(0V – VC3) < -2V

LED6 will be inserted into the circuit ‘backwards’ compared to the other LEDs.

Page 19: Experiment  21

Series of Voltage Comparators

• Voltage dividers are used to determine the reference voltage at which the op amp output voltage changes from (roughly) V- to V+.– You need to calculate what the reference voltages should be to obtain

the correct timing of the lights based upon an exponential shape to the voltage across the capacitor,. [Review Experiments 6 and 15]

Page 20: Experiment  21

Resistor Values

• R0, R1, R2, and R3 are used to limit the current that flows through the LEDs.– This should be ~ 10mA.

• R4 in combination with C3 determines the rate at which the voltage increases on the input of the voltage comparators.– Note that C3 will not fully discharge through LED6.

Page 21: Experiment  21

Oscilloscope Measurements

• You can measure about 4-6 seconds worth of data using your oscilloscope.– The measurement must be performed as DC coupled as the

rate of change of the voltage across C3 is slow. AC coupling will filter out what appears to be a dc voltage across C3.• AC and DC coupling is selectable on the Velleman scope. It is the

default condition on the Discovery Analog scope.– You can use the square wave signal from the input as the

trigger when measuring the other voltages to show the time delay as the sets of LEDS turn on.

– You should use the oscilloscope when debugging your circuit.

Page 22: Experiment  21

Pre-Lab

Submit in a .docx file:• PSpice schematic of your full circuit

with all resistor and capacitor values included.

• PSpice simulation of the voltage across C3 as a function of time and the voltage of the pulse generator voltage for the subcircuit shown to the right. – Please read the material on LEDs to learn

how to use DBREAK and a battery to model the LED.

Page 23: Experiment  21

Circuit Validation

• Demonstrate that the LEDs light in the prescribed sequence and at the prescribed time (approximately one-half to one second apart).

Page 24: Experiment  21

Post-Validation Report• The design report, which may be written in a format of your choosing, should

be self-contained. At a minimum, the report must include the following:

1. A statement of the objectives of the project2. A description of the design principles used and the feature set included3. A schematic diagram of the circuit4. A PSpice analysis showing the bias voltages and the locations of any PSpice voltage and/or current probes. A screen snapshot of the PSpice waveforms showing the pulse generator voltage versus the voltage at the junction of R4 and C3 should be included. The waveforms must also show the output voltages from the op amps. Be sure to answer the question in Procedure Part A, step 6.5. Test results that demonstrate the performance of the design.