Create a schematic for USB charging circuit 

libSymbols:
- Connector:USB_C_Receptacle_USB2.0
- Connector_Generic:Conn_01x02
- Device:C_Small
- Device:Crystal_GND24
- Device:D_Small
- Device:Q_NPN_BEC
- Device:R
- Diode:BAT54C
- Interface_USB:CH340T
- power:GND
- power:PWR_FLAG
schematicSymbols:
- libraryNickname: Interface_USB
  entryName: CH340T
  position:
    x: 204.47
    y: 86.36
    angle: 0
  properties:
  - key: Reference
    value: U11
    position:
      x: 206.4894
      y: 106.68
      angle: 0
  - key: Value
    value: CH340T
    position:
      x: 194.31
      y: 106.68
      angle: 0
- libraryNickname: Device
  entryName: R
  position:
    x: 78.74
    y: 55.88
    angle: 90
  properties:
  - key: Reference
    value: R21
    position:
      x: 78.74
      y: 58.42
      angle: 90
  - key: Value
    value: 5k1
    position:
      x: 80.01
      y: 55.88
      angle: 90
- libraryNickname: power
  entryName: PWR_FLAG
  position:
    x: 204.47
    y: 44.45
    angle: 0
  properties:
  - key: Reference
    value: '#FLG0107'
    position:
      x: 204.47
      y: 42.545
      angle: 0
  - key: Value
    value: PWR_FLAG
    position:
      x: 204.47
      y: 39.37
      angle: 0
- libraryNickname: Device
  entryName: D_Small
  position:
    x: 237.49
    y: 71.12
    angle: 180
  properties:
  - key: Reference
    value: D3
    position:
      x: 234.95
      y: 73.66
      angle: 0
  - key: Value
    value: 1N5819WS
    position:
      x: 242.57
      y: 73.66
      angle: 0
- libraryNickname: power
  entryName: GND
  position:
    x: 184.15
    y: 88.9
    angle: 0
  properties:
  - key: Reference
    value: '#PWR057'
    position:
      x: 184.15
      y: 95.25
      angle: 0
  - key: Value
    value: GND
    position:
      x: 184.15
      y: 92.71
      angle: 0
- libraryNickname: Device
  entryName: Q_NPN_BEC
  position:
    x: 254
    y: 106.68
    angle: 0
  properties:
  - key: Reference
    value: Q4
    position:
      x: 247.65
      y: 109.22
      angle: 0
  - key: Value
    value: BC817
    position:
      x: 260.35
      y: 102.87
      angle: 90
- libraryNickname: Device
  entryName: C_Small
  position:
    x: 158.75
    y: 95.25
    angle: 90
  properties:
  - key: Reference
    value: C22
    position:
      x: 162.56
      y: 97.79
      angle: 90
  - key: Value
    value: 27p
    position:
      x: 165.1
      y: 93.98
      angle: 90
- libraryNickname: Device
  entryName: R
  position:
    x: 254
    y: 60.96
    angle: 0
  properties:
  - key: Reference
    value: R25
    position:
      x: 256.54
      y: 62.23
      angle: 90
  - key: Value
    value: 10k
    position:
      x: 254
      y: 62.23
      angle: 90
- libraryNickname: Connector
  entryName: USB_C_Receptacle_USB2.0
  position:
    x: 41.91
    y: 63.5
    angle: 0
  properties:
  - key: Reference
    value: J7
    position:
      x: 41.91
      y: 40.64
      angle: 0
  - key: Value
    value: USB_C_Receptacle_USB2.0
    position:
      x: 41.91
      y: 43.18
      angle: 0
- libraryNickname: power
  entryName: GND
  position:
    x: 173.99
    y: 88.9
    angle: 270
  properties:
  - key: Reference
    value: '#PWR056'
    position:
      x: 167.64
      y: 88.9
      angle: 0
  - key: Value
    value: GND
    position:
      x: 170.18
      y: 88.9
      angle: 0
