# v3.1 component categories
# disjunct categorization of components.
# each component goes to one category, and category names
# are not duplicated.

# category names like R_... go to rescue kit (the user wants to put in, like matching is needed)
# category names like N_... dropped automatically, 
# use this trick for whatever reasons

# some components (like R..=1G or C..=0) are dropped automatically

# PLEASE DO NOT put 1210 caps with 5V and 16V stress into same category!!

# -----------------
# other SCH-TODO (or categories.txt):
# C72, C80,C88
# check OPA rail caps again... hmm .. shit... what's sitting in the place of 220nF on v3.2 ?
# should these either be bigger to utilize the 1210 pad 
# (10 uF, 35V possible, not cheap though...) or N_ ...
# or place 1uF 1206 (sly sent some)

# we have a nice bead so GND-AGND R148 not needed
[N_MISC]R148 u10 R5 R121 D32 Q19 C61 

# N_IGBT_GATE: N prepended cause I know beforehand they will not be populated
[N_IGBT_GATE2]D19 D18 D33 D34 D30 D26 D20 D11 

# but these will be (I think 1k is always OK for IGBT gate, unlike the FET gates!)
[IGBT_GATE1]R40 R41 R122 R123 R96 R64 R42 R22 

# IGBT gate driver
[IGBT_GATE_DRIVER]U4 C12 C13 R14 R152

# PWM-ing setup inverting FETdriver-setup only: 33 Ohm should
# be perfect for everyone :-)
[FET_GATE]R18 R21 R39 R63 R95 R36 R60 R92

# maybe these will be PNP-d maybe not:
[FET_DRIVER]C20 C24 U3 U6 U8 U9 

# FET_PWM pull up / pull down below AVR + sils:
[FET_PWM]R154 RN1 RN2

# for noninverting FETdriver
[N_FET_PWM]R153 

# P259 driver (misc)
[P259_DRIVER]U20 C41 R117 R151 
[N_P159_PULLUP]R164 R166 R167 R168

# NOT finished!! (and not populated)
[N_MID_OPA]

# AVR: 
[AVR]U1 C28 C29 Y1 C23 C7 C5 C3 R53

# we have separate 78L05:
[N_REGULATORS_THERE]L1 

# ADMUX = ... | _BV(REFS0) eliminates the need:
[N_AVR_AREF]L2

# AVR_ADC bias resistors and RC filters 
[AVR_ADC_BIAS]D1 D2 D3 D4 D5 D40 D41 C6 C8 C9 C10 C49 C63 R7 R8 R11 R12 R126 R138 

[MAT_PULLUP]R10

[CLT_PULLUP]R9

# this would prevent using the pin for general stuff
[R_FUEL_PRESSURE_PULLUP]R136 

[R_EBP_PULLUP]R135 

[N_JPX]JP17 JP18

[AVR_ADC_14V]C4 R13 R6

# MAP sensor and surounding caps: 
[MAP]U2 C11

[N_MAP] C78

# PROTOSPACE 
[PROTOSPACE]R156 R157 R158 R159 R160 R161 R162 R163 R165

# L1: LM1815 trigger1
[L1]U11 R30 R55 R56 R57 R87 R88 C30 C31 C38 C39 SJ1 SJ2 SJ3 SJ6 JP2 JP7 JP8

# L2: LM1815 trigger2
[L2]R48 R58 R59 R89 R90 R91 C40 C32 C33 C34 SJ4 SJ5 SJ7 SJ10 JP5 JP12 JP13

# the 2nd chip not mounted
[N_L2]U12

# should be zener,
[N_VR_ZENER]D14 D27

# even the values are BAD!!!! 10uF 35V would be right 
[N_LMISTIQ]C88 

[LCD5V_DECOUPLE]C89

# VCC important (we might raise capacitance)
[VCC1]C47 C45 C48

# VCC but not very necessary
[VCC2]  

# V33 3.3V regulator + supporters
[N_VCC33]U23 C67

# V5HALL 5.0V regulator + supporters for hall / tps
[V5HALL]U24 C70

# other 5.0V regulators
[V5OTHER]U22 U27 U28 U29

# V5 Main 5.0V regulator (LM7805) and supporters 
[V5]MAIN5V C95 C71 D6 D46 F1 

[N_GND_GND5]D15

[N_V5]L3

# VSS important, min. 25V cap preferred (1210, so OK)
[VSS14]C68 C96

[V_DECOUPLE5V_1206]C95 C82

# still 25V, but let the user
[R_VSS3]C65 C72 C75 C76

# VSS 25V caps but not very necessary at all
[N_VSS2]C37 L4

# K1: knock channel1 could jump in:
[K1]R1 R2 C1

# K2: knock channel2, let the user...
[N_K2]R3 R4 C2
[N_KNOCKNOTUSED]C17
# KC: knock common (will probably be PNP-d)
[KC]C14 R17 C16 C18 C19

# KK: knock kit (sold separately because of the TPIC8101DW chip)
[R_KK]Y2 

[KNOCKCHIP]U5 

# group1: TODO: do we want 1uF at one place and 100n on the other ?
[BYPASS_OPA1]C77 C83

# let's do these too:
[BYPASS_OPA2]C92 C93 C94 C81

# WP1: WBO2 PUMP+ channel1
[WP1]R54 R132 C54 C86

[MATCH_WP1]R32 R46 R35 R49 

[MEASURE_WP510] R51 R29 

# WP2: WBO2 PUMP+ channel2
[WP2]R140 R155 C22 C87

[MATCH_WP2]R31 R28 R34 R33
# WN1: WBO2 NERNST channel1
[WN1]D44 R98 R99 R102 R144 R145 R146 C66

