(kicad_sch (version 20211014) (generator ChatGPT)
  (paper "A4")
  (title_block (title "Flyback Converter - 48V Akku Ladegerät") (date "2025-08-02"))

  ;; Eingangsfilter
  (symbol (lib_id "Device:C") (at 30 50 0) (unit 1) (in_bom yes) (on_board yes)
    (property "Reference" "C1" (at 0 1.5 0))
    (property "Value" "2.2uF X2" (at 0 -1.5 0)))
  (symbol (lib_id "Device:F") (at 40 50 0) (unit 1) (in_bom yes) (on_board yes)
    (property "Reference" "F1" (at 0 1.5 0))
    (property "Value" "T2A" (at 0 -1.5 0)))

  ;; Brückengleichrichter
  (symbol (lib_id "Device:Bridge") (at 50 50 0) (unit 1) (in_bom yes) (on_board yes)
    (property "Reference" "BR1" (at 0 1.5 0))
    (property "Value" "GBU606" (at 0 -1.5 0)))

  ;; Glättungskondensator
  (symbol (lib_id "Device:CP") (at 65 50 0) (unit 1) (in_bom yes) (on_board yes)
    (property "Reference" "C2" (at 0 1.5 0))
    (property "Value" "100uF 400V" (at 0 -1.5 0)))

  ;; PWM-Controller (unspezifiziert)
  (symbol (lib_id "Power_Management:PWM_Controller") (at 80 50 0) (unit 1) (in_bom yes) (on_board yes)
    (property "Reference" "U1" (at 0 1.5 0))
    (property "Value" "Flyback-IC" (at 0 -1.5 0)))

  ;; Externer MOSFET
  (symbol (lib_id "Device:Q_NMOS") (at 95 50 0) (unit 1) (in_bom yes) (on_board yes)
    (property "Reference" "Q1" (at 0 1.5 0))
    (property "Value" "FET HV" (at 0 -1.5 0)))

  ;; Trafo
  (symbol (lib_id "Device:Transformer") (at 110 50 0) (unit 1) (in_bom yes) (on_board yes)
    (property "Reference" "T1" (at 0 1.5 0))
    (property "Value" "Flyback XFMR" (at 0 -1.5 0)))

  ;; Sekundär: Gleichrichtung
  (symbol (lib_id "Device:D_Schottky") (at 125 50 0) (unit 1) (in_bom yes) (on_board yes)
    (property "Reference" "D1" (at 0 1.5 0))
    (property "Value" "SS54" (at 0 -1.5 0)))

  ;; Sekundär: Ausgangselko
  (symbol (lib_id "Device:CP") (at 140 50 0) (unit 1) (in_bom yes) (on_board yes)
    (property "Reference" "C3" (at 0 1.5 0))
    (property "Value" "1000uF 63V" (at 0 -1.5 0)))

  ;; Akku-Ausgang
  (symbol (lib_id "Power:Battery_Cell") (at 155 50 0) (unit 1) (in_bom yes) (on_board yes)
    (property "Reference" "BAT1" (at 0 1.5 0))
    (property "Value" "48V Akku" (at 0 -1.5 0)))

  ;; Strommessung (Shunt)
  (symbol (lib_id "Device:R") (at 125 65 0) (unit 1) (in_bom yes) (on_board yes)
    (property "Reference" "Rshunt" (at 0 1.5 0))
    (property "Value" "0.1 Ohm" (at 0 -1.5 0)))

  ;; Feedback über Optokoppler
  (symbol (lib_id "OptoDevice:PC817") (at 110 65 0) (unit 1) (in_bom yes) (on_board yes)
    (property "Reference" "OK1" (at 0 1.5 0))
    (property "Value" "Opto-FB" (at 0 -1.5 0)))

))