Create a schematic for Optocoupler-controlled relay circuit. 

libSymbols:
- Connector:Conn_01x02_Male
- Connector:Screw_Terminal_01x02
- Device:LED
- Device:R_Small_US
- PC817A:PC817A
- Relay:FINDER-40.11
- Transistor_BJT:BC547
- power:+12V
- power:+5V
- power:GND
- pspice:DIODE
schematicSymbols:
- libraryNickname: PC817A
  entryName: PC817A
  position:
    x: 110.49
    y: 64.77
    angle: 0
  properties:
  - key: Reference
    value: Q1
    position:
      x: 110.49
      y: 55.9562
      angle: 0
  - key: Value
    value: '~'
    position:
      x: 110.49
      y: 58.2676
      angle: 0
- libraryNickname: Relay
  entryName: FINDER-40.11
  position:
    x: 171.45
    y: 49.53
    angle: 0
  properties:
  - key: Reference
    value: K1
    position:
      x: 182.372
      y: 48.3616
      angle: 0
  - key: Value
    value: '~'
    position:
      x: 182.372
      y: 50.673
      angle: 0
- libraryNickname: pspice
  entryName: DIODE
  position:
    x: 149.86
    y: 49.53
    angle: 90
  properties:
  - key: Reference
    value: D3
    position:
      x: 153.1112
      y: 48.3616
      angle: 90
  - key: Value
    value: '~'
    position:
      x: 153.1112
      y: 50.673
      angle: 90
- libraryNickname: Transistor_BJT
  entryName: BC547
  position:
    x: 147.32
    y: 67.31
    angle: 0
  properties:
  - key: Reference
    value: Q3
    position:
      x: 152.146
      y: 66.1416
      angle: 0
  - key: Value
    value: '~'
    position:
      x: 152.146
      y: 68.453
      angle: 0
- libraryNickname: Device
  entryName: R_Small_US
  position:
    x: 130.81
    y: 67.31
    angle: 270
  properties:
  - key: Reference
    value: R3
    position:
      x: 130.81
      y: 62.103
      angle: 90
  - key: Value
    value: 1K
    position:
      x: 130.81
      y: 64.4144
      angle: 90
- libraryNickname: Connector
  entryName: Conn_01x02_Male
  position:
    x: 116.84
    y: 34.29
    angle: 270
  properties:
  - key: Reference
    value: J4
    position:
      x: 118.11
      y: 33.02
      angle: 90
  - key: Value
    value: '~'
    position:
      x: 118.11
      y: 35.56
      angle: 90
- libraryNickname: Device
  entryName: R_Small_US
  position:
    x: 100.33
    y: 49.53
    angle: 0
  properties:
  - key: Reference
    value: R1
    position:
      x: 102.0572
      y: 48.3616
      angle: 0
  - key: Value
    value: 1K
    position:
      x: 102.0572
      y: 50.673
      angle: 0
- libraryNickname: Device
  entryName: LED
  position:
    x: 91.44
    y: 67.31
    angle: 0
  properties:
  - key: Reference
    value: D1
    position:
      x: 91.2622
      y: 61.7982
      angle: 0
  - key: Value
    value: LED1
    position:
      x: 91.2622
      y: 64.1096
      angle: 0
- libraryNickname: power
  entryName: GND
  position:
    x: 149.86
    y: 77.47
    angle: 0
  properties:
  - key: Reference
    value: '#PWR0108'
    position:
      x: 149.86
      y: 83.82
      angle: 0
  - key: Value
    value: '~'
    position:
      x: 149.987
      y: 81.8642
      angle: 0
- libraryNickname: Relay
  entryName: FINDER-40.11
  position:
    x: 171.45
    y: 120.65
    angle: 0
  properties:
  - key: Reference
    value: K2
    position:
      x: 182.372
      y: 119.4816
      angle: 0
  - key: Value
    value: '~'
    position:
      x: 182.372
      y: 121.793
      angle: 0
- libraryNickname: pspice
  entryName: DIODE
  position:
    x: 149.86
    y: 120.65
    angle: 90
  properties:
  - key: Reference
    value: D4
    position:
      x: 153.1112
      y: 119.4816
      angle: 90
  - key: Value
    value: '~'
    position:
      x: 153.1112
      y: 121.793
      angle: 90
- libraryNickname: Transistor_BJT
  entryName: BC547
  position:
    x: 147.32
    y: 138.43
    angle: 0
  properties:
  - key: Reference
    value: Q4
    position:
      x: 152.146
      y: 137.2616
      angle: 0
  - key: Value
    value: '~'
    position:
      x: 152.146
      y: 139.573
      angle: 0
- libraryNickname: Device
  entryName: R_Small_US
  position:
    x: 130.81
    y: 138.43
    angle: 270
  properties:
  - key: Reference
    value: R4
    position:
      x: 130.81
      y: 133.223
      angle: 90
  - key: Value
    value: 1K
    position:
      x: 130.81
      y: 135.5344
      angle: 90
