(kicad_pcb (version 20171130) (host pcbnew "(5.1.9)-1")
  (general
    (thickness 1.6)
    (drawings 18)
    (tracks 136)
    (zones 0)
    (modules 26)
    (nets 29)
  )
  (page A4)
  (layers
    (0 F.Cu signal)
    (31 B.Cu signal)
    (32 B.Adhes user hide)
    (33 F.Adhes user hide)
    (34 B.Paste user hide)
    (35 F.Paste user)
    (36 B.SilkS user)
    (37 F.SilkS user)
    (38 B.Mask user hide)
    (39 F.Mask user)
    (40 Dwgs.User user)
    (41 Cmts.User user)
    (42 Eco1.User user)
    (43 Eco2.User user)
    (44 Edge.Cuts user)
    (45 Margin user)
    (46 B.CrtYd user hide)
    (47 F.CrtYd user hide)
    (48 B.Fab user hide)
    (49 F.Fab user hide)
  )
  (setup
    (last_trace_width 0.2)
    (user_trace_width 0.16)
    (user_trace_width 0.2)
    (user_trace_width 0.25)
    (user_trace_width 0.5)
    (trace_clearance 0.1524)
    (zone_clearance 0.3)
    (zone_45_only no)
    (trace_min 0.1524)
    (via_size 0.7)
    (via_drill 0.3)
    (via_min_size 0.508)
    (via_min_drill 0.254)
    (user_via 0.508 0.254)
    (user_via 0.6 0.3)
    (user_via 0.8 0.4)
    (uvia_size 0.3)
    (uvia_drill 0.1)
    (uvias_allowed no)
    (uvia_min_size 0.2)
    (uvia_min_drill 0.1)
    (edge_width 0.05)
    (segment_width 0.2)
    (pcb_text_width 0.3)
    (pcb_text_size 1.5 1.5)
    (mod_edge_width 0.12)
    (mod_text_size 0.6 0.6)
    (mod_text_width 0.09)
    (pad_size 0.5 0.5)
    (pad_drill 0)
    (pad_to_mask_clearance 0.03)
    (pad_to_paste_clearance -0.025)
    (aux_axis_origin 0 0)
    (grid_origin 40 0)
    (visible_elements 7FFFFF6F)
    (pcbplotparams
      (layerselection 0x010fc_ffffffff)
      (usegerberextensions false)
      (usegerberattributes true)
      (usegerberadvancedattributes true)
      (creategerberjobfile true)
      (excludeedgelayer true)
      (linewidth 0.100000)
      (plotframeref false)
      (viasonmask false)
      (mode 1)
      (useauxorigin false)
      (hpglpennumber 1)
      (hpglpenspeed 20)
      (hpglpendiameter 15.000000)
      (psnegative false)
      (psa4output false)
      (plotreference true)
      (plotvalue true)
      (plotinvisibletext false)
      (padsonsilk false)
      (subtractmaskfromsilk false)
      (outputformat 1)
      (mirror false)
      (drillshape 1)
      (scaleselection 1)
      (outputdirectory ""))
  )
  (net 0 "")
  (net 1 GND)
  (net 2 AUX_B)
  (net 3 +BATT)
  (net 4 AUX_G)
  (net 5 LED-)
  (net 6 AUX_R)
  (net 7 UDPI)
  (net 8 /OPAout)
  (net 9 /Vsense)
  (net 10 /G_Q1)
  (net 11 EN)
  (net 12 HDR)
  (net 13 S)
  (net 14 /Vset)
  (net 15 /In-)
  (net 16 "Net-(Q2-Pad1)")
  (net 17 DAC)
  (net 18 VCC)
  (net 19 "Net-(U1-Pad1)")
  (net 20 "Net-(U1-Pad2)")
  (net 21 "Net-(U1-Pad5)")
  (net 22 "Net-(U1-Pad6)")
  (net 23 "Net-(U1-Pad8)")
  (net 24 "Net-(U1-Pad9)")
  (net 25 "Net-(U1-Pad14)")
  (net 26 "Net-(U1-Pad17)")
  (net 27 "Net-(U1-Pad18)")
  (net 28 "Net-(U1-Pad20)")
  (net_class Default "This is the default net class."
    (clearance 0.1524)
    (trace_width 0.1524)
    (via_dia 0.7)
    (via_drill 0.3)
    (uvia_dia 0.3)
    (uvia_drill 0.1)
    (add_net +BATT)
    (add_net /G_Q1)
    (add_net /In-)
    (add_net /OPAout)
    (add_net /Vsense)
    (add_net /Vset)
    (add_net AUX_B)
    (add_net AUX_G)
    (add_net AUX_R)
    (add_net DAC)
    (add_net EN)
    (add_net GND)
    (add_net HDR)
    (add_net LED-)
    (add_net "Net-(Q2-Pad1)")
    (add_net "Net-(U1-Pad1)")
    (add_net "Net-(U1-Pad14)")
    (add_net "Net-(U1-Pad17)")
    (add_net "Net-(U1-Pad18)")
    (add_net "Net-(U1-Pad2)")
    (add_net "Net-(U1-Pad20)")
    (add_net "Net-(U1-Pad5)")
    (add_net "Net-(U1-Pad6)")
    (add_net "Net-(U1-Pad8)")
    (add_net "Net-(U1-Pad9)")
    (add_net S)
    (add_net UDPI)
    (add_net VCC)
  )
  (module 04_Mosfet:Infineon_PQFN3.3x3.3-TSDSON-8_3.3mmx3.3mm (layer F.Cu) (tedit 6130B2E1)
    (at -6.7 -1.8 73)
    (attr smd)
    (fp_text reference Q2 (at 2.407274 -1.258823 73) (layer F.SilkS))
    (fp_text value DMN22M5UFG (at 2 2.656398 73) (layer F.Fab))
    (pad 3 smd custom (at -1.4 -0.325 73) (size 0.8 0.34) (layers F.Cu F.Mask)
      (net 1 GND) (zone_connect 2)
      (options (clearance outline) (anchor rect))
      (primitives
        (gr_poly (pts
           (xy 0.41 0.825) (xy -0.5 0.825) (xy -0.5 0.475) (xy -0.1 0.475) (xy -0.1 0.175)
           (xy -0.5 0.175) (xy -0.5 -0.175) (xy -0.1 -0.175) (xy -0.1 -0.475) (xy -0.5 -0.475)
           (xy -0.5 -0.825) (xy 0.41 -0.825)) (width 0))
      ))
    (pad 1 smd custom (at 0 0 73) (size 0.5 0.5) (layers F.Cu F.Mask)
      (net 16 "Net-(Q2-Pad1)") (zone_connect 2)
      (options (clearance outline) (anchor rect))
      (primitives
        (gr_poly (pts
           (xy -0.49 -1.15) (xy 1.9 -1.15) (xy 1.9 -0.8) (xy 1.3 -0.8) (xy 1.3 -0.5)
           (xy 1.9 -0.5) (xy 1.9 -0.15) (xy 1.3 -0.15) (xy 1.3 0.15) (xy 1.9 0.15)
           (xy 1.9 0.5) (xy 1.3 0.5) (xy 1.3 0.8) (xy 1.9 0.8) (xy 1.9 1.15)
           (xy -0.49 1.15)) (width 0))
      ))
    (pad 2 smd rect (at -1.45 0.975 73) (size 0.9 0.35) (layers F.Cu F.Mask)
      (net 12 HDR))
    (model "Z:/PCB/3D models/TSDSON-8/PG-TSDSON-8-1 nomarkings.STEP"
      (at (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz -90 0 180))
    )
  )
  (module 04_Mosfet:SOT-416 (layer F.Cu) (tedit 612D3AC8)
    (at 7.2 0.6 180)
    (descr "SOT-416, https://www.nxp.com/docs/en/package-information/SOT416.pdf")
    (tags SOT-416)
    (attr smd)
    (fp_text reference Q3 (at 0 1.5) (layer F.SilkS))
    (fp_text value Q_PMOS (at 0 2.25) (layer F.Fab))
    (fp_text user %R (at 0 0 90) (layer F.Fab))
    (pad 3 smd rect (at 0.65 0 180) (size 0.6 0.5) (layers F.Cu F.Paste F.Mask)
      (net 3 +BATT))
    (pad 2 smd rect (at -0.65 0.5 180) (size 0.6 0.5) (layers F.Cu F.Paste F.Mask)
      (net 18 VCC))
    (pad 1 smd rect (at -0.65 -0.5 180) (size 0.6 0.5) (layers F.Cu F.Paste F.Mask)
      (net 1 GND))
    (model ${KISYS3DMOD}/Package_TO_SOT_SMD.3dshapes/SOT-416.wrl
      (at (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
    (model "Z:/PCB/3D models/transistor/SOT-416-3.step"
      (at (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 90))
    )
  )
  (module 03_wirepad:Wirepad_D2.2mm (layer F.Cu) (tedit 611BEDB0)
    (at 3.9 0.3)
    (descr "SMD pad as test Point, diameter 1.0mm")
    (tags "test point SMD pad")
    (attr virtual)
    (fp_text reference L+1 (at -0.1 -1.848) (layer F.SilkS) hide)
    (fp_text value pad (at 0 1.55) (layer F.Fab))
    (fp_text user %R (at -0.1 -1.85) (layer F.Fab))
    (pad 1 smd circle (at 0 0) (size 2.2 2.2) (layers F.Cu F.Mask)
      (net 3 +BATT))
  )
  (module 03_wirepad:Wirepad_D2.5mm (layer F.Cu) (tedit 607F30F6)
    (at 4.3 -4.7)
    (descr "SMD pad as test Point, diameter 1.0mm")
    (tags "test point SMD pad")
    (attr virtual)
    (fp_text reference L-1 (at -0.1 -1.848) (layer F.SilkS) hide)
    (fp_text value pad (at 0 1.55) (layer F.Fab))
    (fp_text user %R (at -0.1 -1.85) (layer F.Fab))
    (pad 1 smd circle (at 0 0) (size 2.5 2.5) (layers F.Cu F.Mask)
      (net 5 LED-))
  )
  (module 04_Mosfet:LFPAK56_modif (layer F.Cu) (tedit 612B75FD)
    (at 0.8 -5.3)
    (descr "LFPAK56 https://assets.nexperia.com/documents/outline-drawing/SOT669.pdf")
    (tags "LFPAK56 SOT-669 Power-SO8")
    (solder_paste_margin -0.05)
    (attr smd)
    (fp_text reference Q1 (at -3 -2.8) (layer F.SilkS))
    (fp_text value PSMN0R925YLC (at -0.245 3.52) (layer F.Fab))
    (fp_text user %R (at 0 0 90) (layer F.Fab))
    (pad 5 smd custom (at 0.435 0) (size 3.3 4.2) (layers F.Cu F.Mask)
      (net 5 LED-) (zone_connect 2)
      (options (clearance outline) (anchor rect))
      (primitives
        (gr_poly (pts
           (xy 1.425 -2.35) (xy 2.775 -2.35) (xy 2.975 -2.15) (xy 2.975 2.15) (xy 2.775 2.35)
           (xy 1.425 2.35)) (width 0))
      ))
    (pad "" smd rect (at 0.185 0) (size 0.6 0.9) (layers F.Paste))
    (pad "" smd rect (at 2.885 0.6 270) (size 0.6 0.9) (layers F.Paste))
    (pad 4 smd rect (at -2.835 1.91 270) (size 0.7 1.15) (layers F.Cu F.Paste F.Mask)
      (net 10 /G_Q1) (solder_paste_margin -0.05))
    (pad 3 smd rect (at -2.835 0.64 270) (size 0.7 1.15) (layers F.Cu F.Paste F.Mask)
      (net 9 /Vsense) (solder_paste_margin -0.05))
    (pad 1 smd rect (at -2.835 -1.91 270) (size 0.7 1.15) (layers F.Cu F.Paste F.Mask)
      (net 9 /Vsense) (solder_paste_margin -0.05))
    (pad 2 smd rect (at -2.835 -0.64 270) (size 0.7 1.15) (layers F.Cu F.Paste F.Mask)
      (net 9 /Vsense) (solder_paste_margin -0.05))
    (pad "" smd rect (at 2.885 -0.6 270) (size 0.6 0.9) (layers F.Paste))
    (pad "" smd rect (at 2.885 1.88 270) (size 0.6 0.9) (layers F.Paste))
    (pad "" smd rect (at 2.885 -1.88 270) (size 0.6 0.9) (layers F.Paste))
    (pad "" smd rect (at -0.665 0) (size 0.6 0.9) (layers F.Paste))
    (pad "" smd rect (at 1.035 0) (size 0.6 0.9) (layers F.Paste))
    (pad "" smd rect (at 1.035 1.15) (size 0.6 0.9) (layers F.Paste))
    (pad "" smd rect (at -0.665 1.15) (size 0.6 0.9) (layers F.Paste))
    (pad "" smd rect (at 0.185 1.15) (size 0.6 0.9) (layers F.Paste))
    (pad "" smd rect (at 1.035 -1.15) (size 0.6 0.9) (layers F.Paste))
    (pad "" smd rect (at -0.665 -1.15) (size 0.6 0.9) (layers F.Paste))
    (pad "" smd rect (at 0.185 -1.15) (size 0.6 0.9) (layers F.Paste))
    (model ${KISYS3DMOD}/Package_TO_SOT_SMD.3dshapes/LFPAK56.wrl
      (at (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (module 07_Passive:R_1206_3216Metric_2x1.75mm_gap0.8 (layer F.Cu) (tedit 612B6E53)
    (at -4.7 -4.8 180)
    (descr "Resistor SMD 1206 (3216 Metric), square (rectangular) end terminal, IPC_7351 nominal, (Body size source: IPC-SM-782 page 72, https://www.pcb-3d.com/wordpress/wp-content/uploads/ipc-sm-782a_amendment_1_and_2.pdf), generated with kicad-footprint-generator")
    (tags resistor)
    (solder_paste_margin -0.07)
    (attr smd)
    (fp_text reference R5 (at 1.3 1.3) (layer F.SilkS))
    (fp_text value 8m (at 0 1.82) (layer F.Fab))
    (fp_text user %R (at 0 0) (layer F.Fab))
    (pad 2 smd roundrect (at 1.2 0 180) (size 1.6 1.75) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.222)
      (net 16 "Net-(Q2-Pad1)"))
    (pad 1 smd roundrect (at -1.2 0 180) (size 1.6 1.75) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.222)
      (net 9 /Vsense))
    (model ${KISYS3DMOD}/Resistor_SMD.3dshapes/R_1206_3216Metric.wrl
      (at (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (module 05_IC_divers:VQFN-20-1EP_3x3mm_P0.4mm_EP1.7x1.7mm_bettersilk (layer F.Cu) (tedit 612AA6A0)
    (at 3.8 5.4 180)
    (descr "VQFN, 20 Pin (http://ww1.microchip.com/downloads/en/DeviceDoc/20%20Lead%20VQFN%203x3x0_9mm_1_7EP%20U2B%20C04-21496a.pdf), generated with kicad-footprint-generator ipc_noLead_generator.py")
    (tags "VQFN NoLead")
    (attr smd)
    (fp_text reference U1 (at -0.8 2.6) (layer F.SilkS))
    (fp_text value ATtiny1616-M (at 0 2.8) (layer F.Fab))
    (fp_text user %R (at 0 0) (layer F.Fab))
    (pad 1 smd custom (at -1.45 -0.8 180) (size 0.143431 0.143431) (layers F.Cu F.Paste F.Mask)
      (net 19 "Net-(U1-Pad1)")
      (options (clearance outline) (anchor circle))
      (primitives
        (gr_poly (pts
           (xy -0.35 -0.05) (xy 0.299289 -0.05) (xy 0.35 0.000711) (xy 0.35 0.05) (xy -0.35 0.05)
) (width 0.1))
      ))
    (pad 2 smd roundrect (at -1.45 -0.4 180) (size 0.8 0.2) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.25)
      (net 20 "Net-(U1-Pad2)"))
    (pad 3 smd roundrect (at -1.45 0 180) (size 0.8 0.2) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.25)
      (net 1 GND) (solder_mask_margin 0.01))
    (pad 4 smd roundrect (at -1.45 0.4 180) (size 0.8 0.2) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.25)
      (net 18 VCC))
    (pad 5 smd custom (at -1.45 0.8 180) (size 0.143431 0.143431) (layers F.Cu F.Paste F.Mask)
      (net 21 "Net-(U1-Pad5)")
      (options (clearance outline) (anchor circle))
      (primitives
        (gr_poly (pts
           (xy -0.35 -0.05) (xy 0.35 -0.05) (xy 0.35 -0.000711) (xy 0.299289 0.05) (xy -0.35 0.05)
) (width 0.1))
      ))
    (pad 6 smd custom (at -0.8 1.45 180) (size 0.143431 0.143431) (layers F.Cu F.Paste F.Mask)
      (net 22 "Net-(U1-Pad6)")
      (options (clearance outline) (anchor circle))
      (primitives
        (gr_poly (pts
           (xy -0.05 -0.299289) (xy 0.000711 -0.35) (xy 0.05 -0.35) (xy 0.05 0.35) (xy -0.05 0.35)
) (width 0.1))
      ))
    (pad 7 smd roundrect (at -0.4 1.45 180) (size 0.2 0.8) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.25)
      (net 17 DAC))
    (pad 8 smd roundrect (at 0 1.45 180) (size 0.2 0.8) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.25)
      (net 23 "Net-(U1-Pad8)"))
    (pad 9 smd roundrect (at 0.4 1.45 180) (size 0.2 0.8) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.25)
      (net 24 "Net-(U1-Pad9)"))
    (pad 10 smd custom (at 0.8 1.45 180) (size 0.143431 0.143431) (layers F.Cu F.Paste F.Mask)
      (net 11 EN)
      (options (clearance outline) (anchor circle))
      (primitives
        (gr_poly (pts
           (xy -0.05 -0.35) (xy -0.000711 -0.35) (xy 0.05 -0.299289) (xy 0.05 0.35) (xy -0.05 0.35)
) (width 0.1))
      ))
    (pad 11 smd custom (at 1.45 0.8 180) (size 0.143431 0.143431) (layers F.Cu F.Paste F.Mask)
      (net 6 AUX_R)
      (options (clearance outline) (anchor circle))
      (primitives
        (gr_poly (pts
           (xy -0.35 -0.05) (xy 0.35 -0.05) (xy 0.35 0.05) (xy -0.299289 0.05) (xy -0.35 -0.000711)
) (width 0.1))
      ))
    (pad 12 smd roundrect (at 1.45 0.4 180) (size 0.8 0.2) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.25)
      (net 2 AUX_B))
    (pad 13 smd roundrect (at 1.45 0 180) (size 0.8 0.2) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.25)
      (net 4 AUX_G))
    (pad 14 smd roundrect (at 1.45 -0.4 180) (size 0.8 0.2) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.25)
      (net 25 "Net-(U1-Pad14)"))
    (pad 15 smd custom (at 1.45 -0.8 180) (size 0.143431 0.143431) (layers F.Cu F.Paste F.Mask)
      (net 13 S)
      (options (clearance outline) (anchor circle))
      (primitives
        (gr_poly (pts
           (xy -0.35 0.000711) (xy -0.299289 -0.05) (xy 0.35 -0.05) (xy 0.35 0.05) (xy -0.35 0.05)
) (width 0.1))
      ))
    (pad 16 smd custom (at 0.8 -1.45 180) (size 0.143431 0.143431) (layers F.Cu F.Paste F.Mask)
      (net 12 HDR)
      (options (clearance outline) (anchor circle))
      (primitives
        (gr_poly (pts
           (xy -0.05 -0.35) (xy 0.05 -0.35) (xy 0.05 0.299289) (xy -0.000711 0.35) (xy -0.05 0.35)
) (width 0.1))
      ))
    (pad 17 smd roundrect (at 0.4 -1.45 180) (size 0.2 0.8) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.25)
      (net 26 "Net-(U1-Pad17)"))
    (pad 18 smd roundrect (at 0 -1.45 180) (size 0.2 0.8) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.25)
      (net 27 "Net-(U1-Pad18)"))
    (pad 19 smd roundrect (at -0.4 -1.45 180) (size 0.2 0.8) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.25)
      (net 7 UDPI))
    (pad 20 smd custom (at -0.8 -1.45 180) (size 0.143431 0.143431) (layers F.Cu F.Paste F.Mask)
      (net 28 "Net-(U1-Pad20)")
      (options (clearance outline) (anchor circle))
      (primitives
        (gr_poly (pts
           (xy -0.05 -0.35) (xy 0.05 -0.35) (xy 0.05 0.35) (xy 0.000711 0.35) (xy -0.05 0.299289)
) (width 0.1))
      ))
    (pad 21 smd rect (at 0 0 180) (size 1.7 1.7) (layers F.Cu F.Mask)
      (net 1 GND) (solder_mask_margin 0.01))
    (pad "" smd roundrect (at -0.425 -0.425 180) (size 0.69 0.69) (layers F.Paste) (roundrect_rratio 0.25))
    (pad "" smd roundrect (at -0.425 0.425 180) (size 0.69 0.69) (layers F.Paste) (roundrect_rratio 0.25))
    (pad "" smd roundrect (at 0.425 -0.425 180) (size 0.69 0.69) (layers F.Paste) (roundrect_rratio 0.25))
    (pad "" smd roundrect (at 0.425 0.425 180) (size 0.69 0.69) (layers F.Paste) (roundrect_rratio 0.25))
    (model ${KISYS3DMOD}/Package_DFN_QFN.3dshapes/VQFN-20-1EP_3x3mm_P0.4mm_EP1.7x1.7mm.wrl
      (at (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
    (model "Z:/PCB/3D models/VQFN-20 3x3mm/VQFN20_3X3_MCH.step"
      (at (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (module 03_wirepad:Wirepad_D0.8mm_Through-hole0.4mm (layer B.Cu) (tedit 60818AA3)
    (at 0.77 6.1)
    (descr "SMD pad as test Point, diameter 1.0mm")
    (tags "test point SMD pad")
    (attr virtual)
    (fp_text reference UD1 (at 0 1.448) (layer B.SilkS) hide)
    (fp_text value pad (at 0 -1.55) (layer B.Fab))
    (fp_text user %R (at 0 1.45) (layer B.Fab))
    (pad 1 thru_hole circle (at 0 0) (size 0.8 0.8) (drill 0.4) (layers *.Cu *.Mask)
      (net 7 UDPI))
  )
  (module 07_Passive:R_0603_1608Metric_2.2x0.9mm_gap0.6 (layer F.Cu) (tedit 611D6735)
    (at -4.3 -6.6 180)
    (descr "Resistor SMD 0603 (1608 Metric), square (rectangular) end terminal, IPC_7351 nominal, (Body size source: IPC-SM-782 page 72, https://www.pcb-3d.com/wordpress/wp-content/uploads/ipc-sm-782a_amendment_1_and_2.pdf), generated with kicad-footprint-generator")
    (tags resistor)
    (attr smd)
    (fp_text reference R6 (at -0.9 1) (layer F.SilkS))
    (fp_text value 11 (at 0.05 4.25) (layer F.Fab))
    (fp_text user %R (at 0 0) (layer F.Fab))
    (pad 1 smd roundrect (at -0.7 0 180) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.188)
      (net 9 /Vsense))
    (pad 2 smd roundrect (at 0.7 0 180) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.188)
      (net 1 GND))
    (model ${KISYS3DMOD}/Resistor_SMD.3dshapes/R_0603_1608Metric.wrl
      (at (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (module 07_Passive:R_0603_1608Metric_2.2x0.9mm_gap0.6 (layer F.Cu) (tedit 611D6735)
    (at -4 -0.1)
    (descr "Resistor SMD 0603 (1608 Metric), square (rectangular) end terminal, IPC_7351 nominal, (Body size source: IPC-SM-782 page 72, https://www.pcb-3d.com/wordpress/wp-content/uploads/ipc-sm-782a_amendment_1_and_2.pdf), generated with kicad-footprint-generator")
    (tags resistor)
    (attr smd)
    (fp_text reference R4 (at -1.7 1) (layer F.SilkS))
    (fp_text value 10k (at 0.05 4.25) (layer F.Fab))
    (fp_text user %R (at 0 0) (layer F.Fab))
    (pad 1 smd roundrect (at -0.7 0) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.188)
      (net 9 /Vsense))
    (pad 2 smd roundrect (at 0.7 0) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.188)
      (net 15 /In-))
    (model ${KISYS3DMOD}/Resistor_SMD.3dshapes/R_0603_1608Metric.wrl
      (at (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (module 07_Passive:R_0603_1608Metric_2.2x0.9mm_gap0.6 (layer F.Cu) (tedit 611D6735)
    (at -3 -1.8)
    (descr "Resistor SMD 0603 (1608 Metric), square (rectangular) end terminal, IPC_7351 nominal, (Body size source: IPC-SM-782 page 72, https://www.pcb-3d.com/wordpress/wp-content/uploads/ipc-sm-782a_amendment_1_and_2.pdf), generated with kicad-footprint-generator")
    (tags resistor)
    (attr smd)
    (fp_text reference R3 (at -0.4 -1.1) (layer F.SilkS))
    (fp_text value 3.3k (at 0.05 4.25) (layer F.Fab))
    (fp_text user %R (at 0 0) (layer F.Fab))
    (pad 1 smd roundrect (at -0.7 0) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.188)
      (net 10 /G_Q1))
    (pad 2 smd roundrect (at 0.7 0) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.188)
      (net 8 /OPAout))
    (model ${KISYS3DMOD}/Resistor_SMD.3dshapes/R_0603_1608Metric.wrl
      (at (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (module 07_Passive:R_0603_1608Metric_2.2x0.9mm_gap0.6 (layer F.Cu) (tedit 611D6735)
    (at -2.4 2.8 180)
    (descr "Resistor SMD 0603 (1608 Metric), square (rectangular) end terminal, IPC_7351 nominal, (Body size source: IPC-SM-782 page 72, https://www.pcb-3d.com/wordpress/wp-content/uploads/ipc-sm-782a_amendment_1_and_2.pdf), generated with kicad-footprint-generator")
    (tags resistor)
    (attr smd)
    (fp_text reference R2 (at -0.4 -1.05) (layer F.SilkS))
    (fp_text value 3.3k (at 0.05 4.25) (layer F.Fab))
    (fp_text user %R (at 0 0) (layer F.Fab))
    (pad 1 smd roundrect (at -0.7 0 180) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.188)
      (net 14 /Vset))
    (pad 2 smd roundrect (at 0.7 0 180) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.188)
      (net 1 GND))
    (model ${KISYS3DMOD}/Resistor_SMD.3dshapes/R_0603_1608Metric.wrl
      (at (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (module 07_Passive:R_0603_1608Metric_2.2x0.9mm_gap0.6 (layer F.Cu) (tedit 611D6735)
    (at 0.3 2.8)
    (descr "Resistor SMD 0603 (1608 Metric), square (rectangular) end terminal, IPC_7351 nominal, (Body size source: IPC-SM-782 page 72, https://www.pcb-3d.com/wordpress/wp-content/uploads/ipc-sm-782a_amendment_1_and_2.pdf), generated with kicad-footprint-generator")
    (tags resistor)
    (attr smd)
    (fp_text reference R1 (at 0 1.1) (layer F.SilkS))
    (fp_text value 169k (at 0.05 4.25) (layer F.Fab))
    (fp_text user %R (at 0 0) (layer F.Fab))
    (pad 1 smd roundrect (at -0.7 0) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.188)
      (net 14 /Vset))
    (pad 2 smd roundrect (at 0.7 0) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.188)
      (net 17 DAC))
    (model ${KISYS3DMOD}/Resistor_SMD.3dshapes/R_0603_1608Metric.wrl
      (at (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (module 07_Passive:C_0603_1608Metric_2.2x0.9mm_gap0.6 (layer F.Cu) (tedit 611D6786)
    (at -4.6 2.1 270)
    (descr "Capacitor SMD 0603 (1608 Metric), square (rectangular) end terminal, IPC_7351 nominal, (Body size source: IPC-SM-782 page 76, https://www.pcb-3d.com/wordpress/wp-content/uploads/ipc-sm-782a_amendment_1_and_2.pdf), generated with kicad-footprint-generator")
    (tags capacitor)
    (attr smd)
    (fp_text reference C3 (at 0.8 0.9 90) (layer F.SilkS))
    (fp_text value 100n (at 0 2.35 90) (layer F.Fab))
    (fp_text user %R (at 0 0 90) (layer F.Fab))
    (pad 1 smd roundrect (at -0.7 0 270) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.188)
      (net 11 EN))
    (pad 2 smd roundrect (at 0.7 0 270) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.188)
      (net 1 GND))
    (model ${KISYS3DMOD}/Capacitor_SMD.3dshapes/C_0603_1608Metric.wrl
      (at (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (module 07_Passive:C_0603_1608Metric_2.2x0.9mm_gap0.6 (layer F.Cu) (tedit 611D6786)
    (at -0.3 -1.7)
    (descr "Capacitor SMD 0603 (1608 Metric), square (rectangular) end terminal, IPC_7351 nominal, (Body size source: IPC-SM-782 page 76, https://www.pcb-3d.com/wordpress/wp-content/uploads/ipc-sm-782a_amendment_1_and_2.pdf), generated with kicad-footprint-generator")
    (tags capacitor)
    (attr smd)
    (fp_text reference C4 (at 1.8 0) (layer F.SilkS))
    (fp_text value 1n (at 0 2.35) (layer F.Fab))
    (fp_text user %R (at 0 0) (layer F.Fab))
    (pad 1 smd roundrect (at -0.7 0) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.188)
      (net 8 /OPAout))
    (pad 2 smd roundrect (at 0.7 0) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.188)
      (net 15 /In-))
    (model ${KISYS3DMOD}/Capacitor_SMD.3dshapes/C_0603_1608Metric.wrl
      (at (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (module 07_Passive:C_0603_1608Metric_2.2x0.9mm_gap0.6 (layer F.Cu) (tedit 611D6786)
    (at 7 3.4 270)
    (descr "Capacitor SMD 0603 (1608 Metric), square (rectangular) end terminal, IPC_7351 nominal, (Body size source: IPC-SM-782 page 76, https://www.pcb-3d.com/wordpress/wp-content/uploads/ipc-sm-782a_amendment_1_and_2.pdf), generated with kicad-footprint-generator")
    (tags capacitor)
    (attr smd)
    (fp_text reference C1 (at -0.5 1.1 90) (layer F.SilkS))
    (fp_text value 1u (at 0 2.35 90) (layer F.Fab))
    (fp_text user %R (at 0 0 90) (layer F.Fab))
    (pad 1 smd roundrect (at -0.7 0 270) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.188)
      (net 18 VCC))
    (pad 2 smd roundrect (at 0.7 0 270) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask) (roundrect_rratio 0.188)
      (net 1 GND))
    (model ${KISYS3DMOD}/Capacitor_SMD.3dshapes/C_0603_1608Metric.wrl
      (at (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (module 03_wirepad:Wirepad_D10.5mm (layer B.Cu) (tedit 610E7F0A)
    (at 0 0)
    (descr "SMD pad as test Point, diameter 1.0mm")
    (tags "test point SMD pad")
    (solder_mask_margin 0.01)
    (clearance 0.3)
    (attr virtual)
    (fp_text reference BATT1 (at -0.1 1.848) (layer B.SilkS) hide)
    (fp_text value pad (at 0 -1.55) (layer B.Fab))
    (fp_text user %R (at 0 -0.1) (layer B.Fab))
    (pad 1 smd circle (at 0 0) (size 10.5 10.5) (layers B.Cu B.Mask)
      (net 3 +BATT))
  )
  (module Package_TO_SOT_SMD:SOT-353_SC-70-5 (layer F.Cu) (tedit 61111EF1)
    (at -0.9 0.5 180)
    (descr "SOT-353, SC-70-5")
    (tags "SOT-353 SC-70-5")
    (attr smd)
    (fp_text reference U2 (at -2.05 0) (layer F.SilkS))
    (fp_text value TLV333 (at 0 2 180) (layer F.Fab))
    (fp_text user %R (at 0 0 90) (layer F.Fab))
    (pad 1 smd rect (at -0.95 -0.65 180) (size 0.65 0.4) (layers F.Cu F.Paste F.Mask)
      (net 14 /Vset))
    (pad 3 smd rect (at -0.95 0.65 180) (size 0.65 0.4) (layers F.Cu F.Paste F.Mask)
      (net 15 /In-))
    (pad 2 smd rect (at -0.95 0 180) (size 0.65 0.4) (layers F.Cu F.Paste F.Mask)
      (net 1 GND) (solder_mask_margin 0.01))
    (pad 4 smd rect (at 0.95 0.65 180) (size 0.65 0.4) (layers F.Cu F.Paste F.Mask)
      (net 8 /OPAout))
    (pad 5 smd rect (at 0.95 -0.65 180) (size 0.65 0.4) (layers F.Cu F.Paste F.Mask)
      (net 11 EN))
    (model ${KISYS3DMOD}/Package_TO_SOT_SMD.3dshapes/SOT-353_SC-70-5.wrl
      (at (xyz 0 0 0))
      (scale (xyz 1 1 1))
      (rotate (xyz 0 0 0))
    )
  )
  (module 03_wirepad:Wirepad_D1.5mm (layer F.Cu) (tedit 60061DE8)
    (at -7.8 1.1 270)
    (descr "SMD pad as test Point, diameter 1.0mm")
    (tags "test point SMD pad")
    (attr virtual)
    (fp_text reference G2 (at 0.3 -1.2 180) (layer F.SilkS) hide)
    (fp_text value pad (at 0 1.55 90) (layer F.Fab))
    (fp_text user %R (at 0 -1.45 90) (layer F.Fab))
    (pad 1 smd circle (at 0 0 270) (size 1.5 1.5) (layers F.Cu F.Mask)
      (net 1 GND))
  )
  (module 03_wirepad:Wirepad_D1.5mm (layer F.Cu) (tedit 60061DE8)
    (at -6.9 3.25)
    (descr "SMD pad as test Point, diameter 1.0mm")
    (tags "test point SMD pad")
    (attr virtual)
    (fp_text reference G3 (at 1.2 -0.6) (layer F.SilkS) hide)
    (fp_text value pad (at 0 1.55) (layer F.Fab))
    (fp_text user %R (at 0 -1.45) (layer F.Fab))
    (pad 1 smd circle (at 0 0) (size 1.5 1.5) (layers F.Cu F.Mask)
      (net 1 GND))
  )
  (module 03_wirepad:Wirepad_D1.5mm (layer F.Cu) (tedit 60061DE8)
    (at -5.7 5)
    (descr "SMD pad as test Point, diameter 1.0mm")
    (tags "test point SMD pad")
    (attr virtual)
    (fp_text reference Aux_3 (at 0 1.2) (layer F.SilkS) hide)
    (fp_text value pad (at 0 1.55) (layer F.Fab))
    (fp_text user %R (at 0 -1.45) (layer F.Fab))
    (pad 1 smd circle (at 0 0) (size 1.5 1.5) (layers F.Cu F.Mask)
      (net 2 AUX_B))
  )
  (module 03_wirepad:Wirepad_D1.5mm (layer F.Cu) (tedit 60061DE8)
    (at -2.8 7.2 270)
    (descr "SMD pad as test Point, diameter 1.0mm")
    (tags "test point SMD pad")
    (attr virtual)
    (fp_text reference Aux_2 (at 1.2 0.1 180) (layer F.SilkS) hide)
    (fp_text value pad (at 0 1.55 90) (layer F.Fab))
    (fp_text user %R (at 0 -1.45 90) (layer F.Fab))
    (pad 1 smd circle (at 0 0 270) (size 1.5 1.5) (layers F.Cu F.Mask)
      (net 4 AUX_G))
  )
  (module 03_wirepad:Wirepad_D1.5mm (layer F.Cu) (tedit 60061DE8)
    (at -3.15 4.8 270)
    (descr "SMD pad as test Point, diameter 1.0mm")
    (tags "test point SMD pad")
    (attr virtual)
    (fp_text reference Aux_1 (at 1.2 0 180) (layer F.SilkS) hide)
    (fp_text value pad (at 0 1.55 90) (layer F.Fab))
    (fp_text user %R (at 0 -1.45 90) (layer F.Fab))
    (pad 1 smd circle (at 0 0 270) (size 1.5 1.5) (layers F.Cu F.Mask)
      (net 6 AUX_R))
  )
  (module 03_wirepad:Wirepad_D1.5mm (layer F.Cu) (tedit 60061DE8)
    (at -0.3 7.55 270)
    (descr "SMD pad as test Point, diameter 1.0mm")
    (tags "test point SMD pad")
    (attr virtual)
    (fp_text reference S1 (at 1 -1.2 180) (layer F.SilkS) hide)
    (fp_text value pad (at 0 1.55 90) (layer F.Fab))
    (fp_text user %R (at 0 -1.45 90) (layer F.Fab))
    (pad 1 smd circle (at 0 0 270) (size 1.5 1.5) (layers F.Cu F.Mask)
      (net 13 S))
  )
  (module 03_wirepad:Wirepad_D0.8mm (layer B.Cu) (tedit 600618F0)
    (at -1.77 6.1)
    (descr "SMD pad as test Point, diameter 1.0mm")
    (tags "test point SMD pad")
    (attr virtual)
    (fp_text reference V1 (at -0.07 1) (layer B.SilkS) hide)
    (fp_text value pad (at 0 -1.55) (layer B.Fab))
    (fp_text user %R (at 0 1.45) (layer B.Fab))
    (pad 1 smd circle (at 0 0) (size 0.8 0.8) (layers B.Cu B.Mask)
      (net 3 +BATT))
  )
  (module 03_wirepad:Wirepad_D0.8mm (layer B.Cu) (tedit 600618F0)
    (at -0.5 6.1)
    (descr "SMD pad as test Point, diameter 1.0mm")
    (tags "test point SMD pad")
    (attr virtual)
    (fp_text reference G1 (at -0.03 1) (layer B.SilkS) hide)
    (fp_text value pad (at 0 -1.55) (layer B.Fab))
    (fp_text user %R (at 0 1.45) (layer B.Fab))
    (pad 1 smd circle (at 0 0) (size 0.8 0.8) (layers B.Cu B.Mask)
      (net 1 GND))
  )
  (gr_text "LIN18 HDR \nDAC v1.0\n" (at -6.9 -2.1 -90) (layer B.SilkS))
  (gr_text "thefreeman\nBLF" (at 7.1 0 90) (layer B.SilkS))
  (gr_text P (at 0.8 7.1) (layer B.SilkS))
  (gr_text - (at -0.5 6.9) (layer B.SilkS))
  (gr_text + (at -1.8 6.9) (layer B.SilkS))
  (gr_text - (at 5.1 -6.7) (layer F.SilkS))
  (gr_text + (at 4.6 -2.2) (layer F.SilkS))
  (gr_text C (at -7.3 4.5) (layer F.SilkS))
  (gr_text C (at -8.2 2.3) (layer F.SilkS))
  (gr_text S (at 0.6 8.5) (layer F.SilkS))
  (gr_text B (at -5.2 6.2) (layer F.SilkS))
  (gr_text G (at -1.9 8) (layer F.SilkS))
  (gr_text R (at -2.1 5.3) (layer F.SilkS))
  (gr_circle (center 0 0) (end 11 0) (layer Edge.Cuts) (width 0.05))
  (zone (net 3) (net_name +BATT) (layer F.Cu) (hatch edge 0.508)
    (priority 2)
    (connect_pads yes (clearance 0.2))
    (min_thickness 0.254)
    (fill yes (arc_segments 32) (thermal_gap 0.508) (thermal_bridge_width 0.508) (smoothing fillet) (radius 0.3))
    (polygon
      (pts
        (xy 5.5 1.9) (xy 2.3 1.9) (xy 2.3 -1.3) (xy 5.5 -1.3)
      )
    )
  )
  (zone (net 5) (net_name LED-) (layer F.Cu) (hatch edge 0.508)
    (priority 1)
    (connect_pads yes (clearance 0.2))
    (min_thickness 0.254)
    (fill yes (arc_segments 32) (thermal_gap 0.508) (thermal_bridge_width 0.508) (smoothing fillet) (radius 0.2))
    (polygon
      (pts
        (xy 0.9 -8.6) (xy 2.5 -8.3) (xy 4.3 -7.5) (xy 5.4 -6.7) (xy 6.4 -5.7)
        (xy 7.5 -4.3) (xy 8 -2.3) (xy 5.6 -2.3) (xy 4.9 -2.3) (xy 1.4 -2.3)
        (xy 0.9 -2.8) (xy -1.2 -2.8) (xy -1.2 -8.6)
      )
    )
  )
  (zone (net 9) (net_name /Vsense) (layer F.Cu) (hatch edge 0.508)
    (priority 1)
    (connect_pads yes (clearance 0.2))
    (min_thickness 0.254)
    (fill yes (arc_segments 32) (thermal_gap 0.508) (thermal_bridge_width 0.508) (smoothing fillet) (radius 0.2))
    (polygon
      (pts
        (xy -1.4 -3.9) (xy -4.3 -3.9) (xy -4.3 -6.7) (xy -3.3 -8) (xy -1.4 -8.6)
      )
    )
  )
  (zone (net 3) (net_name +BATT) (layer B.Cu) (hatch edge 0.508)
    (priority 5)
    (connect_pads yes (clearance 0.3))
    (min_thickness 0.254)
    (fill yes (arc_segments 32) (thermal_gap 0.508) (thermal_bridge_width 0.508) (smoothing fillet) (radius 0.4))
    (polygon
      (pts
        (xy 5.486425 2) (xy 2.2 2) (xy 2.186425 -1.4) (xy 5.486425 -1.4)
      )
    )
  )
  (zone (net 1) (net_name GND) (layer F.Cu) (hatch edge 0.508)
    (connect_pads yes (clearance 0))
    (min_thickness 0.1524)
    (fill yes (arc_segments 32) (thermal_gap 0.508) (thermal_bridge_width 0.508))
    (polygon
      (pts
        (xy 12 12) (xy -12 12) (xy -12 -12) (xy 12 -12)
      )
    )
  )
  (zone (net 5) (net_name LED-) (layer B.Cu) (hatch edge 0.508)
    (priority 1)
    (connect_pads yes (clearance 0.2))
    (min_thickness 0.2)
    (fill yes (arc_segments 32) (thermal_gap 0.508) (thermal_bridge_width 0.508) (smoothing fillet) (radius 20))
    (polygon
      (pts
        (xy 8.7 8.7) (xy -8.7 8.7) (xy -8.7 -8.7) (xy 8.7 -8.7)
      )
    )
  )
  (zone (net 1) (net_name GND) (layer B.Cu) (hatch edge 0.508)
    (priority 3)
    (connect_pads yes (clearance 0))
    (min_thickness 0.1524)
    (fill yes (arc_segments 32) (thermal_gap 0.508) (thermal_bridge_width 0.508) (smoothing fillet) (radius 9))
    (polygon
      (pts
        (xy 12 12) (xy -12 12) (xy -12 -12) (xy 12 -12)
      )
    )
    (polygon
      (pts
        (xy -8.9 -8.9) (xy -8.9 8.9) (xy 8.9 8.9) (xy 8.9 -8.9)
      )
    )
  )
  (zone (net 1) (net_name GND) (layer B.Cu) (hatch edge 0.508)
    (priority 3)
    (connect_pads yes (clearance 0))
    (min_thickness 0.1524)
    (fill yes (arc_segments 32) (thermal_gap 0.508) (thermal_bridge_width 0.508) (smoothing fillet) (radius 0.2))
    (polygon
      (pts
        (xy 7.4 7.2) (xy 2.6 10.6) (xy -4.1 12) (xy -10.9 2.3) (xy 0 0)
      )
    )
  )
  (zone (net 16) (net_name "Net-(Q2-Pad1)") (layer F.Cu) (hatch edge 0.508)
    (priority 1)
    (connect_pads yes (clearance 0.2))
    (min_thickness 0.254)
    (fill yes (arc_segments 32) (thermal_gap 0.508) (thermal_bridge_width 0.508) (smoothing fillet) (radius 0.1))
    (polygon
      (pts
        (xy -4.8 -3.4) (xy -5.6 -0.9) (xy -8.4 -1.8) (xy -7.5 -4.1) (xy -6.6 -5.7)
        (xy -4.7 -5.7)
      )
    )
  )
)
