Lab 1 - Analogue and Digital Signals: Objective
Lab 1 - Analogue and Digital Signals: Objective
LAB 1
To reintroduce the equipment used in the lab. To get practical experience assembling and analyzing circuits. To examine physical analogue and digital signals and devices.
Introduction
In most practical applications the information and signals we are interested in are in an
analogue form. These analogue signals can vary continuously in time and can take on an infinite number of values. For digital electronics to process theses 'real world' signals, the analogue signals must be first converted into a digital form. Likewise, for the processed results to be useful to a human, the digital information often, but not always, needs to be converted back into an analogue form.
We can build circuits to analyze these types of signals using a breadboard and some simple
electronic devices.
Recall, from the prerequisite course, the general concept of the breadboard. It is a device
which allows us to connect circuit components without needing a circuit board or solder.
No connection between points
Electrically connected
If we want to connect two devices using the breadboard, for example the resistors R1 and R2:
R1 A B
R2 C
We can use the internal connections within the breadboard to act as the nodes 'A', 'B', and 'C'.
"
1-1
LAB 1
e d c b a
In this case we can use columns 1, 4, and 7 for the nodes A, B, and C, and insert the resistors into the breadboard as follows:
e d c b a
1 2
3 4 5
6 7
8 9
R2 R1
In this scenario the connection between R1 and R2, at node B, is made by the internal connection which exists in the breadboard. It is important to keep in mind the internal connections in the breadboard and not connect the resistors as follows:
e d c b a
1 2
3 4 5 R2
6 7
8 9
R1
If the parts are inserted into the breadboard as shown, both ends of R2 are connected to each other. In other words nodes B and C are effectively connected together, and R2 is shorted out of the circuit.
"
1-2
LAB 1
microphone to convert the sound waves into an electrical signal. Pin +5V 2.2k!
microphone +
To view the output signal we will need to configure the oscilloscope appropriately. This involves adjusting the resolution/scaling of the display.
Vertical Horizontal
Volts/Div
Sec/Div
CH1
1.5V
Using the Volts/Div control, set the vertical scale to 20.0mV/division. Using the Sec/Div control, set the horizontal scale to 2.50ms/division.
At this point you should be able to speak into the microphone and see a signal on the oscilloscope screen. Rather than try to examine a constantly changing display we can configure the oscilloscope to capture a single event using the oscilloscope's single trigger mode.
Edge Slope
1
Press the Trigger Menu button on the right side of the oscilloscope. Using the on-
screen controls:
"
1-3
LAB 1
Set the Source to Ch 1. Set the Mode to Single. Using the Level adjustment knob, adjust the arrow on the right side of the
display to be higher than the 0 V level which is indicated by the left arrow on the screen. At this point the word Ready will appear at the top of the screen. You can now speak into the microphone and a single stationary waveform representing whatever you said will be captured on the oscilloscope. At this point the word Stop will appear at the top of the screen. To reset the oscilloscope press the Run/Stop button located at the top corner of the oscilloscope. !Sketch the waveform you captured:
constant) while it is converted. A sample and hold circuit can perform this holding function. Build the following circuit:
+
100F
Construction notes:
When mounting the push button, have the switches on either side of the channel in the
breadboard.
"
1-4
LAB 1
Look at the labelling on the capacitor and make sure that it is the negative terminal
250ms/div. ! Try to press and release the switch (sample the input signal) so that the output is at the peak (5V). Try to sample the input so that the output is 0V. ! Determine if it the closing of the switch, or the opening of the switch which determines the output voltage (the value of the sample). Explain why.
! Sample the input signal at a slow rate (i.e. infrequently compared to frequency of input signal). Sketch the input and output waveforms.
! Sample the input signal rapidly (i.e. at a frequency higher than the frequency of the input signal). Sketch the input and output waveforms.
"
1-5
LAB 1
conversions. Build the following circuit using an ADC0804 A/D converter: Built into the green circuit board D0 D1 D2 D3 D4 D5 D6 D7
5V 100nF 10k! 56pF
10Hz square wave
1k!
Construction notes: a
a b
1 2 3 4 5 6 7 8 9 10
5V 10k!
! Determine the full range of motion for the potentiometer. Adjust the setting of the potentiometer and determine the what positions are required to turn on each of the LEDs. i.e. If the full range of motion is from 10 to 370, estimate the angle to turn on each successive LED. Alternatively if the range of motion is from 1 o'clock to 11 o'clock determine when each successive LED turns on. D0 D1 D2 D6 D7
"
1-6
LAB 1
"
1-7