use transistor as voltage controlled attentuator/amplifier with square wave

Thread Starter

Green Bean

Joined Mar 31, 2017
Is there anything wrong with using a transistor to control the amplitude of a square wave with voltage like in this circuit?

The square wave signal is just switching the transistor on and off, passing the voltage through, that's how it works. That being said, the circuit would only work for a square wave obviously. The sine wave is just modulating the amplitude, a dc voltage could also be used of course. Is there any reason this wouldn't work in real life?