- libraryNickname: PC817A
  entryName: PC817A
  position:
    x: 110.49
    y: 135.89
    angle: 0
  properties:
  - key: Reference
    value: Q2
    position:
      x: 110.49
      y: 127.0762
      angle: 0
  - key: Value
    value: '~'
    position:
      x: 110.49
      y: 129.3876
      angle: 0
- libraryNickname: Connector
  entryName: Conn_01x02_Male
  position:
    x: 116.84
    y: 105.41
    angle: 270
  properties:
  - key: Reference
    value: J6
    position:
      x: 118.11
      y: 104.14
      angle: 90
  - key: Value
    value: '~'
    position:
      x: 118.11
      y: 106.68
      angle: 90
- libraryNickname: Device
  entryName: R_Small_US
  position:
    x: 100.33
    y: 120.65
    angle: 0
  properties:
  - key: Reference
    value: R2
    position:
      x: 102.0572
      y: 119.4816
      angle: 0
  - key: Value
    value: 1K
    position:
      x: 102.0572
      y: 121.793
      angle: 0
- libraryNickname: Device
  entryName: LED
  position:
    x: 91.44
    y: 138.43
    angle: 0
  properties:
  - key: Reference
    value: D2
    position:
      x: 91.2622
      y: 132.9182
      angle: 0
  - key: Value
    value: LED2
    position:
      x: 91.2622
      y: 135.2296
      angle: 0
- libraryNickname: power
  entryName: GND
  position:
    x: 149.86
    y: 148.59
    angle: 0
  properties:
  - key: Reference
    value: '#PWR0111'
    position:
      x: 149.86
      y: 154.94
      angle: 0
  - key: Value
    value: '~'
    position:
      x: 149.987
      y: 152.9842
      angle: 0
- libraryNickname: Connector
  entryName: Screw_Terminal_01x02
  position:
    x: 251.46
    y: 83.82
    angle: 0
  properties:
  - key: Reference
    value: J8
    position:
      x: 253.492
      y: 84.0232
      angle: 0
  - key: Value
    value: '~'
    position:
      x: 253.492
      y: 86.3346
      angle: 0
- libraryNickname: power
  entryName: +12V
  position:
    x: 222.25
    y: 113.03
    angle: 270
  properties:
  - key: Reference
    value: '#PWR0129'
    position:
      x: 218.44
      y: 113.03
      angle: 0
  - key: Value
    value: +12V
    position:
      x: 225.425
      y: 113.4638
      angle: 90
- libraryNickname: power
  entryName: +5V
  position:
    x: 82.55
    y: 110.49
    angle: 90
  properties:
  - key: Reference
    value: '#PWR0117'
    position:
      x: 86.36
      y: 110.49
      angle: 0
  - key: Value
    value: +5V
    position:
      x: 79.3751
      y: 110.9238
      angle: 90
- libraryNickname: power
  entryName: +5V
  position:
    x: 82.55
    y: 39.37
    angle: 90
  properties:
  - key: Reference
    value: '#PWR0114'
    position:
      x: 86.36
      y: 39.37
      angle: 0
  - key: Value
    value: +5V
    position:
      x: 79.3751
      y: 39.8038
      angle: 90
- libraryNickname: power
  entryName: +12V
  position:
    x: 220.98
    y: 41.91
    angle: 270
  properties:
  - key: Reference
    value: '#PWR0132'
    position:
      x: 217.17
      y: 41.91
      angle: 0
  - key: Value
    value: +12V
    position:
      x: 224.155
      y: 42.3438
      angle: 90
- libraryNickname: power
  entryName: GND
  position:
    x: 220.98
    y: 39.37
    angle: 90
  properties:
  - key: Reference
    value: '#PWR0131'
    position:
      x: 227.33
      y: 39.37
      angle: 0
  - key: Value
    value: GND
    position:
      x: 224.155
      y: 39.8038
      angle: 90
- libraryNickname: power
  entryName: GND
  position:
    x: 222.25
    y: 110.49
    angle: 90
  properties:
  - key: Reference
    value: '#PWR0130'
    position:
      x: 228.6
      y: 110.49
      angle: 0
  - key: Value
    value: GND
    position:
      x: 225.425
      y: 110.9238
      angle: 90
junctions:
- position:
    x: 149.86
    y: 133.35
    angle: 0
- position:
    x: 149.86
    y: 39.37
    angle: 0
- position:
    x: 120.65
    y: 39.37
    angle: 0
- position:
    x: 114.3
    y: 110.49
    angle: 0
- position:
    x: 149.86
    y: 62.23
    angle: 0
- position:
    x: 114.3
    y: 39.37
    angle: 0
- position:
    x: 120.65
    y: 110.49
    angle: 0
- position:
    x: 149.86
    y: 110.49
    angle: 0
noConnects: []
busEntries: []
graphicalItems:
- type: wire
  points:
  - x: 120.65
    y: 39.37
  - x: 120.65
    y: 62.23
- type: wire
  points:
  - x: 176.53
    y: 57.15
  - x: 220.98
    y: 57.15
- type: wire
  points:
  - x: 87.63
    y: 138.43
  - x: 81.28
    y: 138.43
- type: wire
  points:
  - x: 220.98
    y: 39.37
  - x: 173.99
    y: 39.37
