ECE 201L Circuit Analysis Laboratory
Lab 5

This lab provides experience with quad NAND gates, the data acquistion board, and the bench function generator and oscilloscope.

Attachment: lab5.zip.

Do the following exercises. Report your results by editing the attached Word document and submitting it in Isidore. Submit one report per group.

  1. Download and install the following ECE lab software:

    The lab assistants should have a zip drive with the latest software. You could instead download the latest release from www.agilent.com. It should run on 64-bit Vista systems. I believe the link is I/O Libraries Suite 15.5.

    In at least one case, the Intuilink software would not work until you enabled Agilent 488 cards: Run the I/O Connection program. Choose Tools – Options ... and enable as shown below:

  2. Capture three samples of output from the function generator: sine wave, square wave, and triangle wave. Show the measured rms voltage and frequency on the oscilloscope image. See example below:

  3. Generate an output signal using the DAQ with aotest.m. The MATLAB script sends output to D/A OUT 1 (Pin 14) / AGND (Pin 15). Find a cable with BNC on one end (to connect to the oscilloscope) and aligator clips on the other end (to connect to the DAQ). Connect the red clip to D/A Out 1 (Pin 14) and the black clip to AGND (Pin 15). Run three different sample rates: 1000, 4000, and 8000. Capture the results on the bench oscilloscope.

    Note: I've tried to get the DAQ to do analog output and analog input simutaneously, without success. If anyone figures out how to do it, please let me know.


    Find a 4011 Quad NAND chip in your parts box. The pin diagram for this chip is reproduced below.

    Remember to connect power (5 V - pin30 - to pin 14) and ground (GND - pin29 - to pin 7).


  4. Build a “night light” using your light-sensitive resistor, a nand gate, and LED. Choose the resistor R1 to provide an appropriate switching point for your light-sensitive resistor. The LED should go on when you shde the sensor with your hand and off when you uncover the sensor. Demonstrate the circuit to the lab assistant.

  5. Build a monitor system that counts people passing a given point and tracks the time of arrival. Setup tables to form a corridor and use your “night light” circuit adjusted to turn on the LED when someone walks by the sensor. You may need to devise a “hood” of some kind over the light-sensitive resistor or place a light source on one side of the corridor. Use the MATLAB script dioswitch.m modified from lab 3 and included with the attached files for this lab as a starting point for the data acquisition code. For extra challenge, add a reset switch, connected to a second digital input line, to reset the count to zero. Demonstrate the monitoring system to the lab assistant. Document your design in your lab report.
  6. Build a SR-latch using two nand gates. Connect the two outputs to separate LEDs and 330-ohm resistors.

    Record the truth table for this circuit below, use ON if the LED is lit and OFF if the LED is dark. In this table 0 means the pin is connected to ground and 1 means the pin is connected to 5V.

    SRQQBAR
    00

    01

    10

    11

    Which state (row) maintains the current value? Which state (row) is inconsistent? How did you determine that the flip-flop has two stable states?


Data Acquisition Board Pinout


Maintained by John Loomis, last updated 28 September 2010