Hi, take a ride here. So we have a look at bipolar transistor gain distortion compensation. So that's how it looked. So anyway now we're back to the situation we were in, one of the previous videos. So you see this is the yellow one, it's the nice input signal. So one kilohertz, four volts, or the DC offset, not two point eight volts. And then this is the blue one, is the output signal. As you see it's got quite bad gain distortion. And so what we're living with is that we have this circuit here. So one kilohertz on the base, and then five kilohertz on the collector. And then there's no resistor on the emitter. And what this leads to is that the game will be very high because you have this hidden resistor, dynamic resistor in the base emitter circuit. So basically the base emitter simplistically looks like this. You have a so-called small R E and then a diode. And this one here is, this R E is dynamic so it varies based on the base emitter voltage, collector current, and then also not so important exactly on the circuit on the table. It will vary based on temperature. And then it's on a negative gain, which basically this negativity doesn't mean that it's dampening a fact. It means that it inverts the signal. As you see in the scope, so when it's up, then it's down. When it's down, then it's up. So basically what you're doing is when you calculate the gain you get, then it's a combination of if you have a resistor on the emitter, or it's just R E. So in this case, it's a very large gain, or basically because this small resistor can be like 10 ohms around somewhere around there. So it means that you have quite a big, you have 5 kilos to 10 ohms, then you get a very big gain. And then the big gain leads to the fact that you get some bad gain distortion. So anyway, to compensate for this is to actually make the internal R E meaningless. So what we're going to do is we're going to add this 510 ohm resistor into the emitter. And see if that can help us compensate. So now I'll activate the resistor, so I'll just take away the short. I'm not going to do that. Sorry about that. I adjusted the voltage in the wrong direction. So as you see that we actually have done quite a good job of compensating if not completely for the gain distortion. So that's nearly the same signal curve. So anyway, that's using a very, of course you can do more. But this is the absolute basic that you can do is that you have an emitter resistor to compensate for the little R E which necessitates. So when you get quite close to a better output signal that matches the incoming signal. So anyway, didn't need to adjust the voltage or the voltage offset. Because now when you add the resistor, the voltage level comes up. So when you need to actually offset the input signal because I don't actually have a DC blocking resistor capacitor on the base. No, much better signal. So I hope you found this informative. Please consider subscribing. If you like the video, hit the like button if you thought the video was worth it. Merch is available. You can also buy a me a coffee if you'd like. The links are in the comments. All contributions will go towards developing the channel and adding all more projects. And I'll see you in the next one.