Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| test-and-measurement:analog-discovery-2:am-signal-demodulation-and-playback [2022/09/12 12:24] – changed forum.digilentinc.com to forum.digilent.com fsoares | test-and-measurement:analog-discovery-2:am-signal-demodulation-and-playback [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== AM Signal Demodulation and Playback ====== | ||
| + | |||
| + | {{ reference: | ||
| + | |||
| + | ===== Introduction ===== | ||
| + | |||
| + | This project generates an AM signal, records, and filters it to demodulate the audio signal being transmitted. Headphones can be used to listen to the original, the AM, and the demodulated signals. This project showcases WaveForms' | ||
| + | |||
| + | ===== Inventory ===== | ||
| + | * A Digilent Test and Measurement device that supports WaveForms' | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * //An Analog Discovery (Legacy) can also be used.// | ||
| + | * Headphones with 3.5mm jack | ||
| + | * WaveForms Installation | ||
| + | * [[software: | ||
| + | * {{ reference: | ||
| + | * //Includes a WaveForms workspace including a script that handles the loading, modulation, playback, and re-recording of audio files.// | ||
| + | |||
| + | ---- | ||
| + | ===== Description ===== | ||
| + | |||
| + | An AM signal varies (modulates) the amplitude of a carrier signal. The envelope of the carrier signal represents the audio being transmitted, | ||
| + | |||
| + | After recording the demodulated signal, the script plays back the original and the new signal to allow users to compare the quality of sound. Sound recordings or songs can be imported into the function generator, and script will automatically adjust the recording time to capture the entire signal. | ||
| + | |||
| + | ===== Setup Instructions ===== | ||
| + | |||
| + | === 1. Hardware Setup === | ||
| + | |||
| + | This script requires that the following leads of the test and measurement device be connected to one another: | ||
| + | |||
| + | //Table 1. Physical Connections// | ||
| + | |< 50% 50% 50% >| | ||
| + | ^ Connect this ^ To this ^ | ||
| + | | Oscilloscope 1+ | ||
| + | | Oscilloscope 2+ | ||
| + | | Oscilloscope 1-/2- | Ground | ||
| + | |||
| + | ---- | ||
| + | === 2. Software Setup === | ||
| + | |||
| + | Start by downloading and extracting the WaveForms workspace from the {{ reference: | ||
| + | |||
| + | The script needs some editing before being run for the first time. On line 1 of the script change the variable ' | ||
| + | |||
| + | If desired, change the variable ' | ||
| + | |||
| + | ---- | ||
| + | === 3. Running the Script === | ||
| + | |||
| + | Once the file-path is set, plug in the headphones and click **Run** to run the script. The left ear will play the original signal, the right ear will play the AM signal. After the signal is played and demodulated, | ||
| + | |||
| + | Each run of the script will yield a time-stamped .CSV file in the specified | ||
| + | location, collected at a rate of 44.1kHz. If the CSV file does not appear in the specified location, the file path was entered incorrectly. | ||
| + | |||
| + | To import other audio samples, press the **Import** button under Channel 2. Select the desired file and in the next dialog make sure the waveform looks like the expected audio signal. Sometimes it's necessary to select the correct channel in the **Column** menu. Once the signal is ready to be imported, press " | ||
| + | |||
| + | If the workspace becomes sluggish as more trials are run, delete some of the demodulated signals labeled " | ||
| + | |||
| + | **Note:** //This script is resource-heavy, | ||
| + | |||
| + | <WRAP group> <WRAP column half> | ||
| + | {{ reference: | ||
| + | |||
| + | < | ||
| + | //Figure 1. Original/ | ||
| + | < | ||
| + | </ | ||
| + | {{ reference: | ||
| + | |||
| + | < | ||
| + | //Figure 2. Original/ | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | ==== Final Notes ==== | ||
| + | |||
| + | For more guides and example projects for your Test and Measurement device, please visit its Resource Center, which can be found through this wiki's [[test-and-measurement: | ||
| + | |||
| + | For technical support, please visit the [[https:// | ||
| + | |||
| + | {{tag> | ||
| + | |||