# WN2: WBO2 NERNST channel2
[WN2]D43 R124 R125 R137 R139 R143 C62

# we leave this out so amplification is 1x on nernst2, good for NBO2
[R_DEFAULTNBO2]R103

# WH1: WBO2 heater channel1
[WH1]R133 R134 

[N_WH1]Q18

# WH2: WBO2 heater channel2
[WH2]R119 R120 

[N_WH2]Q14

# WC: WBO2 common PUMP-/2V
[WC]U17 U7 R25 R44 R104 R129 C21 C26 C51 R127

# pump populated WBO2 components (some are 0 in sch and $partvalreplace hack)
[WC_PUMP4V]C50 C52 C53

# EG1: EGT amplifier circuit 1
[EG1_DIV]R83 R84

# EG2: EGT amplifier circuit 2
[EG2_DIV]R81 R82 

[EGT_FILTER]C100 C101

[EGT_STABILIZER]C90 C91

[N_EGTCHIPS]U25 U16 SJ9 SJ8



# EGC: EGT common
[EG2]JP16

# not needed (but short?)
[N_EG1]C44

# not needed (but short?)
[N_EG2]C55

# MAX: MAX232 serial level switcher
[MAX]U19 C56 C57 C58 C59 C60 R52 R111 SV2

[N_VCC_MAX]C73

[R_MAX] SV1
# 1WR: 1 wire circuit
[N_1WR]U21 D42 R141 C64 R147

# MCP: MCP3208 external adc
[MCP3208]U14 C27 

[MCP3208_5V]C80 

# these are custom
[R_MCP3208] R85 R86 JP10 JP11 JP15

# DIFA: Differential opamp circuit A (mid-opa)
[N_DIFA]U13 C42 R97 R66 R67 R68 R100 R101 R150 JP14

# DIFB: Differential opamp circuit B (mid-opa)
[N_DIFB]C35 R75 R76 R71 R72 R79 R80 R106 JP9

# DIFD: Differential opamp circuit D (mid-opa)
[N_DIFD]D22 C36 R45 R47 R73 R74 R77 R78 R50

# DIFE: Differential opamp circuit E 
[N_DIFE]D55 C43 R105 R107 R108 R109 R128 R130 R131

# SIMP_AMP: Simple output opamp circuit (U13C) 
[N_DIFE_TODO]C25 R43 R65 R69 R70

# VOLT_OUT: Voltage output opamp circuit (U7C) 
[N_DIFE_TODO2]C15 C85 R15 R16 R23 R24 R26 R27

# STEPPER: Stepper driver and helpers (C259)  
[STEPPER]U15 U18 C46 D47 D48 D49 D50 D51 D52 53 R149 R110 S259_OUT1 S259_OUT2

# LCD: LCD header and buffer  
[LCD]IC1 R112 R169 R172 JP_LCD

# PS2: PS2 header and cap  
[PS2]C84 JP_PS1

# ISP: ISP and CAN header  
[PS2]JP_ISPI JP3 JP4

# RESCUE will have other added values too (that are not on the schematic)!!
[RESCUE]

# the caps (C..) from the RESCUE will be automatically split to RESCUE2 
# (because they must be keyed)

# D: serius DOUBT
[DOUBT]D45

# ANYTHING BELOW is relatively new, a review would NOT HURT:
# TO220 IGBT-s
[N_IGBT]Q16 Q15 Q21 Q9 Q3 Q20 Q12 Q6

[N_FET]Q8 Q1 Q11 Q5 Q7 Q10 Q4 Q2

[MIDOPA_MCP3208PROTECT]D13

[N_MCP809]U26 U10

[DECOUPLE_14V]C98 C99

[DECOUPLE_5V]C73 C74 C79 C97 

[PWMING]R171 R180 R176 R178 R179 R174 R177 R175

[DFLYBACK]D16 D7 D29 D10 D8 D17 D28 D25

[EXTRAFET]R113 R114 R115 R116

[N_LEDPULLEUPDRUNKJORGEN]R118 R173


# ======== Mechanical gismos:
[N_PICkANDPLACEPOINT]PICKB2 PICKR1 PICKB1 PICKR2

[N_ECONOSEAL_III_18]$$U$1

[N_ECONOSEAL_III_36]U$2


[N_MOUNT]H1 H2 H3 H4

# ===================
# TRACE-replace thingy:
[N_SMD_PAD]U$4 U$3

[N_FLYBACkDIODEPAD]D21 D31 D12 D9 D36 D35

[N_PROTECTGND5] R170

# ===== PADs:
[WIREPAD]3.3V

[N_PAD2]L3_2 L3_1

[N_SUPPLYPAD]AGND_PAD1 JP6 JP19 AGND_PAD2 VOUT AGND_PAD4 GND_REF


[N_KNOCKPAD]KNOCK2 KNOCK1 KNOCK_GND
# ========HEADER:

[R_HEADER1]JP1

[R_SV1]SV1

# ========================
# user will want diodes (0.7V or 6.8V or 20V not resistors:
[N_SMB_FLYBACKD]R19 R20 R37 R38 R61 R62 R93 R94

# TPS5V derived from HALL5V: C69, R142 (270 Ohm, 220nF supply for TPS derived from HALL)
# let's allow the pin to be used for input, don't populate
[N_ALLOWINPUT]C69 R142

[TRANSIENTDIODE]U$5

# they didn't arrive :-( (also, some will want IGBT)
[N_EXTRAFET]T1 T2

[N_LEDS]LED1 LED2

[N_HEATERFET]Q14 Q18