- libraryNickname: power
  entryName: GND
  position:
    x: 40.64
    y: 115.57
    angle: 0
  properties:
  - key: Reference
    value: '#PWR0110'
    position:
      x: 40.64
      y: 121.92
      angle: 0
  - key: Value
    value: GND
    position:
      x: 40.64
      y: 119.38
      angle: 0
- libraryNickname: Diode
  entryName: BAT54C
  position:
    x: 270.51
    y: 127
    angle: 270
  properties:
  - key: Reference
    value: D5
    position:
      x: 273.05
      y: 125.7299
      angle: 90
  - key: Value
    value: BAT54C
    position:
      x: 273.05
      y: 128.2699
      angle: 90
- libraryNickname: power
  entryName: GND
  position:
    x: 85.09
    y: 58.42
    angle: 0
  properties:
  - key: Reference
    value: '#PWR050'
    position:
      x: 85.09
      y: 64.77
      angle: 0
  - key: Value
    value: GND
    position:
      x: 85.09
      y: 62.23
      angle: 0
- libraryNickname: Device
  entryName: C_Small
  position:
    x: 158.75
    y: 83.82
    angle: 90
  properties:
  - key: Reference
    value: C21
    position:
      x: 162.56
      y: 86.36
      angle: 90
  - key: Value
    value: 27p
    position:
      x: 165.1
      y: 82.55
      angle: 90
- libraryNickname: Device
  entryName: D_Small
  position:
    x: 238.76
    y: 68.58
    angle: 0
  properties:
  - key: Reference
    value: D4
    position:
      x: 241.3
      y: 66.04
      angle: 0
  - key: Value
    value: 1N5819WS
    position:
      x: 233.68
      y: 66.04
      angle: 0
- libraryNickname: power
  entryName: GND
  position:
    x: 41.91
    y: 86.36
    angle: 0
  properties:
  - key: Reference
    value: '#PWR049'
    position:
      x: 41.91
      y: 92.71
      angle: 0
  - key: Value
    value: GND
    position:
      x: 41.91
      y: 90.17
      angle: 0
- libraryNickname: Device
  entryName: R
  position:
    x: 237.49
    y: 86.36
    angle: 90
  properties:
  - key: Reference
    value: R23
    position:
      x: 238.76
      y: 83.82
      angle: 90
  - key: Value
    value: 1k
    position:
      x: 238.76
      y: 86.36
      angle: 90
- libraryNickname: Device
  entryName: Q_NPN_BEC
  position:
    x: 254
    y: 86.36
    angle: 0
  properties:
  - key: Reference
    value: Q3
    position:
      x: 247.65
      y: 83.82
      angle: 0
  - key: Value
    value: BC817
    position:
      x: 260.35
      y: 90.17
      angle: 90
- libraryNickname: Device
  entryName: C_Small
  position:
    x: 209.55
    y: 55.88
    angle: 0
  properties:
  - key: Reference
    value: C24
    position:
      x: 212.09
      y: 54.61
      angle: 0
  - key: Value
    value: 22u/6.3V
    position:
      x: 212.09
      y: 58.42
      angle: 0
- libraryNickname: power
  entryName: GND
  position:
    x: 209.55
    y: 58.42
    angle: 0
  properties:
  - key: Reference
    value: '#PWR060'
    position:
      x: 209.55
      y: 64.77
      angle: 0
  - key: Value
    value: GND
    position:
      x: 209.55
      y: 62.23
      angle: 0
- libraryNickname: Device
  entryName: R
  position:
    x: 237.49
    y: 106.68
    angle: 90
  properties:
  - key: Reference
    value: R24
    position:
      x: 238.76
      y: 104.14
      angle: 90
  - key: Value
    value: 1k
    position:
      x: 238.76
      y: 106.68
      angle: 90
- libraryNickname: Device
  entryName: R
  position:
    x: 67.31
    y: 53.34
    angle: 90
  properties:
  - key: Reference
    value: R20
    position:
      x: 68.58
      y: 50.8
      angle: 90
  - key: Value
    value: 5k1
    position:
      x: 68.58
      y: 53.34
      angle: 90
