--- metadata: display_name: Circuit Schematic Builder markdown: !!null data: |

Circuit schematic problems allow students to create virtual circuits by arranging elements such as voltage sources, capacitors, resistors, and MOSFETs on an interactive grid. The system evaluates a DC, AC, or transient analysis of the circuit.

For more information, see Circuit Schematic Builder Problem in Building and Running an edX Course.

When you add the problem, be sure to select Settings to specify a Display Name and other values that apply.

You can use the following example problems as models.

Make a voltage divider that splits the provided voltage evenly.

dc_value = "dc analysis not found" for response in submission[0]: if response[0] == 'dc': for node in response[1:]: dc_value = node['output'] if dc_value == .5: correct = ['correct'] else: correct = ['incorrect']

Explanation

You can form a voltage divider that evenly divides the input voltage with two identically valued resistors, with the sampled voltage taken in between the two.

Make a high-pass filter.

ac_values = None for response in submission[0]: if response[0] == 'ac': for node in response[1:]: ac_values = node['NodeA'] print("the ac analysis value:", ac_values) if ac_values == None: correct = ['incorrect'] elif ac_values[0][1] < ac_values[1][1]: correct = ['correct'] else: correct = ['incorrect']

Explanation

You can form a simple high-pass filter without any further constraints by simply putting a resistor in series with a capacitor. The actual values of the components do not really matter in this problem.