electricpy.pi_attenuator

electricpy.pi_attenuator(Adb, Z0)[source]

Pi attenuator.

The Pi attenuator is a type of attenuator that looks like the Greek letter π. The Pi attenuator consists of three resistors. One of these is connected in series and the other two are connected in parallel to ground. The parallel resistors often have the same resistance.

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

Z0 : float Impedence

Returns:

  • R1 (float π attenuator R1)

  • R2 (float π attenuator R2)