- libraryNickname: Device
  entryName: C_Small
  position:
    x: 190.5
    y: 59.69
    angle: 0
  properties:
  - key: Reference
    value: C23
    position:
      x: 185.42
      y: 57.15
      angle: 0
  - key: Value
    value: 100n
    position:
      x: 184.15
      y: 62.23
      angle: 0
- libraryNickname: Device
  entryName: R
  position:
    x: 226.06
    y: 60.96
    angle: 0
  properties:
  - key: Reference
    value: R22
    position:
      x: 228.6
      y: 62.23
      angle: 90
  - key: Value
    value: 10k
    position:
      x: 226.06
      y: 62.23
      angle: 90
- libraryNickname: Connector_Generic
  entryName: Conn_01x02
  position:
    x: 35.56
    y: 115.57
    angle: 180
  properties:
  - key: Reference
    value: J6
    position:
      x: 35.56
      y: 106.68
      angle: 0
  - key: Value
    value: Con_24Vin
    position:
      x: 35.56
      y: 109.22
      angle: 0
- libraryNickname: power
  entryName: GND
  position:
    x: 153.67
    y: 97.79
    angle: 0
  properties:
  - key: Reference
    value: '#PWR055'
    position:
      x: 153.67
      y: 104.14
      angle: 0
  - key: Value
    value: GND
    position:
      x: 153.67
      y: 101.6
      angle: 0
- libraryNickname: power
  entryName: GND
  position:
    x: 34.29
    y: 86.36
    angle: 0
  properties:
  - key: Reference
    value: '#PWR048'
    position:
      x: 34.29
      y: 92.71
      angle: 0
  - key: Value
    value: GND
    position:
      x: 34.29
      y: 90.17
      angle: 0
- libraryNickname: Device
  entryName: Crystal_GND24
  position:
    x: 179.07
    y: 88.9
    angle: 90
  properties:
  - key: Reference
    value: Y2
    position:
      x: 172.72
      y: 86.36
      angle: 90
  - key: Value
    value: 12MHz
    position:
      x: 171.45
      y: 92.71
      angle: 90
- libraryNickname: power
  entryName: GND
  position:
    x: 190.5
    y: 62.23
    angle: 0
  properties:
  - key: Reference
    value: '#PWR058'
    position:
      x: 190.5
      y: 68.58
      angle: 0
  - key: Value
    value: GND
    position:
      x: 190.5
      y: 66.04
      angle: 0
- libraryNickname: Device
  entryName: R
  position:
    x: 256.54
    y: 118.11
    angle: 0
  properties:
  - key: Reference
    value: R26
    position:
      x: 259.08
      y: 120.65
      angle: 90
  - key: Value
    value: 220R
    position:
      x: 256.54
      y: 119.38
      angle: 90
- libraryNickname: Device
  entryName: D_Small
  position:
    x: 55.88
    y: 113.03
    angle: 180
  properties:
  - key: Reference
    value: D11
    position:
      x: 58.42
      y: 115.57
      angle: 0
  - key: Value
    value: SK4001
    position:
      x: 62.23
      y: 110.49
      angle: 0
- libraryNickname: power
  entryName: GND
  position:
    x: 204.47
    y: 106.68
    angle: 0
  properties:
  - key: Reference
    value: '#PWR059'
    position:
      x: 204.47
      y: 113.03
      angle: 0
  - key: Value
    value: GND
    position:
      x: 204.47
      y: 110.49
      angle: 0
junctions:
- position:
    x: 179.07
    y: 83.82
    angle: 0
- position:
    x: 226.06
    y: 71.12
    angle: 0
- position:
    x: 231.14
    y: 86.36
    angle: 0
- position:
    x: 59.69
    y: 60.96
    angle: 0
- position:
    x: 153.67
    y: 95.25
    angle: 0