- type: wire
  points:
  - x: 166.37
    y: 39.37
  - x: 149.86
    y: 39.37
- type: wire
  points:
  - x: 173.99
    y: 110.49
  - x: 173.99
    y: 113.03
- type: wire
  points:
  - x: 120.65
    y: 110.49
  - x: 120.65
    y: 133.35
- type: wire
  points:
  - x: 237.49
    y: 83.82
  - x: 246.38
    y: 83.82
- type: wire
  points:
  - x: 166.37
    y: 57.15
  - x: 166.37
    y: 62.23
- type: wire
  points:
  - x: 133.35
    y: 67.31
  - x: 142.24
    y: 67.31
- type: wire
  points:
  - x: 149.86
    y: 77.47
  - x: 149.86
    y: 72.39
- type: wire
  points:
  - x: 82.55
    y: 39.37
  - x: 114.3
    y: 39.37
- type: wire
  points:
  - x: 166.37
    y: 113.03
  - x: 166.37
    y: 110.49
- type: wire
  points:
  - x: 100.33
    y: 123.19
  - x: 100.33
    y: 133.35
- type: wire
  points:
  - x: 223.52
    y: 128.27
  - x: 176.53
    y: 128.27
- type: wire
  points:
  - x: 120.65
    y: 138.43
  - x: 128.27
    y: 138.43
- type: wire
  points:
  - x: 82.55
    y: 110.49
  - x: 114.3
    y: 110.49
- type: wire
  points:
  - x: 149.86
    y: 39.37
  - x: 120.65
    y: 39.37
- type: wire
  points:
  - x: 114.3
    y: 110.49
  - x: 114.3
    y: 118.11
- type: wire
  points:
  - x: 246.38
    y: 86.36
  - x: 237.49
    y: 86.36
- type: wire
  points:
  - x: 179.07
    y: 113.03
  - x: 222.25
    y: 113.03
- type: wire
  points:
  - x: 133.35
    y: 138.43
  - x: 142.24
    y: 138.43
- type: wire
  points:
  - x: 114.3
    y: 118.11
  - x: 100.33
    y: 118.11
- type: wire
  points:
  - x: 222.25
    y: 110.49
  - x: 173.99
    y: 110.49
- type: wire
  points:
  - x: 95.25
    y: 67.31
  - x: 100.33
    y: 67.31
- type: wire
  points:
  - x: 120.65
    y: 67.31
  - x: 128.27
    y: 67.31
- type: wire
  points:
  - x: 149.86
    y: 133.35
  - x: 149.86
    y: 125.73
- type: wire
  points:
  - x: 116.84
    y: 110.49
  - x: 120.65
    y: 110.49
- type: wire
  points:
  - x: 149.86
    y: 148.59
  - x: 149.86
    y: 143.51
- type: wire
  points:
  - x: 149.86
    y: 62.23
  - x: 149.86
    y: 54.61
- type: wire
  points:
  - x: 114.3
    y: 39.37
  - x: 114.3
    y: 46.99
- type: wire
  points:
  - x: 173.99
    y: 39.37
  - x: 173.99
    y: 41.91
- type: wire
  points:
  - x: 100.33
    y: 52.07
  - x: 100.33
    y: 62.23
- type: wire
  points:
  - x: 95.25
    y: 138.43
  - x: 100.33
    y: 138.43
- type: wire
  points:
  - x: 166.37
    y: 62.23
  - x: 149.86
    y: 62.23
- type: wire
  points:
  - x: 149.86
    y: 110.49
  - x: 120.65
    y: 110.49
- type: wire
  points:
  - x: 149.86
    y: 39.37
  - x: 149.86
    y: 44.45
- type: wire
  points:
  - x: 166.37
    y: 128.27
  - x: 166.37
    y: 133.35
- type: wire
  points:
  - x: 166.37
    y: 110.49
  - x: 149.86
    y: 110.49
- type: wire
  points:
  - x: 87.63
    y: 67.31
  - x: 81.28
    y: 67.31
- type: wire
  points:
  - x: 179.07
    y: 41.91
  - x: 220.98
    y: 41.91
- type: wire
  points:
  - x: 114.3
    y: 46.99
  - x: 100.33
    y: 46.99
- type: wire
  points:
  - x: 149.86
    y: 110.49
  - x: 149.86
    y: 115.57
- type: wire
  points:
  - x: 166.37
    y: 41.91
  - x: 166.37
    y: 39.37
- type: wire
  points:
  - x: 166.37
    y: 133.35
  - x: 149.86
    y: 133.35
- type: wire
  points:
  - x: 116.84
    y: 39.37
  - x: 120.65
    y: 39.37
globalLabels:
- text: Motor+
  shape: input
  position:
    x: 237.49
    y: 86.36
    angle: 180
- text: Motor-
  shape: input
  position:
    x: 237.49
    y: 83.82
    angle: 180
- text: Motor-
  shape: input
  position:
    x: 220.98
    y: 57.15
    angle: 0
- text: Motor+
  shape: input
  position:
    x: 223.52
    y: 128.27
    angle: 0
sheetInstances: []
