solielios

מקור זרם

May 10th, 2025
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. RL = float(input("Enter RL (Ohms): "))
  2.  
  3. Beta = 200
  4. VCEsat = 0.3
  5. R3, R4, R1 = 4700, 4700, 3300
  6. VCC, VEE = 15, -15
  7.  
  8. VE = (VCC * R4) / (R3 + R4)
  9. IE = VE / R1
  10. IB = IE / (Beta + 1)
  11. IC = Beta * IB
  12. VL = VCC - (IC * RL)
  13.  
  14. if VL > VE + VCEsat:
  15.     print("Transistor in active area")
  16.     IL = IC
  17. else:
  18.     print("Transistor in saturation area")
  19.     IL = (VCC - VCEsat) / RL
  20.  
  21. print(f"VE = {VE:.2f} V")
  22. print(f"IB = {IB * 1e6:.2f} µA")  
  23. print(f"IC = {IC * 1e3:.2f} mA")
  24. print(f"VL = {VL:.2f} V")
  25. print(f"IL = {IL * 1e3:.2f} mA")
  26.  
Advertisement
Add Comment
Please, Sign In to add comment