- position:
    x: 85.09
    y: 55.88
    angle: 0
- position:
    x: 204.47
    y: 48.26
    angle: 0
- position:
    x: 64.77
    y: 48.26
    angle: 0
- position:
    x: 254
    y: 68.58
    angle: 0
- position:
    x: 224.79
    y: 91.44
    angle: 0
- position:
    x: 179.07
    y: 95.25
    angle: 0
- position:
    x: 201.93
    y: 54.61
    angle: 0
- position:
    x: 209.55
    y: 48.26
    angle: 0
- position:
    x: 59.69
    y: 68.58
    angle: 0
noConnects:
- position:
    x: 57.15
    y: 76.2
    angle: null
- position:
    x: 194.31
    y: 71.12
    angle: null
- position:
    x: 214.63
    y: 78.74
    angle: null
- position:
    x: 214.63
    y: 83.82
    angle: null
- position:
    x: 214.63
    y: 93.98
    angle: null
- position:
    x: 214.63
    y: 96.52
    angle: null
- position:
    x: 214.63
    y: 76.2
    angle: null
- position:
    x: 214.63
    y: 81.28
    angle: null
- position:
    x: 214.63
    y: 101.6
    angle: null
- position:
    x: 57.15
    y: 78.74
    angle: null
busEntries: []
graphicalItems:
- type: wire
  points:
  - x: 224.79
    y: 67.31
  - x: 226.06
    y: 67.31
- type: wire
  points:
  - x: 226.06
    y: 71.12
  - x: 234.95
    y: 71.12
- type: wire
  points:
  - x: 256.54
    y: 111.76
  - x: 256.54
    y: 114.3
- type: wire
  points:
  - x: 85.09
    y: 53.34
  - x: 85.09
    y: 55.88
- type: wire
  points:
  - x: 204.47
    y: 48.26
  - x: 209.55
    y: 48.26
- type: wire
  points:
  - x: 224.79
    y: 69.85
  - x: 224.79
    y: 67.31
- type: wire
  points:
  - x: 182.88
    y: 76.2
  - x: 194.31
    y: 76.2
- type: wire
  points:
  - x: 231.14
    y: 86.36
  - x: 231.14
    y: 99.06
- type: wire
  points:
  - x: 208.28
    y: 52.07
  - x: 208.28
    y: 50.8
- type: wire
  points:
  - x: 214.63
    y: 88.9
  - x: 224.79
    y: 88.9
- type: wire
  points:
  - x: 226.06
    y: 48.26
  - x: 209.55
    y: 48.26
- type: wire
  points:
  - x: 254
    y: 68.58
  - x: 254
    y: 64.77
- type: wire
  points:
  - x: 205.74
    y: 52.07
  - x: 208.28
    y: 52.07
- type: wire
  points:
  - x: 189.23
    y: 88.9
  - x: 189.23
    y: 95.25
- type: wire
  points:
  - x: 232.41
    y: 92.71
  - x: 229.87
    y: 92.71
- type: wire
  points:
  - x: 254
    y: 68.58
  - x: 257.81
    y: 68.58
- type: wire
  points:
  - x: 261.62
    y: 78.74
  - x: 256.54
    y: 78.74
- type: wire
  points:
  - x: 224.79
    y: 52.07
  - x: 224.79
    y: 50.8
- type: wire
  points:
  - x: 204.47
    y: 48.26
  - x: 204.47
    y: 63.5
- type: wire
  points:
  - x: 194.31
    y: 83.82
  - x: 179.07
    y: 83.82
- type: wire
  points:
  - x: 194.31
    y: 88.9
  - x: 189.23
    y: 88.9
- type: wire
  points:
  - x: 226.06
    y: 69.85
  - x: 224.79
    y: 69.85
- type: wire
  points:
  - x: 241.3
    y: 68.58
  - x: 254
    y: 68.58
- type: wire
  points:
  - x: 256.54
    y: 127
  - x: 256.54
    y: 121.92
