(kicad_sch (version 20231120) (generator eeschema)
  (uuid "a03dfa1a-4c8d-4f1e-9df3-0123456789ab")
  (paper "A4")
  (title_block
    (title "Wien-Brücken-Oszillator 801 kHz")
    (company "DM8ANE")
    (comment 1 "Optimiert für TL072 Slew-Rate (max 5Vss)")
  )

  (lib_symbols
    (symbol "Simulation_SPICE:OPAMP" (pin_names (offset 0.127)) (in_bom yes) (on_board yes)
      (property "Reference" "X" (at 0 5.08 0) (effects (font (size 1.27 1.27))))
      (property "Value" "TL072" (at 0 -5.08 0) (effects (font (size 1.27 1.27))))
      (property "Footprint" "" (at 0 0 0) (effects (font (size 1.27 1.27)) hide))
      (property "Datasheet" "" (at 0 0 0) (effects (font (size 1.27 1.27)) hide))
      (property "Sim.Pins" "1=+ 2=- 3=V+ 4=V- 5=out" (at 0 0 0) (effects (font (size 1.27 1.27)) hide))
      (symbol "OPAMP_0_1"
        (polyline (pts (xy -5.08 5.08) (xy -5.08 -5.08) (xy 5.08 0) (xy -5.08 5.08)) (stroke (width 0.254)))
        (pin input inverted line (at -7.62 -2.54 0) (length 2.54)
          (name "-" (effects (font (size 1.27 1.27)))) (number "2" (effects (font (size 1.27 1.27)))))
        (pin input non_inverted line (at -7.62 2.54 0) (length 2.54)
          (name "+" (effects (font (size 1.27 1.27)))) (number "1" (effects (font (size 1.27 1.27)))))
        (pin power_in pos line (at 0 5.08 270) (length 2.54)
          (name "V+" (effects (font (size 1.27 1.27)))) (number "3" (effects (font (size 1.27 1.27)))))
        (pin power_in neg line (at 0 -5.08 90) (length 2.54)
          (name "V-" (effects (font (size 1.27 1.27)))) (number "4" (effects (font (size 1.27 1.27)))))
        (pin output output line (at 7.62 0 180) (length 2.54)
          (name "" (effects (font (size 1.27 1.27)))) (number "5" (effects (font (size 1.27 1.27)))))
      )
    )
    (symbol "Device:R" (pin_numbers hide) (pin_names (offset 0)) (in_bom yes) (on_board yes)
      (property "Reference" "R" (at 2.032 0 90) (effects (font (size 1.27 1.27))))
      (property "Value" "R" (at -2.032 0 90) (effects (font (size 1.27 1.27))))
      (symbol "R_0_1"
        (rectangle (start -1.016 -2.54) (end 1.016 2.54) (stroke (width 0.254)))
        (pin passive line (at 0 3.81 270) (length 1.27) (name "~" (effects (font (size 1.27 1.27)))) (number "1" (effects (font (size 1.27 1.27)))))
        (pin passive line (at 0 -3.81 90) (length 1.27) (name "~" (effects (font (size 1.27 1.27)))) (number "2" (effects (font (size 1.27 1.27)))))
      )
    )
    (symbol "Device:C" (pin_numbers hide) (pin_names (offset 0)) (in_bom yes) (on_board yes)
      (property "Reference" "C" (at 2.032 0 90) (effects (font (size 1.27 1.27))))
      (property "Value" "C" (at -2.032 0 90) (effects (font (size 1.27 1.27))))
      (symbol "C_0_1"
        (polyline (pts (xy -2.032 0.635) (xy 2.032 0.635)) (stroke (width 0.254)))
        (polyline (pts (xy -2.032 -0.635) (xy 2.032 -0.635)) (stroke (width 0.254)))
        (pin passive line (at 0 3.81 270) (length 3.175) (name "~" (effects (font (size 1.27 1.27)))) (number "1" (effects (font (size 1.27 1.27)))))
        (pin passive line (at 0 -3.81 90) (length 3.175) (name "~" (effects (font (size 1.27 1.27)))) (number "2" (effects (font (size 1.27 1.27)))))
      )
    )
    (symbol "Device:D" (pin_numbers hide) (pin_names (offset 0)) (in_bom yes) (on_board yes)
      (property "Reference" "D" (at -2.032 0 90) (effects (font (size 1.27 1.27))))
      (property "Value" "D" (at 2.032 0 90) (effects (font (size 1.27 1.27))))
      (symbol "D_0_1"
        (polyline (pts (xy -1.27 1.27) (xy -1.27 -1.27)) (stroke (width 0.254)))
        (polyline (pts (xy -1.27 0) (xy 1.27 1.27) (xy 1.27 -1.27) (xy -1.27 0)) (stroke (width 0.254)))
        (pin passive line (at -2.54 0 0) (length 1.27) (name "K" (effects (font (size 1.27 1.27)))) (number "1" (effects (font (size 1.27 1.27)))))
        (pin passive line (at 2.54 0 180) (length 1.27) (name "A" (effects (font (size 1.27 1.27)))) (number "2" (effects (font (size 1.27 1.27)))))
      )
    )
    (symbol "power:GND" (power) (pin_names (offset 0)) (in_bom no) (on_board yes)
      (property "Reference" "#PWR" (at 0 -2.54 0) (effects (font (size 1.27 1.27)) hide))
      (property "Value" "GND" (at 0 -1.905 0) (effects (font (size 1.27 1.27)) hide))
      (symbol "GND_0_1"
        (polyline (pts (xy 0 0) (xy 0 -1.27)) (stroke (width 0)))
        (polyline (pts (xy -1.905 -1.27) (xy 1.905 -1.27)) (stroke (width 0.254)))
        (polyline (pts (xy -1.27 -1.905) (xy 1.27 -1.905)) (stroke (width 0.254)))
        (polyline (pts (xy -0.635 -2.54) (xy 0.635 -2.54)) (stroke (width 0.254)))
        (pin power_in line (at 0 0 270) (length 0) (name "GND" (effects (font (size 1.27 1.27)))) (number "1" (effects (font (size 1.27 1.27)))))
      )
    )
  )

  ;; SPICE Simulationsparameter als Text auf dem Schaltplan platziert
  (text "--- SPICE CONTROL ---\n.tran 50ns 150us 0us 50ns\n.ic V(n_pos)=0.1\n.model 1N4148 D(Is=2.52n Rs=0.568 N=1.752 Cjo=4p M=0.333 Vj=0.5)\n" 
    (at 20 25 0) (effects (font (size 1.5 1.5)) (justify left)))

  ;; --- Bauteile Platzierung (Koordinaten in mm) ---
  
  ;; OPV1 (Oszillator)
  (symbol (lib_id "Simulation_SPICE:OPAMP") (at 100 60 0) (unit 1)
    (property "Reference" "X1" (at 100 52 0))
    (property "Value" "TL072" (at 100 68 0))
  )
  
  ;; Wien-Brücke (Frequenzbestimmung)
  (symbol (lib_id "Device:C") (at 70 45 90) (unit 1)
    (property "Reference" "C1" (at 70 40 0))
    (property "Value" "1nF" (at 70 50 0))
  )
  (symbol (lib_id "Device:R") (at 85 45 90) (unit 1)
    (property "Reference" "R1" (at 85 40 0))
    (property "Value" "198.7" (at 85 50 0))
  )
  (symbol (lib_id "Device:C") (at 85 75 0) (unit 1)
    (property "Reference" "C2" (at 90 75 0))
    (property "Value" "1nF" (at 90 78 0))
  )
  (symbol (lib_id "Device:R") (at 75 75 0) (unit 1)
    (property "Reference" "R2" (at 70 75 0))
    (property "Value" "198.7" (at 70 78 0))
  )

  ;; Gegenkopplung / Amplitudenstabilisierung
  (symbol (lib_id "Device:R") (at 100 40 90) (unit 1)
    (property "Reference" "R_ff" (at 100 35 0))
    (property "Value" "2k" (at 100 45 0))
  )
  (symbol (lib_id "Device:R") (at 90 40 0) (unit 1)
    (property "Reference" "R_fb" (at 85 40 0))
    (property "Value" "1k" (at 85 43 0))
  )
  (symbol (lib_id "Device:D") (at 90 15 270) (unit 1)
    (property "Reference" "D1" (at 95 15 0))
    (property "Value" "1N4148" (at 95 18 0))
  )
  (symbol (lib_id "Device:D") (at 90 5 90) (unit 1)
    (property "Reference" "D2" (at 85 5 0))
    (property "Value" "1N4148" (at 85 2 0))
  )

  ;; Massepunkte (GND)
  (symbol (lib_id "power:GND") (at 75 82 0) (unit 1))
  (symbol (lib_id "power:GND") (at 85 82 0) (unit 1))
  (symbol (lib_id "power:GND") (at 90 0 0) (unit 1))

  ;; --- Verdrahtung (Wires) ---
  ;; Verbindung Ausgang X1 zu C1/R_ff
  (polyline (pts (xy 107.62 60) (xy 115 60) (xy 115 45) (xy 103.81 45)) (stroke (width 0)))
  (polyline (pts (xy 115 45) (xy 115 40) (xy 103.81 40)) (stroke (width 0)))
  
  ;; Wien-Brücke Pfad oben
  (polyline (pts (xy 66.19 45) (xy 60 45) (xy 60 62.54) (xy 92.38 62.54)) (stroke (width 0))) ; zu Pin + von X1
  (polyline (pts (xy 73.81 45) (xy 81.19 45)) (stroke (width 0)))
  (polyline (pts (xy 88.81 45) (xy 92.38 62.54)) (stroke (width 0)))
  
  ;; Parallelglieder der Wien-Brücke zu GND
  (polyline (pts (xy 92.38 62.54) (xy 92.38 71.19)) (stroke (width 0)))
  (polyline (pts (xy 92.38 71.19) (xy 85 71.19)) (stroke (width 0)))
  (polyline (pts (xy 92.38 71.19) (xy 75 71.19)) (stroke (width 0)))
  (polyline (pts (xy 85 71.19) (xy 85 71.19)) (stroke (width 0)))
  (polyline (pts (xy 75 71.19) (xy 75 71.19)) (stroke (width 0)))
  
  ;; Invertierender Knoten (Minus-Eingang)
  (polyline (pts (xy 92.38 57.46) (xy 90 57.46) (xy 90 43.81)) (stroke (width 0)))
  (polyline (pts (xy 96.19 40) (xy 90 40)) (stroke (width 0)))
  (polyline (pts (xy 90 36.19) (xy 90 20)) (stroke (width 0)))
  
  ;; Diodennetzwerk
  (polyline (pts (xy 90 20) (xy 90 17.54)) (stroke (width 0)))
  (polyline (pts (xy 90 12.46) (xy 90 7.54)) (stroke (width 0)))
  (polyline (pts (xy 90 2.46) (xy 90 0)) (stroke (width 0)))
  
  ;; Net-Labels für Oszilloskop-Abgriff
  (label "n_out" (at 115 52 90) (effects (font (size 1.27 1.27))))
  (label "n_pos" (at 62 45 0) (effects (font (size 1.27 1.27))))
)
