(kicad_sch (version 20211014) (generator kiutils)
  (paper "A4")
  (title_block
    (title "Raspberry Pi to dual 56-channel banks · verified system interconnect")
    (date "2026-08-27")
    (rev "B · electrically re-audited")
    (company "Kangwon National University Psychology Lab")
    (comment 1 "Reconstructed from source code, build photographs, and SN74HC595 datasheet")
    (comment 2 "No undocumented IDC pin-to-channel mapping has been invented")
  )
  (lib_symbols
    (symbol "Connector_Generic:Conn_02x20_Odd_Even" (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
      (property "Reference" "J" (at 1.27 25.4 0))
      (property "Value" "Conn_02x20_Odd_Even" (at 1.27 -27.94 0))
      (property "Footprint" "" (at 0 0 0))
      (property "Datasheet" "~" (at 0 0 0))
      (property "ki_keywords" "connector" (at 0 0 0))
      (property "ki_description" "Generic connector, double row, 02x20, odd/even pin numbering scheme (row 1 odd numbers, row 2 even numbers), script generated (kicad-library-utils/schlib/autogen/connector/)" (at 0 0 0))
      (property "ki_fp_filters" "Connector*:*_2x??_*" (at 0 0 0))
      (symbol "Conn_02x20_Odd_Even_1_1"
        (rectangle (start -1.27 -25.273) (end 0 -25.527)
          (fill (type none))
        )
        (rectangle (start -1.27 -22.733) (end 0 -22.987)
          (fill (type none))
        )
        (rectangle (start -1.27 -20.193) (end 0 -20.447)
          (fill (type none))
        )
        (rectangle (start -1.27 -17.653) (end 0 -17.907)
          (fill (type none))
        )
        (rectangle (start -1.27 -15.113) (end 0 -15.367)
          (fill (type none))
        )
        (rectangle (start -1.27 -12.573) (end 0 -12.827)
          (fill (type none))
        )
        (rectangle (start -1.27 -10.033) (end 0 -10.287)
          (fill (type none))
        )
        (rectangle (start -1.27 -7.493) (end 0 -7.747)
          (fill (type none))
        )
        (rectangle (start -1.27 -4.953) (end 0 -5.207)
          (fill (type none))
        )
        (rectangle (start -1.27 -2.413) (end 0 -2.667)
          (fill (type none))
        )
        (rectangle (start -1.27 0.127) (end 0 -0.127)
          (fill (type none))
        )
        (rectangle (start -1.27 2.667) (end 0 2.413)
          (fill (type none))
        )
        (rectangle (start -1.27 5.207) (end 0 4.953)
          (fill (type none))
        )
        (rectangle (start -1.27 7.747) (end 0 7.493)
          (fill (type none))
        )
        (rectangle (start -1.27 10.287) (end 0 10.033)
          (fill (type none))
        )
        (rectangle (start -1.27 12.827) (end 0 12.573)
          (fill (type none))
        )
        (rectangle (start -1.27 15.367) (end 0 15.113)
          (fill (type none))
        )
        (rectangle (start -1.27 17.907) (end 0 17.653)
          (fill (type none))
        )
        (rectangle (start -1.27 20.447) (end 0 20.193)
          (fill (type none))
        )
        (rectangle (start -1.27 22.987) (end 0 22.733)
          (fill (type none))
        )
        (rectangle (start -1.27 24.13) (end 3.81 -26.67)
          (fill (type background))
        )
        (rectangle (start 3.81 -25.273) (end 2.54 -25.527)
          (fill (type none))
        )
        (rectangle (start 3.81 -22.733) (end 2.54 -22.987)
          (fill (type none))
        )
        (rectangle (start 3.81 -20.193) (end 2.54 -20.447)
          (fill (type none))
        )
        (rectangle (start 3.81 -17.653) (end 2.54 -17.907)
          (fill (type none))
        )
        (rectangle (start 3.81 -15.113) (end 2.54 -15.367)
          (fill (type none))
        )
        (rectangle (start 3.81 -12.573) (end 2.54 -12.827)
          (fill (type none))
        )
        (rectangle (start 3.81 -10.033) (end 2.54 -10.287)
          (fill (type none))
        )
        (rectangle (start 3.81 -7.493) (end 2.54 -7.747)
          (fill (type none))
        )
        (rectangle (start 3.81 -4.953) (end 2.54 -5.207)
          (fill (type none))
        )
        (rectangle (start 3.81 -2.413) (end 2.54 -2.667)
          (fill (type none))
        )
        (rectangle (start 3.81 0.127) (end 2.54 -0.127)
          (fill (type none))
        )
        (rectangle (start 3.81 2.667) (end 2.54 2.413)
          (fill (type none))
        )
        (rectangle (start 3.81 5.207) (end 2.54 4.953)
          (fill (type none))
        )
        (rectangle (start 3.81 7.747) (end 2.54 7.493)
          (fill (type none))
        )
        (rectangle (start 3.81 10.287) (end 2.54 10.033)
          (fill (type none))
        )
        (rectangle (start 3.81 12.827) (end 2.54 12.573)
          (fill (type none))
        )
        (rectangle (start 3.81 15.367) (end 2.54 15.113)
          (fill (type none))
        )
        (rectangle (start 3.81 17.907) (end 2.54 17.653)
          (fill (type none))
        )
        (rectangle (start 3.81 20.447) (end 2.54 20.193)
          (fill (type none))
        )
        (rectangle (start 3.81 22.987) (end 2.54 22.733)
          (fill (type none))
        )
        (pin passive line (at -5.08 22.86 0) (length 3.81)
          (name "Pin_1")
          (number "1")
        )
        (pin passive line (at 7.62 12.7 180) (length 3.81)
          (name "Pin_10")
          (number "10")
        )
        (pin passive line (at -5.08 10.16 0) (length 3.81)
          (name "Pin_11")
          (number "11")
        )
        (pin passive line (at 7.62 10.16 180) (length 3.81)
          (name "Pin_12")
          (number "12")
        )
        (pin passive line (at -5.08 7.62 0) (length 3.81)
          (name "Pin_13")
          (number "13")
        )
        (pin passive line (at 7.62 7.62 180) (length 3.81)
          (name "Pin_14")
          (number "14")
        )
        (pin passive line (at -5.08 5.08 0) (length 3.81)
          (name "Pin_15")
          (number "15")
        )
        (pin passive line (at 7.62 5.08 180) (length 3.81)
          (name "Pin_16")
          (number "16")
        )
        (pin passive line (at -5.08 2.54 0) (length 3.81)
          (name "Pin_17")
          (number "17")
        )
        (pin passive line (at 7.62 2.54 180) (length 3.81)
          (name "Pin_18")
          (number "18")
        )
        (pin passive line (at -5.08 0 0) (length 3.81)
          (name "Pin_19")
          (number "19")
        )
        (pin passive line (at 7.62 22.86 180) (length 3.81)
          (name "Pin_2")
          (number "2")
        )
        (pin passive line (at 7.62 0 180) (length 3.81)
          (name "Pin_20")
          (number "20")
        )
        (pin passive line (at -5.08 -2.54 0) (length 3.81)
          (name "Pin_21")
          (number "21")
        )
        (pin passive line (at 7.62 -2.54 180) (length 3.81)
          (name "Pin_22")
          (number "22")
        )
        (pin passive line (at -5.08 -5.08 0) (length 3.81)
          (name "Pin_23")
          (number "23")
        )
        (pin passive line (at 7.62 -5.08 180) (length 3.81)
          (name "Pin_24")
          (number "24")
        )
        (pin passive line (at -5.08 -7.62 0) (length 3.81)
          (name "Pin_25")
          (number "25")
        )
        (pin passive line (at 7.62 -7.62 180) (length 3.81)
          (name "Pin_26")
          (number "26")
        )
        (pin passive line (at -5.08 -10.16 0) (length 3.81)
          (name "Pin_27")
          (number "27")
        )
        (pin passive line (at 7.62 -10.16 180) (length 3.81)
          (name "Pin_28")
          (number "28")
        )
        (pin passive line (at -5.08 -12.7 0) (length 3.81)
          (name "Pin_29")
          (number "29")
        )
        (pin passive line (at -5.08 20.32 0) (length 3.81)
          (name "Pin_3")
          (number "3")
        )
        (pin passive line (at 7.62 -12.7 180) (length 3.81)
          (name "Pin_30")
          (number "30")
        )
        (pin passive line (at -5.08 -15.24 0) (length 3.81)
          (name "Pin_31")
          (number "31")
        )
        (pin passive line (at 7.62 -15.24 180) (length 3.81)
          (name "Pin_32")
          (number "32")
        )
        (pin passive line (at -5.08 -17.78 0) (length 3.81)
          (name "Pin_33")
          (number "33")
        )
        (pin passive line (at 7.62 -17.78 180) (length 3.81)
          (name "Pin_34")
          (number "34")
        )
        (pin passive line (at -5.08 -20.32 0) (length 3.81)
          (name "Pin_35")
          (number "35")
        )
        (pin passive line (at 7.62 -20.32 180) (length 3.81)
          (name "Pin_36")
          (number "36")
        )
        (pin passive line (at -5.08 -22.86 0) (length 3.81)
          (name "Pin_37")
          (number "37")
        )
        (pin passive line (at 7.62 -22.86 180) (length 3.81)
          (name "Pin_38")
          (number "38")
        )
        (pin passive line (at -5.08 -25.4 0) (length 3.81)
          (name "Pin_39")
          (number "39")
        )
        (pin passive line (at 7.62 20.32 180) (length 3.81)
          (name "Pin_4")
          (number "4")
        )
        (pin passive line (at 7.62 -25.4 180) (length 3.81)
          (name "Pin_40")
          (number "40")
        )
        (pin passive line (at -5.08 17.78 0) (length 3.81)
          (name "Pin_5")
          (number "5")
        )
        (pin passive line (at 7.62 17.78 180) (length 3.81)
          (name "Pin_6")
          (number "6")
        )
        (pin passive line (at -5.08 15.24 0) (length 3.81)
          (name "Pin_7")
          (number "7")
        )
        (pin passive line (at 7.62 15.24 180) (length 3.81)
          (name "Pin_8")
          (number "8")
        )
        (pin passive line (at -5.08 12.7 0) (length 3.81)
          (name "Pin_9")
          (number "9")
        )
      )
    )
    (symbol "Connector_Generic:Conn_01x06" (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
      (property "Reference" "J" (at 0 7.62 0))
      (property "Value" "Conn_01x06" (at 0 -10.16 0))
      (property "Footprint" "" (at 0 0 0))
      (property "Datasheet" "~" (at 0 0 0))
      (property "ki_keywords" "connector" (at 0 0 0))
      (property "ki_description" "Generic connector, single row, 01x06, script generated (kicad-library-utils/schlib/autogen/connector/)" (at 0 0 0))
      (property "ki_fp_filters" "Connector*:*_1x??_*" (at 0 0 0))
      (symbol "Conn_01x06_1_1"
        (rectangle (start -1.27 -7.493) (end 0 -7.747)
          (fill (type none))
        )
        (rectangle (start -1.27 -4.953) (end 0 -5.207)
          (fill (type none))
        )
        (rectangle (start -1.27 -2.413) (end 0 -2.667)
          (fill (type none))
        )
        (rectangle (start -1.27 0.127) (end 0 -0.127)
          (fill (type none))
        )
        (rectangle (start -1.27 2.667) (end 0 2.413)
          (fill (type none))
        )
        (rectangle (start -1.27 5.207) (end 0 4.953)
          (fill (type none))
        )
        (rectangle (start -1.27 6.35) (end 1.27 -8.89)
          (fill (type background))
        )
        (pin passive line (at -5.08 5.08 0) (length 3.81)
          (name "Pin_1")
          (number "1")
        )
        (pin passive line (at -5.08 2.54 0) (length 3.81)
          (name "Pin_2")
          (number "2")
        )
        (pin passive line (at -5.08 0 0) (length 3.81)
          (name "Pin_3")
          (number "3")
        )
        (pin passive line (at -5.08 -2.54 0) (length 3.81)
          (name "Pin_4")
          (number "4")
        )
        (pin passive line (at -5.08 -5.08 0) (length 3.81)
          (name "Pin_5")
          (number "5")
        )
        (pin passive line (at -5.08 -7.62 0) (length 3.81)
          (name "Pin_6")
          (number "6")
        )
      )
    )
  )
  (wire (pts (xy 44.92 81.84) (xy 33.0 81.84)))
  (wire (pts (xy 44.92 84.38) (xy 33.0 84.38)))
  (wire (pts (xy 44.92 86.92) (xy 33.0 86.92)))
  (wire (pts (xy 57.62 69.14) (xy 68.0 69.14)))
  (wire (pts (xy 57.62 74.22) (xy 68.0 74.22)))
  (wire (pts (xy 126.92 66.92) (xy 116.0 66.92)))
  (wire (pts (xy 126.92 69.46) (xy 116.0 69.46)))
  (wire (pts (xy 126.92 72.0) (xy 116.0 72.0)))
  (wire (pts (xy 126.92 74.54) (xy 116.0 74.54)))
  (wire (pts (xy 126.92 77.08) (xy 116.0 77.08)))
  (wire (pts (xy 126.92 79.62) (xy 116.0 79.62)))
  (wire (pts (xy 224.92 66.92) (xy 214.0 66.92)))
  (wire (pts (xy 224.92 69.46) (xy 214.0 69.46)))
  (wire (pts (xy 224.92 72.0) (xy 214.0 72.0)))
  (wire (pts (xy 224.92 74.54) (xy 214.0 74.54)))
  (wire (pts (xy 224.92 77.08) (xy 214.0 77.08)))
  (wire (pts (xy 224.92 79.62) (xy 214.0 79.62)))
  (text "SHEET E-00 · VERIFIED SYSTEM INTERCONNECT" (at 18 17 0))
  (text "This is the system boundary sheet. The repeated component circuit is documented on E-01 and E-02."
    (at 18 26 0)
  )
  (text "Software shifts 112 bits: Bank A U1…U7, then Bank B U8…U14."
    (at 18 32 0)
  )
  (text "Seven physical 2x10 IDC connectors are confirmed; the historical per-pin channel table is unavailable."
    (at 18 164 0)
  )
  (text "Protection and decoupling are not visible in the supplied records; audit before building a new revision."
    (at 18 170 0)
  )
  (text "RASPBERRY PI 5 · USED HEADER PINS" (at 24 47 0))
  (text "Pin 15 · BCM22 · SER" (at 24 139 0))
  (text "Pin 11 · BCM17 · SRCLK" (at 24 145 0))
  (text "Pin 13 · BCM27 · RCLK" (at 24 151 0))
  (text "Pin 2/4 · +5 V; pin 6 etc. · GND" (at 24 157 0))
  (text "CH0…CH55 · 56 independent post-resistor outputs" (at 114.0 110.0 0))
  (text "7 x 74HC595 · see E-02" (at 114.0 116.0 0))
  (text "CH56…CH111 · 56 independent post-resistor outputs" (at 212.0 110.0 0))
  (text "7 x 74HC595 · see E-02" (at 212.0 116.0 0))
  (text "CENTRAL PERFBOARD / CABLE DISTRIBUTION" (at 112 137 0))
  (text "3 left + 3 right + 1 bottom IDC headers" (at 112 146 0))
  (text "Exact IDC pin assignment: NOT RECOVERABLE FROM SUPPLIED FILES"
    (at 112 153 0)
  )
  (text "See mechanical placement sheet M-01 and original front/back photographs."
    (at 112 160 0)
  )
  (label "SRCLK_BCM17" (at 33.0 81.84 180))
  (label "RCLK_BCM27" (at 33.0 84.38 180))
  (label "SER_BCM22" (at 33.0 86.92 180))
  (label "+5V" (at 68.0 69.14 0))
  (label "GND" (at 68.0 74.22 0))
  (label "SER_BCM22" (at 116.0 66.92 180))
  (label "SRCLK_BCM17" (at 116.0 69.46 180))
  (label "RCLK_BCM27" (at 116.0 72.0 180))
  (label "+5V" (at 116.0 74.54 180))
  (label "GND" (at 116.0 77.08 180))
  (label "CHAIN_A_TO_B" (at 116.0 79.62 180))
  (label "CHAIN_A_TO_B" (at 214.0 66.92 180))
  (label "SRCLK_BCM17" (at 214.0 69.46 180))
  (label "RCLK_BCM27" (at 214.0 72.0 180))
  (label "+5V" (at 214.0 74.54 180))
  (label "GND" (at 214.0 77.08 180))
  (label "QHPRIME_END" (at 214.0 79.62 180))
  (symbol (lib_id "Connector_Generic:Conn_02x20_Odd_Even") (at 50.0 92.0 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no)
    (property "Reference" "J1" (at 37.0 56.0 0))
    (property "Value" "Raspberry Pi 5 GPIO" (at 32.0 127.0 0))
    (property "Footprint" "Connector_PinHeader_2.54mm:PinHeader_2x20_P2.54mm_Vertical" (at 50.0 92.0 0))
    (property "Datasheet" "~" (at 50.0 92.0 0))
    (pin "1")
    (pin "2")
    (pin "3")
    (pin "4")
    (pin "5")
    (pin "6")
    (pin "7")
    (pin "8")
    (pin "9")
    (pin "10")
    (pin "11")
    (pin "12")
    (pin "13")
    (pin "14")
    (pin "15")
    (pin "16")
    (pin "17")
    (pin "18")
    (pin "19")
    (pin "20")
    (pin "21")
    (pin "22")
    (pin "23")
    (pin "24")
    (pin "25")
    (pin "26")
    (pin "27")
    (pin "28")
    (pin "29")
    (pin "30")
    (pin "31")
    (pin "32")
    (pin "33")
    (pin "34")
    (pin "35")
    (pin "36")
    (pin "37")
    (pin "38")
    (pin "39")
    (pin "40")
    (instances
      (project "psychology-lab-led-controller-verified"
        (path
          (reference "J1") (unit 1)
        )
      )
    )
  )
  (symbol (lib_id "Connector_Generic:Conn_01x06") (at 132.0 72.0 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no)
    (property "Reference" "J2" (at 130.0 59.0 0))
    (property "Value" "BANK A · U1…U7" (at 124.0 85.0 0))
    (property "Footprint" "" (at 132.0 72.0 0))
    (property "Datasheet" "~" (at 132.0 72.0 0))
    (pin "1")
    (pin "2")
    (pin "3")
    (pin "4")
    (pin "5")
    (pin "6")
    (instances
      (project "psychology-lab-led-controller-verified"
        (path
          (reference "J2") (unit 1)
        )
      )
    )
  )
  (symbol (lib_id "Connector_Generic:Conn_01x06") (at 230.0 72.0 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no)
    (property "Reference" "J3" (at 228.0 59.0 0))
    (property "Value" "BANK B · U8…U14" (at 222.0 85.0 0))
    (property "Footprint" "" (at 230.0 72.0 0))
    (property "Datasheet" "~" (at 230.0 72.0 0))
    (pin "1")
    (pin "2")
    (pin "3")
    (pin "4")
    (pin "5")
    (pin "6")
    (instances
      (project "psychology-lab-led-controller-verified"
        (path
          (reference "J3") (unit 1)
        )
      )
    )
  )
  (sheet_instances
    (path (page "1"))
  )
)
