~krystianch/tiny-hvsp

32a878d5786161806f8081ad375031fa174a10ba — Krystian Chachuła 8 months ago master
Initial commit
A  => LICENSE +21 -0
@@ 1,21 @@
MIT License

Copyright (c) 2023 Krystian Chachuła

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

A  => Makefile +25 -0
@@ 1,25 @@
gcc-flags = -Wall -Wextra -Wno-array-bounds -DF_CPU=1000000UL

tiny-hvsp.hex: tiny-hvsp.elf
	avr-objcopy -j .text -j .data -O ihex $< $@

tiny-hvsp-release.hex: gcc-flags += -DNDEBUG
tiny-hvsp-release.hex: tiny-hvsp.hex

tiny-hvsp.elf: tiny-hvsp.o
	avr-gcc $(gcc-flags) -mmcu=attiny85 -o $@ $^

%.o: %.c
	avr-gcc $(gcc-flags) -Os -mmcu=attiny85 -c -o $@ $^

.PHONY: clean upload

upload: tiny-hvsp.hex
	avrdude \
		-c stk500 \
		-p t85 \
		-P /dev/ttyUSB0 \
		-U flash:w:$<:i

clean:
	rm -f *.o *.elf *.hex

A  => hardware/tiny-hvsp.kicad_pcb +2 -0
@@ 1,2 @@
(kicad_pcb (version 20221018) (generator pcbnew)
)
\ No newline at end of file

A  => hardware/tiny-hvsp.kicad_pro +332 -0
@@ 1,332 @@
{
  "board": {
    "3dviewports": [],
    "design_settings": {
      "defaults": {
        "board_outline_line_width": 0.1,
        "copper_line_width": 0.2,
        "copper_text_size_h": 1.5,
        "copper_text_size_v": 1.5,
        "copper_text_thickness": 0.3,
        "other_line_width": 0.15,
        "silk_line_width": 0.15,
        "silk_text_size_h": 1.0,
        "silk_text_size_v": 1.0,
        "silk_text_thickness": 0.15
      },
      "diff_pair_dimensions": [],
      "drc_exclusions": [],
      "rules": {
        "min_copper_edge_clearance": 0.0,
        "solder_mask_clearance": 0.0,
        "solder_mask_min_width": 0.0
      },
      "track_widths": [],
      "via_dimensions": []
    },
    "layer_presets": [],
    "viewports": []
  },
  "boards": [],
  "cvpcb": {
    "equivalence_files": []
  },
  "erc": {
    "erc_exclusions": [],
    "meta": {
      "version": 0
    },
    "pin_map": [
      [
        0,
        0,
        0,
        0,
        0,
        0,
        1,
        0,
        0,
        0,
        0,
        2
      ],
      [
        0,
        2,
        0,
        1,
        0,
        0,
        1,
        0,
        2,
        2,
        2,
        2
      ],
      [
        0,
        0,
        0,
        0,
        0,
        0,
        1,
        0,
        1,
        0,
        1,
        2
      ],
      [
        0,
        1,
        0,
        0,
        0,
        0,
        1,
        1,
        2,
        1,
        1,
        2
      ],
      [
        0,
        0,
        0,
        0,
        0,
        0,
        1,
        0,
        0,
        0,
        0,
        2
      ],
      [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        2
      ],
      [
        1,
        1,
        1,
        1,
        1,
        0,
        1,
        1,
        1,
        1,
        1,
        2
      ],
      [
        0,
        0,
        0,
        1,
        0,
        0,
        1,
        0,
        0,
        0,
        0,
        2
      ],
      [
        0,
        2,
        1,
        2,
        0,
        0,
        1,
        0,
        2,
        2,
        2,
        2
      ],
      [
        0,
        2,
        0,
        1,
        0,
        0,
        1,
        0,
        2,
        0,
        0,
        2
      ],
      [
        0,
        2,
        1,
        1,
        0,
        0,
        1,
        0,
        2,
        0,
        0,
        2
      ],
      [
        2,
        2,
        2,
        2,
        2,
        2,
        2,
        2,
        2,
        2,
        2,
        2
      ]
    ],
    "rule_severities": {
      "bus_definition_conflict": "error",
      "bus_entry_needed": "error",
      "bus_to_bus_conflict": "error",
      "bus_to_net_conflict": "error",
      "conflicting_netclasses": "error",
      "different_unit_footprint": "error",
      "different_unit_net": "error",
      "duplicate_reference": "error",
      "duplicate_sheet_names": "error",
      "endpoint_off_grid": "warning",
      "extra_units": "error",
      "global_label_dangling": "warning",
      "hier_label_mismatch": "error",
      "label_dangling": "error",
      "lib_symbol_issues": "warning",
      "missing_bidi_pin": "warning",
      "missing_input_pin": "warning",
      "missing_power_pin": "error",
      "missing_unit": "warning",
      "multiple_net_names": "warning",
      "net_not_bus_member": "warning",
      "no_connect_connected": "warning",
      "no_connect_dangling": "warning",
      "pin_not_connected": "error",
      "pin_not_driven": "error",
      "pin_to_pin": "warning",
      "power_pin_not_driven": "error",
      "similar_labels": "warning",
      "simulation_model_issue": "error",
      "unannotated": "error",
      "unit_value_mismatch": "error",
      "unresolved_variable": "error",
      "wire_dangling": "error"
    }
  },
  "libraries": {
    "pinned_footprint_libs": [],
    "pinned_symbol_libs": []
  },
  "meta": {
    "filename": "tiny-hvsp.kicad_pro",
    "version": 1
  },
  "net_settings": {
    "classes": [
      {
        "bus_width": 12,
        "clearance": 0.2,
        "diff_pair_gap": 0.25,
        "diff_pair_via_gap": 0.25,
        "diff_pair_width": 0.2,
        "line_style": 0,
        "microvia_diameter": 0.3,
        "microvia_drill": 0.1,
        "name": "Default",
        "pcb_color": "rgba(0, 0, 0, 0.000)",
        "schematic_color": "rgba(0, 0, 0, 0.000)",
        "track_width": 0.25,
        "via_diameter": 0.8,
        "via_drill": 0.4,
        "wire_width": 6
      }
    ],
    "meta": {
      "version": 3
    },
    "net_colors": null,
    "netclass_assignments": null,
    "netclass_patterns": []
  },
  "pcbnew": {
    "last_paths": {
      "gencad": "",
      "idf": "",
      "netlist": "",
      "specctra_dsn": "",
      "step": "",
      "vrml": ""
    },
    "page_layout_descr_file": ""
  },
  "schematic": {
    "annotate_start_num": 0,
    "drawing": {
      "dashed_lines_dash_length_ratio": 12.0,
      "dashed_lines_gap_length_ratio": 3.0,
      "default_line_thickness": 6.0,
      "default_text_size": 50.0,
      "field_names": [],
      "intersheets_ref_own_page": false,
      "intersheets_ref_prefix": "",
      "intersheets_ref_short": false,
      "intersheets_ref_show": false,
      "intersheets_ref_suffix": "",
      "junction_size_choice": 3,
      "label_size_ratio": 0.375,
      "pin_symbol_size": 25.0,
      "text_offset_ratio": 0.15
    },
    "legacy_lib_dir": "",
    "legacy_lib_list": [],
    "meta": {
      "version": 1
    },
    "net_format_name": "",
    "page_layout_descr_file": "",
    "plot_directory": "",
    "spice_current_sheet_as_root": false,
    "spice_external_command": "spice \"%I\"",
    "spice_model_current_sheet_as_root": true,
    "spice_save_all_currents": false,
    "spice_save_all_voltages": false,
    "subpart_first_id": 65,
    "subpart_id_separator": 0
  },
  "sheets": [
    [
      "0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e",
      ""
    ]
  ],
  "text_variables": {}
}

