templates: # defining templates to be used later on
  - &ECU_C1
    type: Molex 643201311
    pinlabels: [Extra Output 5 (Fuelpump), Ignition coil 1, Ignition coil 2, Tachometer, Extra Output 6 (Fan), Ignition coil 3, Ignition coil 4, Extra Output 1, Extra Output 7, Ignition coil 5, Ignition coil 6, Extra output 2,
    Lambda 1 Heat, Ignition coil 7, Ignition coil 8, Extra output 3, CAN H, CAN L, Sheild Ground, Extra Output 4, Coolant Temperature sensor, Air Temperature sensor, Lambda 1 COM, Lambda 1 VS in, 5V Sensor Supply, Throttle sensor,
    Lambda 1 IP, Lambda 1 RCAL, Sensor Ground, Home sensor Ground, Crank Sensor, Home sensor, Extra Temperature sensor 1, Extra Temperature sensor 2, Fuel Pressure, Baro, Injector 1, Injector 2, Digital/VR input 1, Rotor RPM, Injector 8,
    Injector 7, Injector 6, Engine Ground, Injector 3, Injector 4, Injector 5, ECU 12V]
    pins: [A1,A2,A3,A4,B1,B2,B3,B4,C1,C2,C3,C4,D1,D2,D3,D4,E1,E2,E3,E4,F1,F2,F3,F4,G1,G2,G3,G4,H1,H2,H3,H4,J1,J2,J3,J4,K1,K2,K3,K4,L1,L2,L3,L4,M1,M2,M3,M4]
    image:
      src: images\ECU1.png
      caption: Connector 643203311
  - &logic_wire
    category: bundle
    gauge: 18 AWG
  - &power_wire
    category: bundle
    gauge: 14 AWG
  - &Fuel_Inj
    type: 90980-11875
    pins: [1,2]
    pinlabels: [12V, ECU INJ]
    image:
      src: images\90980-11875.png
  - &Coil
    type: Delphi 12162825
    pinlabels: [ECU Sig, Sensor Ground, Head Ground, Battery Ground, Switched 12V]
    pins: [A,B,C,D,E]  
    image:
      src: images\coil.png




connectors:
  ECU:
    <<: *ECU_C1 # copying items from the template
    notes: ECU Connector 1 (GPO Low side!)
  Coil Pack 1:
    <<: *Coil
  Coil Pack 2:
    <<: *Coil
  Coil Pack 3:
    <<: *Coil
  Coil Pack 4:
    <<: *Coil
  LSU:
    type: D261.205.356-01
    pinlabels: [VBO2 VS/O2 In, WBO2 Recal, 12V, WBO2 HTR, WBO2 COM, WBO2 IP]
    pins: [1,2,3,4,5,6]  
    image:
      src: images\LSU.png
  Throttle Servo CAN:
    type: DTM04-3P 
    pins: [1,2,3]
    pinlabels: [CAN+, CAN GND, CAN-]
    notes: Replace bad connector! Mate is DTM06-3S
    image:
      src: images\throttleCAN.png
  # Throttle Servo Power:
  #   type: DTM04-2P
  #   pins: [1,2]
  #   pinlabels: [12V,Ground]
  #   notes: Male is DTM06-2S
  #   image:
  #     src: images\DTM04.png
  Fuel Injector 1:
    <<: *Fuel_Inj
  Fuel Injector 2:
    <<: *Fuel_Inj
  Coolant/Crank Sensor:
    type: Sumitomo 6180-2181
    notes: Find out if this is Crank or Coolant!!!
    pins: [1,2]
    pinlabels: [Sensor+,Sensor GND]
    image:
      src: images\Sum.png
  MAF Sensor:
    type: Bosch 1928405138
    pins: [1,2,3,4,5]
    pinlabels: [NTC-,GND,NTC+,12V,MAF Signal]
    image:
      src: images\MAF.png
      width: 300
  Tachometer:
    type: DT04-3P
    notes: Mates with DT06-3S
    pins: [A,B,C]
    pinlabels: [12V,GND,Out]
    image:
      src: images\DT04-3P.png
  Veronte 1X CAN Bus:
    pins: [A,B,C]
    pinlabels: [CANB_P,CANB_N,CAN_GND]
    type: DT06-3S
    image:
      src: images\DT06-3S.png
      width: 225
  shield1:
    pinlabels: [Shield]
  
  S: &splice  # generic autogenerated splice
    style: simple
    autogenerate: true
    type: splice
  GND: &GND
    style: simple
    autogenerate: true
    type: GND

