Lab1_ADALM_Fall2023

pdf

School

University of Maryland *

*We aren’t endorsed by this school

Course

350

Subject

Electrical Engineering

Date

Feb 20, 2024

Type

pdf

Pages

6

Uploaded by ChefZebra4086

Report
Name____________ Section_________ ENME 350: Electronics and Instrumentation I Lab 1: Introduction to ADALM2000 Fall, 2023 Please perform the following outside of class and answer all three questions shown below. Read the instruction of the submission of lab report on Gradescope, which is posted on ELMS, and submit your work through https://www.gradescope.com before 1:00pm on Tuesday (September 5th) this time because Monday (Sept. 4) is a holiday. Students in Monday’s sections (0101 and 0105) will conduct the in-lab portions of Lab 1 and Lab 2 on the following Monday (Sept. 11). 1. ADALM2000 and its software ADAKM2000, as shown in Figure 1, is a unit that contains a signal generator, power supply, and oscilloscope that will enable you to perform laboratory experiments at home when hooked up to a laptop computer. The various terminals are shown in Figure 2. The unit can output various signals through the Analog output 1 (W1) and Analog output 2 (W2), while the Positive Supply (V+) and Negative Supply (V-) can provide DC voltages up to 5V. There are four grounds as shown in the pinout. Two signals can be measured using the analog inputs (1 ± and 2 ± ). Figure 1: A picture of ADALM2000 device
Figure 2: The terminals of ADALM2000 device Software installation : Hook up the ADALM device to one of USB ports of your computer. A folder titled M2K appears. Open the M2K folder, click on the info.html file that shows the instruction of installation. For Mac users, you need to download the libiio Library and Scopy software, which can be found in the link shown in the file and in the ADALM folder of this course on ELMS. Install them to your computer. Do NOT install HoRNDIS because ADALM2000 is a U SB device and it doesn’t need the HoRNDIS driver that is for network access. For Windows users, please follow the instructions and install Windows driver, libiio Library and Scopy software, which can be found in the ADALM folder as well. More detailed information of Scopy software can be found from the following link ( https://wiki.analog.com/university/tools/m2k/scopy ). To get you familiar with the operation of ADALM2000, please visit the following two websites and watch the video on the websites. The video shows the procedure of running the Scopy software with the ADALM device. https://wiki.analog.com/university/tools/m2k/scopy/siggen#run_both_channels and https://wiki.analog.com/university/tools/m2k/scopy/oscilloscope In the following example, let’s set up a triangle wave of 1 kHz and amplitude 5 V centered around 2.5V on CH 1 (orange color and terminal W1) of Signal Generator, and look at this signal on CH 1 of the oscilloscope (terminal 1+). Click on Signal Generator on the left panel and then on Waveform and then on Sine, select Triangle from the list. Change the amplitude to 5V and the offset to 2.5V, you will see a triangle wave signal on the screen ranging from 0 to 5V as shown
below. Set the frequency to 1 kHz (please pay attention to the unit of each parameter). Then, click on Run button on the top right side of the screen. Figure 4: The setup of a triangle signal on Signal Generator. Take a wire and hook up the output (W1) of the signal generator to CH1 (1+) of the oscilloscope and using another wire hook up (1-) to the ground, as shown in Fig. 5. Figure 5: Demonstration of wire connection Now, you click on Oscilloscope on the left panel and the screen on the right becomes an oscilloscope, see Figure 6. Click on Run button on the top right side of the screen, you can see that the amplitude of the signal is about 2.5 vertical divisions (i.e., 2.5 × 2V/div = 5 V) and the period is 5 horizontal divisions (5 × 200 s/div =1 ms, or 1000 Hz). You may adjust the time base to vary the number of waves on the screen and adjust the vertical scale to change the vertical displacement of the signal.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Figure 6: Demonstration of wave signal on Oscilloscope 2. Exercises Exercise 1: Signal generation and capture Set up the following two signals and capture them simultaneously on the oscilloscope. Signal 1: Triangle wave, bipolar, 4 V amplitude, 500 Hz (terminal W1) to CH1 (terminal 1+) Signal 2: Sine wave, unipolar, 2 V amplitude, 200 Hz (terminal W2) to CH2 (terminal 2+). Note that we occasionally describe the input signals as unipolar and bipolar. For example, for a signal with an amplitude of 4V from peak-to-peak, unipolar (i.e., one side of a pole) means the signal goes from 0 V to 4 V, while bipolar will give you a signal that varies between -2V and 2V. To spatially separate the two signals so you can see them better, grab the tabs on the left of the trace labeled different colors and drag them up and down. Question 1: Take a picture of your circuit and a screenshot to show you are getting the desired signals. Include the picture and screenshot in your report. Now, you need to export the data as a CSV file from Oscilloscope, click the wheel button located on the top right side of the screen. The export settings panel is opened. Using the “Export All” switch you can select and export data from all the available channels. After deciding which channels should be exported, click ‘Export” and type a file name. Question 2: Open your saved CSV file with Excel and take a screenshot of the top portion of your data. Include the screenshot in your report.
Exercise 2: LED lighting and control We will use ADALM2000 to control a Light Emitting Diode (LED) using the square wave output, called pulse herein, and measure the voltage across the LED using the oscilloscope. The circuit is given below, see Fig. 7. The signal source is a square wave from W1 or W2 on Signal Generator. Adjust the square wave signal varying between 0 and 5V. The signal output W1 or W2 is attached to a 100 ohm resistor (brown, black, brown), then to the LED. The resistor is needed to limit the current flowing through the LED since too much current will burn it out. The LED only allows current to flow in one direction. The positive end of the LED (anode) is the longer lead on the LED. The voltage across the LED should be measured using one of the oscilloscope channels. Vary the frequency of the square wave, the LED is on (Duty) during the fraction of each cycle and observe what effect they have. Figure 7: LED circuit built with the ADALM Question 3: Take a picture of your circuit and a screenshot of the LED voltage. Include the picture and screenshot in your report. You may be asked to demonstrate lighting of the LED during lab. Exercise 3: Breadboard: Let the breadboard orients vertically (the short side is at the top and bottom). The horizontal rows are connected on the inside, but not across the middle divider, as
shown in figure 8(a). Two vertical columns on each side of the breadboard are normally for power and ground, as shown in figure 8(b). (a) (b) Figure 8: wire connections of breadboard. Question 4: Use a wire to connect the holes from left Row 10 to right Row 10 on the inside of the breadboard. Take a picture of your work and include it in your report.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help