ECE 363 Lab 1 Fall 2014 Lab 1 – Optical Communication Link (Sept 16) GOAL The overall goal is to build an optical communication link based on a LED transmitter and photodiode receiver. OBJECTIVES 1) 2) 3) 4) 5) 6) Design, simulate, build, and test an LED transmitter (BJT switch). Simulate, build, and test a photodiode receiver (JFET-input op amp). Trim a 741 op amp. Build, test, and simulate an inverting amplifier using a trimmed 741 op amp. Measure the 20 Hz signal from the test LED. Measure the transmitted signal from a TV remote. GENERAL GUIDELINES 1) 2) 3) 4) 5) 6) Each student builds his/her own circuits. Test stations (e.g. oscilloscope, computer) must be shared. You are allowed (even encouraged) to help each other. Of course, Buma will be around to provide assistance as well. Use neat wiring for your circuits! Starting in Lab 2, a messy circuit will cost you 1 pt (out of 10 for the demo). Keep your circuit components organized to make it easier to do the subsequent labs! Each student must turn in his/her own lab report. See the course website for the template. Honor Code Compliance: You must turn in your own work! Blatant duplication of circuit analysis, design, simulations, and/or lab reports will result in ZERO points and possible reporting to the Honor Council. NOTE: There will be one lab exam near the end of the term. The lab exam will test each student’s ability to use Simetrix and prototype a circuit. PARTS AND MATERIALS Oscilloscope, scope probes, function generator, BNC+alligator clips, banana cables, digital multimeter Lab kit containing breadboard, wires, wire stripper, and other tools Calculations and simulations of your circuits from PreLab1 2N3904 transistor, TL081 JFET-input op amp, LM741C bipolar op amp Red LED, OP906 photodiode Resistors: 10k (brown/black/orange) (three) 100k (brown/black/yellow) (three) 1Meg (brown/black/green) (one) 10k multi-turn potentiometer (one) Capacitors: 1 nF (blue) (one) 0.33 uF (yellow) (four) 1 ECE 363 Lab 1 Fall 2014 PART 1: LED TRANSMITTER 9 V2 In this section you will build and test your LED transmitter from PreLab1. Some comments: R Vo LED Build the circuit on the LEFT side of the board. Make sure the LED leads are bent so that light is transmitted to VB the RIGHT. Vin Q1 5 Pulse(0 5 0 250u 250u 25m 50m) Agilent function generator: Q2N3904 RB V1 o Configure to “High Z” output. o Square wave: 20 Hz, 50% duty cycle, 5 V peak-topeak, 2.5V offset o Use the coaxial cable + alligator clips to apply the square wave to the transmitter o Use the coaxial cable to connect “Sync out” to the “External Trig” input of the scope. Scope measurements. o Use the scope probe to measure a few cycles of Vin and Vo. o Check that your scope measurements have reasonable agreement (e.g. within 10% error) with your simulations. o Based on your measurements, compute the LED current and transistor base current when the LED is on. o Record scope snapshots of Vin and Vo. You can insert a USB stick into the scope and save a scope snapshot directly to the portable drive. Demo this circuit to Hedrick (2 out of 10 pts of lab demo grade). PART 2: PHOTODIODE RECEIVER In this section you will build and test a photodiode amplifier (see figure) using a TL081 JFET-input op amp. Some comments: Build the photodiode amplifier on the RIGHT side of the breadboard. The longer pin of the OP906 photodiode is the “positive” side. Make sure the photodiode is facing the LED. See the TL081 datasheet (course website) for the pin diagram. Try to place the 330 nF capacitors fairly close (e.g. within 1 inch) of the op amp. These bypass capacitors are important to minimize voltage spikes in the op amp output. The 1 nF capacitor is important to minimize feedback oscillations in the transimpedance amplifier. It is wise to make a “light shield” over the photodiode -- just use a small piece of folded paper. 2 9 V1 C2 330n X1 V_PD TL081 9 V2 C3 330n PHOTODIODE 100k R1 1n C1 ECE 363 Lab 1 Scope measurements. o You should see that the photodiode is sensitive to the room lights (e.g. waive your hand over the photodiode). o Use the scope probe to measure and record a few cycles of V_PD. o Based on your measurements, compute the peak-to-peak voltage of V_PD – this is the desired signal. You should get something around 30 mV, but a much higher or lower value is perfectly OK. o Remove the 1 nF capacitor and comment on the appearance of the V_PD scope trace. o Put the 1 nF capacitor back in – it is important for a clean signal! Demo this circuit to Hedrick (2 out of 10 pts of lab demo grade). PART 3: OP AMP TRIMMING In this sub-section you will measure and then trim the output voltage offset of a 741 op amp. Some comments: Fall 2014 Build the 741 op amp circuit shown on the right. NOTE: Build it just above or below the photodiode amplifier. Make sure to connect the 10k pot to pins 1 and 5. The wiper goes to -9V. Measure and record VOUT using the scope. Adjust the 10k pot to zero the op amp output (monitor VOUT with the scope). Demo the trimmed op amp to Hedrick (2 out of 10 pts of lab demo grade). 3 ECE 363 Lab 1 Fall 2014 PART 4: TESTING THE OPTICAL DATA LINK In this section you will hook attach the inverting amplifier to the output of the photodiode amplifier and demonstrate a working system. The 10k resistor attached to pin 2, which is the (-) input, of the 741 op amp should now be connected to the output of the photodiode amplifier (see below). Do NOT touch the 10k pot! Your 741 op amp is already trimmed (that was the point of the end of Section 3). Record a scope snapshot of the LED signal. Demo your circuit to Hedrick (4 out of 10 pts of lab demo grade). Now disable the LED transmitter (e.g. disconnect the function generator). Aim the TV remote controller at the photodiode. A distance of about 1 foot is reasonable. Press and hold down the “Power” button of the TV remote. Adjust the scope to display a single acquisition of the binary code. Record the snapshot. (End of Lab 1) 4