- type: wire
  points:
  - x: 214.63
    y: 68.58
  - x: 236.22
    y: 68.58
- type: wire
  points:
  - x: 240.03
    y: 71.12
  - x: 257.81
    y: 71.12
- type: wire
  points:
  - x: 204.47
    y: 44.45
  - x: 204.47
    y: 48.26
- type: wire
  points:
  - x: 210.82
    y: 50.8
  - x: 210.82
    y: 52.07
- type: wire
  points:
  - x: 59.69
    y: 68.58
  - x: 71.12
    y: 68.58
- type: wire
  points:
  - x: 208.28
    y: 50.8
  - x: 210.82
    y: 50.8
- type: wire
  points:
  - x: 156.21
    y: 83.82
  - x: 153.67
    y: 83.82
- type: wire
  points:
  - x: 179.07
    y: 95.25
  - x: 179.07
    y: 92.71
- type: wire
  points:
  - x: 161.29
    y: 83.82
  - x: 179.07
    y: 83.82
- type: wire
  points:
  - x: 241.3
    y: 86.36
  - x: 248.92
    y: 86.36
- type: wire
  points:
  - x: 49.53
    y: 33.02
  - x: 64.77
    y: 33.02
- type: wire
  points:
  - x: 270.51
    y: 116.84
  - x: 270.51
    y: 119.38
- type: wire
  points:
  - x: 58.42
    y: 113.03
  - x: 67.31
    y: 113.03
- type: wire
  points:
  - x: 224.79
    y: 91.44
  - x: 229.87
    y: 91.44
- type: wire
  points:
  - x: 153.67
    y: 95.25
  - x: 156.21
    y: 95.25
- type: wire
  points:
  - x: 232.41
    y: 91.44
  - x: 232.41
    y: 92.71
- type: wire
  points:
  - x: 270.51
    y: 138.43
  - x: 270.51
    y: 134.62
- type: wire
  points:
  - x: 57.15
    y: 63.5
  - x: 59.69
    y: 63.5
- type: wire
  points:
  - x: 226.06
    y: 71.12
  - x: 226.06
    y: 69.85
- type: wire
  points:
  - x: 265.43
    y: 127
  - x: 256.54
    y: 127
- type: wire
  points:
  - x: 214.63
    y: 86.36
  - x: 231.14
    y: 86.36
- type: wire
  points:
  - x: 85.09
    y: 55.88
  - x: 85.09
    y: 58.42
- type: wire
  points:
  - x: 276.86
    y: 138.43
  - x: 270.51
    y: 138.43
- type: wire
  points:
  - x: 64.77
    y: 33.02
  - x: 64.77
    y: 48.26
- type: wire
  points:
  - x: 224.79
    y: 88.9
  - x: 224.79
    y: 91.44
- type: wire
  points:
  - x: 71.12
    y: 53.34
  - x: 85.09
    y: 53.34
- type: wire
  points:
  - x: 205.74
    y: 50.8
  - x: 205.74
    y: 52.07
- type: wire
  points:
  - x: 59.69
    y: 60.96
  - x: 71.12
    y: 60.96
- type: wire
  points:
  - x: 229.87
    y: 92.71
  - x: 229.87
    y: 91.44
- type: wire
  points:
  - x: 201.93
    y: 54.61
  - x: 201.93
    y: 52.07
- type: wire
  points:
  - x: 203.2
    y: 50.8
  - x: 205.74
    y: 50.8
- type: wire
  points:
  - x: 82.55
    y: 55.88
  - x: 85.09
    y: 55.88
- type: wire
  points:
  - x: 256.54
    y: 78.74
  - x: 256.54
    y: 81.28
- type: wire
  points:
  - x: 201.93
    y: 63.5
  - x: 201.93
    y: 54.61
- type: wire
  points:
  - x: 57.15
    y: 53.34
  - x: 63.5
    y: 53.34
- type: wire
  points:
  - x: 256.54
    y: 91.44
  - x: 232.41
    y: 91.44
