electricpy.t_attenuator

electricpy.t_attenuator(Adb, Z0)[source]

T attenuator.

The T attenuator is a type of attenuator that looks like the letter T. The T attenuator consists of three resistors. Two of these are connected in series and the other one is connected from between the two other resistors to ground. The resistors in series often have the same resistance.

\[R1 = Z0*(\frac{10^{\frac{A_{db}}{20}}-1}{10^{\frac{A_{db}}{20}}+1});\]
\[R2 = Z0*(\frac{10^{\frac{A_{db}}{20}}}{10^{\frac{A_{db}}{10}}-1})\]
../_images/t-attenuator-circuit.png
Parameters:
Adb : float Attenuation in db

Z0 : float Impedence

Returns:

  • R1 (float T attenuator R1)

  • R2 (float T attenuator R2)