1098 lines
38 KiB
Plaintext

(export (version D)
(design
(source /home/eddy/Dropbox/Projects/STM8_samples/220controlled_socket/kicad/socket.sch)
(date "Пт 27 апр 2018 17:21:28")
(tool "Eeschema 4.0.7")
(sheet (number 1) (name /) (tstamps /)
(title_block
(title)
(company)
(rev)
(date)
(source socket.sch)
(comment (number 1) (value ""))
(comment (number 2) (value ""))
(comment (number 3) (value ""))
(comment (number 4) (value "")))))
(components
(comp (ref U3)
(value STM8S003F3P)
(footprint Package_SSOP:SSOP-20_4.4x6.5mm_P0.65mm)
(libsource (lib socket-rescue) (part STM8S003F3P-RESCUE-socket))
(sheetpath (names /) (tstamps /))
(tstamp 5A632CF7))
(comp (ref U1)
(value MAX3232)
(footprint Package_SSOP:SOP-16_4.4x10.4mm_P1.27mm)
(libsource (lib socket-cache) (part MAX3232))
(sheetpath (names /) (tstamps /))
(tstamp 5A632ED9))
(comp (ref C7)
(value 0.1)
(footprint Capacitor_SMD:C_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 5A633096))
(comp (ref C4)
(value 0.1)
(footprint Capacitor_SMD:C_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 5A63312F))
(comp (ref C1)
(value 0.1)
(footprint Capacitor_SMD:C_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 5A63318D))
(comp (ref C2)
(value 0.1)
(footprint Capacitor_SMD:C_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 5A6331E2))
(comp (ref J1)
(value DB9_Female)
(footprint Connector_Dsub:DSUB-9_Female_Horizontal_P2.77x2.84mm_EdgePinOffset4.94mm_Housed_MountingHolesOffset7.48mm)
(libsource (lib socket-cache) (part DB9_Female))
(sheetpath (names /) (tstamps /))
(tstamp 5A633A5D))
(comp (ref D1)
(value SMF05)
(footprint Package_TO_SOT_SMD:SOT-353_SC-70-5_Handsoldering)
(libsource (lib socket-cache) (part SP0504BAHT))
(sheetpath (names /) (tstamps /))
(tstamp 5A6340F1))
(comp (ref U2)
(value CH340G)
(footprint Package_SOIC:SOIC-16_3.9x9.9mm_P1.27mm)
(libsource (lib ch34x) (part CH340G))
(sheetpath (names /) (tstamps /))
(tstamp 5A63435A))
(comp (ref Y1)
(value 12M)
(footprint Crystal:Crystal_HC49-U_Vertical)
(libsource (lib socket-cache) (part Crystal))
(sheetpath (names /) (tstamps /))
(tstamp 5A6346A7))
(comp (ref C3)
(value 22p)
(footprint Capacitor_SMD:C_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 5A634730))
(comp (ref C5)
(value 22p)
(footprint Capacitor_SMD:C_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 5A634AB8))
(comp (ref J2)
(value USB_B)
(footprint Connector_USB:USB_B_Horizontal)
(libsource (lib socket-cache) (part USB_B))
(sheetpath (names /) (tstamps /))
(tstamp 5A6355E2))
(comp (ref R1)
(value 22)
(footprint Resistor_SMD:R_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A6379FA))
(comp (ref R2)
(value 22)
(footprint Resistor_SMD:R_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A637D15))
(comp (ref C6)
(value 0.1)
(footprint Capacitor_SMD:C_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 5A639FC7))
(comp (ref J3)
(value 5Vext)
(footprint Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical)
(libsource (lib socket-cache) (part Conn_01x02))
(sheetpath (names /) (tstamps /))
(tstamp 5A649591))
(comp (ref C8)
(value 0.1)
(footprint Capacitor_SMD:C_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 5A64B889))
(comp (ref J4)
(value SWIM)
(footprint Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical)
(libsource (lib socket-cache) (part Conn_01x03))
(sheetpath (names /) (tstamps /))
(tstamp 5A64FDB7))
(comp (ref D2)
(value SS14)
(footprint Diode_SMD:D_SMA-SMB_Universal_Handsoldering)
(libsource (lib socket-cache) (part D_Schottky))
(sheetpath (names /) (tstamps /))
(tstamp 5A650205))
(comp (ref C10)
(value 0.1)
(footprint Capacitor_SMD:C_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 5A652B90))
(comp (ref C9)
(value 0.1)
(footprint Capacitor_SMD:C_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 5A653BA1))
(comp (ref U8)
(value MOC3063M)
(footprint Package_DIP:DIP-6_W7.62mm)
(libsource (lib socket-cache) (part MOC3063M))
(sheetpath (names /) (tstamps /))
(tstamp 5A654A52))
(comp (ref D3)
(value BT137-600E)
(footprint Package_TO_SOT_THT:TO-220-3_Vertical)
(libsource (lib bt137) (part BT137-600E))
(sheetpath (names /) (tstamps /))
(tstamp 5A6663E2))
(comp (ref R19)
(value 330)
(footprint Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_Horizontal)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A666603))
(comp (ref R20)
(value 330)
(footprint Resistor_SMD:R_1206_3216Metric_Pad1.24x1.80mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A6668C8))
(comp (ref R15)
(value 150)
(footprint Resistor_SMD:R_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A666D5B))
(comp (ref Q8)
(value 2N7002)
(footprint Package_TO_SOT_SMD:SOT-23_Handsoldering)
(libsource (lib socket-cache) (part Q_NMOS_GSD))
(sheetpath (names /) (tstamps /))
(tstamp 5A668F1E))
(comp (ref R16)
(value 330)
(footprint Resistor_SMD:R_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A66984A))
(comp (ref J6)
(value Power)
(footprint TerminalBlock:TerminalBlock_Altech_AK300-3_P5.00mm)
(libsource (lib socket-cache) (part Screw_Terminal_01x03))
(sheetpath (names /) (tstamps /))
(tstamp 5A66B8C0))
(comp (ref U10)
(value ACS712)
(footprint Package_SOIC:SOIC-8_3.9x4.9mm_P1.27mm)
(libsource (lib acs712) (part ACS712))
(sheetpath (names /) (tstamps /))
(tstamp 5A671829))
(comp (ref C11)
(value 0.1)
(footprint Capacitor_SMD:C_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 5A674128))
(comp (ref C12)
(value 1n)
(footprint Capacitor_SMD:C_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 5A67650B))
(comp (ref R5)
(value 4k7)
(footprint Resistor_SMD:R_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A677EBD))
(comp (ref U9)
(value MOC3063M)
(footprint Package_DIP:DIP-6_W7.62mm)
(libsource (lib socket-cache) (part MOC3063M))
(sheetpath (names /) (tstamps /))
(tstamp 5A67BDE1))
(comp (ref D4)
(value BT137-600E)
(footprint Package_TO_SOT_THT:TO-220-3_Vertical)
(libsource (lib bt137) (part BT137-600E))
(sheetpath (names /) (tstamps /))
(tstamp 5A67BDE7))
(comp (ref R21)
(value 330)
(footprint Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_Horizontal)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A67BDED))
(comp (ref R22)
(value 330)
(footprint Resistor_SMD:R_1206_3216Metric_Pad1.24x1.80mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A67BDF3))
(comp (ref R17)
(value 150)
(footprint Resistor_SMD:R_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A67BDF9))
(comp (ref Q9)
(value 2N7002)
(footprint Package_TO_SOT_SMD:SOT-23_Handsoldering)
(libsource (lib socket-cache) (part Q_NMOS_GSD))
(sheetpath (names /) (tstamps /))
(tstamp 5A67BE0B))
(comp (ref R18)
(value 330)
(footprint Resistor_SMD:R_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A67BE17))
(comp (ref K2)
(value SRD-05VDC)
(footprint Relay_THT:Relay_SPDT_SANYOU_SRD_Series_Form_C)
(libsource (lib socket-cache) (part G5LE-1))
(sheetpath (names /) (tstamps /))
(tstamp 5A67BE1D))
(comp (ref J7)
(value Power)
(footprint TerminalBlock:TerminalBlock_Altech_AK300-3_P5.00mm)
(libsource (lib socket-cache) (part Screw_Terminal_01x03))
(sheetpath (names /) (tstamps /))
(tstamp 5A67BE23))
(comp (ref U6)
(value PC817)
(footprint Package_DIP:DIP-4_W7.62mm)
(libsource (lib socket-cache) (part PC817))
(sheetpath (names /) (tstamps /))
(tstamp 5A67FC76))
(comp (ref U7)
(value PC817)
(footprint Package_DIP:DIP-4_W7.62mm)
(libsource (lib socket-cache) (part PC817))
(sheetpath (names /) (tstamps /))
(tstamp 5A68037B))
(comp (ref U5)
(value PC817)
(footprint Package_DIP:DIP-4_W7.62mm)
(libsource (lib socket-cache) (part PC817))
(sheetpath (names /) (tstamps /))
(tstamp 5A68120F))
(comp (ref R10)
(value 150)
(footprint Resistor_SMD:R_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A683C5D))
(comp (ref R9)
(value 150)
(footprint Resistor_SMD:R_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A6842AC))
(comp (ref R7)
(value 150)
(footprint Resistor_SMD:R_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A685FA8))
(comp (ref R8)
(value 150)
(footprint Resistor_SMD:R_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A6887AD))
(comp (ref Q1)
(value 2N7002)
(footprint Package_TO_SOT_SMD:SOT-23_Handsoldering)
(libsource (lib socket-cache) (part Q_NMOS_GSD))
(sheetpath (names /) (tstamps /))
(tstamp 5A688863))
(comp (ref Q2)
(value 2N7002)
(footprint Package_TO_SOT_SMD:SOT-23_Handsoldering)
(libsource (lib socket-cache) (part Q_NMOS_GSD))
(sheetpath (names /) (tstamps /))
(tstamp 5A688E43))
(comp (ref R4)
(value 330)
(footprint Resistor_SMD:R_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A689B60))
(comp (ref R3)
(value 330)
(footprint Resistor_SMD:R_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A689C9C))
(comp (ref J5)
(value DB15_Male)
(footprint Connector_Dsub:DSUB-15_Male_EdgeMount_P2.77mm)
(libsource (lib socket-cache) (part DB15_Male))
(sheetpath (names /) (tstamps /))
(tstamp 5A79F666))
(comp (ref Q3)
(value SI2300)
(footprint Package_TO_SOT_SMD:SOT-23_Handsoldering)
(libsource (lib socket-cache) (part Q_NMOS_GSD))
(sheetpath (names /) (tstamps /))
(tstamp 5A7A8D09))
(comp (ref Q4)
(value SI2300)
(footprint Package_TO_SOT_SMD:SOT-23_Handsoldering)
(libsource (lib socket-cache) (part Q_NMOS_GSD))
(sheetpath (names /) (tstamps /))
(tstamp 5A7AA80B))
(comp (ref R11)
(value 330)
(footprint Resistor_SMD:R_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A7AC3F3))
(comp (ref R12)
(value 330)
(footprint Resistor_SMD:R_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A7AC8CB))
(comp (ref R14)
(value 330)
(footprint Resistor_SMD:R_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A7ACCA5))
(comp (ref R24)
(value 510)
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.50mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A7AA1DA))
(comp (ref R23)
(value 510)
(footprint Resistor_SMD:R_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5A7AB2E3))
(comp (ref D5)
(value MM3Z3V6)
(footprint Diode_SMD:D_SOD-323_HandSoldering)
(libsource (lib socket-cache) (part D_Zener))
(sheetpath (names /) (tstamps /))
(tstamp 5A7C171C))
(comp (ref C13)
(value 0.1)
(footprint Capacitor_SMD:C_0603_1608Metric_Pad0.84x1.00mm_HandSolder)
(libsource (lib socket-cache) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 5A7CF343))
(comp (ref D6)
(value SS14)
(footprint Diode_SMD:D_SMA-SMB_Universal_Handsoldering)
(libsource (lib socket-cache) (part D_Schottky))
(sheetpath (names /) (tstamps /))
(tstamp 5A7D0BF4))
(comp (ref K1)
(value SRD-05VDC)
(footprint Relay_THT:Relay_SPDT_SANYOU_SRD_Series_Form_C)
(libsource (lib socket-cache) (part G5LE-1))
(sheetpath (names /) (tstamps /))
(tstamp 5A66AAE1))
(comp (ref Q6)
(value AO3407)
(footprint Package_TO_SOT_SMD:SOT-23_Handsoldering)
(libsource (lib socket-cache) (part Q_PMOS_GSD))
(sheetpath (names /) (tstamps /))
(tstamp 5ACFAF39)))
(libparts
(libpart (lib acs712) (part ACS712)
(fields
(field (name Reference) U)
(field (name Value) ACS712))
(pins
(pin (num 1) (name IP+) (type input))
(pin (num 2) (name IP+) (type input))
(pin (num 3) (name IP-) (type input))
(pin (num 4) (name IP-) (type input))
(pin (num 5) (name GND) (type input))
(pin (num 6) (name FILTER) (type input))
(pin (num 7) (name VIOUT) (type input))
(pin (num 8) (name Vcc) (type input))))
(libpart (lib bt137) (part BT137-600E)
(description "triode for alternating current (TRIAC)")
(fields
(field (name Reference) D)
(field (name Value) BT137-600E))
(pins
(pin (num 1) (name T1) (type passive))
(pin (num 2) (name T2) (type passive))
(pin (num 3) (name G) (type input))))
(libpart (lib socket-cache) (part C)
(footprints
(fp C_*))
(fields
(field (name Reference) C)
(field (name Value) C))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))))
(libpart (lib ch34x) (part CH340G)
(fields
(field (name Reference) U)
(field (name Value) CH340G))
(pins
(pin (num 1) (name GND) (type power_in))
(pin (num 2) (name TX) (type output))
(pin (num 3) (name RX) (type input))
(pin (num 4) (name V3) (type passive))
(pin (num 5) (name D+) (type BiDi))
(pin (num 6) (name D-) (type BiDi))
(pin (num 7) (name XI) (type input))
(pin (num 8) (name XO) (type input))
(pin (num 9) (name CTS) (type output))
(pin (num 10) (name DSR) (type output))
(pin (num 11) (name RI) (type output))
(pin (num 12) (name DCD) (type output))
(pin (num 13) (name DTR) (type output))
(pin (num 14) (name RTS) (type output))
(pin (num 15) (name RS232) (type input))
(pin (num 16) (name VCC) (type power_in))))
(libpart (lib socket-cache) (part Conn_01x02)
(footprints
(fp Connector*:*_1x??_*))
(fields
(field (name Reference) J)
(field (name Value) Conn_01x02))
(pins
(pin (num 1) (name Pin_1) (type passive))
(pin (num 2) (name Pin_2) (type passive))))
(libpart (lib socket-cache) (part Conn_01x03)
(footprints
(fp Connector*:*_1x??_*))
(fields
(field (name Reference) J)
(field (name Value) Conn_01x03))
(pins
(pin (num 1) (name Pin_1) (type passive))
(pin (num 2) (name Pin_2) (type passive))
(pin (num 3) (name Pin_3) (type passive))))
(libpart (lib socket-cache) (part Crystal)
(footprints
(fp Crystal*))
(fields
(field (name Reference) Y)
(field (name Value) Crystal))
(pins
(pin (num 1) (name 1) (type passive))
(pin (num 2) (name 2) (type passive))))
(libpart (lib socket-cache) (part DB15_Male)
(footprints
(fp DB*M*))
(fields
(field (name Reference) J)
(field (name Value) DB15_Male))
(pins
(pin (num 1) (name 1) (type passive))
(pin (num 2) (name 2) (type passive))
(pin (num 3) (name 3) (type passive))
(pin (num 4) (name 4) (type passive))
(pin (num 5) (name 5) (type passive))
(pin (num 6) (name 6) (type passive))
(pin (num 7) (name 7) (type passive))
(pin (num 8) (name 8) (type passive))
(pin (num 9) (name P9) (type passive))
(pin (num 10) (name P10) (type passive))
(pin (num 11) (name P111) (type passive))
(pin (num 12) (name P12) (type passive))
(pin (num 13) (name P13) (type passive))
(pin (num 14) (name P14) (type passive))
(pin (num 15) (name P15) (type passive))))
(libpart (lib socket-cache) (part DB9_Female)
(footprints
(fp DB*F*))
(fields
(field (name Reference) J)
(field (name Value) DB9_Female))
(pins
(pin (num 1) (name 1) (type passive))
(pin (num 2) (name 2) (type passive))
(pin (num 3) (name 3) (type passive))
(pin (num 4) (name 4) (type passive))
(pin (num 5) (name 5) (type passive))
(pin (num 6) (name 6) (type passive))
(pin (num 7) (name 7) (type passive))
(pin (num 8) (name 8) (type passive))
(pin (num 9) (name 9) (type passive))))
(libpart (lib socket-cache) (part D_Schottky)
(footprints
(fp TO-???*)
(fp *SingleDiode)
(fp *_Diode_*)
(fp *SingleDiode*)
(fp D_*))
(fields
(field (name Reference) D)
(field (name Value) D_Schottky))
(pins
(pin (num 1) (name K) (type passive))
(pin (num 2) (name A) (type passive))))
(libpart (lib socket-cache) (part D_Zener)
(footprints
(fp TO-???*)
(fp *SingleDiode)
(fp *_Diode_*)
(fp *SingleDiode*)
(fp D_*))
(fields
(field (name Reference) D)
(field (name Value) D_Zener))
(pins
(pin (num 1) (name K) (type passive))
(pin (num 2) (name A) (type passive))))
(libpart (lib socket-cache) (part G5LE-1)
(footprints
(fp Relay*SPDT*Omron*G5LE?1*))
(fields
(field (name Reference) K)
(field (name Value) G5LE-1)
(field (name Footprint) Relay_THT:Relay_SPDT_OMRON-G5LE-1))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))
(pin (num 3) (name ~) (type passive))
(pin (num 4) (name ~) (type passive))
(pin (num 5) (name ~) (type passive))))
(libpart (lib socket-cache) (part MAX232)
(aliases
(alias MAX232I)
(alias MAX202)
(alias ADM232A)
(alias MAX3232)
(alias ICL3232))
(footprints
(fp SOIC*P1.27mm*)
(fp DIP*W7.62mm*)
(fp TSSOP*4.4x5mm*P0.65mm*))
(fields
(field (name Reference) U)
(field (name Value) MAX232))
(pins
(pin (num 1) (name C1+) (type passive))
(pin (num 2) (name VS+) (type power_out))
(pin (num 3) (name C1-) (type passive))
(pin (num 4) (name C2+) (type passive))
(pin (num 5) (name C2-) (type passive))
(pin (num 6) (name VS-) (type power_out))
(pin (num 7) (name T2OUT) (type output))
(pin (num 8) (name R2IN) (type input))
(pin (num 9) (name R2OUT) (type output))
(pin (num 10) (name T2IN) (type input))
(pin (num 11) (name T1IN) (type input))
(pin (num 12) (name R1OUT) (type output))
(pin (num 13) (name R1IN) (type input))
(pin (num 14) (name T1OUT) (type output))
(pin (num 15) (name GND) (type power_in))
(pin (num 16) (name VCC) (type power_in))))
(libpart (lib socket-cache) (part MOC3031M)
(aliases
(alias MOC3032M)
(alias MOC3033M)
(alias MOC3041M)
(alias MOC3042M)
(alias MOC3043M)
(alias MOC3081M)
(alias MOC3082M)
(alias MOC3083M)
(alias MOC3061M)
(alias MOC3062M)
(alias MOC3063M)
(alias MOC3162M)
(alias MOC3163M))
(footprints
(fp DIP*W7.62mm*)
(fp SMDIP*W9.53mm*)
(fp DIP*W10.16mm*))
(fields
(field (name Reference) U)
(field (name Value) MOC3031M))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))
(pin (num 3) (name NC) (type NotConnected))
(pin (num 4) (name ~) (type passive))
(pin (num 5) (name NC) (type NotConnected))
(pin (num 6) (name ~) (type passive))))
(libpart (lib socket-cache) (part PC817)
(footprints
(fp DIP*W7.62mm*))
(fields
(field (name Reference) U)
(field (name Value) PC817)
(field (name Footprint) Package_DIP:DIP-4_W7.62mm))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))
(pin (num 3) (name ~) (type passive))
(pin (num 4) (name ~) (type passive))))
(libpart (lib socket-cache) (part Q_NMOS_GSD)
(fields
(field (name Reference) Q)
(field (name Value) Q_NMOS_GSD))
(pins
(pin (num 1) (name G) (type input))
(pin (num 2) (name S) (type passive))
(pin (num 3) (name D) (type passive))))
(libpart (lib socket-cache) (part Q_PMOS_GSD)
(fields
(field (name Reference) Q)
(field (name Value) Q_PMOS_GSD))
(pins
(pin (num 1) (name G) (type input))
(pin (num 2) (name S) (type passive))
(pin (num 3) (name D) (type passive))))
(libpart (lib socket-cache) (part R)
(footprints
(fp R_*)
(fp R_*))
(fields
(field (name Reference) R)
(field (name Value) R))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))))
(libpart (lib socket-cache) (part SP0504BAHT)
(footprints
(fp SOT?23*))
(fields
(field (name Reference) D)
(field (name Value) SP0504BAHT)
(field (name Footprint) Package_TO_SOT_SMD:SOT-23-5))
(pins
(pin (num 1) (name K) (type input))
(pin (num 2) (name A) (type input))
(pin (num 3) (name K) (type input))
(pin (num 4) (name K) (type input))
(pin (num 5) (name K) (type input))))
(libpart (lib socket-rescue) (part STM8S003F3P-RESCUE-socket)
(footprints
(fp TSSOP*4.4x6.5mm*P0.65mm*))
(fields
(field (name Reference) U)
(field (name Value) STM8S003F3P-RESCUE-socket)
(field (name Footprint) Package_SSOP:TSSOP-20_4.4x6.5mm_P0.65mm))
(pins
(pin (num 1) (name PD4) (type BiDi))
(pin (num 2) (name PD5) (type BiDi))
(pin (num 3) (name PD6) (type BiDi))
(pin (num 4) (name NRST) (type input))
(pin (num 5) (name PA1) (type BiDi))
(pin (num 6) (name PA2) (type BiDi))
(pin (num 7) (name VSS) (type power_in))
(pin (num 8) (name VCAP) (type passive))
(pin (num 9) (name VDD) (type power_in))
(pin (num 10) (name PA3_T2C3) (type BiDi))
(pin (num 11) (name PB5) (type BiDi))
(pin (num 12) (name PB4) (type BiDi))
(pin (num 13) (name PC3_T1C3) (type BiDi))
(pin (num 14) (name PC4) (type BiDi))
(pin (num 15) (name PC5_T2C1) (type BiDi))
(pin (num 16) (name PC6_T1C1) (type BiDi))
(pin (num 17) (name PC7_T1C2) (type BiDi))
(pin (num 18) (name PD1) (type BiDi))
(pin (num 19) (name PD2_T2C3) (type BiDi))
(pin (num 20) (name PD3) (type BiDi))))
(libpart (lib socket-cache) (part Screw_Terminal_01x03)
(footprints
(fp TerminalBlock*:*))
(fields
(field (name Reference) J)
(field (name Value) Screw_Terminal_01x03))
(pins
(pin (num 1) (name Pin_1) (type passive))
(pin (num 2) (name Pin_2) (type passive))
(pin (num 3) (name Pin_3) (type passive))))
(libpart (lib socket-cache) (part USB_B)
(footprints
(fp USB*))
(fields
(field (name Reference) J)
(field (name Value) USB_B))
(pins
(pin (num 1) (name VBUS) (type power_out))
(pin (num 2) (name D-) (type passive))
(pin (num 3) (name D+) (type passive))
(pin (num 4) (name GND) (type power_out))
(pin (num 5) (name Shield) (type passive)))))
(libraries
(library (logical bt137)
(uri bt137.lib))
(library (logical acs712)
(uri acs712.lib))
(library (logical socket-cache)
(uri /home/eddy/Dropbox/Projects/STM8_samples/220controlled_socket/kicad/socket-cache.lib))
(library (logical socket-rescue)
(uri socket-rescue.lib))
(library (logical ch34x)
(uri ch34x.lib)))
(nets
(net (code 1) (name "Net-(D1-Pad5)")
(node (ref R1) (pin 1))
(node (ref D1) (pin 5))
(node (ref U2) (pin 5)))
(net (code 2) (name "Net-(D1-Pad4)")
(node (ref R2) (pin 1))
(node (ref U2) (pin 6))
(node (ref D1) (pin 4)))
(net (code 3) (name "Net-(C6-Pad2)")
(node (ref U2) (pin 4))
(node (ref C6) (pin 2)))
(net (code 4) (name "Net-(D2-Pad2)")
(node (ref J2) (pin 1))
(node (ref D2) (pin 2)))
(net (code 5) (name "Net-(J2-Pad3)")
(node (ref R1) (pin 2))
(node (ref J2) (pin 3)))
(net (code 6) (name "Net-(J2-Pad2)")
(node (ref R2) (pin 2))
(node (ref J2) (pin 2)))
(net (code 7) (name "Net-(C9-Pad1)")
(node (ref C9) (pin 1))
(node (ref U3) (pin 8)))
(net (code 8) (name "Net-(R20-Pad2)")
(node (ref U8) (pin 6))
(node (ref R20) (pin 2)))
(net (code 9) (name "Net-(R15-Pad1)")
(node (ref U8) (pin 1))
(node (ref R15) (pin 1)))
(net (code 10) (name "Net-(K1-Pad5)")
(node (ref Q8) (pin 3))
(node (ref K1) (pin 5)))
(net (code 11) (name "Net-(Q8-Pad1)")
(node (ref R16) (pin 1))
(node (ref Q8) (pin 1)))
(net (code 12) (name "Net-(J5-Pad1)")
(node (ref U7) (pin 4))
(node (ref J5) (pin 1)))
(net (code 13) (name "Net-(J5-Pad2)")
(node (ref U7) (pin 3))
(node (ref J5) (pin 2)))
(net (code 14) (name "Net-(J5-Pad3)")
(node (ref J5) (pin 3))
(node (ref U6) (pin 4)))
(net (code 15) (name "Net-(J5-Pad4)")
(node (ref J5) (pin 4))
(node (ref U6) (pin 3)))
(net (code 16) (name "Net-(J5-Pad5)")
(node (ref J5) (pin 5)))
(net (code 17) (name "Net-(J5-Pad13)")
(node (ref J5) (pin 13)))
(net (code 18) (name "Net-(Q2-Pad1)")
(node (ref R3) (pin 1))
(node (ref Q2) (pin 1)))
(net (code 19) (name GND)
(node (ref C2) (pin 1))
(node (ref U9) (pin 2))
(node (ref D1) (pin 2))
(node (ref C1) (pin 1))
(node (ref U5) (pin 3))
(node (ref U2) (pin 1))
(node (ref C12) (pin 2))
(node (ref Q1) (pin 2))
(node (ref C13) (pin 2))
(node (ref C5) (pin 1))
(node (ref D5) (pin 2))
(node (ref C3) (pin 1))
(node (ref Q9) (pin 2))
(node (ref C10) (pin 1))
(node (ref C11) (pin 2))
(node (ref J2) (pin 5))
(node (ref J2) (pin 4))
(node (ref U10) (pin 5))
(node (ref J4) (pin 1))
(node (ref C6) (pin 1))
(node (ref Q8) (pin 2))
(node (ref U8) (pin 2))
(node (ref Q2) (pin 2))
(node (ref C9) (pin 2))
(node (ref J1) (pin 5))
(node (ref J5) (pin 11))
(node (ref J3) (pin 2))
(node (ref U3) (pin 7))
(node (ref U1) (pin 15))
(node (ref C8) (pin 2)))
(net (code 20) (name "Net-(Q1-Pad1)")
(node (ref Q1) (pin 1))
(node (ref R4) (pin 1)))
(net (code 21) (name "Net-(C4-Pad1)")
(node (ref U1) (pin 4))
(node (ref C4) (pin 1)))
(net (code 22) (name "Net-(C7-Pad1)")
(node (ref C7) (pin 1))
(node (ref U1) (pin 1)))
(net (code 23) (name "Net-(C7-Pad2)")
(node (ref U1) (pin 3))
(node (ref C7) (pin 2)))
(net (code 24) (name "Net-(C4-Pad2)")
(node (ref C4) (pin 2))
(node (ref U1) (pin 5)))
(net (code 25) (name "Net-(Q4-Pad1)")
(node (ref Q4) (pin 1))
(node (ref R12) (pin 1)))
(net (code 26) (name "Net-(J5-Pad8)")
(node (ref Q3) (pin 3))
(node (ref J5) (pin 8)))
(net (code 27) (name "Net-(Q3-Pad1)")
(node (ref Q3) (pin 1))
(node (ref R11) (pin 1)))
(net (code 28) (name /NKEY2)
(node (ref U3) (pin 13))
(node (ref R11) (pin 2)))
(net (code 29) (name "Net-(C1-Pad2)")
(node (ref C1) (pin 2))
(node (ref U1) (pin 2)))
(net (code 30) (name "Net-(C2-Pad2)")
(node (ref U1) (pin 6))
(node (ref C2) (pin 2)))
(net (code 31) (name GNDREF)
(node (ref J7) (pin 2))
(node (ref J6) (pin 2)))
(net (code 32) (name "Net-(R23-Pad1)")
(node (ref R23) (pin 1))
(node (ref U2) (pin 2)))
(net (code 33) (name "Net-(U3-Pad1)")
(node (ref U3) (pin 1)))
(net (code 34) (name "Net-(D6-Pad1)")
(node (ref R5) (pin 1))
(node (ref D6) (pin 1)))
(net (code 37) (name "Net-(D3-Pad3)")
(node (ref U8) (pin 4))
(node (ref D3) (pin 3))
(node (ref R19) (pin 2)))
(net (code 38) (name "Net-(D4-Pad3)")
(node (ref D4) (pin 3))
(node (ref R21) (pin 2))
(node (ref U9) (pin 4)))
(net (code 39) (name /Cur0)
(node (ref D6) (pin 2))
(node (ref U10) (pin 7)))
(net (code 40) (name "Net-(R24-Pad2)")
(node (ref R24) (pin 2))
(node (ref U1) (pin 12)))
(net (code 41) (name /Rx)
(node (ref R23) (pin 2))
(node (ref U3) (pin 3))
(node (ref R24) (pin 1)))
(net (code 42) (name "Net-(J5-Pad14)")
(node (ref J5) (pin 14))
(node (ref Q6) (pin 3)))
(net (code 43) (name "Net-(Q6-Pad1)")
(node (ref Q6) (pin 1))
(node (ref R14) (pin 1)))
(net (code 44) (name "Net-(J5-Pad15)")
(node (ref J5) (pin 15))
(node (ref Q6) (pin 2)))
(net (code 45) (name "Net-(R10-Pad2)")
(node (ref R10) (pin 2))
(node (ref U5) (pin 2)))
(net (code 46) (name "Net-(J5-Pad10)")
(node (ref J5) (pin 10))
(node (ref U5) (pin 1)))
(net (code 47) (name "Net-(J5-Pad9)")
(node (ref J5) (pin 9))
(node (ref R10) (pin 1)))
(net (code 48) (name "Net-(Q1-Pad3)")
(node (ref U6) (pin 2))
(node (ref Q1) (pin 3)))
(net (code 49) (name "Net-(Q2-Pad3)")
(node (ref U7) (pin 2))
(node (ref Q2) (pin 3)))
(net (code 50) (name "Net-(R7-Pad1)")
(node (ref U6) (pin 1))
(node (ref R7) (pin 1)))
(net (code 51) (name "Net-(R8-Pad1)")
(node (ref U7) (pin 1))
(node (ref R8) (pin 1)))
(net (code 52) (name "Net-(C13-Pad1)")
(node (ref R5) (pin 2))
(node (ref C13) (pin 1))
(node (ref U3) (pin 20)))
(net (code 53) (name "Net-(D3-Pad1)")
(node (ref U10) (pin 1))
(node (ref U10) (pin 2))
(node (ref R19) (pin 1))
(node (ref K1) (pin 3))
(node (ref D3) (pin 1)))
(net (code 54) (name "Net-(K1-Pad4)")
(node (ref K1) (pin 4)))
(net (code 55) (name "Net-(Q9-Pad1)")
(node (ref Q9) (pin 1))
(node (ref R18) (pin 1)))
(net (code 56) (name "Net-(D4-Pad1)")
(node (ref K2) (pin 3))
(node (ref D4) (pin 1))
(node (ref J7) (pin 3))
(node (ref R21) (pin 1)))
(net (code 57) (name "Net-(R22-Pad2)")
(node (ref U9) (pin 6))
(node (ref R22) (pin 2)))
(net (code 58) (name "Net-(C12-Pad1)")
(node (ref U10) (pin 6))
(node (ref C12) (pin 1)))
(net (code 59) (name "Net-(R17-Pad1)")
(node (ref R17) (pin 1))
(node (ref U9) (pin 1)))
(net (code 60) (name "Net-(K2-Pad5)")
(node (ref Q9) (pin 3))
(node (ref K2) (pin 5)))
(net (code 61) (name "Net-(J5-Pad7)")
(node (ref Q4) (pin 3))
(node (ref J5) (pin 7)))
(net (code 62) (name "Net-(J5-Pad6)")
(node (ref J5) (pin 6))
(node (ref Q4) (pin 2))
(node (ref Q3) (pin 2)))
(net (code 63) (name "Net-(J5-Pad12)")
(node (ref J5) (pin 12))
(node (ref R9) (pin 1)))
(net (code 64) (name "Net-(U2-Pad10)")
(node (ref U2) (pin 10)))
(net (code 65) (name "Net-(U2-Pad11)")
(node (ref U2) (pin 11)))
(net (code 66) (name "Net-(U2-Pad12)")
(node (ref U2) (pin 12)))
(net (code 67) (name "Net-(U2-Pad13)")
(node (ref U2) (pin 13)))
(net (code 68) (name "Net-(U2-Pad14)")
(node (ref U2) (pin 14)))
(net (code 69) (name "Net-(U2-Pad15)")
(node (ref U2) (pin 15)))
(net (code 70) (name "Net-(C5-Pad2)")
(node (ref Y1) (pin 1))
(node (ref U2) (pin 8))
(node (ref C5) (pin 2)))
(net (code 71) (name "Net-(C3-Pad2)")
(node (ref C3) (pin 2))
(node (ref U2) (pin 7))
(node (ref Y1) (pin 2)))
(net (code 72) (name "Net-(U2-Pad9)")
(node (ref U2) (pin 9)))
(net (code 73) (name "Net-(J1-Pad8)")
(node (ref J1) (pin 8)))
(net (code 74) (name "Net-(J1-Pad7)")
(node (ref J1) (pin 7)))
(net (code 75) (name "Net-(J1-Pad6)")
(node (ref J1) (pin 6)))
(net (code 76) (name "Net-(J1-Pad1)")
(node (ref J1) (pin 1)))
(net (code 77) (name /Tx)
(node (ref U3) (pin 2))
(node (ref U2) (pin 3))
(node (ref U1) (pin 11)))
(net (code 78) (name "Net-(J1-Pad4)")
(node (ref J1) (pin 4)))
(net (code 79) (name "Net-(U1-Pad8)")
(node (ref U1) (pin 8)))
(net (code 80) (name /Triac0)
(node (ref U3) (pin 19))
(node (ref R15) (pin 2)))
(net (code 81) (name "Net-(U1-Pad7)")
(node (ref U1) (pin 7)))
(net (code 82) (name /SWIM)
(node (ref U3) (pin 18))
(node (ref J4) (pin 3)))
(net (code 83) (name "Net-(U1-Pad9)")
(node (ref U1) (pin 9)))
(net (code 84) (name "Net-(U1-Pad10)")
(node (ref U1) (pin 10)))
(net (code 85) (name /Out0)
(node (ref U3) (pin 10))
(node (ref R3) (pin 2)))
(net (code 86) (name /~In1)
(node (ref U5) (pin 4))
(node (ref U3) (pin 5)))
(net (code 87) (name /Out1)
(node (ref R4) (pin 2))
(node (ref U3) (pin 6)))
(net (code 88) (name /PKEY1)
(node (ref U3) (pin 11))
(node (ref R14) (pin 2)))
(net (code 89) (name /~In0)
(node (ref D5) (pin 1))
(node (ref R9) (pin 2))
(node (ref U3) (pin 12)))
(net (code 90) (name /NKEY1)
(node (ref U3) (pin 15))
(node (ref R12) (pin 2)))
(net (code 91) (name /Relay0)
(node (ref U3) (pin 17))
(node (ref R16) (pin 2)))
(net (code 92) (name "Net-(J1-Pad9)")
(node (ref J1) (pin 9)))
(net (code 93) (name /RXD)
(node (ref D1) (pin 3))
(node (ref U1) (pin 14))
(node (ref J1) (pin 2)))
(net (code 94) (name /TXD)
(node (ref J1) (pin 3))
(node (ref U1) (pin 13))
(node (ref D1) (pin 1)))
(net (code 95) (name "Net-(D4-Pad2)")
(node (ref J7) (pin 1))
(node (ref K2) (pin 1))
(node (ref R22) (pin 1))
(node (ref D4) (pin 2)))
(net (code 96) (name /Triac1)
(node (ref U3) (pin 16))
(node (ref R17) (pin 2)))
(net (code 97) (name /Relay1)
(node (ref R18) (pin 2))
(node (ref U3) (pin 14)))
(net (code 98) (name "Net-(U9-Pad3)")
(node (ref U9) (pin 3)))
(net (code 99) (name "Net-(U9-Pad5)")
(node (ref U9) (pin 5)))
(net (code 100) (name VCC)
(node (ref D2) (pin 1))
(node (ref R8) (pin 2))
(node (ref U2) (pin 16))
(node (ref U1) (pin 16))
(node (ref U3) (pin 9))
(node (ref U10) (pin 8))
(node (ref C11) (pin 1))
(node (ref J3) (pin 1))
(node (ref C10) (pin 2))
(node (ref K2) (pin 2))
(node (ref R7) (pin 2))
(node (ref K1) (pin 2)))
(net (code 101) (name "Net-(K2-Pad4)")
(node (ref K2) (pin 4)))
(net (code 102) (name "Net-(U8-Pad3)")
(node (ref U8) (pin 3)))
(net (code 103) (name "Net-(U8-Pad5)")
(node (ref U8) (pin 5)))
(net (code 104) (name "Net-(D3-Pad2)")
(node (ref R20) (pin 1))
(node (ref J6) (pin 1))
(node (ref K1) (pin 1))
(node (ref D3) (pin 2)))
(net (code 105) (name /NRST)
(node (ref U3) (pin 4))
(node (ref J4) (pin 2))
(node (ref C8) (pin 1)))
(net (code 106) (name "Net-(J6-Pad3)")
(node (ref U10) (pin 4))
(node (ref U10) (pin 3))
(node (ref J6) (pin 3)))))