- type: wire
  points:
  - x: 189.23
    y: 95.25
  - x: 179.07
    y: 95.25
- type: wire
  points:
  - x: 224.79
    y: 50.8
  - x: 227.33
    y: 50.8
- type: wire
  points:
  - x: 214.63
    y: 71.12
  - x: 226.06
    y: 71.12
- type: wire
  points:
  - x: 57.15
    y: 55.88
  - x: 74.93
    y: 55.88
- type: wire
  points:
  - x: 256.54
    y: 99.06
  - x: 256.54
    y: 101.6
- type: wire
  points:
  - x: 64.77
    y: 48.26
  - x: 204.47
    y: 48.26
- type: wire
  points:
  - x: 179.07
    y: 83.82
  - x: 179.07
    y: 85.09
- type: wire
  points:
  - x: 153.67
    y: 83.82
  - x: 153.67
    y: 95.25
- type: wire
  points:
  - x: 226.06
    y: 67.31
  - x: 226.06
    y: 64.77
- type: wire
  points:
  - x: 182.88
    y: 78.74
  - x: 194.31
    y: 78.74
- type: wire
  points:
  - x: 224.79
    y: 106.68
  - x: 233.68
    y: 106.68
- type: wire
  points:
  - x: 227.33
    y: 52.07
  - x: 254
    y: 52.07
- type: wire
  points:
  - x: 57.15
    y: 66.04
  - x: 59.69
    y: 66.04
- type: wire
  points:
  - x: 57.15
    y: 60.96
  - x: 59.69
    y: 60.96
- type: wire
  points:
  - x: 59.69
    y: 63.5
  - x: 59.69
    y: 60.96
- type: wire
  points:
  - x: 210.82
    y: 52.07
  - x: 224.79
    y: 52.07
- type: wire
  points:
  - x: 241.3
    y: 106.68
  - x: 248.92
    y: 106.68
- type: wire
  points:
  - x: 276.86
    y: 116.84
  - x: 270.51
    y: 116.84
- type: wire
  points:
  - x: 153.67
    y: 95.25
  - x: 153.67
    y: 97.79
- type: wire
  points:
  - x: 209.55
    y: 48.26
  - x: 209.55
    y: 53.34
- type: wire
  points:
  - x: 231.14
    y: 86.36
  - x: 233.68
    y: 86.36
- type: wire
  points:
  - x: 161.29
    y: 95.25
  - x: 179.07
    y: 95.25
- type: wire
  points:
  - x: 190.5
    y: 54.61
  - x: 190.5
    y: 57.15
- type: wire
  points:
  - x: 59.69
    y: 66.04
  - x: 59.69
    y: 68.58
- type: wire
  points:
  - x: 201.93
    y: 52.07
  - x: 203.2
    y: 52.07
- type: wire
  points:
  - x: 40.64
    y: 113.03
  - x: 53.34
    y: 113.03
- type: wire
  points:
  - x: 227.33
    y: 50.8
  - x: 227.33
    y: 52.07
- type: wire
  points:
  - x: 57.15
    y: 48.26
  - x: 64.77
    y: 48.26
- type: wire
  points:
  - x: 231.14
    y: 99.06
  - x: 256.54
    y: 99.06
- type: wire
  points:
  - x: 201.93
    y: 54.61
  - x: 190.5
    y: 54.61
- type: wire
  points:
  - x: 203.2
    y: 52.07
  - x: 203.2
    y: 50.8
- type: wire
  points:
  - x: 254
    y: 52.07
  - x: 254
    y: 57.15
- type: wire
  points:
  - x: 224.79
    y: 91.44
  - x: 224.79
    y: 106.68
- type: wire
  points:
  - x: 57.15
    y: 68.58
  - x: 59.69
    y: 68.58
- type: wire
  points:
  - x: 226.06
    y: 57.15
  - x: 226.06
    y: 48.26
globalLabels: []
sheetInstances: []
