use transistor as voltage controlled attentuator/amplifier with square wave

Thread Starter

Green Bean

Joined Mar 31, 2017
126
Is there anything wrong with using a transistor to control the amplitude of a square wave with voltage like in this circuit?
sim: http://tinyurl.com/y7xxzlzj
pic:
Screenshot_2018-07-12-15-03-23_kindlephoto-233740848.png

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?
 
Top