cables:
  W1:
    <<: *logic_wire
    length: 50 Inches
    colors: [BU,BU,BU,BU,BN]
  W12:
    <<: *logic_wire
    length: 10 Inches
    colors: [BN]
  W13:
    <<: *logic_wire
    length: 10 Inches
    colors: [BN]
  W14:
    <<: *logic_wire
    length: 10 Inches
    colors: [BN]
  # W2:
  #   <<: *logic_wire
  #   length: 0.2
  #   colors: [BU]
  W3:
    <<: *power_wire
    length: 40 Inches
    colors: [GY]
  W4:
    <<: *power_wire
    length: 40 Inches
    colors: [GY]
  W5:
    <<: *logic_wire
    length: 21 Inches
    colors: [BN,GN,YE,WH]
    shield: true
  W6:
    <<: *logic_wire
    length: 21 Inches
    colors: [GN]
  W7:
    <<: *logic_wire
    length: 40 Inches
    colors: [PK,GY,BKWH]
    shield: true
    notes: Twisted Pair | ECU to Veronte
  W8:
    <<: *logic_wire
    length: 33.5 Inches
    colors: [BN,BK]
  W9:
    <<: *logic_wire
    length: 27 Inches
    colors: [BN,BN,BK]
  W10:
    <<: *logic_wire
    length: 37 Inches
    notes: Included cable is of sufficient length.
    colors: [BK]
  W11:
    <<: *logic_wire
    length: 30 Inches
    colors: [YE,GN,BK]
    shield: true
    notes: Twisted Pair | ECU to Servo
  



connections:
  -
    - ECU: [A2]
    - W1: [1]
    - Coil Pack 1: [A]
  -
    - ECU: [A3]
    - W1: [2]
    - Coil Pack 2: [A]
  -
    - ECU: [B2]
    - W1: [3]
    - Coil Pack 3: [A]
  -
    - ECU: [B3]
    - W1: [4]
    - Coil Pack 4: [A]
  -
    - ECU: [H1]
    - W1: [5]
    - Coil Pack 2: [B]
  -
    - W1: [5]
    - [S]
    - W12: [1]
    - Coil Pack 1: [B]
  -
    - W1: [5]
    - [S]
    - W13: [1]
    - Coil Pack 3: [B]
  -
    - W1: [5]
    - [S]
    - W14: [1]
    - Coil Pack 4: [B]
  -
    - ECU: [K1]
    - W3: [1]
    - Fuel Injector 1: [2]
  -
    - ECU: [K2]
    - W4: [1]
    - Fuel Injector 2: [2]
  -
    - ECU: [F4,G4,F3,G3]
    - W5: [1-4]
    - LSU: [1,2,5,6]
  -
    - ECU: [E3]
    - W5: s
  -
    - ECU: [D1]
    - W6: [1]
    - LSU: [4]
  -
    - ECU: [E2,E1,E3]
    - W7: [1-3]
    #- [S,S]
    - Veronte 1X CAN Bus: [B,A,C]
  -
    - ECU: [H1, F1]
    - W8: [1-2]
    - Coolant/Crank Sensor: [2,1]
  -
    - ECU: [H1,H1,F2]
    - W9: [1-3]
    - MAF Sensor: [NTC-,GND,NTC+]
  -
    - ECU: [K4]
    - W10: [1]
    - Tachometer: [Out]
  -
    - ECU: [E3]
    - W7: s
  -
    - W7: [1-3]
    - [S,S,S]
    - W11: [2,1,3]
    - Throttle Servo CAN: [3,1,2]
  -
    - W7: s
    - shield1: [1]
    - W11: s
  -
    - W11: s
    - [GND]