Uploaded April 2022 | Updated November 2026, 3 hours ago
An automatic gain control (AGC) with a DIY opto-resistor is presented in this video. AGCs basically are voltage controlled amplifiers where the control voltage is the amplitude of the very same amplified signal. While many designs exist for this kind of circuit, here I show one of the simplest solutions: an operational amplifier where the gain control is set by an opto-resistor, also know as light dependent resistor (LDR) or vactrol. Because it could be hard to source this kind of component I also show how to make one yourself with a simple LED a chunk of tube and a photo-resistor, all kept together with a drop of epoxy resin mixed with grey cement.
This circuit has a dynamic gain of 18dB and a ratio of 80% over the target output level. With some further adjustments it can be expanded to a higher ratio but at that point other circuits would better suit. The advantages of this circuit are its simplicity, very low distortion and low noise. The stray capacitance of the photo-resistor could limit the bandwidth but with the VT900 the circuit has proven to work pretty well with very little attenuation up to 500KHz.
Watch the full series of electronics: youtube.com/watch?v=ye9dguKy_Cs&list=PLwbCeSU2Kq_zORt4un2iQ3JUYxzWF3cTJ
Follow me on Facebook or Instagram
Website: accidentalscience.com
An automatic gain control (AGC) with a DIY opto-resistor is presented in this video. AGCs basically are voltage controlled amplifiers where the control voltage is the amplitude of the very same amplified signal. While many designs exist for this kind of circuit, here I show one of the simplest solutions: an operational amplifier where the gain control is set by an opto-resistor, also know as light dependent resistor (LDR) or vactrol. Because it could be hard to source this kind of component I also show how to make one yourself with a simple LED a chunk of tube and a photo-resistor, all kept together with a drop of epoxy resin mixed with grey cement.
This circuit has a dynamic gain of 18dB and a ratio of 80% over the target output level. With some further adjustments it can be expanded to a higher ratio but at that point other circuits would better suit. The advantages of this circuit are its simplicity, very low distortion and low noise. The stray capacitance of the photo-resistor could limit the bandwidth but with the VT900 the circuit has proven to work pretty well with very little attenuation up to 500KHz.
Watch the full series of electronics: youtube.com/watch?v=ye9dguKy_Cs&list=PLwbCeSU2Kq_zORt4un2iQ3JUYxzWF3cTJ
Follow me on Facebook or Instagram
Website: accidentalscience.com










![DIY metal minilathe [part9] Is it spinning?
Part 9 of the making of my DIY precision mini lathe for metals with electric axes. In this episode the final assembly of the elements that form the carriage, including the apron. To align the cross-slide with the lower sleds that run on the Z-ways I used a self-made machinist level, here you can watch how Ive made it: https://youtu.be/r9Clu4PdvWc
Unlike in typical manual lathes, here the apron is much simpler as it is directly linked to the lead screw and to the axis driving motor. A double nut, with a particular linkage, is used to adjust the backlash.
Finally the spindle is put in rotation with a couple of DC motors salvaged from washing machines and controlled with a simple driver (AKA ESC, details in this video: https://youtu.be/5zRCCL2JZTI).
This work was put on pause for four months because a surge of work in my main job. I found two problems with the spindles motor. One is a faulty contact somewhere in the control board that makes the motor running irregularly. And the other one is the belt that slips on the shaft of the spindle, because the pulley that was meant to pick the thrust from the belt to transmit it to the shaft is not yet in place. Hopefully that will solve the problem.
Previous episode: https://youtu.be/5rLqkpy2UQA DIY metal minilathe [part9] Is it spinning?](https://i.ytimg.com/vi/KCBGhkabXpQ/mqdefault.jpg)