* Weighted summer * Use parameters to set resistor values: * (change these to match your experiment) .param r1=1k .param r2=1k .param rf=1k * Import the op amp subcircuit: .include models/ua741.md * Op amps need power supplies: VDD ndd 0 DC 15V VSS nss 0 DC -15V * Next, the input voltages: V1 n1 0 DC 1V V2 n2 0 DC 5V * Then the resistor network: R1 n1 nn {r1} R2 n2 nn {r2} RF nout nn {rf} * Finally, place the op amp: * non-inverting input * | inverting input * | | positive power supply * | | | negative power supply * | | | | output * | | | | | model type * | | | | | | X1 0 nn ndd nss nout ua741