A  => hardware/tiny-hvsp.kicad_sch +1882 -0
@@ 1,1882 @@
(kicad_sch (version 20230121) (generator eeschema)

  (uuid 0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e)

  (paper "A4")

  (lib_symbols
    (symbol "Connector:AVR-ISP-6" (pin_names (offset 1.016)) (in_bom yes) (on_board yes)
      (property "Reference" "J" (at -6.35 11.43 0)
        (effects (font (size 1.27 1.27)) (justify left))
      )
      (property "Value" "AVR-ISP-6" (at 0 11.43 0)
        (effects (font (size 1.27 1.27)) (justify left))
      )
      (property "Footprint" "" (at -6.35 1.27 90)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "Datasheet" " ~" (at -32.385 -13.97 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_keywords" "AVR ISP Connector" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_description" "Atmel 6-pin ISP connector" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_fp_filters" "IDC?Header*2x03* Pin?Header*2x03*" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (symbol "AVR-ISP-6_0_1"
        (rectangle (start -2.667 -6.858) (end -2.413 -7.62)
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (rectangle (start -2.667 10.16) (end -2.413 9.398)
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (rectangle (start 7.62 -2.413) (end 6.858 -2.667)
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (rectangle (start 7.62 0.127) (end 6.858 -0.127)
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (rectangle (start 7.62 2.667) (end 6.858 2.413)
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (rectangle (start 7.62 5.207) (end 6.858 4.953)
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (rectangle (start 7.62 10.16) (end -7.62 -7.62)
          (stroke (width 0.254) (type default))
          (fill (type background))
        )
      )
      (symbol "AVR-ISP-6_1_1"
        (pin passive line (at 10.16 5.08 180) (length 2.54)
          (name "MISO" (effects (font (size 1.27 1.27))))
          (number "1" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -2.54 12.7 270) (length 2.54)
          (name "VCC" (effects (font (size 1.27 1.27))))
          (number "2" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 10.16 0 180) (length 2.54)
          (name "SCK" (effects (font (size 1.27 1.27))))
          (number "3" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 10.16 2.54 180) (length 2.54)
          (name "MOSI" (effects (font (size 1.27 1.27))))
          (number "4" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 10.16 -2.54 180) (length 2.54)
          (name "~{RST}" (effects (font (size 1.27 1.27))))
          (number "5" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -2.54 -10.16 90) (length 2.54)
          (name "GND" (effects (font (size 1.27 1.27))))
          (number "6" (effects (font (size 1.27 1.27))))
        )
      )
    )
    (symbol "Device:C" (pin_numbers hide) (pin_names (offset 0.254)) (in_bom yes) (on_board yes)
      (property "Reference" "C" (at 0.635 2.54 0)
        (effects (font (size 1.27 1.27)) (justify left))
      )
      (property "Value" "C" (at 0.635 -2.54 0)
        (effects (font (size 1.27 1.27)) (justify left))
      )
      (property "Footprint" "" (at 0.9652 -3.81 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "Datasheet" "~" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_keywords" "cap capacitor" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_description" "Unpolarized capacitor" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_fp_filters" "C_*" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (symbol "C_0_1"
        (polyline
          (pts
            (xy -2.032 -0.762)
            (xy 2.032 -0.762)
          )
          (stroke (width 0.508) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy -2.032 0.762)
            (xy 2.032 0.762)
          )
          (stroke (width 0.508) (type default))
          (fill (type none))
        )
      )
      (symbol "C_1_1"
        (pin passive line (at 0 3.81 270) (length 2.794)
          (name "~" (effects (font (size 1.27 1.27))))
          (number "1" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 0 -3.81 90) (length 2.794)
          (name "~" (effects (font (size 1.27 1.27))))
          (number "2" (effects (font (size 1.27 1.27))))
        )
      )
    )
    (symbol "Device:LED" (pin_numbers hide) (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
      (property "Reference" "D" (at 0 2.54 0)
        (effects (font (size 1.27 1.27)))
      )
      (property "Value" "LED" (at 0 -2.54 0)
        (effects (font (size 1.27 1.27)))
      )
      (property "Footprint" "" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "Datasheet" "~" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_keywords" "LED diode" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_description" "Light emitting diode" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_fp_filters" "LED* LED_SMD:* LED_THT:*" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (symbol "LED_0_1"
        (polyline
          (pts
            (xy -1.27 -1.27)
            (xy -1.27 1.27)
          )
          (stroke (width 0.254) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy -1.27 0)
            (xy 1.27 0)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy 1.27 -1.27)
            (xy 1.27 1.27)
            (xy -1.27 0)
            (xy 1.27 -1.27)
          )
          (stroke (width 0.254) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy -3.048 -0.762)
            (xy -4.572 -2.286)
            (xy -3.81 -2.286)
            (xy -4.572 -2.286)
            (xy -4.572 -1.524)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy -1.778 -0.762)
            (xy -3.302 -2.286)
            (xy -2.54 -2.286)
            (xy -3.302 -2.286)
            (xy -3.302 -1.524)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
      )
      (symbol "LED_1_1"
        (pin passive line (at -3.81 0 0) (length 2.54)
          (name "K" (effects (font (size 1.27 1.27))))
          (number "1" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 3.81 0 180) (length 2.54)
          (name "A" (effects (font (size 1.27 1.27))))
          (number "2" (effects (font (size 1.27 1.27))))
        )
      )
    )
    (symbol "Device:R" (pin_numbers hide) (pin_names (offset 0)) (in_bom yes) (on_board yes)
      (property "Reference" "R" (at 2.032 0 90)
        (effects (font (size 1.27 1.27)))
      )
      (property "Value" "R" (at 0 0 90)
        (effects (font (size 1.27 1.27)))
      )
      (property "Footprint" "" (at -1.778 0 90)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "Datasheet" "~" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_keywords" "R res resistor" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_description" "Resistor" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_fp_filters" "R_*" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (symbol "R_0_1"
        (rectangle (start -1.016 -2.54) (end 1.016 2.54)
          (stroke (width 0.254) (type default))
          (fill (type none))
        )
      )
      (symbol "R_1_1"
        (pin passive line (at 0 3.81 270) (length 1.27)
          (name "~" (effects (font (size 1.27 1.27))))
          (number "1" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 0 -3.81 90) (length 1.27)
          (name "~" (effects (font (size 1.27 1.27))))
          (number "2" (effects (font (size 1.27 1.27))))
        )
      )
    )
    (symbol "Jumper:Jumper_3_Open" (pin_names (offset 0) hide) (in_bom yes) (on_board yes)
      (property "Reference" "JP" (at -2.54 -2.54 0)
        (effects (font (size 1.27 1.27)))
      )
      (property "Value" "Jumper_3_Open" (at 0 2.794 0)
        (effects (font (size 1.27 1.27)))
      )
      (property "Footprint" "" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "Datasheet" "~" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_keywords" "Jumper SPDT" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_description" "Jumper, 3-pole, both open" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_fp_filters" "Jumper* TestPoint*3Pads* TestPoint*Bridge*" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (symbol "Jumper_3_Open_0_0"
        (circle (center -3.302 0) (radius 0.508)
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (circle (center 0 0) (radius 0.508)
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (circle (center 3.302 0) (radius 0.508)
          (stroke (width 0) (type default))
          (fill (type none))
        )
      )
      (symbol "Jumper_3_Open_0_1"
        (arc (start -0.254 1.016) (mid -1.651 1.4992) (end -3.048 1.016)
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0 -0.508)
            (xy 0 -1.27)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (arc (start 3.048 1.016) (mid 1.651 1.4992) (end 0.254 1.016)
          (stroke (width 0) (type default))
          (fill (type none))
        )
      )
      (symbol "Jumper_3_Open_1_1"
        (pin passive line (at -6.35 0 0) (length 2.54)
          (name "A" (effects (font (size 1.27 1.27))))
          (number "1" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 0 -3.81 90) (length 2.54)
          (name "C" (effects (font (size 1.27 1.27))))
          (number "2" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 6.35 0 180) (length 2.54)
          (name "B" (effects (font (size 1.27 1.27))))
          (number "3" (effects (font (size 1.27 1.27))))
        )
      )
    )
    (symbol "Jumper:SolderJumper_2_Open" (pin_names (offset 0) hide) (in_bom yes) (on_board yes)
      (property "Reference" "JP" (at 0 2.032 0)
        (effects (font (size 1.27 1.27)))
      )
      (property "Value" "SolderJumper_2_Open" (at 0 -2.54 0)
        (effects (font (size 1.27 1.27)))
      )
      (property "Footprint" "" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "Datasheet" "~" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_keywords" "solder jumper SPST" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_description" "Solder Jumper, 2-pole, open" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_fp_filters" "SolderJumper*Open*" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (symbol "SolderJumper_2_Open_0_1"
        (arc (start -0.254 1.016) (mid -1.2656 0) (end -0.254 -1.016)
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (arc (start -0.254 1.016) (mid -1.2656 0) (end -0.254 -1.016)
          (stroke (width 0) (type default))
          (fill (type outline))
        )
        (polyline
          (pts
            (xy -0.254 1.016)
            (xy -0.254 -1.016)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0.254 1.016)
            (xy 0.254 -1.016)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (arc (start 0.254 -1.016) (mid 1.2656 0) (end 0.254 1.016)
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (arc (start 0.254 -1.016) (mid 1.2656 0) (end 0.254 1.016)
          (stroke (width 0) (type default))
          (fill (type outline))
        )
      )
      (symbol "SolderJumper_2_Open_1_1"
        (pin passive line (at -3.81 0 0) (length 2.54)
          (name "A" (effects (font (size 1.27 1.27))))
          (number "1" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 3.81 0 180) (length 2.54)
          (name "B" (effects (font (size 1.27 1.27))))
          (number "2" (effects (font (size 1.27 1.27))))
        )
      )
    )
    (symbol "MCU_Microchip_ATtiny:ATtiny85-20P" (in_bom yes) (on_board yes)
      (property "Reference" "U" (at -12.7 13.97 0)
        (effects (font (size 1.27 1.27)) (justify left bottom))
      )
      (property "Value" "ATtiny85-20P" (at 2.54 -13.97 0)
        (effects (font (size 1.27 1.27)) (justify left top))
      )
      (property "Footprint" "Package_DIP:DIP-8_W7.62mm" (at 0 0 0)
        (effects (font (size 1.27 1.27) italic) hide)
      )
      (property "Datasheet" "http://ww1.microchip.com/downloads/en/DeviceDoc/atmel-2586-avr-8-bit-microcontroller-attiny25-attiny45-attiny85_datasheet.pdf" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_keywords" "AVR 8bit Microcontroller tinyAVR" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_description" "20MHz, 8kB Flash, 512B SRAM, 512B EEPROM, debugWIRE, DIP-8" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_fp_filters" "DIP*W7.62mm*" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (symbol "ATtiny85-20P_0_1"
        (rectangle (start -12.7 -12.7) (end 12.7 12.7)
          (stroke (width 0.254) (type default))
          (fill (type background))
        )
      )
      (symbol "ATtiny85-20P_1_1"
        (pin bidirectional line (at 15.24 -5.08 180) (length 2.54)
          (name "~{RESET}/PB5" (effects (font (size 1.27 1.27))))
          (number "1" (effects (font (size 1.27 1.27))))
        )
        (pin bidirectional line (at 15.24 0 180) (length 2.54)
          (name "XTAL1/PB3" (effects (font (size 1.27 1.27))))
          (number "2" (effects (font (size 1.27 1.27))))
        )
        (pin bidirectional line (at 15.24 -2.54 180) (length 2.54)
          (name "XTAL2/PB4" (effects (font (size 1.27 1.27))))
          (number "3" (effects (font (size 1.27 1.27))))
        )
        (pin power_in line (at 0 -15.24 90) (length 2.54)
          (name "GND" (effects (font (size 1.27 1.27))))
          (number "4" (effects (font (size 1.27 1.27))))
        )
        (pin bidirectional line (at 15.24 7.62 180) (length 2.54)
          (name "AREF/PB0" (effects (font (size 1.27 1.27))))
          (number "5" (effects (font (size 1.27 1.27))))
        )
        (pin bidirectional line (at 15.24 5.08 180) (length 2.54)
          (name "PB1" (effects (font (size 1.27 1.27))))
          (number "6" (effects (font (size 1.27 1.27))))
        )
        (pin bidirectional line (at 15.24 2.54 180) (length 2.54)
          (name "PB2" (effects (font (size 1.27 1.27))))
          (number "7" (effects (font (size 1.27 1.27))))
        )
        (pin power_in line (at 0 15.24 270) (length 2.54)
          (name "VCC" (effects (font (size 1.27 1.27))))
          (number "8" (effects (font (size 1.27 1.27))))
        )
      )
    )
    (symbol "Regulator_Linear:L7805" (pin_names (offset 0.254)) (in_bom yes) (on_board yes)
      (property "Reference" "U" (at -3.81 3.175 0)
        (effects (font (size 1.27 1.27)))
      )
      (property "Value" "L7805" (at 0 3.175 0)
        (effects (font (size 1.27 1.27)) (justify left))
      )
      (property "Footprint" "" (at 0.635 -3.81 0)
        (effects (font (size 1.27 1.27) italic) (justify left) hide)
      )
      (property "Datasheet" "http://www.st.com/content/ccc/resource/technical/document/datasheet/41/4f/b3/b0/12/d4/47/88/CD00000444.pdf/files/CD00000444.pdf/jcr:content/translations/en.CD00000444.pdf" (at 0 -1.27 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_keywords" "Voltage Regulator 1.5A Positive" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_description" "Positive 1.5A 35V Linear Regulator, Fixed Output 5V, TO-220/TO-263/TO-252" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_fp_filters" "TO?252* TO?263* TO?220*" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (symbol "L7805_0_1"
        (rectangle (start -5.08 1.905) (end 5.08 -5.08)
          (stroke (width 0.254) (type default))
          (fill (type background))
        )
      )
      (symbol "L7805_1_1"
        (pin power_in line (at -7.62 0 0) (length 2.54)
          (name "IN" (effects (font (size 1.27 1.27))))
          (number "1" (effects (font (size 1.27 1.27))))
        )
        (pin power_in line (at 0 -7.62 90) (length 2.54)
          (name "GND" (effects (font (size 1.27 1.27))))
          (number "2" (effects (font (size 1.27 1.27))))
        )
        (pin power_out line (at 7.62 0 180) (length 2.54)
          (name "OUT" (effects (font (size 1.27 1.27))))
          (number "3" (effects (font (size 1.27 1.27))))
        )
      )
    )
    (symbol "Switch:SW_SPST" (pin_names (offset 0) hide) (in_bom yes) (on_board yes)
      (property "Reference" "SW" (at 0 3.175 0)
        (effects (font (size 1.27 1.27)))
      )
      (property "Value" "SW_SPST" (at 0 -2.54 0)
        (effects (font (size 1.27 1.27)))
      )
      (property "Footprint" "" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "Datasheet" "~" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_keywords" "switch lever" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_description" "Single Pole Single Throw (SPST) switch" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (symbol "SW_SPST_0_0"
        (circle (center -2.032 0) (radius 0.508)
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy -1.524 0.254)
            (xy 1.524 1.778)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (circle (center 2.032 0) (radius 0.508)
          (stroke (width 0) (type default))
          (fill (type none))
        )
      )
      (symbol "SW_SPST_1_1"
        (pin passive line (at -5.08 0 0) (length 2.54)
          (name "A" (effects (font (size 1.27 1.27))))
          (number "1" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 5.08 0 180) (length 2.54)
          (name "B" (effects (font (size 1.27 1.27))))
          (number "2" (effects (font (size 1.27 1.27))))
        )
      )
    )
    (symbol "Transistor_BJT:BC547" (pin_names (offset 0) hide) (in_bom yes) (on_board yes)
      (property "Reference" "Q" (at 5.08 1.905 0)
        (effects (font (size 1.27 1.27)) (justify left))
      )
      (property "Value" "BC547" (at 5.08 0 0)
        (effects (font (size 1.27 1.27)) (justify left))
      )
      (property "Footprint" "Package_TO_SOT_THT:TO-92_Inline" (at 5.08 -1.905 0)
        (effects (font (size 1.27 1.27) italic) (justify left) hide)
      )
      (property "Datasheet" "https://www.onsemi.com/pub/Collateral/BC550-D.pdf" (at 0 0 0)
        (effects (font (size 1.27 1.27)) (justify left) hide)
      )
      (property "ki_keywords" "NPN Transistor" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_description" "0.1A Ic, 45V Vce, Small Signal NPN Transistor, TO-92" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_fp_filters" "TO?92*" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (symbol "BC547_0_1"
        (polyline
          (pts
            (xy 0 0)
            (xy 0.635 0)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0.635 0.635)
            (xy 2.54 2.54)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0.635 -0.635)
            (xy 2.54 -2.54)
            (xy 2.54 -2.54)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0.635 1.905)
            (xy 0.635 -1.905)
            (xy 0.635 -1.905)
          )
          (stroke (width 0.508) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy 1.27 -1.778)
            (xy 1.778 -1.27)
            (xy 2.286 -2.286)
            (xy 1.27 -1.778)
            (xy 1.27 -1.778)
          )
          (stroke (width 0) (type default))
          (fill (type outline))
        )
        (circle (center 1.27 0) (radius 2.8194)
          (stroke (width 0.254) (type default))
          (fill (type none))
        )
      )
      (symbol "BC547_1_1"
        (pin passive line (at 2.54 5.08 270) (length 2.54)
          (name "C" (effects (font (size 1.27 1.27))))
          (number "1" (effects (font (size 1.27 1.27))))
        )
        (pin input line (at -5.08 0 0) (length 5.08)
          (name "B" (effects (font (size 1.27 1.27))))
          (number "2" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 2.54 -5.08 90) (length 2.54)
          (name "E" (effects (font (size 1.27 1.27))))
          (number "3" (effects (font (size 1.27 1.27))))
        )
      )
    )
    (symbol "power:+12V" (power) (pin_names (offset 0)) (in_bom yes) (on_board yes)
      (property "Reference" "#PWR" (at 0 -3.81 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "Value" "+12V" (at 0 3.556 0)
        (effects (font (size 1.27 1.27)))
      )
      (property "Footprint" "" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "Datasheet" "" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_keywords" "global power" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_description" "Power symbol creates a global label with name \"+12V\"" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (symbol "+12V_0_1"
        (polyline
          (pts
            (xy -0.762 1.27)
            (xy 0 2.54)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0 0)
            (xy 0 2.54)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0 2.54)
            (xy 0.762 1.27)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
      )
      (symbol "+12V_1_1"
        (pin power_in line (at 0 0 90) (length 0) hide
          (name "+12V" (effects (font (size 1.27 1.27))))
          (number "1" (effects (font (size 1.27 1.27))))
        )
      )
    )
    (symbol "power:GND" (power) (pin_names (offset 0)) (in_bom yes) (on_board yes)
      (property "Reference" "#PWR" (at 0 -6.35 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "Value" "GND" (at 0 -3.81 0)
        (effects (font (size 1.27 1.27)))
      )
      (property "Footprint" "" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "Datasheet" "" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_keywords" "global power" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_description" "Power symbol creates a global label with name \"GND\" , ground" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (symbol "GND_0_1"
        (polyline
          (pts
            (xy 0 0)
            (xy 0 -1.27)
            (xy 1.27 -1.27)
            (xy 0 -2.54)
            (xy -1.27 -1.27)
            (xy 0 -1.27)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
      )
      (symbol "GND_1_1"
        (pin power_in line (at 0 0 270) (length 0) hide
          (name "GND" (effects (font (size 1.27 1.27))))
          (number "1" (effects (font (size 1.27 1.27))))
        )
      )
    )
    (symbol "power:VCC" (power) (pin_names (offset 0)) (in_bom yes) (on_board yes)
      (property "Reference" "#PWR" (at 0 -3.81 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "Value" "VCC" (at 0 3.81 0)
        (effects (font (size 1.27 1.27)))
      )
      (property "Footprint" "" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "Datasheet" "" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_keywords" "global power" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (property "ki_description" "Power symbol creates a global label with name \"VCC\"" (at 0 0 0)
        (effects (font (size 1.27 1.27)) hide)
      )
      (symbol "VCC_0_1"
        (polyline
          (pts
            (xy -0.762 1.27)
            (xy 0 2.54)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0 0)
            (xy 0 2.54)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
        (polyline
          (pts
            (xy 0 2.54)
            (xy 0.762 1.27)
          )
          (stroke (width 0) (type default))
          (fill (type none))
        )
      )
      (symbol "VCC_1_1"
        (pin power_in line (at 0 0 90) (length 0) hide
          (name "VCC" (effects (font (size 1.27 1.27))))
          (number "1" (effects (font (size 1.27 1.27))))
        )
      )
    )
  )

  (junction (at 189.23 24.13) (diameter 0) (color 0 0 0 0)
    (uuid 16853a3f-ea3c-47ad-b4f5-cb2dfdf3602c)
  )
  (junction (at 198.12 31.75) (diameter 0) (color 0 0 0 0)
    (uuid 2bbb2deb-c0b2-4785-bab1-9e2f5fed59bb)
  )
  (junction (at 207.01 24.13) (diameter 0) (color 0 0 0 0)
    (uuid 31b0b667-eba2-4247-befe-c7ca7006ec92)
  )
  (junction (at 218.44 99.06) (diameter 0) (color 0 0 0 0)
    (uuid 48a8ddf9-32ce-4578-9918-6543f3705646)
  )

  (no_connect (at 218.44 96.52) (uuid 86ab0f53-d11e-4bbf-bb42-9e044c44fdcb))

  (wire (pts (xy 220.98 99.06) (xy 218.44 99.06))
    (stroke (width 0) (type default))
    (uuid 0c3eed6b-32a4-403a-98fb-572932443c3b)
  )
  (wire (pts (xy 173.99 104.14) (xy 173.99 99.06))
    (stroke (width 0) (type default))
    (uuid 1ea4e8d1-b761-4c60-bd01-7b175e9e8d67)
  )
  (wire (pts (xy 173.99 99.06) (xy 170.18 99.06))
    (stroke (width 0) (type default))
    (uuid 2c0b8632-0b18-4601-a775-5d1cf0a9bc39)
  )
  (wire (pts (xy 173.99 104.14) (xy 203.2 104.14))
    (stroke (width 0) (type default))
    (uuid 4bf7a9e4-4d08-4d02-bf04-ce3c0e1115fb)
  )
  (wire (pts (xy 176.53 91.44) (xy 170.18 91.44))
    (stroke (width 0) (type default))
    (uuid 563c30b0-22fb-4a11-aa4b-6a6acfa1994a)
  )
  (wire (pts (xy 213.36 88.9) (xy 218.44 88.9))
    (stroke (width 0) (type default))
    (uuid 5e68932a-8ad9-45d3-833d-bf78186cb36f)
  )
  (wire (pts (xy 176.53 96.52) (xy 170.18 96.52))
    (stroke (width 0) (type default))
    (uuid 6123eec8-a8ad-49fa-a583-f0de19baf687)
  )
  (wire (pts (xy 185.42 88.9) (xy 184.15 88.9))
    (stroke (width 0) (type default))
    (uuid 63f44081-01e8-43a4-9348-66656c54de64)
  )
  (wire (pts (xy 170.18 93.98) (xy 175.26 93.98))
    (stroke (width 0) (type default))
    (uuid 66778210-84af-47b1-8323-c6def985465e)
  )
  (wire (pts (xy 176.53 88.9) (xy 176.53 91.44))
    (stroke (width 0) (type default))
    (uuid 886f3fc4-e086-4ee0-9ff9-15378f54514d)
  )
  (wire (pts (xy 207.01 24.13) (xy 205.74 24.13))
    (stroke (width 0) (type default))
    (uuid 90e3a83e-c3d0-4c15-8cac-1a9b60606dcb)
  )
  (wire (pts (xy 170.18 102.87) (xy 170.18 101.6))
    (stroke (width 0) (type default))
    (uuid b3e7a4e0-e486-4754-9555-ad1ae1fe947f)
  )
  (wire (pts (xy 176.53 99.06) (xy 176.53 96.52))
    (stroke (width 0) (type default))
    (uuid b4bb23a4-672d-4d83-9138-d7d1492e036e)
  )
  (wire (pts (xy 194.31 88.9) (xy 193.04 88.9))
    (stroke (width 0) (type default))
    (uuid b630fc36-064c-43e9-a782-462bb26ba4c3)
  )
  (wire (pts (xy 213.36 91.44) (xy 218.44 91.44))
    (stroke (width 0) (type default))
    (uuid b7f40329-87d4-4382-b534-ddf349304579)
  )
  (wire (pts (xy 212.09 99.06) (xy 218.44 99.06))
    (stroke (width 0) (type default))
    (uuid ba0643d1-dc1c-43d9-97e0-378b2b37ea3c)
  )
  (wire (pts (xy 170.18 110.49) (xy 177.8 110.49))
    (stroke (width 0) (type default))
    (uuid c9a35668-481e-4ecb-8e36-8dcb5bb8f2a5)
  )
  (wire (pts (xy 198.12 31.75) (xy 207.01 31.75))
    (stroke (width 0) (type default))
    (uuid cca575f9-2f7f-4267-9abe-55738d6df12e)
  )
  (wire (pts (xy 189.23 31.75) (xy 198.12 31.75))
    (stroke (width 0) (type default))
    (uuid d50ad6b7-774d-4e64-aa86-3a4e5c61de95)
  )
  (wire (pts (xy 213.36 86.36) (xy 218.44 86.36))
    (stroke (width 0) (type default))
    (uuid d601a0a3-676b-40de-9b75-2fbd8a32dceb)
  )
  (wire (pts (xy 212.09 90.17) (xy 212.09 99.06))
    (stroke (width 0) (type default))
    (uuid d62f8ee7-02e2-407c-9206-b216f3124291)
  )
  (wire (pts (xy 194.31 99.06) (xy 193.04 99.06))
    (stroke (width 0) (type default))
    (uuid d83d4c50-8dcf-4a0b-a703-685d1e46a266)
  )
  (wire (pts (xy 213.36 93.98) (xy 218.44 93.98))
    (stroke (width 0) (type default))
    (uuid e22be684-87ec-4888-b4af-f767b44b2ae0)
  )
  (wire (pts (xy 189.23 24.13) (xy 190.5 24.13))
    (stroke (width 0) (type default))
    (uuid e94621ae-f7bf-44d1-a29c-4101d7d91957)
  )
  (wire (pts (xy 170.18 88.9) (xy 175.26 88.9))
    (stroke (width 0) (type default))
    (uuid f820ccbd-a6fd-4dac-9581-68ecee3f1aec)
  )
  (wire (pts (xy 185.42 99.06) (xy 184.15 99.06))
    (stroke (width 0) (type default))
    (uuid f93d55e2-a0b1-489c-90f2-c2ca5dfe052d)
  )

  (label "SCI" (at 171.45 93.98 0) (fields_autoplaced)
    (effects (font (size 1.27 1.27)) (justify left bottom))
    (uuid 2cbbda05-7cb7-483e-8ef4-a34e2bf29465)
  )
  (label "SII" (at 171.45 91.44 0) (fields_autoplaced)
    (effects (font (size 1.27 1.27)) (justify left bottom))
    (uuid 4fa19a1c-8cb5-46e8-ba29-7df6a80806a0)
  )
  (label "SII" (at 213.36 88.9 0) (fields_autoplaced)
    (effects (font (size 1.27 1.27)) (justify left bottom))
    (uuid 509c1ea4-d3a9-456f-8434-26d55c79a13f)
  )
  (label "SDI" (at 213.36 86.36 0) (fields_autoplaced)
    (effects (font (size 1.27 1.27)) (justify left bottom))
    (uuid 9340f80b-809b-4fba-920a-386fdbe921db)
  )
  (label "SCI" (at 213.36 93.98 0) (fields_autoplaced)
    (effects (font (size 1.27 1.27)) (justify left bottom))
    (uuid 9d7797dd-6a7b-4bd5-90fc-582d690bb740)
  )
  (label "SDI" (at 171.45 96.52 0) (fields_autoplaced)
    (effects (font (size 1.27 1.27)) (justify left bottom))
    (uuid b1ab2d41-b69c-48ff-965f-dc7c09b7fea2)
  )
  (label "SDO" (at 171.45 88.9 0) (fields_autoplaced)
    (effects (font (size 1.27 1.27)) (justify left bottom))
    (uuid cf347af7-cc8b-47f4-86e2-36d4f5cdae11)
  )
  (label "SDO" (at 213.36 91.44 0) (fields_autoplaced)
    (effects (font (size 1.27 1.27)) (justify left bottom))
    (uuid db4cf882-6a2e-453d-addf-5bfbee8ce14b)
  )

  (symbol (lib_id "Jumper:SolderJumper_2_Open") (at 232.41 35.56 90) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid 00db95ce-8bd7-41aa-8f2e-9adfdad0c3ba)
    (property "Reference" "JP3" (at 234.95 34.925 90)
      (effects (font (size 1.27 1.27)) (justify right))
    )
    (property "Value" "SolderJumper_2_Open" (at 234.95 37.465 90)
      (effects (font (size 1.27 1.27)) (justify right))
    )
    (property "Footprint" "" (at 232.41 35.56 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "~" (at 232.41 35.56 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 83069ecd-ad59-4c93-8ef9-d026094c9bc3))
    (pin "2" (uuid 96dbf404-f4b7-483f-a025-717b531d8b76))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "JP3") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "power:GND") (at 233.68 109.22 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid 0e212310-8fdd-4ff1-8d95-e435b89658a0)
    (property "Reference" "#PWR04" (at 233.68 115.57 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Value" "GND" (at 233.68 114.3 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 233.68 109.22 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "" (at 233.68 109.22 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 36e1d8af-3366-4a48-9368-a5dd601905e5))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "#PWR04") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "power:GND") (at 154.94 111.76 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no)
    (uuid 121c6d1c-a1f5-4d56-af09-3e52ebb1a4bb)
    (property "Reference" "#PWR03" (at 154.94 118.11 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Value" "GND" (at 154.94 115.57 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 154.94 111.76 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "" (at 154.94 111.76 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 4c601534-6c66-485c-abf9-2e4e42b65f40))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "#PWR03") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Device:C") (at 207.01 27.94 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid 2ce680ce-f2c2-4e9e-9a1d-74ba6c48817b)
    (property "Reference" "C2" (at 210.82 27.305 0)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Value" "C" (at 210.82 29.845 0)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Footprint" "" (at 207.9752 31.75 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "~" (at 207.01 27.94 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 0662cec0-2202-4603-9d36-8e9f3d8b9496))
    (pin "2" (uuid 892f3a41-86d9-49ad-ac25-dee451d71b14))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "C2") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Transistor_BJT:BC547") (at 215.9 104.14 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid 3205edd1-a867-425d-ae7d-1bb8d6f1c310)
    (property "Reference" "Q1" (at 220.98 103.505 0)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Value" "BC547" (at 220.98 106.045 0)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Footprint" "Package_TO_SOT_THT:TO-92_Inline" (at 220.98 106.045 0)
      (effects (font (size 1.27 1.27) italic) (justify left) hide)
    )
    (property "Datasheet" "https://www.onsemi.com/pub/Collateral/BC550-D.pdf" (at 215.9 104.14 0)
      (effects (font (size 1.27 1.27)) (justify left) hide)
    )
    (pin "1" (uuid 94d63269-0152-41d6-ad7e-2afb4de58174))
    (pin "2" (uuid ed26af47-73d8-4b2e-983e-4d2142035794))
    (pin "3" (uuid cb56c9b2-b34f-4307-8c45-e13c27780f06))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "Q1") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Device:LED") (at 180.34 88.9 180) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid 3580e9c4-2a3d-4995-bd75-af710950296c)
    (property "Reference" "D2" (at 181.9275 82.55 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Value" "YELLOW" (at 181.9275 85.09 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 180.34 88.9 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "~" (at 180.34 88.9 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 6ed7dcdd-785b-4262-9430-32d78e5b98f8))
    (pin "2" (uuid ca3a2bc4-7ad6-4272-aeaf-f8b9f60505ca))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "D2") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "power:+12V") (at 208.28 76.2 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid 41eb38ea-6500-45ac-b3ae-55d0552056dd)
    (property "Reference" "#PWR05" (at 208.28 80.01 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Value" "+12V" (at 208.28 72.39 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 208.28 76.2 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "" (at 208.28 76.2 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 5232f380-b0ea-446e-987e-cfbddf510ad1))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "#PWR05") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Device:R") (at 189.23 99.06 90) (unit 1)
    (in_bom yes) (on_board yes) (dnp no)
    (uuid 46551658-701f-4cac-81b6-73aceabfbcfa)
    (property "Reference" "R2" (at 188.595 96.52 0)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Value" "R" (at 191.135 96.52 0)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Footprint" "" (at 189.23 100.838 90)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "~" (at 189.23 99.06 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 60a5f758-f111-4107-ad81-9897a81e8c72))
    (pin "2" (uuid 8338b78a-d4ee-4877-9edb-6c9fa90bdfd1))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "R2") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Jumper:SolderJumper_2_Open") (at 153.67 40.64 90) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid 46877e29-0b29-4c59-9f06-fbc295e75792)
    (property "Reference" "JP2" (at 156.21 40.005 90)
      (effects (font (size 1.27 1.27)) (justify right))
    )
    (property "Value" "SolderJumper_2_Open" (at 156.21 42.545 90)
      (effects (font (size 1.27 1.27)) (justify right))
    )
    (property "Footprint" "" (at 153.67 40.64 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "~" (at 153.67 40.64 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 6e192478-ce83-4e3d-b3ae-de8194da4ff8))
    (pin "2" (uuid a2c9e8f7-6f03-430c-8958-cc1ca7260335))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "JP2") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "power:VCC") (at 153.67 36.83 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid 47629977-4bee-467f-b20c-a8dd46c9aa96)
    (property "Reference" "#PWR013" (at 153.67 40.64 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Value" "VCC" (at 153.67 33.02 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 153.67 36.83 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "" (at 153.67 36.83 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 09aad490-f906-4f23-8b09-0e021798ae47))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "#PWR013") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "power:GND") (at 198.12 31.75 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid 480ea598-1340-484d-b2ca-4527907c5254)
    (property "Reference" "#PWR09" (at 198.12 38.1 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Value" "GND" (at 198.12 36.83 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 198.12 31.75 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "" (at 198.12 31.75 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 930d8887-c122-493b-8996-838e42296d24))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "#PWR09") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "power:VCC") (at 177.8 110.49 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid 48a677a5-b254-48a7-b557-78a334c11ebb)
    (property "Reference" "#PWR01" (at 177.8 114.3 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Value" "VCC" (at 177.8 106.68 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 177.8 110.49 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "" (at 177.8 110.49 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 50f8c0fb-0cb7-42c6-ae06-20d459cf1bdc))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "#PWR01") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "power:+12V") (at 179.07 24.13 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid 5223ddf1-58a4-4857-bd14-3c0e93b4e494)
    (property "Reference" "#PWR07" (at 179.07 27.94 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Value" "+12V" (at 179.07 20.32 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 179.07 24.13 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "" (at 179.07 24.13 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 4994b5f6-40d8-4a89-b9cf-e63abc5f4335))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "#PWR07") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Connector:AVR-ISP-6") (at 234.95 52.07 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid 56c17dff-40ed-44ec-a6db-3070309a30e3)
    (property "Reference" "J2" (at 226.06 50.165 0)
      (effects (font (size 1.27 1.27)) (justify right))
    )
    (property "Value" "AVR-ISP-6" (at 226.06 52.705 0)
      (effects (font (size 1.27 1.27)) (justify right))
    )
    (property "Footprint" "" (at 228.6 50.8 90)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" " ~" (at 202.565 66.04 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 0102319a-791d-45ce-b77b-b74db9481af3))
    (pin "2" (uuid d5891f7c-0330-48b5-8616-e231c72fe750))
    (pin "3" (uuid ef47fc65-0779-4001-977c-1e84442908ac))
    (pin "4" (uuid 5f2bf9bf-6c26-48d2-83f3-a2e1dda075a7))
    (pin "5" (uuid 65006370-8b6f-48a3-b50a-e0659ea5672a))
    (pin "6" (uuid 57271ec5-a4bc-4b7f-bb9f-aaf350672a38))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "J2") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "power:GND") (at 194.31 88.9 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no)
    (uuid 6a04ff74-ca67-461f-aacd-17cce81f4c3c)
    (property "Reference" "#PWR012" (at 194.31 95.25 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Value" "GND" (at 194.31 92.71 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 194.31 88.9 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "" (at 194.31 88.9 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid d38565c2-6d75-4307-ba24-1e53b7a56217))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "#PWR012") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "power:GND") (at 232.41 62.23 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid 73b841ca-d6b8-4552-b7ad-80937a0716d5)
    (property "Reference" "#PWR017" (at 232.41 68.58 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Value" "GND" (at 232.41 67.31 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 232.41 62.23 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "" (at 232.41 62.23 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 7ee076a7-5b58-4322-b2b0-82d28ebf2e17))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "#PWR017") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Device:R") (at 189.23 88.9 90) (unit 1)
    (in_bom yes) (on_board yes) (dnp no)
    (uuid 73f7d492-d8ca-45bb-a737-024476a3c60d)
    (property "Reference" "R4" (at 188.595 86.36 0)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Value" "R" (at 191.135 86.36 0)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Footprint" "" (at 189.23 90.678 90)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "~" (at 189.23 88.9 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid a00a27b3-c3de-4937-8873-9410ddbd08d9))
    (pin "2" (uuid 52919cbb-c88d-40ff-a249-991d4d1fbd75))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "R4") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Device:R") (at 170.18 106.68 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no)
    (uuid 7bcc8a91-36ff-406d-a4f4-0f6789a23499)
    (property "Reference" "R3" (at 172.72 106.045 0)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Value" "R" (at 172.72 108.585 0)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Footprint" "" (at 168.402 106.68 90)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "~" (at 170.18 106.68 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 37252b9e-cc53-46df-af72-f7e5ccfa9cf3))
    (pin "2" (uuid 3d50cc90-5ae4-4f12-aba8-0cfcacd6fba1))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "R3") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "power:GND") (at 218.44 109.22 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid 7dfdfd11-3448-493e-ae8f-6d5ee05dc6aa)
    (property "Reference" "#PWR014" (at 218.44 115.57 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Value" "GND" (at 218.44 114.3 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 218.44 109.22 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "" (at 218.44 109.22 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid e93c1a6b-69a2-4ca2-a107-8ae938d83c24))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "#PWR014") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Regulator_Linear:L7805") (at 198.12 24.13 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid 816ce0fb-22ca-4213-9671-847d7065a3f9)
    (property "Reference" "U3" (at 198.12 17.78 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Value" "L7805" (at 198.12 20.32 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 198.755 27.94 0)
      (effects (font (size 1.27 1.27) italic) (justify left) hide)
    )
    (property "Datasheet" "http://www.st.com/content/ccc/resource/technical/document/datasheet/41/4f/b3/b0/12/d4/47/88/CD00000444.pdf/files/CD00000444.pdf/jcr:content/translations/en.CD00000444.pdf" (at 198.12 25.4 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 3b2452bc-bb0a-4b86-be33-f3c4dad2bcaf))
    (pin "2" (uuid 4f2090a1-37cb-45a0-bb22-7ebb5c5ac9d0))
    (pin "3" (uuid 45701dbe-22a0-470b-a17d-dc89ac5bb3dc))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "U3") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "MCU_Microchip_ATtiny:ATtiny85-20P") (at 233.68 93.98 0) (mirror y) (unit 1)
    (in_bom yes) (on_board yes) (dnp no)
    (uuid 91674340-a834-4400-89d8-dd922ff33ae5)
    (property "Reference" "U2" (at 247.65 93.345 0)
      (effects (font (size 1.27 1.27)) (justify right))
    )
    (property "Value" "ATtiny85-20P" (at 247.65 95.885 0)
      (effects (font (size 1.27 1.27)) (justify right))
    )
    (property "Footprint" "Package_DIP:DIP-8_W7.62mm" (at 233.68 93.98 0)
      (effects (font (size 1.27 1.27) italic) hide)
    )
    (property "Datasheet" "http://ww1.microchip.com/downloads/en/DeviceDoc/atmel-2586-avr-8-bit-microcontroller-attiny25-attiny45-attiny85_datasheet.pdf" (at 233.68 93.98 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid bdcf9568-f9b3-4a93-b29b-a1b92208a1f4))
    (pin "2" (uuid 42c10f07-3836-4a6e-bf58-6206d2a33b80))
    (pin "3" (uuid d20386a9-2abd-4cfa-a50d-7e8d6091cf02))
    (pin "4" (uuid 73e88f1c-439e-41b8-895f-3dbf0aa43696))
    (pin "5" (uuid c44fb9b8-9556-4920-b536-6fa85521824e))
    (pin "6" (uuid 8728adf5-1bc8-4b81-b076-2cd48c4522de))
    (pin "7" (uuid 7ba0e51f-d536-412a-953b-c78a1276841b))
    (pin "8" (uuid 01dea681-417a-4b7c-9398-0d937956e638))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "U2") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Device:R") (at 208.28 80.01 0) (mirror y) (unit 1)
    (in_bom yes) (on_board yes) (dnp no)
    (uuid 93c3a4e4-718d-4c6e-9027-b969c270c3fb)
    (property "Reference" "R1" (at 205.74 79.375 0)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Value" "R" (at 205.74 81.915 0)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Footprint" "" (at 210.058 80.01 90)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "~" (at 208.28 80.01 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 84d1522e-1192-4081-bf72-8e354b0b5900))
    (pin "2" (uuid 551d49ae-8e63-4c74-9e11-e8786dbb9f08))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "R1") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "power:GND") (at 194.31 99.06 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no)
    (uuid 98f1f2ff-ce3b-4125-ae8d-ae906eb8667e)
    (property "Reference" "#PWR06" (at 194.31 105.41 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Value" "GND" (at 194.31 102.87 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 194.31 99.06 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "" (at 194.31 99.06 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 7ef6d211-98f9-4d31-8389-6273ba792a7d))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "#PWR06") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "power:VCC") (at 207.01 24.13 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid a2f694d1-c199-4085-aabb-ba0942acb802)
    (property "Reference" "#PWR08" (at 207.01 27.94 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Value" "VCC" (at 207.01 20.32 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 207.01 24.13 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "" (at 207.01 24.13 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 7f4c79b4-d47e-4f06-b765-bbf9ef1e746f))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "#PWR08") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "MCU_Microchip_ATtiny:ATtiny85-20P") (at 154.94 96.52 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid aa638d7b-39fc-45a2-9a35-050f3a02233a)
    (property "Reference" "U1" (at 140.97 95.885 0)
      (effects (font (size 1.27 1.27)) (justify right))
    )
    (property "Value" "ATtiny85-20P" (at 140.97 98.425 0)
      (effects (font (size 1.27 1.27)) (justify right))
    )
    (property "Footprint" "Package_DIP:DIP-8_W7.62mm" (at 154.94 96.52 0)
      (effects (font (size 1.27 1.27) italic) hide)
    )
    (property "Datasheet" "http://ww1.microchip.com/downloads/en/DeviceDoc/atmel-2586-avr-8-bit-microcontroller-attiny25-attiny45-attiny85_datasheet.pdf" (at 154.94 96.52 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid f660f387-21ca-4efa-b303-4eb37ca8d724))
    (pin "2" (uuid 3d786730-e2f7-4dc1-b27c-b961179f112a))
    (pin "3" (uuid 8175809e-2f73-4f63-9bd8-ac71dfd0d2c5))
    (pin "4" (uuid 43aef63d-9cd1-493c-96ef-5892b2a1ddb1))
    (pin "5" (uuid 3a319a32-8e91-4674-8d0f-1199937c9002))
    (pin "6" (uuid 9c3d0432-685c-48fd-aab9-7dae32dcd37e))
    (pin "7" (uuid 16340790-be6d-4799-85ad-157bbbf5e5bf))
    (pin "8" (uuid 6f63c8d2-3147-43f5-82c9-b006e0feb739))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "U1") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "power:VCC") (at 154.94 81.28 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid ac792076-d8ee-4ca8-a21b-cd6ed5f3bb3c)
    (property "Reference" "#PWR010" (at 154.94 85.09 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Value" "VCC" (at 154.94 77.47 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 154.94 81.28 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "" (at 154.94 81.28 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 40824cd9-0e2f-4f8a-b1ab-5adb96683f89))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "#PWR010") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Device:R") (at 207.01 104.14 90) (mirror x) (unit 1)
    (in_bom yes) (on_board yes) (dnp no)
    (uuid af0fe21c-7121-448e-8377-615e6d6190c6)
    (property "Reference" "R5" (at 206.375 106.68 0)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Value" "R" (at 208.915 106.68 0)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Footprint" "" (at 207.01 102.362 90)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "~" (at 207.01 104.14 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 42daa695-7f34-4232-99a8-e8c729e0c1b9))
    (pin "2" (uuid 71815e68-0e3f-42b7-86c7-a22239e22e83))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "R5") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "power:GND") (at 208.28 96.52 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid b4e5abc9-fae4-47d5-9c4b-b1ed19c9aacb)
    (property "Reference" "#PWR011" (at 208.28 102.87 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Value" "GND" (at 208.28 101.6 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 208.28 96.52 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "" (at 208.28 96.52 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 1c8faa61-941a-4d37-ac06-bdd821654f64))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "#PWR011") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "power:VCC") (at 233.68 78.74 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid b5bfdb89-c9a9-4b7a-869b-8b191e906cd8)
    (property "Reference" "#PWR02" (at 233.68 82.55 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Value" "VCC" (at 233.68 74.93 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 233.68 78.74 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "" (at 233.68 78.74 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 1e7573d6-db3e-44c0-919b-af25c1c2ecf2))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "#PWR02") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Jumper:Jumper_3_Open") (at 208.28 90.17 90) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid bfb6dc47-750b-41a5-8b06-e6f1b579d7a2)
    (property "Reference" "JP1" (at 205.74 89.535 90)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Value" "RESET" (at 205.74 92.075 90)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Footprint" "" (at 208.28 90.17 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "~" (at 208.28 90.17 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 121d42b1-8b60-4759-be4c-ea7ed8129ccc))
    (pin "2" (uuid 9208abac-04cf-4362-aca3-8af6fe53633f))
    (pin "3" (uuid 1cd0f65a-d5fc-481d-9a63-3ad57c0ad499))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "JP1") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "power:VCC") (at 232.41 31.75 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid c3dd7ab0-d0b9-45e9-9c2b-513f007f7eb0)
    (property "Reference" "#PWR016" (at 232.41 35.56 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Value" "VCC" (at 232.41 27.94 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 232.41 31.75 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "" (at 232.41 31.75 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 701e0217-6ae2-45bc-8de4-c298a5925c08))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "#PWR016") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Device:C") (at 189.23 27.94 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid ca0c41eb-ad8d-4fb7-8006-de018003f373)
    (property "Reference" "C1" (at 193.04 27.305 0)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Value" "C" (at 193.04 29.845 0)
      (effects (font (size 1.27 1.27)) (justify left))
    )
    (property "Footprint" "" (at 190.1952 31.75 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "~" (at 189.23 27.94 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid ccb34aa7-b971-4e6e-a0b3-83ba3773850a))
    (pin "2" (uuid f42195b9-0d46-40fb-98e2-0f3f6c78db71))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "C1") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Device:LED") (at 180.34 99.06 180) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid e91f3754-935b-44c1-996d-2bf303250be9)
    (property "Reference" "D1" (at 181.9275 92.71 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Value" "GREEN" (at 181.9275 95.25 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 180.34 99.06 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "~" (at 180.34 99.06 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 500b54ac-74b4-4288-afe9-5a793bfc8b07))
    (pin "2" (uuid 309a245f-31dd-49de-8ffa-6db0475ea8be))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "D1") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Connector:AVR-ISP-6") (at 156.21 57.15 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid eb6be05a-592a-4a3c-884a-4ba26b2128f1)
    (property "Reference" "J1" (at 147.32 55.245 0)
      (effects (font (size 1.27 1.27)) (justify right))
    )
    (property "Value" "AVR-ISP-6" (at 147.32 57.785 0)
      (effects (font (size 1.27 1.27)) (justify right))
    )
    (property "Footprint" "" (at 149.86 55.88 90)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" " ~" (at 123.825 71.12 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid d6cabaaa-ccd8-420e-9010-9d73a4e73ad0))
    (pin "2" (uuid 8e6137f3-118c-43ec-82ef-6a37e16ab150))
    (pin "3" (uuid 82af8dd4-3b48-480c-81d1-3749d1541e7c))
    (pin "4" (uuid 42f1ec46-8a1c-4bd9-adc3-d1cbf91fce15))
    (pin "5" (uuid 0f4e58be-a5f3-4276-bb57-cfaf49e63251))
    (pin "6" (uuid b8973306-bff4-43b1-87a8-b4f6e5672103))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "J1") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "power:GND") (at 153.67 67.31 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
    (uuid ebebe1ee-5170-4b19-a4de-7cf2a6c0fbac)
    (property "Reference" "#PWR015" (at 153.67 73.66 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Value" "GND" (at 153.67 72.39 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Footprint" "" (at 153.67 67.31 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "" (at 153.67 67.31 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 5f15a047-bbf8-49dc-8826-dee90ba1596a))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "#PWR015") (unit 1)
        )
      )
    )
  )

  (symbol (lib_id "Switch:SW_SPST") (at 184.15 24.13 0) (unit 1)
    (in_bom yes) (on_board yes) (dnp no)
    (uuid f2ba5c40-195a-4df7-9f2f-d97ca3b696ce)
    (property "Reference" "SW1" (at 185.42 20.32 0)
      (effects (font (size 1.27 1.27)))
    )
    (property "Value" "SW_SPST" (at 184.15 21.59 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Footprint" "" (at 184.15 24.13 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (property "Datasheet" "~" (at 184.15 24.13 0)
      (effects (font (size 1.27 1.27)) hide)
    )
    (pin "1" (uuid 621fd88d-83ef-4afd-a095-1395a04c728a))
    (pin "2" (uuid 9659d5fe-d034-413c-a2ec-d4d03f826f0d))
    (instances
      (project "tiny-hvsp"
        (path "/0fd9b7d9-5f5e-42d3-8f9a-071a64cce38e"
          (reference "SW1") (unit 1)
        )
      )
    )
  )

  (sheet_instances
    (path "/" (page "1"))
  )
)

A  => tiny-hvsp.c +140 -0
@@ 1,140 @@
/* 
 * High-voltage serial programmer software. Capable ony of resetting the
 * high fuse bits. 
 *
 * LED codes:
 * solid: fuses were reset
 * equal on/off pulses: fuses were already reset
 * short on pulses: chip not identified or verification failed
 */

#include <stdint.h>
#include <stdbool.h>
#include <avr/io.h>
#include <util/delay.h>

const uint8_t RESET = PIN4;
const uint8_t SDI = PIN3;
const uint8_t SII = PIN1;
const uint8_t SDO = PIN0;
const uint8_t SCI = PIN2;
const uint8_t LED = PIN3;

uint8_t
rw(uint8_t in, uint8_t inst)
{
	uint8_t out = 0;

	PORTB |= _BV(SCI);
	PORTB &= ~_BV(SCI);
	out |= (PINB & 1);

	for (uint8_t i = 0; i < 7; ++i) {
		PORTB = ((in & 0x80) >> 4) | ((inst & 0x80) >> 6);
		PORTB |= _BV(SCI);
		PORTB &= ~_BV(SCI);
		out <<= 1;
		out |= (PINB & 1);
		in <<= 1;
		inst <<= 1;
	}

	PORTB |= _BV(SCI);
	PORTB &= ~_BV(SCI);
	PORTB = ((in & 0x80) >> 4) | ((inst & 0x80) >> 6);

	PORTB |= _BV(SCI);
	PORTB &= ~_BV(SCI);

	PORTB |= _BV(SCI);
	PORTB &= ~_BV(SCI);

	_delay_us(50);

	return out;
}

int
main()
{
	/* 1. Set Prog_enable pins listed in Table 20-14 to “000”, RESET pin
	 * and VCC to 0V. */
	DDRB = _BV(RESET) | _BV(SDI) | _BV(SII) | _BV(SDO) | _BV(SCI);
	PORTB = _BV(RESET);

	/* 2. Apply 4.5 - 5.5V between VCC and GND. Ensure that VCC reaches at
	 * least 1.8V within the next 20 µs. */

	/* 3. Wait 20 - 60 µs, and apply 11.5 - 12.5V to RESET. */
	_delay_us(20);
	PORTB &= ~_BV(RESET);

	/* 4. Keep the Prog_enable pins unchanged for at least 10 µs after the
	 * High-voltage has been applied to ensure the Prog_enable Signature has
	 * been latched. */
	_delay_us(10);

	/* 5. Release the Prog_enable[2] pin to avoid drive contention on the Prog_enable[2]/SDO pin. */
	DDRB &= ~_BV(SDO);

	/* 6. Wait at least 300 µs before giving any serial instructions on SDI/SII. */
	_delay_us(300);

	/* Read Signature */
	rw(0x08, 0x4C);
	rw(0x00, 0x0C);
	rw(0x00, 0x68);
	uint8_t sig0 = rw(0x00, 0x6C);

	if (sig0 != 0x1e) {
		while (true) {
			PORTB |= _BV(LED);
			_delay_ms(100);
			PORTB &= ~_BV(LED);
			_delay_ms(500);
		}
	}

	/* Read Fuse High Bits */
	rw(0x04, 0x4C);
	rw(0x00, 0x7A);
	uint8_t hfuse = rw(0x00, 0x7E);

	if (hfuse == 0xdf) {
		while (true) {
			PORTB |= _BV(LED);
			_delay_ms(500);
			PORTB &= ~_BV(LED);
			_delay_ms(500);
		}
	}

	hfuse |= 0xdf;

	/* Write Fuse High Bits */
	rw(0x40, 0x4C);
	rw(hfuse, 0x2C);
	rw(0x00, 0x74);
	rw(0x00, 0x7C);
	while (!(PINB & _BV(SDO))) {}

	/* Read Fuse High Bits */
	rw(0x04, 0x4C);
	rw(0x00, 0x7A);
	uint8_t hfuse_verify = rw(0x00, 0x7E);

	/* 7. Exit Programming mode by power the device down or by bringing RESET pin to 0V. */
	PORTB |= _BV(RESET);

	if (hfuse == hfuse_verify) {
		PORTB |= _BV(LED);
		while (true) {}
	} else {
		while (true) {
			PORTB |= _BV(LED);
			_delay_ms(100);
			PORTB &= ~_BV(LED);
			_delay_ms(500);
		}
	}
}