Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RL = float(input("Enter RL (Ohms): "))
- Beta = 200
- VCEsat = 0.3
- R3, R4, R1 = 4700, 4700, 3300
- VCC, VEE = 15, -15
- VE = (VCC * R4) / (R3 + R4)
- IE = VE / R1
- IB = IE / (Beta + 1)
- IC = Beta * IB
- VL = VCC - (IC * RL)
- if VL > VE + VCEsat:
- print("Transistor in active area")
- IL = IC
- else:
- print("Transistor in saturation area")
- IL = (VCC - VCEsat) / RL
- print(f"VE = {VE:.2f} V")
- print(f"IB = {IB * 1e6:.2f} µA")
- print(f"IC = {IC * 1e3:.2f} mA")
- print(f"VL = {VL:.2f} V")
- print(f"IL = {IL * 1e3:.2f} mA")
Advertisement
Add Comment
Please, Sign In to add comment