Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| test-and-measurement:analog-discovery-2:rc-low-pass [2022/09/12 20:07] – changed forum.digilentinc.com to forum.digilent.com jeff.greenberg_ni.com | test-and-measurement:analog-discovery-2:rc-low-pass [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== RC Low-Pass Filter Model vs Real Behavior ====== | ||
| + | |||
| + | {{ reference: | ||
| + | |||
| + | ===== Introduction ===== | ||
| + | This project performs a frequency sweep from 1kHz to 100kHz on a low-pass RC circuit. The input and output signals are plotted alongside a mathematically modeled signal based on the desired cutoff frequency and capacitor value. The script generates the resistor value needed to achieve the specified cutoff frequency. This project showcases WaveForms' | ||
| + | ---- | ||
| + | ===== Inventory ===== | ||
| + | * A Digilent Test and Measurement device that supports WaveForms' | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * //An Analog Discovery (Legacy) can also be used.// | ||
| + | * WaveForms Installation | ||
| + | * [[software: | ||
| + | * {{reference: | ||
| + | * //Includes a WaveForms workspace including a script that handles the creation of a stimulus waveform, re-capturing it, capturing the circuit' | ||
| + | * Components for a low-pass RC circuit: | ||
| + | * Breadboard (recommended) | ||
| + | * Capacitor (any value in the nano-Farad range) | ||
| + | * Potentiometer (any value) | ||
| + | |||
| + | ---- | ||
| + | ===== Description ===== | ||
| + | Mathematical models of circuits can be used to predict the performance of the real circuit, but the model should be verified in practice by comparing its results with the results of real circuits. | ||
| + | |||
| + | In order to perform the comparison, a small external circuit will need to be constructed. The modeled response of the filter is calculated using a Math Channel in WaveForms, which implements the formulas used to calculate the output voltage of an low-pass RC filter for a given frequency. Since the frequency sweep is linear, the frequency is known at every point in time, and thus the filter' | ||
| + | ---- | ||
| + | ===== Setup Instructions ===== | ||
| + | === Hardware Setup === | ||
| + | <WRAP group> <WRAP column half> | ||
| + | This project requires a small external circuit on which to perform the frequency sweep. The circuit consists of a capacitor and resistor in a low-pass RC filter configuration. Please refer to Figure 1 while creating this circuit and connecting it to your Test and Measurement device. | ||
| + | </ | ||
| + | {{ reference: | ||
| + | |||
| + | < | ||
| + | //Figure 1. Test Circuit Schematic// | ||
| + | < | ||
| + | </ | ||
| + | ---- | ||
| + | === Software Setup === | ||
| + | <WRAP group> <WRAP column half> | ||
| + | Start by downloading and extracting the WaveForms workspace from the {{reference: | ||
| + | |||
| + | Measure the capacitor' | ||
| + | </ | ||
| + | {{ reference: | ||
| + | |||
| + | < | ||
| + | //Figure 2. Script Tab// | ||
| + | < | ||
| + | </ | ||
| + | ---- | ||
| + | === Running the Script === | ||
| + | <WRAP group> <WRAP column half> | ||
| + | **Run** the script to generate the resistance that the potentiometer is to be set to for the entered capacitor and cutoff frequency. Set the potentiometer to this value and run the script again. | ||
| + | |||
| + | In the //Scope 1// tab, Channel 2 (blue) and Ref 1 (gray) should now have extremely similar outputs. Channel 1 (yellow) is the original waveform, " | ||
| + | |||
| + | The function generator will perform a sweep from 1kHz to 100kHz, but this range can be changed in the Wavegen window. | ||
| + | </ | ||
| + | {{ reference: | ||
| + | |||
| + | < | ||
| + | //Figure 3. Example Results// | ||
| + | < | ||
| + | </ | ||
| + | ---- | ||
| + | ==== 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> | ||
| + | |||

