commit 134bb392849cdd10cf347673ce591b7f790f994b Author: sirlilpanda <33928689+sirlilpanda@users.noreply.github.com> Date: Wed Aug 6 12:25:20 2025 +1200 Initial commit diff --git a/.github/rename.py b/.github/rename.py new file mode 100644 index 0000000..42229e6 --- /dev/null +++ b/.github/rename.py @@ -0,0 +1,41 @@ +from pathlib import Path +import os +import sys +from ruamel.yaml import YAML + +# renames the main project in the template dir and in the project settings +def rename_project(project_name, new_name = "template"): + """renames the kicad project""" + project_path = str(Path(f"Hardware/{project_name}_PROJECT")) + files = os.listdir(project_path) + + for index, file in enumerate(files): + print(file) + os.rename(os.path.join(project_path, file), os.path.join(project_path, file.replace(project_name, new_name))) + + os.rename(project_path, project_path.replace(project_name, new_name)) + + pcb_path = str(Path(f"Hardware/{project_name}_PCB")) + os.rename(pcb_path, pcb_path.replace(project_name, new_name)) + + doc_path = str(Path(f"Hardware/{project_name}_DOCS")) + os.rename(doc_path, doc_path.replace(project_name, new_name)) + +def main(): + yaml : YAML = YAML() + with open(Path("project_settings.yaml"), "r") as yaml_file: + settings = yaml.load(yaml_file) + + print(f"{settings['project_name']=}") + print(f"{settings=}") + rename_project(settings["project_name"], sys.argv[1]) + settings["project_name"] = sys.argv[1] + settings["needs_setup"] = False + # have to just print it out a rewrite over .project_settings because this guy + # is dumb and doesnt just let you write these out to string + with open(Path("project_settings.yaml"), "w", encoding=("utf-8")) as file: + yaml.dump(settings, file) + + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/.github/report_processing/process_bom_files.py b/.github/report_processing/process_bom_files.py new file mode 100644 index 0000000..50217ed --- /dev/null +++ b/.github/report_processing/process_bom_files.py @@ -0,0 +1,46 @@ +# look it would be piss easy to just keep it as a CSV but we can post process to add cool things like cost to each of the parts +import csv +import sys +import chevron +import datetime +from pprint import pprint + +file_path_delimter = "\\" if sys.platform == "win32" else "/" + +def load_bom(filename : str) -> dict: + out_dict = { + "parts" : [], + "time" : str(datetime.datetime.now().time()), + "date" : str(datetime.datetime.now().date().strftime("%d-%m-%Y")), + "total_cost" : 0, + "total_parts" : 0, + "project_name" : filename.strip(".csv").strip("bom").split(file_path_delimter)[-1] + } + + with open(filename, "r") as csv_file: + for row in csv.DictReader(csv_file): + part_cost = 0 + out_dict["total_parts"] += 1 + out_dict["parts"].append( + { + "Reference" : row["Refs"], + "Value" : row["Value"], + "Quantity" : row["Qty"], + "part_number" : row["Footprint"], + "cost" : part_cost, # add some API call somewhere here + } + ) + return out_dict + +def main(): + report_hash = load_bom(sys.argv[1]) + # pprint(report_hash) + with open(sys.argv[2], "r") as txt: + out = chevron.render(txt.read(), report_hash) + with open(sys.argv[3], "w") as md: + md.write(out) + + + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/.github/report_processing/process_drc_json.py b/.github/report_processing/process_drc_json.py new file mode 100644 index 0000000..a83eef3 --- /dev/null +++ b/.github/report_processing/process_drc_json.py @@ -0,0 +1,57 @@ +from violation import Violation +import datetime +import json +from pprint import pprint + + + +def process_violation_list(drc_json : dict, list_name : str) -> None: + if list_name in drc_json.keys(): + unconnected_items_errors = [] + unconnected_items_warns = [] + number_of_errors = 0 + number_of_warns = 0 + for violation in drc_json[list_name]: + v = Violation(violation, "drc") + if (v.violation_type == "error"): + unconnected_items_errors.append(v) + number_of_errors += 1 + if (v.violation_type == "warn"): + unconnected_items_warns.append(v) + number_of_warns += 1 + + drc_json[list_name] = { + "errors" : unconnected_items_errors, + "warns" : unconnected_items_warns, + "number_of_errors" : number_of_errors, + "number_of_warns" : number_of_warns, + } + else: + drc_json.setdefault(list_name, {}) + drc_json[list_name].setdefault("number_of_errors", 0) + drc_json[list_name].setdefault("number_of_warns", 0) + +def process_report(report : str) -> dict: + out_dict : dict = json.loads(report) + number_of_errors = 0; + number_of_errors = 0; + + process_violation_list(out_dict, "unconnected_items") + process_violation_list(out_dict, "violations") + process_violation_list(out_dict, "schematic_parity") + + out_dict.setdefault( + "total_errors", + out_dict["unconnected_items"]["number_of_errors"] + + out_dict["violations"]["number_of_errors"] + + out_dict["schematic_parity"]["number_of_errors"] + ) + + out_dict.setdefault( + "total_warns", + out_dict["unconnected_items"]["number_of_warns"] + + out_dict["violations"]["number_of_warns"] + + out_dict["schematic_parity"]["number_of_warns"] + ) + + return out_dict \ No newline at end of file diff --git a/.github/report_processing/process_erc_json.py b/.github/report_processing/process_erc_json.py new file mode 100644 index 0000000..b7d76f6 --- /dev/null +++ b/.github/report_processing/process_erc_json.py @@ -0,0 +1,53 @@ +from violation import Violation +import datetime +import json + +class Sheet: + def __init__(self, json_obj : dict) -> None: + self.name : str = json_obj["path"] + self.name_md : str = self.name.replace(" ", "-") + self.number_of_errors : int = 0 + self.number_of_warns : int = 0 + self.errors : list[Violation] = list() + self.warns : list[Violation] = list() + + for violation in json_obj["violations"]: + v = Violation(violation, "erc") + if (v.violation_type == "error"): + self.errors.append(v) + self.number_of_errors += 1 + if (v.violation_type == "warn"): + self.warns.append(v) + self.number_of_warns += 1 + + def to_dict(self) -> dict: + out_dict = self.__dict__ + errors_strings = [] + warns_strings = [] + + for error in out_dict["errors"]: + errors_strings.append(error.__dict__) + out_dict["errors"] = errors_strings + + for warn in out_dict["warns"]: + warns_strings.append(warn.__dict__) + out_dict["warns"] = warns_strings + + return out_dict + +def process_report(report : str) -> dict: + out_dict : dict = json.loads(report) + + sheets = [Sheet(sheet) for sheet in out_dict["sheets"]] + out_dict["sheets"] = [sheet.to_dict() for sheet in sheets] + + out_dict.setdefault( + "total_errors", + sum(sheet.number_of_errors for sheet in sheets) + ) + out_dict.setdefault( + "total_warns", + sum(sheet.number_of_warns for sheet in sheets) + ) + + return out_dict \ No newline at end of file diff --git a/.github/report_processing/process_json_reports.py b/.github/report_processing/process_json_reports.py new file mode 100644 index 0000000..732a2b3 --- /dev/null +++ b/.github/report_processing/process_json_reports.py @@ -0,0 +1,50 @@ +# usage: python process_json_reports.py report.json template.mustache outfile.md project_name +import chevron +import sys +import datetime +import json +import process_erc_json +import process_drc_json +from pprint import pprint + + +def load_report(filename : str, project_name : str) -> dict: + out_dict : dict = {} + with open(filename, "r") as js: + if ("erc" in filename.lower()): + out_dict = process_erc_json.process_report(js.read()) + if ("drc" in filename.lower()): + out_dict = process_drc_json.process_report(js.read()) + + out_dict.setdefault( + "time", + str(datetime.datetime.now().time()) + ) + + out_dict.setdefault( + "date", + str(datetime.datetime.now().date().strftime("%d-%m-%Y")) + ) + + out_dict.setdefault( + "project_name", + project_name + ) + + out_dict.setdefault( + "has_violations", + True if out_dict["total_warns"] + out_dict["total_errors"] else None + ) + + return out_dict + +def main(): + report_hash = load_report(sys.argv[1], sys.argv[4]) + # pprint(report_hash) + with open(sys.argv[2], "r") as txt: + out = chevron.render(txt.read(), report_hash) + with open(sys.argv[3], "w") as md: + md.write(out) + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/.github/report_processing/process_output_files.py b/.github/report_processing/process_output_files.py new file mode 100644 index 0000000..6ed2a4d --- /dev/null +++ b/.github/report_processing/process_output_files.py @@ -0,0 +1,94 @@ +import chevron +import sys +import datetime +import json +import glob +from pathlib import Path + +from pprint import pprint + + +# erc +# { +# "project_name" : "string", +# "passing_erc" : "bool", +# "erc_summary_link" : "link", +# } + +# drc +# { +# "project_name" : "string", +# "passing_drc" : "bool", +# "drc_summary_link" : "link", +# } + +# project +# { +# "project_name" : "string", +# "project_link" : "link", +# "schematic_link" : "link", +# "gerber_link" : "link", +# "bom_report_link" : "link", +# "bom_csv_link" : "link" +# } + +EXTRAS_FILENAME = "readme_extras.json" + +def load_json_file(filename : str) -> dict: + with open(Path(f"{filename}/{filename}"), "r") as js: + return json.loads(js.read()) + +def create_hash(filenames : list[str]) -> dict: + report_outs = filenames + report_outs.remove("readme_extras.json") + + extras = {} + with open("readme_extras.json", "r") as js: + extras = json.loads(js.read()) + + reports_dicts : list[dict] = [] + for report_name in report_outs: + reports_dicts.append(load_json_file(report_name)) + + readme_hash = { + **extras, + "projects" : [], + "did_error" : False, + "multiple_projects" : None + } + for report in reports_dicts: + for project in readme_hash["projects"]: + if project["project_name"] == report["project_name"]: + for key in report.keys(): + project.setdefault(key, report[key]) + break + else: + readme_hash["projects"].append(report) + + pprint(readme_hash) + + for project in readme_hash["projects"]: + readme_hash["did_error"] |= not project["passing_erc"] + readme_hash["did_error"] |= not project["passing_drc"] + project.setdefault("passing_erc_emoji", "βœ…" if project["passing_erc"] == "true" else "❌") + project.setdefault("passing_drc_emoji", "βœ…" if project["passing_drc"] == "true" else "❌") + + readme_hash["multiple_projects"] = True if len(readme_hash["projects"]) > 1 else None + + pprint(readme_hash) + return readme_hash + +def main(): + print(sys.argv) + + readme_template, *args = sys.argv[1:] + + report_hash = create_hash(args) + + with open(readme_template, "r") as txt: + out = chevron.render(txt.read(), report_hash) + with open("README.md", "w") as md: + md.write(out) + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/.github/report_processing/requirements.txt b/.github/report_processing/requirements.txt new file mode 100644 index 0000000..b73c523 --- /dev/null +++ b/.github/report_processing/requirements.txt @@ -0,0 +1,3 @@ +chevron +pathlib +ruamel.yaml \ No newline at end of file diff --git a/.github/report_processing/violation.py b/.github/report_processing/violation.py new file mode 100644 index 0000000..a32b77c --- /dev/null +++ b/.github/report_processing/violation.py @@ -0,0 +1,18 @@ +class Violation: + def __init__(self, violation : dict, violation_report_type : str = ["erc", "drc"]) -> None: + self.violation_type : str = \ + "warn" if violation["severity"] == "warning" else "error" + self.name : str = violation["description"] + self.content : str = "" + + # this violation_report_type purely exists because of a bug + # in kicads json output format where json output on erc reports + # the position in decimeters + for item in violation["items"]: + item_string = item["description"] + x : float = float(item["pos"]["x"]) * (100.0 if (violation_report_type == "erc") else 1.0) + y : float = float(item["pos"]["y"]) * (100.0 if (violation_report_type == "erc") else 1.0) + # print(f"{x=}") + + item_string += f" at [x = {x:.4}mm, y = {y:.4}mm]\n" + self.content += item_string diff --git a/.github/report_templates/bom_report_template.mustache b/.github/report_templates/bom_report_template.mustache new file mode 100644 index 0000000..94ec368 --- /dev/null +++ b/.github/report_templates/bom_report_template.mustache @@ -0,0 +1,29 @@ +{{! hash schema }} +{{! { + "project_name" : "the name of the project", + "time" : "the name of the project", + "date" : "the name of the project", + "total_parts" : "number", + "total_cost" : "number", + "parts" : [ + { + "Reference" : "part_reference" , + "Value" : "the value of the part" , + "Quantity" : "number" , + "part_number" : "the part number" , + "cost" : "number" + } + ] +} }} +# πŸ“„ BOM for {{project_name}} πŸ“„ + +report created at {{time}} on {{date}}. + +{{project_name}} has a total of {{total_parts}} parts with a cost of ${{total_cost}}. + +| Reference | Value | Quantity | part number | cost | +| --------- | ----- | -------- | ----------- | ---- | +{{#parts}} +| {{Reference}} | {{Value}} | {{Quantity}} | {{part_number}} | ${{cost}} | +{{/parts}} +| | total | {{total_parts}} | total | ${{total_cost}} | diff --git a/.github/report_templates/drc_report_template.mustache b/.github/report_templates/drc_report_template.mustache new file mode 100644 index 0000000..8b236be --- /dev/null +++ b/.github/report_templates/drc_report_template.mustache @@ -0,0 +1,133 @@ +{{! hash schema }} +{{! { + "date" : "the date of creation", + "time" : "the time of creation", + "total_warns" : "number", + "total_errors" : "number", + "has_violations" : "flag to say if the project has a violation", + "violations" : { + "number_of_errors" : "number", + "number_of_warns" : "number", + "warns" : [ + { + "name" : "string", + "content" : "string" + } + ], + "errors" : [ + { + "name" : "string", + "content" : "string" + } + ] + }, + "unconnected_items" : { + "number_of_errors" : "number", + "number_of_warns" : "number", + "warns" : [ + { + "name" : "string", + "content" : "string" + } + ], + "errors" : [ + { + "name" : "string", + "content" : "string" + } + ] + }, + "schematic_parity" :{ + "number_of_errors" : "number", + "number_of_warns" : "number", + "warns" : [ + { + "name" : "string", + "content" : "string" + } + ], + "errors" : [ + { + "name" : "string", + "content" : "string" + } + ] + } +} }} + +# πŸ“Ÿ {{project_name}} DRC report πŸ“Ÿ + +report created at {{time}} πŸ•§ on {{date}} πŸ—“οΈ. + +the design rule check found: +- {{total_errors}} errors in your design 😱 +- {{total_warns}} warns in your design 🫨 + +{{#has_violations}} + +number of errors and warns breakdown per sheet: +| error type | number of errors πŸ”΄ | number of warns 🟠 | +| ----------------------------------------- | -------------------------------------- | ------------------------------------- | +| [violations](#violations) ❌ | {{violations.number_of_errors}} | {{violations.number_of_warns}} | +| [unconnected items](#unconnected-items) ⛓️‍πŸ’₯| {{unconnected_items.number_of_errors}} | {{unconnected_items.number_of_warns}} | +| [schematic parity](#schematic-parity) πŸ”— | {{schematic_parity.number_of_errors}} | {{schematic_parity.number_of_warns}} | +| total | {{total_errors}} | {{total_warns}} | + +below is a more in-depth breakdown of the errors and warns per error type. +note you should only use this for quickly checking that the project +you uploaded has no error or warn. YOU SHOULD *NOT* use this to actually +run the drc in kicad so you can see where is erroring. + + +# violations + +## errors : {{violations.number_of_errors}} +{{#violations.errors}} +### {{name}} +{{content}} +{{loction}} +{{/violations.errors}} + +## warns : {{violations.number_of_warns}} +{{#violations.warns}} +### {{name}} +{{content}} +{{loction}} +{{/violations.warns}} + +# unconnected items + +## errors : {{unconnected_items.number_of_errors}} +{{#unconnected_items.errors}} +### {{name}} +{{content}} +{{loction}} +{{/unconnected_items.errors}} + +## warns : {{unconnected_items.number_of_warns}} +{{#unconnected_items.warns}} +### {{name}} +{{content}} +{{loction}} +{{/unconnected_items.warns}} + +# schematic parity + +## errors : {{schematic_parity.number_of_errors}} +{{#schematic_parity.errors}} +### {{name}} +{{content}} +{{loction}} +{{/schematic_parity.errors}} + +## warns : {{schematic_parity.number_of_warns}} +{{#schematic_parity.warns}} +### {{name}} +{{content}} +{{loction}} +{{/schematic_parity.warns}} + +{{/has_violations}} +{{^has_violations}} +the design had no errors or warns, good job. βœ…βœ… +{{/has_violations}} diff --git a/.github/report_templates/erc_report_template.mustache b/.github/report_templates/erc_report_template.mustache new file mode 100644 index 0000000..5c5ec0b --- /dev/null +++ b/.github/report_templates/erc_report_template.mustache @@ -0,0 +1,73 @@ +{{! hash schema }} +{{! { + "date" : "the date of creation", + "time" : "the time of creation", + "total_warns" : "number", + "total_errors" : "number", + "has_violations" : "flag to say if the project has a violation", + "sheets" : [ + { + "name" : "string", + "name_md" : "just name but i replaced the spaces with hyphens", + "number_of_errors" : "number", + "number_of_warns" : "number", + "warns" : [ + { + "name" : "string", + "content" : "string" + } + ], + "errors" : [ + { + "name" : "string", + "content" : "string" + } + ] + } + ] +} }} +# ⚑{{project_name}} ERC report ⚑ + +report created at {{time}} πŸ•§ on {{date}} πŸ—“οΈ. + +the electronic rules check found: +- {{total_errors}} errors in your design 😱 +- {{total_warns}} warns in your design 🫨 + +{{#has_violations}} + + +number of errors and warns breakdown per sheet: +| sheet name πŸ“„| number of errors πŸ”΄ | number of warns 🟠 | +| ---------- | ---------------- | --------------- | +{{#sheets}} +| [{{name}}](#{{name_md}}) | {{number_of_errors}} | {{number_of_warns}} | +{{/sheets}} +| total | {{total_errors}}| {{total_warns}}| + +below is a more in-depth breakdown of the errors and warn per sheets. +note you should only use this for quickly checking that the project +you uploaded has no error or warn. YOU SHOULD *NOT* use this to actually +run your ERC in kicad so you can see where is erroring. + +{{#sheets}} + +# {{name}} +## errors : {{number_of_errors}} +{{#errors}} +### {{name}} +{{content}} +{{/errors}} + +## warns : {{number_of_warns}} +{{#warns}} +### {{name}} +{{content}} +{{/warns}} + +{{/sheets}} + +{{/has_violations}} +{{^has_violations}} +the design had no errors or warns, good job. βœ…βœ… +{{/has_violations}} \ No newline at end of file diff --git a/.github/report_templates/how_templates_work.md b/.github/report_templates/how_templates_work.md new file mode 100644 index 0000000..d52b322 --- /dev/null +++ b/.github/report_templates/how_templates_work.md @@ -0,0 +1,5 @@ +# how the templates work + +templates work by using a json file to fill in the templating spots. for more information on the templates checkout [mustache templates](https://mustache.github.io/). these templates use a json file format as what they call a "hash" to fill out the templates. the hashs for each of these templates are layout at the top of each of the `.mustache` files in a comment. These are also the hashes outputted by the processing scripts. usages for these scripts are at the top of the file. + +if any schema says bool this actually means the value is either something or either doesnt exist/null. \ No newline at end of file diff --git a/.github/report_templates/readme.mustache b/.github/report_templates/readme.mustache new file mode 100644 index 0000000..6ba1f6c --- /dev/null +++ b/.github/report_templates/readme.mustache @@ -0,0 +1,153 @@ +{{! hash schema }} +{{! { + "badge" : "the ci badge", + "lastest_action_run_link" : "link to the lastest action", + "did_error" : "to check if errors occured in the pipeline", + "title" : "the tiltle of the project, can be set in project_settings or it will use the repo name", + "multiple_projects" : "bool", + "projects" : [ + { + "project_name" : "string", + "project_link" : "link", + "passing_erc" : "bool", + "passing_erc_emoji" : "string", + "erc_summary_link" : "link", + "passing_drc" : "bool", + "passing_drc_emoji" : "string", + "drc_summary_link" : "link", + "gerber_link" : "link", + "schematic_link" : "link", + "bom_report_link" : "link", + "bom_csv_link" : "link" + } + ] +} }} +# kicad project {{title}} +{{badge}} +{{! [![.github/workflows/main.yaml](https://github.com/sirlilpanda/kicad-project-template/actions/workflows/main.yaml/badge.svg)](https://github.com/sirlilpanda/kicad-project-template/actions/workflows/main.yaml) }} + +a cool table showing the workflow of all the kicad projects. +| project_name | DRC | ERC | +| ------------ | --- | --- | +{{#projects}} +| {{project_name}} | [{{passing_erc_emoji}}]({{erc_summary_link}})| [{{passing_drc_emoji}}]({{drc_summary_link}}) | +{{/projects}} + +for a quick guide check [project setup](#project-setup) + +This is a simple project template for new kicad projects. This template has some basic setup already completed such as workflows for auto creating all the things you forget when creating a kicad project such as: + +{{^multiple_projects}} +{{#projects}} +- [gerbers]({{gerber_link}}) +- [bom]({{bom_report_link}}) +- [schematic pdf]({{schematic_link}}) +{{/projects}} +{{/multiple_projects}} + +{{#multiple_projects}} +| project_name | schematic | bom | bom report | gerbers | +| ------------ | --------- | --- | ---------- | ------- | +{{#projects}} +| [{{project_name}}]({{project_link}}) | [{{project_name}}_schematic.pdf]({{schematic_link}}) | [{{project_name}}_bill_of_materials.csv]({{bom_csv_link}}) | [{{project_name}}_bom_report.md]({{bom_report_link}}) | [{{project_name}}_grbr.zip]({{gerber_link}}) | +{{/projects}} +{{/multiple_projects}} + +This workflow will also run the design rules check on the PCB and schematic to ensure that you upload a working PCB. These reports are uploaded as summaries within the github [actions tab]({{lastest_action_run_link}}). This template has a simple schematic PCB in it (because DRC fails on an empty PCB). Shown below is the example PCB. + +![example pcb with battery diode and resistor](res/image.png) + +besides from that the project also has: + +- common predefined trace widths +- smallest vias size [JLCPBC allows](https://jlcpcb.com/capabilities/Capabilities#Drilling) +- custom net colours in the schematic editor + - `red` for +V + - `blue` for -V + - `grey` for ground + +to create a repo from this template follow this [guide](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template) + +contained in this template are: +--- +- `.github/` : all files relating to github actions and other admin see [here](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions) for more example of what can be placed in it + - `report_processing` : where the python scripts are stored for processing the json report data from kicad + - `report_templates` : where the template for said reports are stored + - `workflows/` : this is where the github actions are kept + - `main.yaml` : the main github action that will auto generate all files required and run DRC and ERC + - `rename.py` : the script for renaming the project +- `hardware/` : this is where the kicad projects live note this can be changed +- `docs/` : this is where the generate docs are placed by default + - `BOM/` : where the bill of materials and price breakdown are kept + - `bill_of_materials.csv`: the auto generated bom for the kicad project + - `bom_report.md` : a report for the bill of materials + - `template_schematic.pdf` : the schematic for the kicad project, auto generated by the github action +- `pcbs/` : this is where the auto generated gerbers for the kicad project are stored + +- `res/` : where resources are stored for the README + +- `.gitignore`: a slightly modified gitignore from the [standard one](https://github.com/github/gitignore/blob/main/KiCad.gitignore) + +- `project_settings.yaml` : where the settings for this project is stored + +- `README.md` : this file, suggest you change this one creating your project + +## project settings +there are currently very few project settings that can be changed (will will be change in the future) these are: +| setting | description | +| --------------------------- | ----------------------------------------------------------------- | +| has_been_set_up | a flag to tell the setup action if the project has been set up | +| project_name | the name of the project, this will be set to the name of the repo | +| production_formats | the output production format for the PCBs | +| dynamic_read_me | allow the readme to be updated using the given template | +| bom_template_path | the template used to write the bom report files | +| erc_report_template_path | the template used to write the erc report files | +| drc_report_template_path | the template used to write the drc report files | +| readme_template_path | the template used to write projects readme | +| schematic_output_name | the name suffix of the generated schematics | +| bom_csv_output_name | the name suffix of the generated bom csv file | +| bom_report_output_name | the name suffix of the generated bom report | +| production_file_output_name | the name suffix of the generated production file | +| schematic_output_path | the output path of the generated schematics files | +| bom_csv_output_path | the output path of the generated bom csv file | +| bom_report_output_path | the output path of the generated bom report | +| production_file_output_path | the output path of the generated production file | + +## project setup + +### creating a new repo with the template + +creating a new template from a repo is simple: + +1. click on the button in the top right hand corner called `use this template` +![alt text](res/image-5.png) + +2. when the drop down menu appears click on `create a new repository` +![alt text](res/image-6.png) + +3. once you click you will be brought to this page, note that the repo name you choose here will be the name that you kicad project is called. +![alt text](res/image-7.png) + +after these steps you then need to configure the repo settings to do their magic see [configuring repo settings](#configuring-repo-settings) for what to do next. + +### configuring repo settings + +once you have created a new repo with the template, you ill have to configure the github action settings. this is because you will get an error that looks something along these lines: +![alt text](res/image-4.png) +where the action can not commit the changes due to not having permissions follow these steps: +1. open the repo setting +![alt text](res/image-1.png) +2. then head in to actions : General +![alt text](res/image-2.png) +3. then scroll down to workflow permissions and ensure that both + `Read and write permissions` and `Allow GitHub Actions to create and approve pull requests` are ticked as seen below +![alt text](res/image-3.png) + +this should fix the problem if not, go harass stack overflow they need it +Once all of these steps have been followed the workflow should be passing, however the `README.md` will only update on the next push request. + +## editing the readme + +As this repo can and will automatically update the repo corresponding to the given readme template. If you dont want to use this you can always disable this by setting the `dynamic_read_me` to `false`. but if you want some very cool features like auto updating tables to show what projects are passing the rules check or simple links to parts of your directory. then have a look at the template readme and learn [mustache](https://mustache.github.io/) + +## improvements diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..87a69e0 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,539 @@ +on: + push: + branches: [main, master, workflow_testing] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + + +env: + ERC_JOB_NAME : "⚑ERC report⚑" + DRC_JOB_NAME : "πŸ“Ÿ DRC report πŸ“Ÿ" + +jobs: + setup_new_project: # this job only exists for project creation + runs-on: ubuntu-latest + name: set up project + steps: + - name: Checkout + uses: actions/checkout@v4 + + # reads the project_setting.yaml file allowing you to access it with steps.id.outputs.[key] + - name: read yaml file + uses: juliojimenez/yamler@v1.1.0 + id: yaml + with: + yaml-file: ${{ github.workspace }}/project_settings.yaml + + - name: check setup + run: | + echo ${{steps.yaml.outputs.needs_setup}} + + - name: Setting up Python and chevron to processes failed reports + # workflows really need some more work done on them + if: ${{ !cancelled() && steps.yaml.outputs.needs_setup == 'true' && github.repository != 'sirlilpanda/kicad-project-template'}} + uses: actions/setup-python@v5 + with: + python-version: '3.10' + cache: 'pip' + + - name: installing requirements + if: ${{ !cancelled() && steps.yaml.outputs.needs_setup == 'true' && github.repository != 'sirlilpanda/kicad-project-template'}} + run: pip install -r ${{ github.workspace }}/.github/report_processing/requirements.txt + + - name: rename project if setup has not been completed + if: ${{ !cancelled() && steps.yaml.outputs.needs_setup == 'true' && github.repository != 'sirlilpanda/kicad-project-template'}} + run: python ${{ github.workspace }}/.github/rename.py ${{github.event.repository.name}} + + - name: commit production files + if: ${{ !cancelled() && steps.yaml.outputs.needs_setup == 'true' && github.repository != 'sirlilpanda/kicad-project-template'}} + uses: EndBug/add-and-commit@v9 + with: + default_author: github_actions + message: 'setup project' + push: true + add: "." + + setup_matrixs: + outputs: + projects: ${{ steps.projects.outputs.projects }} + runs-on: ubuntu-latest + name: matrix setup πŸ—“οΈ + needs: setup_new_project + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setting up Python + # workflows really need some more work done on them + uses: actions/setup-python@v5 + with: + python-version: '3.10' + cache: 'pip' + + - name: installing requirements + run: pip install pyyaml + + - name: creating list start + run: + echo -n "projects=[" >> temp.txt + + # this find commad outputs path1,path2,path3 with out the .kicad_pro ext + # .kicad_pro ext is removed because the erc and drc steps want either a + # .kicad_sch or .kicad_pcb file it also makes it easier to name files + # with the project name + # this output will look like + # projects=["path/projet_name", "path/projet_name2", ...] + - name: get kicad project names + run: + find . -type f -name "*.kicad_pro" -exec sh -c 'echo -n "\"${0%.kicad_pro}\","' {} \; | sed 's/.\{1\}$//' >> temp.txt + + - name: creating list end + run: + echo "]" >> temp.txt + + - name: list output + run: + cat temp.txt + + - name: creating list end + id: projects + run: + cat temp.txt >> "$GITHUB_OUTPUT" + + +# basename is used here to remove the rest of the path from the find +# + DRC: + runs-on: ubuntu-latest + name: "πŸ“Ÿ DRC report πŸ“Ÿ" + needs: setup_matrixs + strategy: + matrix: + project_path: ${{ fromJSON(needs.setup_matrixs.outputs.projects) }} + steps: + + + - name: check matrix + run: basename ${{ matrix.project_path }} + + - name: setting env + run: + echo "PROJECT_NAME=$(basename ${{ matrix.project_path }})" >> $GITHUB_ENV + + - name: Checkout + uses: actions/checkout@v4 + + - name: read-yaml-file + uses: juliojimenez/yamler@v1.1.0 + id: yaml + with: + yaml-file: ${{ github.workspace }}/project_settings.yaml + + - name: Setting up Python and chevron to processes reports + # workflows really need some more work done on them + uses: actions/setup-python@v5 + with: + python-version: '3.10' + cache: 'pip' + + - name: installing requirements + run: pip install -r ${{ github.workspace }}/.github/report_processing/requirements.txt + + - name: Run KiCad DRC + id: drc + uses: sparkengineering/kicad-action@v4 + with: + kicad_pcb: ${{ matrix.project_path }}.kicad_pcb + pcb_drc: true + report_format: json + pcb_drc_file: drc.json + + - name: checking files were created + run: + ls -R + + - name: creating DRC report in markdown + if: ${{ always() }} + run: python + ${{ github.workspace }}/.github/report_processing/process_json_reports.py + ${{ github.workspace }}/$(dirname ${{matrix.project_path}})/drc.json + ${{ github.workspace }}/${{steps.yaml.outputs.drc_report_template_path}} + ${{ github.workspace }}/${{ env.PROJECT_NAME }}_drc.md + ${{ env.PROJECT_NAME }} + + - name: upload report summary + if: ${{ always() }} + run: cat ${{ github.workspace }}/${{ env.PROJECT_NAME }}_drc.md >> $GITHUB_STEP_SUMMARY + + - name: get summary url + if: ${{always()}} + id: exp + uses: pl-strflt/job-summary-url-action@v1 + with: + job: "${{env.DRC_JOB_NAME}} (${{matrix.project_path}})" + + - name: create files to upload + if: ${{always()}} + run: | + echo "{\"passing_drc\":\"${{steps.drc.conclusion != 'failure'}}\",\"project_name\":\"${{env.PROJECT_NAME}}\", \"drc_summary_link\":\"${{ steps.exp.outputs.job_summary_url }}\"}" >> ${{env.PROJECT_NAME}}_drc.json + + - name: upload data for readme updating + if: ${{always()}} + uses: actions/upload-artifact@v4 + with: + name: ${{env.PROJECT_NAME}}_drc.json + path: ${{env.PROJECT_NAME}}_drc.json + + ERC: + runs-on: ubuntu-latest + name: "⚑ERC report⚑" + needs: setup_matrixs + strategy: + matrix: + project_path: ${{ fromJSON(needs.setup_matrixs.outputs.projects) }} + steps: + - name: check matrix + run: basename ${{ matrix.project_path }} + + - name: setting env + run: + echo "PROJECT_NAME=$(basename ${{ matrix.project_path }})" >> $GITHUB_ENV + + - name: setting env + run: + echo "PROJECT_NAME=$(basename ${{ matrix.project_path }})" >> $GITHUB_ENV + + - name: Checkout + uses: actions/checkout@v4 + + - name: read-yaml-file + uses: juliojimenez/yamler@v1.1.0 + id: yaml + with: + yaml-file: ${{ github.workspace }}/project_settings.yaml + + - name: Setting up Python and chevron to processes reports + # workflows really need some more work done on them + uses: actions/setup-python@v5 + with: + python-version: '3.10' + cache: 'pip' + + - name: installing requirements + run: pip install -r ${{ github.workspace }}/.github/report_processing/requirements.txt + + - name: Run KiCad ERC + id: erc + uses: sparkengineering/kicad-action@v4 + with: + kicad_sch: ${{ matrix.project_path }}.kicad_sch + sch_erc: true + report_format: json + sch_erc_file: erc.json + + - name: checking files were created + run: + ls -R + + - name: creating ERC report in markdown + if: ${{ always() }} + run: python + ${{ github.workspace }}/.github/report_processing/process_json_reports.py + ${{ github.workspace }}/$(dirname ${{matrix.project_path}})/erc.json + ${{ github.workspace }}/${{steps.yaml.outputs.erc_report_template_path}} + ${{ github.workspace }}/${{ env.PROJECT_NAME }}_erc.md + ${{ env.PROJECT_NAME }} + + - name: upload report summary + if: ${{ always() }} + run: cat ${{ github.workspace }}/${{ env.PROJECT_NAME }}_erc.md >> $GITHUB_STEP_SUMMARY + + - name: get summary url + if: ${{always()}} + id: exp + uses: pl-strflt/job-summary-url-action@v1 + with: + job: "${{env.ERC_JOB_NAME}} (${{matrix.project_path}})" + + - name: print summary url + if: ${{always()}} + run: echo '${{ steps.exp.outputs.job_summary_url }}' + shell: bash + + + - name: create files to upload + if: ${{always()}} + run: | + echo "{\"passing_erc\":\"${{steps.erc.conclusion != 'failure'}}\",\"project_name\":\"${{env.PROJECT_NAME}}\", \"erc_summary_link\":\"${{ steps.exp.outputs.job_summary_url }}\"}" >> ${{env.PROJECT_NAME}}_erc.json + + - name: upload data for readme updating + if: ${{always()}} + uses: actions/upload-artifact@v4 + with: + name: ${{env.PROJECT_NAME}}_erc.json + path: ${{env.PROJECT_NAME}}_erc.json + + production_job: + runs-on: ubuntu-latest + name: creating production files bom sch gerbers πŸ“‚ + needs: setup_matrixs + strategy: + matrix: + project_path: ${{ fromJSON(needs.setup_matrixs.outputs.projects) }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + + + - name: read-yaml-file + uses: juliojimenez/yamler@v1.1.0 + id: yaml + with: + yaml-file: ${{ github.workspace }}/project_settings.yaml + + - name: setting env + run: + echo "PROJECT_NAME=$(basename ${{ matrix.project_path }})" >> $GITHUB_ENV + + - name: setting env + run: | # | the / here is defined in the project settings + echo "schematic_file=${{env.PROJECT_NAME}}${{steps.yaml.outputs.schematic_output_name}}.pdf" >> $GITHUB_ENV + echo "bill_of_materials_file=${{env.PROJECT_NAME}}${{steps.yaml.outputs.bom_csv_output_name}}.csv" >> $GITHUB_ENV + echo "production_format_file=${{env.PROJECT_NAME}}${{steps.yaml.outputs.production_file_output_name}}.zip" >> $GITHUB_ENV + echo "bom_report_file=${{env.PROJECT_NAME}}${{steps.yaml.outputs.bom_report_output_name}}.md" >> $GITHUB_ENV + + + - name: checking envs + run: + echo "${{env.schematic_file}}" + echo "${{env.bill_of_materials_file}}" + echo "${{env.production_format_file}}" + echo "${{env.bom_report_file}}" + + + - name: setting env + run: + echo "PROJECT_NAME=$(basename ${{ matrix.project_path }})" >> $GITHUB_ENV + + - name: setting env + run: | # | the / here is defined in the project settings + echo "schematic_file=${{env.PROJECT_NAME}}${{steps.yaml.outputs.schematic_output_name}}.pdf" >> $GITHUB_ENV + echo "bill_of_materials_file=${{env.PROJECT_NAME}}${{steps.yaml.outputs.bom_csv_output_name}}.csv" >> $GITHUB_ENV + echo "production_format_file=${{env.PROJECT_NAME}}${{steps.yaml.outputs.production_file_output_name}}.zip" >> $GITHUB_ENV + echo "bom_report_file=${{env.PROJECT_NAME}}${{steps.yaml.outputs.bom_report_output_name}}.md" >> $GITHUB_ENV + + + - name: checking envs + run: + echo "${{env.schematic_file}}" + echo "${{env.bill_of_materials_file}}" + echo "${{env.production_format_file}}" + echo "${{env.bom_report_file}}" + + - name: Setting up Python and chevron to processes reports + # workflows really need some more work done on them + if: ${{ !cancelled() }} + uses: actions/setup-python@v5 + with: + python-version: '3.10' + cache: 'pip' + + - name: installing requirements + if: ${{ !cancelled() }} + run: pip install -r ${{ github.workspace }}/.github/report_processing/requirements.txt + + - name: Export production files + id: production + uses: sparkengineering/kicad-action@v4 + if: '!cancelled()' + with: + kicad_sch: ${{ matrix.project_path }}.kicad_sch + sch_pdf: true # Generate PDF + sch_bom: true # Generate BOM + kicad_pcb: ${{ matrix.project_path }}.kicad_pcb + pcb_gerbers: true # Generate Gerbers + + - name: Moving production files to correct location + if: ${{ !cancelled() && steps.production.conclusion == 'success' }} + run: | + mv ${{ github.workspace }}/$(dirname ${{matrix.project_path}})/sch.pdf ${{ github.workspace }}/${{env.schematic_file}} + mv ${{ github.workspace }}/$(dirname ${{matrix.project_path}})/bom.csv ${{ github.workspace }}/${{env.bill_of_materials_file}} + mv ${{ github.workspace }}/$(dirname ${{matrix.project_path}})/gbr.zip ${{ github.workspace }}/${{env.production_format_file}} + + + - name: creating BOM report in markdown + if: ${{ !cancelled() }} + run: python + ${{ github.workspace }}/.github/report_processing/process_bom_files.py + ${{ github.workspace }}/${{env.bill_of_materials_file}} + ${{ github.workspace }}/${{steps.yaml.outputs.bom_template_path}} + ${{ github.workspace }}/${{env.bom_report_file}} + + - name: upload report' + uses: actions/upload-artifact@v4 + with: + name: production-files-${{env.PROJECT_NAME}}.zip + path: | + ${{ github.workspace }}/${{env.schematic_file}} + ${{ github.workspace }}/${{env.bill_of_materials_file}} + ${{ github.workspace }}/${{env.production_format_file}} + ${{ github.workspace }}/${{env.bom_report_file}} + + - name: data for readme updating + if: ${{always()}} + run: | + echo "{" >> ${{env.PROJECT_NAME}}_project.json + echo "\"schematic_link\":\"https://github.com/${{ github.repository }}/tree/${{ github.ref_name }}/${{env.schematic_file}}\"," >> ${{env.PROJECT_NAME}}_project.json + echo "\"bom_csv_link\":\"https://github.com/${{ github.repository }}/tree/${{ github.ref_name }}/${{env.bill_of_materials_file}}\"," >> ${{env.PROJECT_NAME}}_project.json + echo "\"bom_report_link\":\"https://github.com/${{ github.repository }}/tree/${{ github.ref_name }}/${{env.bom_report_file}}\"," >> ${{env.PROJECT_NAME}}_project.json + echo "\"gerber_link\":\"https://github.com/${{ github.repository }}/tree/${{ github.ref_name }}/${{env.production_format_file}}\"," >> ${{env.PROJECT_NAME}}_project.json + echo "\"project_link\":\"https://github.com/${{ github.repository }}/tree/${{ github.ref_name }}/$(dirname ${{matrix.project_path}})\"," >> ${{env.PROJECT_NAME}}_project.json + echo "\"project_name\":\"${{env.PROJECT_NAME}}\"" >> ${{env.PROJECT_NAME}}_project.json + echo "}" >> ${{env.PROJECT_NAME}}_project.json + + - name: upload report + if: ${{always()}} + uses: actions/upload-artifact@v4 + with: + name: ${{env.PROJECT_NAME}}_project.json + path: ${{env.PROJECT_NAME}}_project.json + + readme_job: + runs-on: ubuntu-latest + name: update readme + if: ${{ always() }} + needs: [DRC, ERC, production_job] + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: read-yaml-file + uses: juliojimenez/yamler@v1.1.0 + id: yaml + with: + yaml-file: ${{ github.workspace }}/project_settings.yaml + + - name: download ercs files + if: ${{ steps.yaml.outputs.dynamic_read_me == 'true' }} + uses: actions/download-artifact@v4 + with: + pattern: "*_erc.json" + path: ${{ github.workspace }} + + - name: download drcs files + if: ${{ steps.yaml.outputs.dynamic_read_me == 'true' }} + uses: actions/download-artifact@v4 + with: + pattern: "*_drc.json" + path: ${{ github.workspace }} + + - name: download production json files + if: ${{ steps.yaml.outputs.dynamic_read_me == 'true' }} + uses: actions/download-artifact@v4 + with: + pattern: "*_project.json" + path: ${{ github.workspace }} + + - name: Setting up Python + if: ${{ steps.yaml.outputs.dynamic_read_me == 'true' }} + uses: actions/setup-python@v5 + with: + python-version: '3.10' + cache: 'pip' + - name: installing requirements + if: ${{ !cancelled() && steps.yaml.outputs.dynamic_read_me == 'true' }} + run: pip install -r ${{ github.workspace }}/.github/report_processing/requirements.txt + + - name: create extra info for readme hash + if: ${{ steps.yaml.outputs.dynamic_read_me == 'true' }} + run: | + echo "{" >> readme_extras.json + echo "\"badge\" : \"[![.github/workflows/main.yaml](https://github.com/${{github.repository}}/actions/workflows/main.yaml/badge.svg?branch=${{github.ref_name}})](https://github.com/${{github.repository}}/actions/workflows/main.yaml)\"," >> readme_extras.json + echo "\"lastest_action_run_link\" : \"https://github.com/${{github.repository}}/actions/runs/${{ github.run_id }}\"," >> readme_extras.json + echo "\"title\" : \"${{steps.yaml.outputs.project_name}}\"" >> readme_extras.json + echo "}" >> readme_extras.json + - name: show extras + run: + cat readme_extras.json + + - name: create new readme + if: ${{ steps.yaml.outputs.dynamic_read_me == 'true' }} + run: + python + ${{ github.workspace }}/.github/report_processing/process_output_files.py + ${{ github.workspace }}/${{steps.yaml.outputs.readme_template_path}} *.json + + - name: upload data for readme updating + if: ${{ steps.yaml.outputs.dynamic_read_me == 'true' }} + uses: actions/upload-artifact@v4 + with: + name: README.md + path: README.md + + - name: list everything + if: ${{always()}} + run: ls -R + + upload_job: + runs-on: ubuntu-latest + name: commit production files + if: ${{ always() }} + needs: [readme_job] + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: read-yaml-file + uses: juliojimenez/yamler@v1.1.0 + id: yaml + with: + yaml-file: ${{ github.workspace }}/project_settings.yaml + + - name: download production files + uses: actions/download-artifact@v4 + with: + pattern: production-files-* + path: ${{ github.workspace }} + + - name: download readme + uses: actions/download-artifact@v4 + with: + name: README.md + path: ${{ github.workspace }} + + - name: check downloads + run: ls -R + + - name: Moving files to correct location + run: | + mv ${{ github.workspace }}/production-files-*/*${{steps.yaml.outputs.schematic_output_name}}.pdf ${{ github.workspace }}/${{steps.yaml.outputs.schematic_output_path}} + mv ${{ github.workspace }}/production-files-*/*${{steps.yaml.outputs.bom_csv_output_name}}.csv ${{ github.workspace }}/${{steps.yaml.outputs.bom_csv_output_path}} + mv ${{ github.workspace }}/production-files-*/*${{steps.yaml.outputs.bom_report_output_name}}.md ${{ github.workspace }}/${{steps.yaml.outputs.bom_report_output_path}} + mv ${{ github.workspace }}/production-files-*/*${{steps.yaml.outputs.production_file_output_name}}.zip ${{ github.workspace }}/${{steps.yaml.outputs.production_file_output_path}} + + - name: commit production files + uses: EndBug/add-and-commit@v9 + with: + default_author: github_actions + message: 'production files' + push: true + pull: '--rebase --autostash' + tag_push: '--force' # just makes life easier + tag: 'v1.0.0 --force' + add: | + ${{ github.workspace }}/*${{steps.yaml.outputs.schematic_output_name}}.pdf + ${{ github.workspace }}/*${{steps.yaml.outputs.bom_csv_output_name}}.csv + ${{ github.workspace }}/*${{steps.yaml.outputs.bom_report_output_name}}.md + ${{ github.workspace }}/*${{steps.yaml.outputs.production_file_output_name}}.zip + ${{ github.workspace }}/README.md + + - name: list everything + if: ${{always()}} + run: ls -R + + + + \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a2fe891 --- /dev/null +++ b/.gitignore @@ -0,0 +1,31 @@ +# For PCBs designed using KiCad: https://www.kicad.org/ +# Format documentation: https://kicad.org/help/file-formats/ + +# Temporary files +Hardware/*/*.000 +Hardware/*/*.bak +Hardware/*/*.bck +Hardware/*/*.kicad_pcb-bak +Hardware/*/*.kicad_sch-bak +Hardware/*/*-backups +Hardware/*/*.kicad_prl +Hardware/*/*.sch-bak +Hardware/*/*~ +Hardware/*/_autosave-* +Hardware/*/*.tmp +Hardware/*/*-save.pro +Hardware/*/*-save.kicad_pcb +Hardware/*/fp-info-cache + +# Netlist files (exported from Eeschema) +Hardware/*/*.net + +# Autorouter files (exported from Pcbnew) +Hardware/*/*.dsn +Hardware/*/*.ses + +# Exported BOM files +Hardware/*/*.xml +Hardware/*/*.csv + +__pycache__/ diff --git a/Hardware/tempalate_project/template.kicad_pcb b/Hardware/tempalate_project/template.kicad_pcb new file mode 100644 index 0000000..c2f3b2e --- /dev/null +++ b/Hardware/tempalate_project/template.kicad_pcb @@ -0,0 +1,2392 @@ +(kicad_pcb + (version 20240108) + (generator "pcbnew") + (generator_version "8.0") + (general + (thickness 1.6) + (legacy_teardrops no) + ) + (paper "A4") + (layers + (0 "F.Cu" signal) + (1 "In1.Cu" signal) + (2 "In2.Cu" signal) + (31 "B.Cu" signal) + (32 "B.Adhes" user "B.Adhesive") + (33 "F.Adhes" user "F.Adhesive") + (34 "B.Paste" user) + (35 "F.Paste" user) + (36 "B.SilkS" user "B.Silkscreen") + (37 "F.SilkS" user "F.Silkscreen") + (38 "B.Mask" user) + (39 "F.Mask" user) + (40 "Dwgs.User" user "User.Drawings") + (41 "Cmts.User" user "User.Comments") + (42 "Eco1.User" user "User.Eco1") + (43 "Eco2.User" user "User.Eco2") + (44 "Edge.Cuts" user) + (45 "Margin" user) + (46 "B.CrtYd" user "B.Courtyard") + (47 "F.CrtYd" user "F.Courtyard") + (48 "B.Fab" user) + (49 "F.Fab" user) + (50 "User.1" user) + (51 "User.2" user) + (52 "User.3" user) + (53 "User.4" user) + (54 "User.5" user) + (55 "User.6" user) + (56 "User.7" user) + (57 "User.8" user) + (58 "User.9" user) + ) + (setup + (stackup + (layer "F.SilkS" + (type "Top Silk Screen") + ) + (layer "F.Paste" + (type "Top Solder Paste") + ) + (layer "F.Mask" + (type "Top Solder Mask") + (thickness 0.01) + ) + (layer "F.Cu" + (type "copper") + (thickness 0.035) + ) + (layer "dielectric 1" + (type "prepreg") + (thickness 0.1) + (material "FR4") + (epsilon_r 4.5) + (loss_tangent 0.02) + ) + (layer "In1.Cu" + (type "copper") + (thickness 0.035) + ) + (layer "dielectric 2" + (type "core") + (thickness 1.24) + (material "FR4") + (epsilon_r 4.5) + (loss_tangent 0.02) + ) + (layer "In2.Cu" + (type "copper") + (thickness 0.035) + ) + (layer "dielectric 3" + (type "prepreg") + (thickness 0.1) + (material "FR4") + (epsilon_r 4.5) + (loss_tangent 0.02) + ) + (layer "B.Cu" + (type "copper") + (thickness 0.035) + ) + (layer "B.Mask" + (type "Bottom Solder Mask") + (thickness 0.01) + ) + (layer "B.Paste" + (type "Bottom Solder Paste") + ) + (layer "B.SilkS" + (type "Bottom Silk Screen") + ) + (copper_finish "None") + (dielectric_constraints no) + ) + (pad_to_mask_clearance 0) + (allow_soldermask_bridges_in_footprints no) + (pcbplotparams + (layerselection 0x00010fc_ffffffff) + (plot_on_all_layers_selection 0x0000000_00000000) + (disableapertmacros no) + (usegerberextensions no) + (usegerberattributes yes) + (usegerberadvancedattributes yes) + (creategerberjobfile yes) + (dashed_line_dash_ratio 12.000000) + (dashed_line_gap_ratio 3.000000) + (svgprecision 4) + (plotframeref no) + (viasonmask no) + (mode 1) + (useauxorigin no) + (hpglpennumber 1) + (hpglpenspeed 20) + (hpglpendiameter 15.000000) + (pdf_front_fp_property_popups yes) + (pdf_back_fp_property_popups yes) + (dxfpolygonmode yes) + (dxfimperialunits yes) + (dxfusepcbnewfont yes) + (psnegative no) + (psa4output no) + (plotreference yes) + (plotvalue yes) + (plotfptext yes) + (plotinvisibletext no) + (sketchpadsonfab no) + (subtractmaskfromsilk no) + (outputformat 1) + (mirror no) + (drillshape 1) + (scaleselection 1) + (outputdirectory "") + ) + ) + (net 0 "") + (net 1 "/+V") + (net 2 "/-V") + (net 3 "Net-(D1-A)") + (footprint "LED_SMD:LED_0805_2012Metric" + (layer "F.Cu") + (uuid "1842c2db-af4b-4d18-84bb-f7f9ff6e2d30") + (at 130.2 100.4 90) + (descr "LED SMD 0805 (2012 Metric), square (rectangular) end terminal, IPC_7351 nominal, (Body size source: https://docs.google.com/spreadsheets/d/1BsfQQcO9C6DZCsRaXUlFlo91Tg2WpOkGARC1WS5S8t0/edit?usp=sharing), generated with kicad-footprint-generator") + (tags "LED") + (property "Reference" "D1" + (at -3.023587 0.028661 -90) + (layer "F.SilkS") + (uuid "1decbab8-10fc-4fbf-be47-c634a49fc12b") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Value" "LED" + (at 0 1.65 -90) + (layer "F.Fab") + (uuid "1a61e433-bbb3-4793-a6cf-303a7d6b74f0") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Footprint" "LED_SMD:LED_0805_2012Metric" + (at 0 0 90) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "ee50a25d-4f6b-457b-ac4e-e59023b92cfc") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Datasheet" "" + (at 0 0 90) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "6614ca47-bd78-495b-8f7c-fad88444cc6b") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Description" "Light emitting diode" + (at 0 0 90) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "9a6c9179-af04-42a3-8c61-72a4aa68b335") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property ki_fp_filters "LED* LED_SMD:* LED_THT:*") + (path "/66005799-571e-41b7-9000-70881f5abb32") + (sheetname "Root") + (sheetfile "template.kicad_sch") + (attr smd) + (fp_line + (start 1 -0.96) + (end -1.684999 -0.96) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "cbf3d863-208a-4d3a-ba95-b9e22fafd975") + ) + (fp_line + (start -1.684999 -0.96) + (end -1.684999 0.96) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "e16db292-7a9c-4b61-9844-55a7be94edd2") + ) + (fp_line + (start -1.684999 0.96) + (end 1 0.96) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "45ed0f84-451a-4241-8a34-ebbba3e16b36") + ) + (fp_line + (start 1.68 -0.95) + (end 1.68 0.95) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "63c7cbb8-6223-4e62-956b-4e6fa4b997c0") + ) + (fp_line + (start -1.68 -0.95) + (end 1.68 -0.95) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "a4e5beaf-a9cb-41a8-b396-93fd6d6c5ea4") + ) + (fp_line + (start 1.68 0.95) + (end -1.68 0.95) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "91e2ae35-5305-4650-a7e6-44298247ef27") + ) + (fp_line + (start -1.68 0.95) + (end -1.68 -0.95) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "b8d1d60c-34c8-4a2e-bebb-a228b47f638b") + ) + (fp_line + (start 1 -0.6) + (end -0.7 -0.6) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "3960df1a-bff6-4366-bb01-017d288bd3ac") + ) + (fp_line + (start -0.7 -0.6) + (end -1 -0.3) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "804ca728-027e-4cc6-9cd1-753427b2fb59") + ) + (fp_line + (start -1 -0.3) + (end -1 0.6) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "c5d85d0c-e3a2-4909-aff0-9500c0f133a5") + ) + (fp_line + (start 1 0.6) + (end 1 -0.6) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "e52976de-fb5f-4380-ba5a-dc7d89dc6499") + ) + (fp_line + (start -1 0.6) + (end 1 0.6) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "a82206b5-bc67-4f89-a9a6-d6ca790b346c") + ) + (fp_text user "${REFERENCE}" + (at 0 0 -90) + (layer "F.Fab") + (uuid "9e958dba-c59c-433a-a40e-5351be43da83") + (effects + (font + (size 0.5 0.5) + (thickness 0.08) + ) + ) + ) + (pad "1" smd roundrect + (at -0.937501 0 90) + (size 0.975 1.4) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (net 2 "/-V") + (pinfunction "K") + (pintype "passive") + (uuid "07cc3883-2b1c-4d5d-af61-fbb7e841b88b") + ) + (pad "2" smd roundrect + (at 0.937501 0 90) + (size 0.975 1.4) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.25) + (net 3 "Net-(D1-A)") + (pinfunction "A") + (pintype "passive") + (uuid "75a591d2-e6c7-4f05-8d8d-a7b9721cb2df") + ) + (model "${KICAD8_3DMODEL_DIR}/LED_SMD.3dshapes/LED_0805_2012Metric.wrl" + (offset + (xyz 0 0 0) + ) + (scale + (xyz 1 1 1) + ) + (rotate + (xyz 0 0 0) + ) + ) + ) + (footprint "MountingHole:MountingHole_3.2mm_M3_DIN965_Pad" + (layer "F.Cu") + (uuid "5fff0ea9-334d-48ef-9ce7-d9adba7d0348") + (at 131.8 109) + (descr "Mounting Hole 3.2mm, M3, DIN965") + (tags "mounting hole 3.2mm m3 din965") + (property "Reference" "H3" + (at 0 -3.8 0) + (layer "F.SilkS") + (hide yes) + (uuid "a654be53-d6bd-4635-a02a-2a3331a1d051") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Value" "MountingHole" + (at 0 3.8 0) + (layer "F.Fab") + (uuid "a8f03379-8583-4a8e-b137-6f465a7d0d8c") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Footprint" "MountingHole:MountingHole_3.2mm_M3_DIN965_Pad" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "bbedfa6e-f182-415b-a5e6-e0f1c9e7c5be") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Datasheet" "" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "aad8a45c-c31d-4a47-a43c-d538f5cb5feb") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Description" "Mounting Hole without connection" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "26ce2e95-cbf6-453c-8f59-c883af39ddda") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property ki_fp_filters "MountingHole*") + (path "/303036eb-ba8a-4bb8-a458-e580349ad373") + (sheetname "Root") + (sheetfile "template.kicad_sch") + (attr exclude_from_pos_files exclude_from_bom) + (fp_circle + (center 0 0) + (end 2.8 0) + (stroke + (width 0.15) + (type solid) + ) + (fill none) + (layer "Cmts.User") + (uuid "c77e25d7-c13b-4531-ad1a-2d2105720d63") + ) + (fp_circle + (center 0 0) + (end 3.05 0) + (stroke + (width 0.05) + (type solid) + ) + (fill none) + (layer "F.CrtYd") + (uuid "8f5234d0-7bbc-4154-910a-8f7056079f7d") + ) + (fp_text user "${REFERENCE}" + (at 0 0 0) + (layer "F.Fab") + (uuid "4b63cf9d-321c-40c5-aa55-aaaaef68e404") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (pad "1" thru_hole circle + (at 0 0) + (size 5.6 5.6) + (drill 3.2) + (layers "*.Cu" "*.Mask") + (remove_unused_layers no) + (uuid "c740de04-e150-4f4a-9cd8-9e59d8557557") + ) + ) + (footprint "MountingHole:MountingHole_3.2mm_M3_DIN965_Pad" + (layer "F.Cu") + (uuid "66a19e9a-23e2-462e-9566-8c6997a2d4e7") + (at 149.6 109) + (descr "Mounting Hole 3.2mm, M3, DIN965") + (tags "mounting hole 3.2mm m3 din965") + (property "Reference" "H4" + (at 0 -3.8 0) + (layer "F.SilkS") + (hide yes) + (uuid "df87a7a9-c750-4866-8327-1044e9fa242c") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Value" "MountingHole" + (at 0 3.8 0) + (layer "F.Fab") + (uuid "65d05375-f02a-4945-9f91-2af064bc6c45") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Footprint" "MountingHole:MountingHole_3.2mm_M3_DIN965_Pad" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "a883d62c-2a19-4d6c-a195-9cc14b9278cd") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Datasheet" "" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "17cba830-e9eb-4cd6-9cea-2deebcaaef7e") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Description" "Mounting Hole without connection" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "b7b485f9-81b1-4162-b0bf-8067f727fb65") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property ki_fp_filters "MountingHole*") + (path "/78111726-4e75-4486-a962-d6983db1e50e") + (sheetname "Root") + (sheetfile "template.kicad_sch") + (attr exclude_from_pos_files exclude_from_bom) + (fp_circle + (center 0 0) + (end 2.8 0) + (stroke + (width 0.15) + (type solid) + ) + (fill none) + (layer "Cmts.User") + (uuid "1517683c-476e-4df1-afb6-2c334a3589be") + ) + (fp_circle + (center 0 0) + (end 3.05 0) + (stroke + (width 0.05) + (type solid) + ) + (fill none) + (layer "F.CrtYd") + (uuid "8f9f50b4-9e31-401b-905b-84c948cb395c") + ) + (fp_text user "${REFERENCE}" + (at 0 0 0) + (layer "F.Fab") + (uuid "5daf8bb8-3467-4013-9b91-fc99df3e126f") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (pad "1" thru_hole circle + (at 0 0) + (size 5.6 5.6) + (drill 3.2) + (layers "*.Cu" "*.Mask") + (remove_unused_layers no) + (uuid "d958f7e6-aa49-4580-bd37-95a330c064f2") + ) + ) + (footprint "Resistor_SMD:R_0805_2012Metric" + (layer "F.Cu") + (uuid "8fb60065-e6d7-4f8e-a560-eb6ebe6c267d") + (at 151.2 100.6 90) + (descr "Resistor SMD 0805 (2012 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") + (property "Reference" "R1" + (at 3 0.0875 -90) + (layer "F.SilkS") + (uuid "9ac292d4-8166-4592-b12c-69c58b8717f4") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Value" "R" + (at -3 -0.0875 -90) + (layer "F.Fab") + (uuid "179fae2d-bf5b-4046-83ee-7ad4656e56f2") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Footprint" "Resistor_SMD:R_0805_2012Metric" + (at 0 0 90) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "21199f91-a808-4f59-bbbd-e8377a0a61d1") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Datasheet" "" + (at 0 0 90) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "d23b79e2-984b-4faa-81ce-c6b80d2d684e") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Description" "Resistor" + (at 0 0 90) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "fe916cd5-93c1-4216-80a1-5a3eb9598b52") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property ki_fp_filters "R_*") + (path "/00e65238-ae4a-4c7f-8159-9908f75b9fe2") + (sheetname "Root") + (sheetfile "template.kicad_sch") + (attr smd) + (fp_line + (start -0.227064 -0.735) + (end 0.227064 -0.735) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "80d5a6c5-537e-47f7-8a60-e5d1ecfb7212") + ) + (fp_line + (start -0.227064 0.735) + (end 0.227064 0.735) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "d6e31d2e-a545-4202-8d0b-2d7fc2b08d64") + ) + (fp_line + (start 1.68 -0.95) + (end 1.68 0.95) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "d03952af-ac0c-486f-97b6-3d97c8b94a8f") + ) + (fp_line + (start -1.68 -0.95) + (end 1.68 -0.95) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "7f426e62-c19a-48b3-8bad-7b615007d52a") + ) + (fp_line + (start 1.68 0.95) + (end -1.68 0.95) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "8d20d6e1-aa16-4eed-a315-7af6fddf1ac2") + ) + (fp_line + (start -1.68 0.95) + (end -1.68 -0.95) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "f8e4332a-f216-44c0-8f4c-f7b89f19257b") + ) + (fp_line + (start 1 -0.625) + (end 1 0.625) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "ee3f4b38-f4be-4071-9cc6-30fc81410bc0") + ) + (fp_line + (start -1 -0.625) + (end 1 -0.625) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "50f0091f-99f0-4387-9d61-0822f097701b") + ) + (fp_line + (start 1 0.625) + (end -1 0.625) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "f89a5bd1-05f4-4d07-8548-86d2bd5a0f72") + ) + (fp_line + (start -1 0.625) + (end -1 -0.625) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "2558a820-9e52-494f-92ca-41292124bf45") + ) + (fp_text user "${REFERENCE}" + (at 0 0 -90) + (layer "F.Fab") + (uuid "578b6437-9264-4857-a881-03976a0db2e4") + (effects + (font + (size 0.5 0.5) + (thickness 0.08) + ) + ) + ) + (pad "1" smd roundrect + (at -0.9125 0 90) + (size 1.025 1.4) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.243902) + (net 1 "/+V") + (pintype "passive") + (uuid "0ce69b43-16ad-438c-afdb-8ff73b5ba88c") + ) + (pad "2" smd roundrect + (at 0.9125 0 90) + (size 1.025 1.4) + (layers "F.Cu" "F.Paste" "F.Mask") + (roundrect_rratio 0.243902) + (net 3 "Net-(D1-A)") + (pintype "passive") + (uuid "31a8bcf1-a68c-4f21-a31e-f76531cfb1fe") + ) + (model "${KICAD8_3DMODEL_DIR}/Resistor_SMD.3dshapes/R_0805_2012Metric.wrl" + (offset + (xyz 0 0 0) + ) + (scale + (xyz 1 1 1) + ) + (rotate + (xyz 0 0 0) + ) + ) + ) + (footprint "MountingHole:MountingHole_3.2mm_M3_DIN965_Pad" + (layer "F.Cu") + (uuid "d1e87846-e5ec-4a0d-a118-198af7d8697b") + (at 149.6 91.2) + (descr "Mounting Hole 3.2mm, M3, DIN965") + (tags "mounting hole 3.2mm m3 din965") + (property "Reference" "H2" + (at 0 -3.8 0) + (layer "F.SilkS") + (hide yes) + (uuid "03a97123-7a26-47d5-acee-d38781fc986f") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Value" "MountingHole" + (at 0.2 -4.2 0) + (layer "F.Fab") + (uuid "50d7e940-767a-494d-a4a7-b76f8aa8874f") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Footprint" "MountingHole:MountingHole_3.2mm_M3_DIN965_Pad" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "f42ee08d-6079-40b3-9853-087780b062cc") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Datasheet" "" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "95ea8d82-acd7-4ebf-ac32-e10578d26d24") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Description" "Mounting Hole without connection" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "e02d11cf-828b-42c8-869c-01afbbc9d635") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property ki_fp_filters "MountingHole*") + (path "/af56fb7a-5a6a-4c40-9eaa-bb522b9e7a5c") + (sheetname "Root") + (sheetfile "template.kicad_sch") + (attr exclude_from_pos_files exclude_from_bom) + (fp_circle + (center 0 0) + (end 2.8 0) + (stroke + (width 0.15) + (type solid) + ) + (fill none) + (layer "Cmts.User") + (uuid "887b5925-8e0a-4daf-9f80-a7683ce221d9") + ) + (fp_circle + (center 0 0) + (end 3.05 0) + (stroke + (width 0.05) + (type solid) + ) + (fill none) + (layer "F.CrtYd") + (uuid "cc632440-b39d-48ba-8d69-c0436cdd4c05") + ) + (fp_text user "${REFERENCE}" + (at 0 0 0) + (layer "F.Fab") + (uuid "758e21eb-36ea-4129-99f1-9b543a93ee15") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (pad "1" thru_hole circle + (at 0 0) + (size 5.6 5.6) + (drill 3.2) + (layers "*.Cu" "*.Mask") + (remove_unused_layers no) + (uuid "d8a9d92a-292e-4e0c-a6aa-859f8a59e242") + ) + ) + (footprint "Battery:BatteryHolder_LINX_BAT-HLD-012-SMT" + (layer "F.Cu") + (uuid "eb196a16-1aa4-40c7-9992-69f8ec06b474") + (at 140.8 100.4) + (descr "SMT battery holder for CR1216/1220/1225, https://linxtechnologies.com/wp/wp-content/uploads/bat-hld-012-smt.pdf") + (tags "battery holder coin cell cr1216 cr1220 cr1225") + (property "Reference" "BT1" + (at 0 6 0) + (layer "F.SilkS") + (uuid "daf5c9ed-c48f-480b-b229-ef81febea5d0") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Value" "Battery" + (at 0 -7 0) + (layer "F.Fab") + (uuid "2b45fab3-8389-4e06-a9f3-758c828d6c71") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Footprint" "Battery:BatteryHolder_LINX_BAT-HLD-012-SMT" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "e8fec146-36f4-4e36-81e5-a29f42ce256a") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Datasheet" "" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "5ecac9ff-4bd1-4c8a-9b67-fff0e29f08a5") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Description" "Multiple-cell battery" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "0975f00b-271e-4dd5-8361-0e91dd2cf5e0") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (path "/083ab27c-26d7-42a7-936f-614bf3dbcc3a") + (sheetname "Root") + (sheetfile "template.kicad_sch") + (attr smd) + (fp_line + (start -6.55 -2.75) + (end -4.9 -4.4) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "0d369837-62b6-4447-9ecb-7c989e64bf40") + ) + (fp_line + (start -6.55 2.85) + (end -5.4 4.2) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "231ddc91-e935-4f40-9f1f-ed2b43613fdd") + ) + (fp_line + (start -4.9 -4.4) + (end -3 -4.4) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "21b142e1-d430-4cac-b13e-97f15718a270") + ) + (fp_line + (start 4.9 -4.4) + (end 3 -4.4) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "2c1921a3-6c91-4693-a686-c333b4e1fda7") + ) + (fp_line + (start 4.9 -4.4) + (end 6.55 -2.75) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "ebe2498e-7d83-4e15-9d08-fb432b096990") + ) + (fp_line + (start 6.55 2.85) + (end 5.4 4.2) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "51df4be8-b6f5-4587-9451-614707302f18") + ) + (fp_arc + (start -2.504098 4.697607) + (mid -4.031094 4.908816) + (end -5.4 4.2) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "4a3611e2-9998-4a47-b97a-bb629aa264bf") + ) + (fp_arc + (start 5.4 4.2) + (mid 4.029781 4.909041) + (end 2.501694 4.696459) + (stroke + (width 0.12) + (type solid) + ) + (layer "F.SilkS") + (uuid "982141f8-a8b2-4568-b639-86ab2c18f1fa") + ) + (fp_line + (start -9.35 -3.05) + (end -7.25 -3.05) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "2f1322d3-5b3a-4602-ad68-3359a6cb087a") + ) + (fp_line + (start -9.35 3.05) + (end -9.35 -3.05) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "ccdf4535-d00c-4009-ab84-4a0e4d6b15eb") + ) + (fp_line + (start -9.35 3.05) + (end -7.25 3.05) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "8a24b503-30f8-48b6-87cb-621bca0d48b4") + ) + (fp_line + (start -7.25 -3.05) + (end -3.55 -6.75) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "eb58fc34-e84e-4001-b29d-ae4901efa884") + ) + (fp_line + (start -3.55 -6.75) + (end 3.55 -6.75) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "458d3962-9f4b-43ad-aaeb-adf7585799cc") + ) + (fp_line + (start -3.55 6.75) + (end -7.25 3.05) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "233a1c7d-e056-4fa7-9334-5f7e6f7e8f71") + ) + (fp_line + (start -3.55 6.75) + (end 3.55 6.75) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "c9ea260e-ad42-4907-980c-0729654a2f59") + ) + (fp_line + (start 3.55 -6.75) + (end 7.25 -3.05) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "6eb9d483-2193-4173-bb2c-2c40fc55ce0c") + ) + (fp_line + (start 3.55 6.75) + (end 7.25 3.05) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "ca374c11-ad0a-4fa2-b0f7-29797cdf343d") + ) + (fp_line + (start 7.25 -3.05) + (end 9.35 -3.05) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "85924b54-516c-45b8-b39d-0eb2e9007e6f") + ) + (fp_line + (start 9.35 -3.05) + (end 9.35 3.05) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "9a8db72e-d3ae-41a1-953c-0f33145af52e") + ) + (fp_line + (start 9.35 3.05) + (end 7.25 3.05) + (stroke + (width 0.05) + (type solid) + ) + (layer "F.CrtYd") + (uuid "c0f4044f-81ad-4fe9-903d-5454d1d31db1") + ) + (fp_line + (start -7.65 -2.55) + (end -7.65 -0.55) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "b94b8a7c-5128-4d7f-82db-400bdfc8056f") + ) + (fp_line + (start -7.65 -2.55) + (end -6.75 -2.55) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "d4ff55b7-3a3c-4b05-b0fe-05e0581844b0") + ) + (fp_line + (start -7.65 -0.55) + (end -6.75 -0.55) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "1677cbef-4d3f-456c-bf2e-7b82b236b81e") + ) + (fp_line + (start -7.65 0.55) + (end -7.65 2.55) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "8effb1f5-b4b4-4048-9d4b-bba50ae919e3") + ) + (fp_line + (start -7.65 2.55) + (end -6.75 2.55) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "ac5b14ce-37be-45ff-bb69-9296831361f3") + ) + (fp_line + (start -6.75 -2.75) + (end -6.55 -2.75) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "7ba0c071-7399-42c5-805c-b1b5c3efd20a") + ) + (fp_line + (start -6.75 0.55) + (end -7.65 0.55) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "8386984b-f340-42ec-a254-4d2228469b3a") + ) + (fp_line + (start -6.75 2.85) + (end -6.75 -2.75) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "50c7312b-b110-4b11-97e0-1742106ac106") + ) + (fp_line + (start -6.75 2.85) + (end -6.55 2.85) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "dc65d93c-0e01-4f8a-8823-86341ee7524f") + ) + (fp_line + (start -6.7 -2.9) + (end -5.05 -4.55) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "3f0ee7c7-88d9-463a-982e-3c346ece9c8f") + ) + (fp_line + (start -6.55 -2.75) + (end -6.7 -2.9) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "f5dfaf91-bf59-412b-9354-01e2ae2f45c8") + ) + (fp_line + (start -6.55 -2.75) + (end -4.9 -4.4) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "7d7b8fd1-263c-4fb4-91a4-eed572844470") + ) + (fp_line + (start -6.55 2.85) + (end -6.55 -2.75) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "35a28e0c-5da9-4bea-821d-533268331527") + ) + (fp_line + (start -6.55 2.85) + (end -5.4 4.2) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "0202b0d8-0602-45bb-a62f-295b2e44d139") + ) + (fp_line + (start -5.05 -4.55) + (end -4.9 -4.4) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "806b208d-8a77-4f2a-8f07-e993100f2e0e") + ) + (fp_line + (start 4.9 -4.4) + (end -4.9 -4.4) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "a06d461b-5700-4e8f-a318-6a2c1dd9c5eb") + ) + (fp_line + (start 5.05 -4.55) + (end 4.9 -4.4) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "880a4e8f-311c-440e-a1e4-32705c66810f") + ) + (fp_line + (start 6.55 -2.75) + (end 4.9 -4.4) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "dbc9d102-52ff-4521-8e38-a3483f188645") + ) + (fp_line + (start 6.55 -2.75) + (end 6.7 -2.9) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "b1864032-2430-4bb8-90e8-ae263ca20754") + ) + (fp_line + (start 6.55 -2.75) + (end 6.75 -2.75) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "da92e514-37b8-4cb9-b4d7-70e0bee033c1") + ) + (fp_line + (start 6.55 2.85) + (end 5.4 4.2) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "b3333acc-30e5-4fad-943e-adc4266f877d") + ) + (fp_line + (start 6.55 2.85) + (end 6.55 -2.75) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "77beb274-a5fb-4172-b5ae-1350ddd83466") + ) + (fp_line + (start 6.7 -2.9) + (end 5.05 -4.55) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "3f86ec5b-6e84-43a6-89a8-c79f1a8d79a5") + ) + (fp_line + (start 6.75 -0.55) + (end 7.65 -0.55) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "e3981986-c737-4b02-ae63-1ed7c6fd400f") + ) + (fp_line + (start 6.75 2.55) + (end 7.65 2.55) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "b0bc5504-5022-4922-871f-d72848776cca") + ) + (fp_line + (start 6.75 2.85) + (end 6.55 2.85) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "64d63054-0fe6-4497-80a6-13c18f22d5c1") + ) + (fp_line + (start 6.75 2.85) + (end 6.75 -2.75) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "9ac457b1-3ce7-40a0-b3b2-c114480de559") + ) + (fp_line + (start 7.65 -2.55) + (end 6.75 -2.55) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "2ae53eff-744f-4d81-8a91-47706a69cc5e") + ) + (fp_line + (start 7.65 -0.55) + (end 7.65 -2.55) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "c39bfde6-7022-4040-bb42-a9da49689285") + ) + (fp_line + (start 7.65 0.55) + (end 6.75 0.55) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "0edd95f7-6b1d-44b8-a269-31865a9da14c") + ) + (fp_line + (start 7.65 2.55) + (end 7.65 0.55) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "5bb1fc72-196e-4d1c-aa08-0e02713b5de1") + ) + (fp_arc + (start -1.8 4.2) + (mid -3.6 4.945584) + (end -5.4 4.2) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "6dad9499-b763-444e-86ae-234754e0520c") + ) + (fp_arc + (start -1.8 4.2) + (mid 0 3.454416) + (end 1.8 4.2) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "39b2b610-ece5-4d29-9e5c-32b60496deb1") + ) + (fp_arc + (start 5.4 4.2) + (mid 3.6 4.945584) + (end 1.8 4.2) + (stroke + (width 0.1) + (type solid) + ) + (layer "F.Fab") + (uuid "3c422819-28e4-472b-9cdd-a6a43165d446") + ) + (fp_circle + (center 0 0) + (end -6.25 0) + (stroke + (width 0.1) + (type solid) + ) + (fill none) + (layer "F.Fab") + (uuid "4887eff3-b8f1-4e93-a601-5039098a5408") + ) + (fp_text user "${REFERENCE}" + (at 0 0 0) + (layer "F.Fab") + (uuid "e51d4092-3e59-408e-941d-b6672a96105a") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (pad "1" smd rect + (at -7.6 0) + (size 2.5 5.1) + (layers "F.Cu" "F.Paste" "F.Mask") + (net 1 "/+V") + (pinfunction "+") + (pintype "passive") + (uuid "e6d909b3-c00d-4a60-8701-a659866bbc53") + ) + (pad "1" smd rect + (at 7.6 0) + (size 2.5 5.1) + (layers "F.Cu" "F.Paste" "F.Mask") + (net 1 "/+V") + (pinfunction "+") + (pintype "passive") + (uuid "617bcd1c-7946-40ed-b867-9d907e4d2772") + ) + (pad "2" smd circle + (at 0 0) + (size 10.2 10.2) + (layers "F.Cu" "F.Mask") + (net 2 "/-V") + (pinfunction "-") + (pintype "passive") + (uuid "8fe36865-429b-4f18-8f6c-f3cf72ec5ae8") + ) + (model "${KICAD8_3DMODEL_DIR}/Battery.3dshapes/BatteryHolder_LINX_BAT-HLD-012-SMT.wrl" + (offset + (xyz 0 0 0) + ) + (scale + (xyz 1 1 1) + ) + (rotate + (xyz 0 0 0) + ) + ) + ) + (footprint "MountingHole:MountingHole_3.2mm_M3_DIN965_Pad" + (layer "F.Cu") + (uuid "fb950884-233c-4379-9891-c82e2f1d6646") + (at 131.8 91.2) + (descr "Mounting Hole 3.2mm, M3, DIN965") + (tags "mounting hole 3.2mm m3 din965") + (property "Reference" "H1" + (at 0 -3.8 0) + (layer "F.SilkS") + (hide yes) + (uuid "bb71b025-2f2c-4cfe-b61d-c5944c6af7ae") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Value" "MountingHole" + (at 0 -4.4 0) + (layer "F.Fab") + (uuid "740a7482-33f5-4a24-8bce-30e64e2e8b86") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (property "Footprint" "MountingHole:MountingHole_3.2mm_M3_DIN965_Pad" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "9731eaaa-d3a6-444e-ac12-f4d787cbb614") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Datasheet" "" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "dc7f748a-29b7-45ce-94f0-883b47be070f") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Description" "Mounting Hole without connection" + (at 0 0 0) + (unlocked yes) + (layer "F.Fab") + (hide yes) + (uuid "2057cee9-18bd-48d5-8e49-58bb68e83b95") + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property ki_fp_filters "MountingHole*") + (path "/44b61ab6-c0eb-4ac6-ac05-eaa337721c64") + (sheetname "Root") + (sheetfile "template.kicad_sch") + (attr exclude_from_pos_files exclude_from_bom) + (fp_circle + (center 0 0) + (end 2.8 0) + (stroke + (width 0.15) + (type solid) + ) + (fill none) + (layer "Cmts.User") + (uuid "446b3df8-5b8b-48db-a4a3-763d25e21261") + ) + (fp_circle + (center 0 0) + (end 3.05 0) + (stroke + (width 0.05) + (type solid) + ) + (fill none) + (layer "F.CrtYd") + (uuid "80dbf436-1ab5-4e23-a2fc-2a884c37b947") + ) + (fp_text user "${REFERENCE}" + (at 0 0 0) + (layer "F.Fab") + (uuid "3da9c7ec-d8b5-4048-a6cd-60a8221a7f04") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (pad "1" thru_hole circle + (at 0 0) + (size 5.6 5.6) + (drill 3.2) + (layers "*.Cu" "*.Mask") + (remove_unused_layers no) + (uuid "ceeb0c37-5ae3-4f59-8fc9-829df35d4045") + ) + ) + (gr_arc + (start 131.2 112.6) + (mid 129.07868 111.72132) + (end 128.2 109.6) + (stroke + (width 0.05) + (type default) + ) + (layer "Edge.Cuts") + (uuid "01a8da9c-a345-4971-9f64-1132395144fa") + ) + (gr_line + (start 153.2 90.6) + (end 153.2 109.6) + (stroke + (width 0.05) + (type default) + ) + (layer "Edge.Cuts") + (uuid "0356f695-1bce-493c-8c75-dba52389869c") + ) + (gr_line + (start 131.2 87.6) + (end 150.2 87.6) + (stroke + (width 0.05) + (type default) + ) + (layer "Edge.Cuts") + (uuid "05782be0-1ba2-4c6e-8fa9-e27ad8f47b1a") + ) + (gr_line + (start 150.2 112.6) + (end 131.2 112.6) + (stroke + (width 0.05) + (type default) + ) + (layer "Edge.Cuts") + (uuid "101d95a4-e9c1-487d-9553-84fa45eddaeb") + ) + (gr_arc + (start 150.2 87.6) + (mid 152.32132 88.47868) + (end 153.2 90.6) + (stroke + (width 0.05) + (type default) + ) + (layer "Edge.Cuts") + (uuid "1fbf3abb-6724-4e0b-bb75-af7536f7950d") + ) + (gr_line + (start 128.2 109.6) + (end 128.2 90.6) + (stroke + (width 0.05) + (type default) + ) + (layer "Edge.Cuts") + (uuid "29507f13-4307-4ab2-8a14-c4ff18cfcb0b") + ) + (gr_arc + (start 128.2 90.6) + (mid 129.07868 88.47868) + (end 131.2 87.6) + (stroke + (width 0.05) + (type default) + ) + (layer "Edge.Cuts") + (uuid "6e378ec5-4db9-45f8-97a3-1d454b0e5a4f") + ) + (gr_arc + (start 153.2 109.6) + (mid 152.32132 111.72132) + (end 150.2 112.6) + (stroke + (width 0.05) + (type default) + ) + (layer "Edge.Cuts") + (uuid "d0b62f1b-7aa9-4bd8-9e09-d4beeb7cfb9c") + ) + (gr_text "Battery test board" + (at 135.8 91.4 0) + (layer "F.SilkS") + (uuid "14b4e536-78be-4e48-a42b-df9a02c5614b") + (effects + (font + (size 1.2 0.7) + (thickness 0.1) + ) + (justify left bottom) + ) + ) + (gr_text "TEST_BOARD DELETE" + (at 133.4 83.4 0) + (layer "User.1") + (uuid "bcae1e3c-90d0-49c2-9a99-c0470225bdc4") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + (justify left bottom) + ) + ) + (dimension + (type aligned) + (layer "User.6") + (uuid "b6ffe3e3-3545-4aab-a9f0-cf902250ad8d") + (pts + (xy 149.6 109) (xy 149.6 91.2) + ) + (height 10) + (gr_text "17.8000 mm" + (at 158.45 100.1 90) + (layer "User.6") + (uuid "b6ffe3e3-3545-4aab-a9f0-cf902250ad8d") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (format + (prefix "") + (suffix "") + (units 3) + (units_format 1) + (precision 4) + ) + (style + (thickness 0.1) + (arrow_length 1.27) + (text_position_mode 0) + (extension_height 0.58642) + (extension_offset 0.5) keep_text_aligned) + ) + (dimension + (type aligned) + (layer "User.6") + (uuid "df149e19-574d-4ec7-b4e0-e0ad3299efe7") + (pts + (xy 131.2 87.6) (xy 131.2 112.6) + ) + (height 8) + (gr_text "25.0000 mm" + (at 122.05 100.1 90) + (layer "User.6") + (uuid "df149e19-574d-4ec7-b4e0-e0ad3299efe7") + (effects + (font + (size 1 1) + (thickness 0.15) + ) + ) + ) + (format + (prefix "") + (suffix "") + (units 3) + (units_format 1) + (precision 4) + ) + (style + (thickness 0.1) + (arrow_length 1.27) + (text_position_mode 0) + (extension_height 0.58642) + (extension_offset 0.5) keep_text_aligned) + ) + (segment + (start 137.7 94.6) + (end 133.2 99.1) + (width 0.2) + (layer "F.Cu") + (net 1) + (uuid "00cafb5b-3677-4af9-93d2-5d606922f4cd") + ) + (segment + (start 133.2 99.1) + (end 133.2 100.4) + (width 0.2) + (layer "F.Cu") + (net 1) + (uuid "0432bcbe-da06-4b4d-bff1-979255b666ae") + ) + (segment + (start 148.4 100.4) + (end 148.4 99.1) + (width 0.2) + (layer "F.Cu") + (net 1) + (uuid "19d94d89-6f27-4abe-abb1-5a3731167f01") + ) + (segment + (start 148.4 99.1) + (end 143.9 94.6) + (width 0.2) + (layer "F.Cu") + (net 1) + (uuid "200e260c-dfee-493c-aa52-355e6bf72e54") + ) + (segment + (start 151.2 101.5125) + (end 149.5125 101.5125) + (width 0.2) + (layer "F.Cu") + (net 1) + (uuid "54e5372d-f0a8-4ec6-95fd-2d929d1d155a") + ) + (segment + (start 143.9 94.6) + (end 137.7 94.6) + (width 0.2) + (layer "F.Cu") + (net 1) + (uuid "677bcbd9-a25d-4e3c-a483-acfc3576a0be") + ) + (segment + (start 149.5125 101.5125) + (end 148.4 100.4) + (width 0.2) + (layer "F.Cu") + (net 1) + (uuid "7722f6a8-7827-4900-b97d-ec1c86a191fa") + ) + (segment + (start 148.2 100.6) + (end 148.4 100.4) + (width 0.2) + (layer "F.Cu") + (net 1) + (uuid "e4ce96f4-f543-496c-a75a-25be2effc19d") + ) + (segment + (start 130.171339 101.513914) + (end 130.171339 102.571339) + (width 0.2) + (layer "F.Cu") + (net 2) + (uuid "d59eda9b-027e-445e-989f-34b9246f8e79") + ) + (via + (at 142.2 100.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "148b9c79-45fa-442d-a887-2244691f6579") + ) + (via + (at 139.2 97.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "1adfe8c8-399f-4367-b887-8c6b7aff1b73") + ) + (via + (at 142.2 97.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "2b2f2cee-b6e0-452e-9485-bdf15bea17ce") + ) + (via + (at 139.2 98.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "2c899ed2-10b1-4ba7-b26c-8b00eb89c49e") + ) + (via + (at 140.2 102.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "3f8b52ba-f20b-411a-abfb-644c3d392080") + ) + (via + (at 139.2 99.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "46a97398-d310-4c1f-8899-3787dfbb2a99") + ) + (via + (at 140.2 100.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "49ebeb29-1a37-4a5c-819d-6a445d18339b") + ) + (via + (at 139.2 101.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "4bfa2ea7-c0c0-4c3d-bf13-d840e96b4f1b") + ) + (via + (at 140.2 97.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "4d31c27a-528b-49ac-b210-b274004ed819") + ) + (via + (at 141.2 100.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "4db7ec0b-dfef-4d6b-9a6b-bcb1d0a1c8db") + ) + (via + (at 141.2 99.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "5ba5ce4f-9408-4aa4-8cd3-742e7a7f5fc3") + ) + (via + (at 141.2 97.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "60155ee0-7e68-4176-ab79-34c4c7139b27") + ) + (via + (at 140.2 98.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "85b6dddd-8d47-4ad1-b1b5-4412db49585d") + ) + (via + (at 141.2 98.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "8bfc3918-ff43-4874-acc0-41848536f172") + ) + (via + (at 138.2 102.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "9adf07a7-3811-407f-9bf5-a51832aacf41") + ) + (via + (at 142.2 99.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "aa76eefe-3a4d-4cb3-981a-aa0a5849cfc9") + ) + (via + (at 140.2 99.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "ab784e99-3aa7-4192-a072-06be5fa87f16") + ) + (via + (at 142.2 102.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "ac547353-62b7-4842-8458-f295e537f243") + ) + (via + (at 140.2 101.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "b1129d75-bc92-4e5c-bf0a-4ecfecbd052f") + ) + (via + (at 142.2 101.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "b6ecef00-f528-4b21-aa26-f796bdb9c466") + ) + (via + (at 141.2 101.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "c888d2c8-57be-48be-9c5c-f7c0b09d4fd3") + ) + (via + (at 139.2 100.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "cb6f8a8c-c3ab-4015-b37d-a207b24725f2") + ) + (via + (at 143.2 100.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "ccd7da02-b2f1-40d2-87ec-1d907d14bb42") + ) + (via + (at 138.2 99.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "ce35012d-071a-4716-b09d-a0d9c1a17bda") + ) + (via + (at 138.2 100.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "d26a7013-bbc8-4e78-baea-32dc1cf0b3b3") + ) + (via + (at 143.2 102.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "d3e71743-3c90-4c44-8087-174eb52ac4cd") + ) + (via + (at 139.2 102.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "deb0da72-0889-47ba-8308-bf45d297ef84") + ) + (via + (at 143.2 101.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "e021a437-ed3a-4fe6-9a5b-1b2e184db773") + ) + (via + (at 138.2 101.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "ea03be04-b6ed-40a1-83b8-592b917ab04d") + ) + (via + (at 143.2 97.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "ea1b1b66-86c7-4e98-9632-3bccc44eaf13") + ) + (via + (at 130.2 102.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "ea2ad1d2-876d-4c37-a8c5-ed1c353e1d51") + ) + (via + (at 138.2 98.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "f1d884da-467b-47f2-b0c4-d60a45f86ab8") + ) + (via + (at 143.2 98.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "f494454c-f00f-4d6e-aa8a-32000106a025") + ) + (via + (at 142.2 98.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "f5e05e39-7de1-4b71-baec-066269894659") + ) + (via + (at 143.2 99.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "f5e6d181-f2f1-42b2-ba57-08a9dbf41e5a") + ) + (via + (at 138.2 97.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "fa408548-bc05-4cdc-9b58-2c56c908b5c8") + ) + (via + (at 141.2 102.6) + (size 0.6) + (drill 0.3) + (layers "F.Cu" "B.Cu") + (net 2) + (uuid "fdd12b11-f5e9-4248-b8a5-cf79a0659edf") + ) + (segment + (start 151.2 98.8) + (end 146 93.6) + (width 0.2) + (layer "F.Cu") + (net 3) + (uuid "2f50f258-0072-4eb0-8fa4-bfd43b49b074") + ) + (segment + (start 135.2 93.6) + (end 130.2 98.6) + (width 0.2) + (layer "F.Cu") + (net 3) + (uuid "345df37c-5ed3-465c-a6f0-818c71506917") + ) + (segment + (start 146 93.6) + (end 135.2 93.6) + (width 0.2) + (layer "F.Cu") + (net 3) + (uuid "3b5b5104-7eb0-432b-8171-5f8db81adefc") + ) + (segment + (start 130.2 98.6) + (end 130.2 99.638912) + (width 0.2) + (layer "F.Cu") + (net 3) + (uuid "9f57f4b2-78d8-49d0-bfe7-2e188977f9da") + ) + (segment + (start 151.2 99.6875) + (end 151.2 98.8) + (width 0.2) + (layer "F.Cu") + (net 3) + (uuid "e40e1fb5-758b-45c0-a9a7-6e5e46c09d53") + ) + (zone + (net 2) + (net_name "/-V") + (layer "In2.Cu") + (uuid "cdeb8555-83cd-4966-b1d9-1a8238b0409e") + (hatch edge 0.5) + (connect_pads + (clearance 0.5) + ) + (min_thickness 0.25) + (filled_areas_thickness no) + (fill yes + (thermal_gap 0.5) + (thermal_bridge_width 0.5) + ) + (polygon + (pts + (xy 128.2 87.6) (xy 153.2 87.6) (xy 153.2 112.6) (xy 128.2 112.6) + ) + ) + (filled_polygon + (layer "In2.Cu") + (pts + (xy 147.969987 88.120185) (xy 148.015742 88.172989) (xy 148.025686 88.242147) (xy 147.996661 88.305703) + (xy 147.966878 88.330748) (xy 147.745081 88.4642) (xy 147.656768 88.531333) (xy 147.460172 88.680781) + (xy 147.460163 88.680789) (xy 147.200331 88.926914) (xy 146.968641 89.19968) (xy 146.968634 89.19969) + (xy 146.76779 89.495913) (xy 146.767784 89.495922) (xy 146.600151 89.812111) (xy 146.600142 89.812129) + (xy 146.467674 90.1446) (xy 146.467672 90.144607) (xy 146.371932 90.489434) (xy 146.371926 90.48946) + (xy 146.314029 90.842614) (xy 146.314028 90.842631) (xy 146.294652 91.199997) (xy 146.294652 91.200002) + (xy 146.314028 91.557368) (xy 146.314029 91.557385) (xy 146.371926 91.910539) (xy 146.371932 91.910565) + (xy 146.467672 92.255392) (xy 146.467674 92.255399) (xy 146.600142 92.58787) (xy 146.600151 92.587888) + (xy 146.767784 92.904077) (xy 146.76779 92.904086) (xy 146.968634 93.200309) (xy 146.968641 93.200319) + (xy 147.200331 93.473085) (xy 147.200332 93.473086) (xy 147.460163 93.719211) (xy 147.745081 93.9358) + (xy 148.051747 94.120315) (xy 148.051749 94.120316) (xy 148.051751 94.120317) (xy 148.051755 94.120319) + (xy 148.376552 94.270585) (xy 148.376565 94.270591) (xy 148.715726 94.384868) (xy 149.065254 94.461805) + (xy 149.421052 94.5005) (xy 149.421058 94.5005) (xy 149.778942 94.5005) (xy 149.778948 94.5005) + (xy 150.134746 94.461805) (xy 150.484274 94.384868) (xy 150.823435 94.270591) (xy 151.148253 94.120315) + (xy 151.454919 93.9358) (xy 151.739837 93.719211) (xy 151.999668 93.473086) (xy 152.231365 93.200311) + (xy 152.432211 92.904085) (xy 152.465945 92.840457) (xy 152.514738 92.790448) (xy 152.582823 92.774756) + (xy 152.648583 92.798366) (xy 152.69114 92.85378) (xy 152.6995 92.89854) (xy 152.6995 107.301459) + (xy 152.679815 107.368498) (xy 152.627011 107.414253) (xy 152.557853 107.424197) (xy 152.494297 107.395172) + (xy 152.465945 107.359542) (xy 152.432215 107.295923) (xy 152.432211 107.295915) (xy 152.231365 106.999689) + (xy 152.231361 106.999684) (xy 152.231358 106.99968) (xy 151.999668 106.726914) (xy 151.739837 106.480789) + (xy 151.73983 106.480783) (xy 151.739827 106.480781) (xy 151.672245 106.429407) (xy 151.454919 106.2642) + (xy 151.148253 106.079685) (xy 151.148252 106.079684) (xy 151.148248 106.079682) (xy 151.148244 106.07968) + (xy 150.823447 105.929414) (xy 150.823441 105.929411) (xy 150.823435 105.929409) (xy 150.653854 105.87227) + (xy 150.484273 105.815131) (xy 150.134744 105.738194) (xy 149.778949 105.6995) (xy 149.778948 105.6995) + (xy 149.421052 105.6995) (xy 149.42105 105.6995) (xy 149.065255 105.738194) (xy 148.715726 105.815131) + (xy 148.45997 105.901306) (xy 148.376565 105.929409) (xy 148.376563 105.92941) (xy 148.376552 105.929414) + (xy 148.051755 106.07968) (xy 148.051751 106.079682) (xy 147.823367 106.217096) (xy 147.745081 106.2642) + (xy 147.656768 106.331333) (xy 147.460172 106.480781) (xy 147.460163 106.480789) (xy 147.200331 106.726914) + (xy 146.968641 106.99968) (xy 146.968634 106.99969) (xy 146.76779 107.295913) (xy 146.767784 107.295922) + (xy 146.600151 107.612111) (xy 146.600142 107.612129) (xy 146.467674 107.9446) (xy 146.467672 107.944607) + (xy 146.371932 108.289434) (xy 146.371926 108.28946) (xy 146.314029 108.642614) (xy 146.314028 108.642631) + (xy 146.294652 108.999997) (xy 146.294652 109.000002) (xy 146.314028 109.357368) (xy 146.314029 109.357385) + (xy 146.371926 109.710539) (xy 146.371932 109.710565) (xy 146.467672 110.055392) (xy 146.467674 110.055399) + (xy 146.600142 110.38787) (xy 146.600151 110.387888) (xy 146.767784 110.704077) (xy 146.76779 110.704086) + (xy 146.968634 111.000309) (xy 146.968641 111.000319) (xy 146.985255 111.019878) (xy 147.200332 111.273086) + (xy 147.460163 111.519211) (xy 147.745081 111.7358) (xy 147.966877 111.86925) (xy 148.014171 111.920679) + (xy 148.026154 111.989514) (xy 147.999019 112.053899) (xy 147.941382 112.093393) (xy 147.902948 112.0995) + (xy 133.497052 112.0995) (xy 133.430013 112.079815) (xy 133.384258 112.027011) (xy 133.374314 111.957853) + (xy 133.403339 111.894297) (xy 133.433121 111.869251) (xy 133.654919 111.7358) (xy 133.939837 111.519211) + (xy 134.199668 111.273086) (xy 134.431365 111.000311) (xy 134.632211 110.704085) (xy 134.799853 110.38788) + (xy 134.932324 110.055403) (xy 135.028071 109.710552) (xy 135.046195 109.6) (xy 135.08597 109.357385) + (xy 135.08597 109.357382) (xy 135.085972 109.357371) (xy 135.105348 109) (xy 135.085972 108.642629) + (xy 135.028071 108.289448) (xy 134.932324 107.944597) (xy 134.799853 107.61212) (xy 134.658881 107.346219) + (xy 134.632215 107.295922) (xy 134.632213 107.295919) (xy 134.632211 107.295915) (xy 134.431365 106.999689) + (xy 134.431361 106.999684) (xy 134.431358 106.99968) (xy 134.199668 106.726914) (xy 133.939837 106.480789) + (xy 133.93983 106.480783) (xy 133.939827 106.480781) (xy 133.872245 106.429407) (xy 133.654919 106.2642) + (xy 133.348253 106.079685) (xy 133.348252 106.079684) (xy 133.348248 106.079682) (xy 133.348244 106.07968) + (xy 133.023447 105.929414) (xy 133.023441 105.929411) (xy 133.023435 105.929409) (xy 132.853854 105.87227) + (xy 132.684273 105.815131) (xy 132.334744 105.738194) (xy 131.978949 105.6995) (xy 131.978948 105.6995) + (xy 131.621052 105.6995) (xy 131.62105 105.6995) (xy 131.265255 105.738194) (xy 130.915726 105.815131) + (xy 130.65997 105.901306) (xy 130.576565 105.929409) (xy 130.576563 105.92941) (xy 130.576552 105.929414) + (xy 130.251755 106.07968) (xy 130.251751 106.079682) (xy 130.023367 106.217096) (xy 129.945081 106.2642) + (xy 129.856768 106.331333) (xy 129.660172 106.480781) (xy 129.660163 106.480789) (xy 129.400331 106.726914) + (xy 129.168641 106.99968) (xy 129.168634 106.99969) (xy 128.96779 107.295913) (xy 128.967784 107.295923) + (xy 128.934055 107.359542) (xy 128.885261 107.409552) (xy 128.817176 107.425243) (xy 128.751417 107.401633) + (xy 128.70886 107.346219) (xy 128.7005 107.301459) (xy 128.7005 92.89854) (xy 128.720185 92.831501) + (xy 128.772989 92.785746) (xy 128.842147 92.775802) (xy 128.905703 92.804827) (xy 128.934055 92.840457) + (xy 128.967784 92.904077) (xy 128.96779 92.904086) (xy 129.168634 93.200309) (xy 129.168641 93.200319) + (xy 129.400331 93.473085) (xy 129.400332 93.473086) (xy 129.660163 93.719211) (xy 129.945081 93.9358) + (xy 130.251747 94.120315) (xy 130.251749 94.120316) (xy 130.251751 94.120317) (xy 130.251755 94.120319) + (xy 130.576552 94.270585) (xy 130.576565 94.270591) (xy 130.915726 94.384868) (xy 131.265254 94.461805) + (xy 131.621052 94.5005) (xy 131.621058 94.5005) (xy 131.978942 94.5005) (xy 131.978948 94.5005) + (xy 132.334746 94.461805) (xy 132.684274 94.384868) (xy 133.023435 94.270591) (xy 133.348253 94.120315) + (xy 133.654919 93.9358) (xy 133.939837 93.719211) (xy 134.199668 93.473086) (xy 134.431365 93.200311) + (xy 134.632211 92.904085) (xy 134.799853 92.58788) (xy 134.932324 92.255403) (xy 135.028071 91.910552) + (xy 135.085972 91.557371) (xy 135.105348 91.2) (xy 135.085972 90.842629) (xy 135.028071 90.489448) + (xy 134.932324 90.144597) (xy 134.799853 89.81212) (xy 134.632211 89.495915) (xy 134.431365 89.199689) + (xy 134.431361 89.199684) (xy 134.431358 89.19968) (xy 134.199668 88.926914) (xy 133.939837 88.680789) + (xy 133.93983 88.680783) (xy 133.939827 88.680781) (xy 133.758515 88.542952) (xy 133.654919 88.4642) + (xy 133.433122 88.330749) (xy 133.385829 88.279321) (xy 133.373846 88.210486) (xy 133.400981 88.146101) + (xy 133.458618 88.106607) (xy 133.497052 88.1005) (xy 147.902948 88.1005) + ) + ) + ) +) \ No newline at end of file diff --git a/Hardware/tempalate_project/template.kicad_pro b/Hardware/tempalate_project/template.kicad_pro new file mode 100644 index 0000000..518c087 --- /dev/null +++ b/Hardware/tempalate_project/template.kicad_pro @@ -0,0 +1,669 @@ +{ + "board": { + "3dviewports": [], + "design_settings": { + "defaults": { + "apply_defaults_to_fp_fields": false, + "apply_defaults_to_fp_shapes": false, + "apply_defaults_to_fp_text": false, + "board_outline_line_width": 0.049999999999999996, + "copper_line_width": 0.19999999999999998, + "copper_text_italic": false, + "copper_text_size_h": 1.5, + "copper_text_size_v": 1.5, + "copper_text_thickness": 0.3, + "copper_text_upright": false, + "courtyard_line_width": 0.049999999999999996, + "dimension_precision": 4, + "dimension_units": 3, + "dimensions": { + "arrow_length": 1270000, + "extension_offset": 500000, + "keep_text_aligned": true, + "suppress_zeroes": false, + "text_position": 0, + "units_format": 1 + }, + "fab_line_width": 0.09999999999999999, + "fab_text_italic": false, + "fab_text_size_h": 1.0, + "fab_text_size_v": 1.0, + "fab_text_thickness": 0.15, + "fab_text_upright": false, + "other_line_width": 0.09999999999999999, + "other_text_italic": false, + "other_text_size_h": 1.0, + "other_text_size_v": 1.0, + "other_text_thickness": 0.15, + "other_text_upright": false, + "pads": { + "drill": 0.762, + "height": 1.524, + "width": 1.524 + }, + "silk_line_width": 0.09999999999999999, + "silk_text_italic": false, + "silk_text_size_h": 1.0, + "silk_text_size_v": 1.0, + "silk_text_thickness": 0.09999999999999999, + "silk_text_upright": false, + "zones": { + "min_clearance": 0.5 + } + }, + "diff_pair_dimensions": [ + { + "gap": 0.0, + "via_gap": 0.0, + "width": 0.0 + } + ], + "drc_exclusions": [], + "meta": { + "version": 2 + }, + "rule_severities": { + "annular_width": "error", + "clearance": "error", + "connection_width": "warning", + "copper_edge_clearance": "error", + "copper_sliver": "warning", + "courtyards_overlap": "error", + "diff_pair_gap_out_of_range": "error", + "diff_pair_uncoupled_length_too_long": "error", + "drill_out_of_range": "error", + "duplicate_footprints": "warning", + "extra_footprint": "warning", + "footprint": "error", + "footprint_symbol_mismatch": "warning", + "footprint_type_mismatch": "ignore", + "hole_clearance": "error", + "hole_near_hole": "error", + "invalid_outline": "error", + "isolated_copper": "warning", + "item_on_disabled_layer": "error", + "items_not_allowed": "error", + "length_out_of_range": "error", + "lib_footprint_issues": "warning", + "lib_footprint_mismatch": "warning", + "malformed_courtyard": "error", + "microvia_drill_out_of_range": "error", + "missing_courtyard": "ignore", + "missing_footprint": "warning", + "net_conflict": "warning", + "npth_inside_courtyard": "ignore", + "padstack": "warning", + "pth_inside_courtyard": "ignore", + "shorting_items": "error", + "silk_edge_clearance": "warning", + "silk_over_copper": "warning", + "silk_overlap": "warning", + "skew_out_of_range": "error", + "solder_mask_bridge": "error", + "starved_thermal": "error", + "text_height": "warning", + "text_thickness": "warning", + "through_hole_pad_without_hole": "error", + "too_many_vias": "error", + "track_dangling": "warning", + "track_width": "error", + "tracks_crossing": "error", + "unconnected_items": "error", + "unresolved_variable": "error", + "via_dangling": "warning", + "zones_intersect": "error" + }, + "rules": { + "max_error": 0.005, + "min_clearance": 0.0, + "min_connection": 0.0, + "min_copper_edge_clearance": 0.5, + "min_hole_clearance": 0.25, + "min_hole_to_hole": 0.25, + "min_microvia_diameter": 0.19999999999999998, + "min_microvia_drill": 0.09999999999999999, + "min_resolved_spokes": 2, + "min_silk_clearance": 0.0, + "min_text_height": 0.7999999999999999, + "min_text_thickness": 0.08, + "min_through_hole_diameter": 0.3, + "min_track_width": 0.0, + "min_via_annular_width": 0.09999999999999999, + "min_via_diameter": 0.5, + "solder_mask_to_copper_clearance": 0.0, + "use_height_for_length_calcs": true + }, + "teardrop_options": [ + { + "td_onpadsmd": true, + "td_onroundshapesonly": false, + "td_ontrackend": false, + "td_onviapad": true + } + ], + "teardrop_parameters": [ + { + "td_allow_use_two_tracks": true, + "td_curve_segcount": 0, + "td_height_ratio": 1.0, + "td_length_ratio": 0.5, + "td_maxheight": 2.0, + "td_maxlen": 1.0, + "td_on_pad_in_zone": false, + "td_target_name": "td_round_shape", + "td_width_to_size_filter_ratio": 0.9 + }, + { + "td_allow_use_two_tracks": true, + "td_curve_segcount": 0, + "td_height_ratio": 1.0, + "td_length_ratio": 0.5, + "td_maxheight": 2.0, + "td_maxlen": 1.0, + "td_on_pad_in_zone": false, + "td_target_name": "td_rect_shape", + "td_width_to_size_filter_ratio": 0.9 + }, + { + "td_allow_use_two_tracks": true, + "td_curve_segcount": 0, + "td_height_ratio": 1.0, + "td_length_ratio": 0.5, + "td_maxheight": 2.0, + "td_maxlen": 1.0, + "td_on_pad_in_zone": false, + "td_target_name": "td_track_end", + "td_width_to_size_filter_ratio": 0.9 + } + ], + "track_widths": [ + 0.0, + 0.2, + 0.3, + 0.4, + 0.5, + 0.8, + 1.0 + ], + "tuning_pattern_settings": { + "diff_pair_defaults": { + "corner_radius_percentage": 80, + "corner_style": 1, + "max_amplitude": 1.0, + "min_amplitude": 0.2, + "single_sided": false, + "spacing": 1.0 + }, + "diff_pair_skew_defaults": { + "corner_radius_percentage": 80, + "corner_style": 1, + "max_amplitude": 1.0, + "min_amplitude": 0.2, + "single_sided": false, + "spacing": 0.6 + }, + "single_track_defaults": { + "corner_radius_percentage": 80, + "corner_style": 1, + "max_amplitude": 1.0, + "min_amplitude": 0.2, + "single_sided": false, + "spacing": 0.6 + } + }, + "via_dimensions": [ + { + "diameter": 0.0, + "drill": 0.0 + }, + { + "diameter": 0.25, + "drill": 0.15 + } + ], + "zones_allow_external_fillets": false + }, + "ipc2581": { + "dist": "", + "distpn": "", + "internal_id": "", + "mfg": "", + "mpn": "" + }, + "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": "ignore", + "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": "error", + "power_pin_not_driven": "error", + "similar_labels": "warning", + "simulation_model_issue": "ignore", + "unannotated": "error", + "unit_value_mismatch": "error", + "unresolved_variable": "error", + "wire_dangling": "error" + } + }, + "libraries": { + "pinned_footprint_libs": [], + "pinned_symbol_libs": [] + }, + "meta": { + "filename": "template.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.2, + "via_diameter": 0.6, + "via_drill": 0.3, + "wire_width": 6 + }, + { + "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": "+POWER", + "pcb_color": "rgba(0, 0, 0, 0.000)", + "schematic_color": "rgb(255, 8, 21)", + "track_width": 0.2, + "via_diameter": 0.6, + "via_drill": 0.3, + "wire_width": 6 + }, + { + "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": "-POWER", + "pcb_color": "rgba(0, 0, 0, 0.000)", + "schematic_color": "rgb(15, 0, 255)", + "track_width": 0.2, + "via_diameter": 0.6, + "via_drill": 0.3, + "wire_width": 6 + }, + { + "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": "GND", + "pcb_color": "rgba(0, 0, 0, 0.000)", + "schematic_color": "rgb(134, 129, 126)", + "track_width": 0.2, + "via_diameter": 0.6, + "via_drill": 0.3, + "wire_width": 6 + } + ], + "meta": { + "version": 3 + }, + "net_colors": null, + "netclass_assignments": null, + "netclass_patterns": [ + { + "netclass": "+POWER", + "pattern": "*+*V*" + }, + { + "netclass": "-POWER", + "pattern": "*-*V*" + }, + { + "netclass": "GND", + "pattern": "*GND*" + } + ] + }, + "pcbnew": { + "last_paths": { + "gencad": "", + "idf": "", + "netlist": "", + "plot": "", + "pos_files": "", + "specctra_dsn": "", + "step": "", + "svg": "", + "vrml": "" + }, + "page_layout_descr_file": "" + }, + "schematic": { + "annotate_start_num": 0, + "bom_fmt_presets": [], + "bom_fmt_settings": { + "field_delimiter": ",", + "keep_line_breaks": false, + "keep_tabs": false, + "name": "CSV", + "ref_delimiter": ",", + "ref_range_delimiter": "", + "string_delimiter": "\"" + }, + "bom_presets": [], + "bom_settings": { + "exclude_dnp": false, + "fields_ordered": [ + { + "group_by": false, + "label": "Reference", + "name": "Reference", + "show": true + }, + { + "group_by": true, + "label": "Value", + "name": "Value", + "show": true + }, + { + "group_by": false, + "label": "Datasheet", + "name": "Datasheet", + "show": true + }, + { + "group_by": false, + "label": "Footprint", + "name": "Footprint", + "show": true + }, + { + "group_by": false, + "label": "Qty", + "name": "${QUANTITY}", + "show": true + }, + { + "group_by": true, + "label": "DNP", + "name": "${DNP}", + "show": true + } + ], + "filter_string": "", + "group_symbols": true, + "name": "Grouped By Value", + "sort_asc": true, + "sort_field": "Reference" + }, + "connection_grid_size": 50.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, + "operating_point_overlay_i_precision": 3, + "operating_point_overlay_i_range": "~A", + "operating_point_overlay_v_precision": 3, + "operating_point_overlay_v_range": "~V", + "overbar_offset_ratio": 1.23, + "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_dissipations": false, + "spice_save_all_voltages": false, + "subpart_first_id": 65, + "subpart_id_separator": 0 + }, + "sheets": [ + [ + "92a86815-0425-4ac3-80bb-037195814139", + "Root" + ] + ], + "text_variables": {} +} diff --git a/Hardware/tempalate_project/template.kicad_sch b/Hardware/tempalate_project/template.kicad_sch new file mode 100644 index 0000000..0948f04 --- /dev/null +++ b/Hardware/tempalate_project/template.kicad_sch @@ -0,0 +1,1376 @@ +(kicad_sch + (version 20231120) + (generator "eeschema") + (generator_version "8.0") + (uuid "92a86815-0425-4ac3-80bb-037195814139") + (paper "A4") + (lib_symbols + (symbol "Device:Battery" + (pin_numbers hide) + (pin_names + (offset 0) hide) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (property "Reference" "BT" + (at 2.54 2.54 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "Battery" + (at 2.54 0 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 0 1.524 90) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 0 1.524 90) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Multiple-cell battery" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_keywords" "batt voltage-source cell" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (symbol "Battery_0_1" + (rectangle + (start -2.286 -1.27) + (end 2.286 -1.524) + (stroke + (width 0) + (type default) + ) + (fill + (type outline) + ) + ) + (rectangle + (start -2.286 1.778) + (end 2.286 1.524) + (stroke + (width 0) + (type default) + ) + (fill + (type outline) + ) + ) + (rectangle + (start -1.524 -2.032) + (end 1.524 -2.54) + (stroke + (width 0) + (type default) + ) + (fill + (type outline) + ) + ) + (rectangle + (start -1.524 1.016) + (end 1.524 0.508) + (stroke + (width 0) + (type default) + ) + (fill + (type outline) + ) + ) + (polyline + (pts + (xy 0 -1.016) (xy 0 -0.762) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0 -0.508) (xy 0 -0.254) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0 0) (xy 0 0.254) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0 1.778) (xy 0 2.54) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 0.762 3.048) (xy 1.778 3.048) + ) + (stroke + (width 0.254) + (type default) + ) + (fill + (type none) + ) + ) + (polyline + (pts + (xy 1.27 3.556) (xy 1.27 2.54) + ) + (stroke + (width 0.254) + (type default) + ) + (fill + (type none) + ) + ) + ) + (symbol "Battery_1_1" + (pin passive line + (at 0 5.08 270) + (length 2.54) + (name "+" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "1" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + (pin passive line + (at 0 -5.08 90) + (length 2.54) + (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) + (exclude_from_sim no) + (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 yes) + ) + ) + (property "Datasheet" "~" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Light emitting diode" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_keywords" "LED diode" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_fp_filters" "LED* LED_SMD:* LED_THT:*" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (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) + ) + (exclude_from_sim no) + (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 yes) + ) + ) + (property "Datasheet" "~" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Resistor" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_keywords" "R res resistor" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_fp_filters" "R_*" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (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 "Mechanical:MountingHole" + (pin_names + (offset 1.016) + ) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (property "Reference" "H" + (at 0 5.08 0) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Value" "MountingHole" + (at 0 3.175 0) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Footprint" "" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Mounting Hole without connection" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_keywords" "mounting hole" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_fp_filters" "MountingHole*" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (symbol "MountingHole_0_1" + (circle + (center 0 0) + (radius 1.27) + (stroke + (width 1.27) + (type default) + ) + (fill + (type none) + ) + ) + ) + ) + (symbol "power:PWR_FLAG" + (power) + (pin_numbers hide) + (pin_names + (offset 0) hide) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (property "Reference" "#FLG" + (at 0 1.905 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Value" "PWR_FLAG" + (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 yes) + ) + ) + (property "Datasheet" "~" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Special symbol for telling ERC where power comes from" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "ki_keywords" "flag power" + (at 0 0 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (symbol "PWR_FLAG_0_0" + (pin power_out line + (at 0 0 90) + (length 0) + (name "~" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (number "1" + (effects + (font + (size 1.27 1.27) + ) + ) + ) + ) + ) + (symbol "PWR_FLAG_0_1" + (polyline + (pts + (xy 0 0) (xy 0 1.27) (xy -1.016 1.905) (xy 0 2.54) (xy 1.016 1.905) (xy 0 1.27) + ) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + ) + ) + ) + ) + (junction + (at 132.08 97.155) + (diameter 0) + (color 0 0 0 0) + (uuid "a1b00758-fd39-4e9e-83b7-b5eef3d3cd70") + ) + (wire + (pts + (xy 132.08 97.155) (xy 132.08 92.075) + ) + (stroke + (width 0) + (type default) + ) + (uuid "7d91becd-6f68-4791-b7e4-cdbd0e124d36") + ) + (wire + (pts + (xy 156.21 92.075) (xy 156.21 97.79) + ) + (stroke + (width 0) + (type default) + ) + (uuid "86d27060-25dd-43f7-98f3-8e7caaf58d61") + ) + (wire + (pts + (xy 149.86 92.075) (xy 156.21 92.075) + ) + (stroke + (width 0) + (type default) + ) + (uuid "ac97baf0-1074-49b1-9a14-76128fc37804") + ) + (wire + (pts + (xy 132.08 113.03) (xy 156.21 113.03) + ) + (stroke + (width 0) + (type default) + ) + (uuid "bbd49f12-0cb8-48c2-9bb8-b030cb6af233") + ) + (wire + (pts + (xy 132.08 107.315) (xy 132.08 113.03) + ) + (stroke + (width 0) + (type default) + ) + (uuid "cf1d2d8d-3205-4aa8-8b03-4cad286c2f47") + ) + (wire + (pts + (xy 132.08 92.075) (xy 142.24 92.075) + ) + (stroke + (width 0) + (type default) + ) + (uuid "e6178f6e-a0f0-4242-83b4-e03e153e882c") + ) + (wire + (pts + (xy 156.21 113.03) (xy 156.21 105.41) + ) + (stroke + (width 0) + (type default) + ) + (uuid "ee63b84a-39b7-4f8c-a731-053ceef12018") + ) + (rectangle + (start 127.635 80.645) + (end 164.465 116.84) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + (uuid 01e04360-484f-4a74-9cc5-e294b3e79ea8) + ) + (rectangle + (start 167.64 80.645) + (end 185.42 116.84) + (stroke + (width 0) + (type default) + ) + (fill + (type none) + ) + (uuid 835e5d36-4ab9-4846-bad9-4dde8d368df3) + ) + (text "CIRCUIT" + (exclude_from_sim no) + (at 135.255 83.185 0) + (effects + (font + (size 1.27 1.27) + ) + ) + (uuid "7beea78c-e1ae-4cb0-9067-3975f5e33463") + ) + (text "MOUNTING HOLES" + (exclude_from_sim no) + (at 176.53 83.185 0) + (effects + (font + (size 1.27 1.27) + ) + ) + (uuid "8e0daba1-eada-41e2-b68d-67c5c5b8e97b") + ) + (label "+V" + (at 132.08 92.075 0) + (fields_autoplaced yes) + (effects + (font + (size 1.27 1.27) + ) + (justify left bottom) + ) + (uuid "5814bca2-5209-4809-967f-fb7bb1db71b3") + ) + (label "-V" + (at 132.08 113.03 180) + (fields_autoplaced yes) + (effects + (font + (size 1.27 1.27) + ) + (justify right bottom) + ) + (uuid "591865a2-12fa-4467-8b25-bf859aa5ccea") + ) + (symbol + (lib_id "Device:R") + (at 146.05 92.075 90) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "00e65238-ae4a-4c7f-8159-9908f75b9fe2") + (property "Reference" "R1" + (at 146.05 86.36 90) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Value" "R" + (at 146.05 88.9 90) + (effects + (font + (size 1.27 1.27) + ) + ) + ) + (property "Footprint" "Resistor_SMD:R_0805_2012Metric" + (at 146.05 93.853 90) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 146.05 92.075 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Resistor" + (at 146.05 92.075 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "81f2de96-4352-4e39-8d0b-c7b66b1e828c") + ) + (pin "2" + (uuid "1e644860-ca30-4d9c-9d26-eb699edd668b") + ) + (instances + (project "template" + (path "/92a86815-0425-4ac3-80bb-037195814139" + (reference "R1") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Device:Battery") + (at 132.08 102.235 0) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "083ab27c-26d7-42a7-936f-614bf3dbcc3a") + (property "Reference" "BT1" + (at 135.89 100.3934 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "Battery" + (at 135.89 102.9334 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "Battery:BatteryHolder_LINX_BAT-HLD-012-SMT" + (at 132.08 100.711 90) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 132.08 100.711 90) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Multiple-cell battery" + (at 132.08 102.235 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "2" + (uuid "f986cb6f-68ec-4738-8466-b9e2ae0feb5d") + ) + (pin "1" + (uuid "36793154-a2fa-41ce-9776-0cb01a7e0275") + ) + (instances + (project "template" + (path "/92a86815-0425-4ac3-80bb-037195814139" + (reference "BT1") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Mechanical:MountingHole") + (at 172.085 104.775 0) + (unit 1) + (exclude_from_sim no) + (in_bom no) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "303036eb-ba8a-4bb8-a458-e580349ad373") + (property "Reference" "H3" + (at 174.625 103.5049 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "MountingHole" + (at 174.625 106.0449 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + (hide yes) + ) + ) + (property "Footprint" "MountingHole:MountingHole_3.2mm_M3_DIN965_Pad" + (at 172.085 104.775 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 172.085 104.775 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Mounting Hole without connection" + (at 172.085 104.775 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (instances + (project "template" + (path "/92a86815-0425-4ac3-80bb-037195814139" + (reference "H3") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Mechanical:MountingHole") + (at 172.085 93.345 0) + (unit 1) + (exclude_from_sim no) + (in_bom no) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "44b61ab6-c0eb-4ac6-ac05-eaa337721c64") + (property "Reference" "H1" + (at 174.625 92.0749 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "MountingHole" + (at 174.625 94.6149 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + (hide yes) + ) + ) + (property "Footprint" "MountingHole:MountingHole_3.2mm_M3_DIN965_Pad" + (at 172.085 93.345 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 172.085 93.345 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Mounting Hole without connection" + (at 172.085 93.345 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (instances + (project "template" + (path "/92a86815-0425-4ac3-80bb-037195814139" + (reference "H1") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "power:PWR_FLAG") + (at 132.08 97.155 270) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "4c5ddf9d-acde-4815-b20d-5d8a5bba6186") + (property "Reference" "#FLG01" + (at 133.985 97.155 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Value" "PWR_FLAG" + (at 135.89 97.1549 90) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Footprint" "" + (at 132.08 97.155 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 132.08 97.155 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Special symbol for telling ERC where power comes from" + (at 132.08 97.155 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "f5b6209a-d303-491f-80f6-90f42023244d") + ) + (instances + (project "template" + (path "/92a86815-0425-4ac3-80bb-037195814139" + (reference "#FLG01") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Device:LED") + (at 156.21 101.6 90) + (unit 1) + (exclude_from_sim no) + (in_bom yes) + (on_board yes) + (dnp no) + (uuid "66005799-571e-41b7-9000-70881f5abb32") + (property "Reference" "D1" + (at 160.02 101.9174 90) + (effects + (font + (size 1.27 1.27) + ) + (justify right) + ) + ) + (property "Value" "LED" + (at 160.02 104.4574 90) + (effects + (font + (size 1.27 1.27) + ) + (justify right) + ) + ) + (property "Footprint" "LED_SMD:LED_0805_2012Metric" + (at 156.21 101.6 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 156.21 101.6 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Light emitting diode" + (at 156.21 101.6 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (pin "1" + (uuid "de4ba201-ad28-41a8-a42f-a9384022a116") + ) + (pin "2" + (uuid "f13c5dfa-0cff-4d57-a310-38bcaec0b82a") + ) + (instances + (project "template" + (path "/92a86815-0425-4ac3-80bb-037195814139" + (reference "D1") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Mechanical:MountingHole") + (at 172.085 110.49 0) + (unit 1) + (exclude_from_sim no) + (in_bom no) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "78111726-4e75-4486-a962-d6983db1e50e") + (property "Reference" "H4" + (at 174.625 109.2199 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "MountingHole" + (at 174.625 111.7599 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + (hide yes) + ) + ) + (property "Footprint" "MountingHole:MountingHole_3.2mm_M3_DIN965_Pad" + (at 172.085 110.49 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 172.085 110.49 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Mounting Hole without connection" + (at 172.085 110.49 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (instances + (project "template" + (path "/92a86815-0425-4ac3-80bb-037195814139" + (reference "H4") + (unit 1) + ) + ) + ) + ) + (symbol + (lib_id "Mechanical:MountingHole") + (at 172.085 99.06 0) + (unit 1) + (exclude_from_sim no) + (in_bom no) + (on_board yes) + (dnp no) + (fields_autoplaced yes) + (uuid "af56fb7a-5a6a-4c40-9eaa-bb522b9e7a5c") + (property "Reference" "H2" + (at 174.625 97.7899 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + ) + ) + (property "Value" "MountingHole" + (at 174.625 100.3299 0) + (effects + (font + (size 1.27 1.27) + ) + (justify left) + (hide yes) + ) + ) + (property "Footprint" "MountingHole:MountingHole_3.2mm_M3_DIN965_Pad" + (at 172.085 99.06 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Datasheet" "~" + (at 172.085 99.06 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (property "Description" "Mounting Hole without connection" + (at 172.085 99.06 0) + (effects + (font + (size 1.27 1.27) + ) + (hide yes) + ) + ) + (instances + (project "template" + (path "/92a86815-0425-4ac3-80bb-037195814139" + (reference "H2") + (unit 1) + ) + ) + ) + ) + (sheet_instances + (path "/" + (page "1") + ) + ) +) \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..51ed96b --- /dev/null +++ b/README.md @@ -0,0 +1,115 @@ +# kicad project template +[![.github/workflows/main.yaml](https://github.com/sirlilpanda/kicad-project-template/actions/workflows/main.yaml/badge.svg?branch=main)](https://github.com/sirlilpanda/kicad-project-template/actions/workflows/main.yaml) + +a cool table showing the workflow of all the kicad projects. +| project_name | DRC | ERC | +| ------------ | --- | --- | +| template | [❌](https://github.com/sirlilpanda/kicad-project-template/actions/runs/14507154830/attempts/1#summary-40698563204)| [βœ…](https://github.com/sirlilpanda/kicad-project-template/actions/runs/14507154830/attempts/1#summary-40698563199) | + +for a quick guide check [project setup](#project-setup) + +This is a simple project template for new kicad projects. This template has some basic setup already completed such as workflows for auto creating all the things you forget when creating a kicad project such as: + +- [gerbers](https://github.com/sirlilpanda/kicad-project-template/tree/main/template_gerber.zip) +- [bom](https://github.com/sirlilpanda/kicad-project-template/tree/main/template_bom_report.md) +- [schematic pdf](https://github.com/sirlilpanda/kicad-project-template/tree/main/template_schematic.pdf) + + +This workflow will also run the design rules check on the PCB and schematic to ensure that you upload a working PCB. These reports are uploaded as summaries within the github [actions tab](https://github.com/sirlilpanda/kicad-project-template/actions/runs/14507154830). This template has a simple schematic PCB in it (because DRC fails on an empty PCB). Shown below is the example PCB. + +![example pcb with battery diode and resistor](res/image.png) + +besides from that the project also has: + +- common predefined trace widths +- smallest vias size [JLCPBC allows](https://jlcpcb.com/capabilities/Capabilities#Drilling) +- custom net colours in the schematic editor + - `red` for +V + - `blue` for -V + - `grey` for ground + +to create a repo from this template follow this [guide](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template) + +contained in this template are: +--- +- `.github/` : all files relating to github actions and other admin see [here](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions) for more example of what can be placed in it + - `report_processing` : where the python scripts are stored for processing the json report data from kicad + - `report_templates` : where the template for said reports are stored + - `workflows/` : this is where the github actions are kept + - `main.yaml` : the main github action that will auto generate all files required and run DRC and ERC + - `rename.py` : the script for renaming the project +- `hardware/` : this is where the kicad projects live note this can be changed +- `docs/` : this is where the generate docs are placed by default + - `BOM/` : where the bill of materials and price breakdown are kept + - `bill_of_materials.csv`: the auto generated bom for the kicad project + - `bom_report.md` : a report for the bill of materials + - `template_schematic.pdf` : the schematic for the kicad project, auto generated by the github action +- `pcbs/` : this is where the auto generated gerbers for the kicad project are stored + +- `res/` : where resources are stored for the README + +- `.gitignore`: a slightly modified gitignore from the [standard one](https://github.com/github/gitignore/blob/main/KiCad.gitignore) + +- `project_settings.yaml` : where the settings for this project is stored + +- `README.md` : this file, suggest you change this one creating your project + +## project settings +there are currently very few project settings that can be changed (will will be change in the future) these are: +| setting | description | +| --------------------------- | ----------------------------------------------------------------- | +| has_been_set_up | a flag to tell the setup action if the project has been set up | +| project_name | the name of the project, this will be set to the name of the repo | +| production_formats | the output production format for the PCBs | +| dynamic_read_me | allow the readme to be updated using the given template | +| bom_template_path | the template used to write the bom report files | +| erc_report_template_path | the template used to write the erc report files | +| drc_report_template_path | the template used to write the drc report files | +| readme_template_path | the template used to write projects readme | +| schematic_output_name | the name suffix of the generated schematics | +| bom_csv_output_name | the name suffix of the generated bom csv file | +| bom_report_output_name | the name suffix of the generated bom report | +| production_file_output_name | the name suffix of the generated production file | +| schematic_output_path | the output path of the generated schematics files | +| bom_csv_output_path | the output path of the generated bom csv file | +| bom_report_output_path | the output path of the generated bom report | +| production_file_output_path | the output path of the generated production file | + +## project setup + +### creating a new repo with the template + +creating a new template from a repo is simple: + +1. click on the button in the top right hand corner called `use this template` +![alt text](res/image-5.png) + +2. when the drop down menu appears click on `create a new repository` +![alt text](res/image-6.png) + +3. once you click you will be brought to this page, note that the repo name you choose here will be the name that you kicad project is called. +![alt text](res/image-7.png) + +after these steps you then need to configure the repo settings to do their magic see [configuring repo settings](#configuring-repo-settings) for what to do next. + +### configuring repo settings + +once you have created a new repo with the template, you ill have to configure the github action settings. this is because you will get an error that looks something along these lines: +![alt text](res/image-4.png) +where the action can not commit the changes due to not having permissions follow these steps: +1. open the repo setting +![alt text](res/image-1.png) +2. then head in to actions : General +![alt text](res/image-2.png) +3. then scroll down to workflow permissions and ensure that both + `Read and write permissions` and `Allow GitHub Actions to create and approve pull requests` are ticked as seen below +![alt text](res/image-3.png) + +this should fix the problem if not, go harass stack overflow they need it +Once all of these steps have been followed the workflow should be passing, however the `README.md` will only update on the next push request. + +## editing the readme + +As this repo can and will automatically update the repo corresponding to the given readme template. If you dont want to use this you can always disable this by setting the `dynamic_read_me` to `false`. but if you want some very cool features like auto updating tables to show what projects are passing the rules check or simple links to parts of your directory. then have a look at the template readme and learn [mustache](https://mustache.github.io/) + +## improvements diff --git a/docs/BOM/.gitkeep b/docs/BOM/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/docs/BOM/template_bill_of_materials.csv b/docs/BOM/template_bill_of_materials.csv new file mode 100644 index 0000000..8289766 --- /dev/null +++ b/docs/BOM/template_bill_of_materials.csv @@ -0,0 +1,4 @@ +"Refs","Value","Footprint","Qty","DNP" +"BT1","Battery","Battery:BatteryHolder_LINX_BAT-HLD-012-SMT","1","" +"D1","LED","LED_SMD:LED_0805_2012Metric","1","" +"R1","R","Resistor_SMD:R_0805_2012Metric","1","" diff --git a/docs/BOM/template_bom_report.md b/docs/BOM/template_bom_report.md new file mode 100644 index 0000000..a2cdd47 --- /dev/null +++ b/docs/BOM/template_bom_report.md @@ -0,0 +1,12 @@ +# πŸ“„ BOM for template_bill_of_material πŸ“„ + +report created at 03:09:02.038853 on 17-04-2025. + +template_bill_of_material has a total of 3 parts with a cost of $0. + +| Reference | Value | Quantity | part number | cost | +| --------- | ----- | -------- | ----------- | ---- | +| BT1 | Battery | 1 | Battery:BatteryHolder_LINX_BAT-HLD-012-SMT | $0 | +| D1 | LED | 1 | LED_SMD:LED_0805_2012Metric | $0 | +| R1 | R | 1 | Resistor_SMD:R_0805_2012Metric | $0 | +| | total | 3 | total | $0 | diff --git a/docs/template_schematic.pdf b/docs/template_schematic.pdf new file mode 100644 index 0000000..baa3c9b Binary files /dev/null and b/docs/template_schematic.pdf differ diff --git a/pcbs/.gitkeep b/pcbs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/pcbs/template_gerber.zip b/pcbs/template_gerber.zip new file mode 100644 index 0000000..b642d8f Binary files /dev/null and b/pcbs/template_gerber.zip differ diff --git a/project_settings.yaml b/project_settings.yaml new file mode 100644 index 0000000..636b637 --- /dev/null +++ b/project_settings.yaml @@ -0,0 +1,45 @@ +needs_setup: true + +# this is set to the name of your repo during setup, you can change it later on using the rename tool +project_name: template + +# this is a list of the production formats that you would like +# honestly only use gerbers, i doubt i will add anything else +# but if you want something custom, implement it and throw in +# a pull request +#not support +production_format: gerber + +schematic_output_path: docs/ + +bom_csv_output_path: docs/BOM/ + +bom_report_output_path: docs/BOM/ + +production_file_output_path: pcbs/ + +# all names will follow the pattern [project_name]name.* +# these settings just define that name suffix +# the underscore here are purely for readablity of the +# output files so the schematic output file name will be +# project_name_schematic.pdf +schematic_output_name: _schematic + +bom_csv_output_name: _bill_of_materials + +bom_report_output_name: _bom_report + +production_file_output_name: _gerber + +# these templates use mustache (https://mustache.github.io/mustache.5.html) +# a logic less templating langauge for templating just about anything +bom_template_path: .github/report_templates/bom_report_template.mustache + +erc_report_template_path: .github/report_templates/erc_report_template.mustache + +drc_report_template_path: .github/report_templates/drc_report_template.mustache + +readme_template_path: .github/report_templates/readme.mustache + +# allow the readme to be auto updated using the readme template +dynamic_read_me: true \ No newline at end of file diff --git a/res/image-1.png b/res/image-1.png new file mode 100644 index 0000000..2f7da78 Binary files /dev/null and b/res/image-1.png differ diff --git a/res/image-2.png b/res/image-2.png new file mode 100644 index 0000000..6c4fd84 Binary files /dev/null and b/res/image-2.png differ diff --git a/res/image-3.png b/res/image-3.png new file mode 100644 index 0000000..632d0bb Binary files /dev/null and b/res/image-3.png differ diff --git a/res/image-4.png b/res/image-4.png new file mode 100644 index 0000000..716517c Binary files /dev/null and b/res/image-4.png differ diff --git a/res/image-5.png b/res/image-5.png new file mode 100644 index 0000000..73a82bc Binary files /dev/null and b/res/image-5.png differ diff --git a/res/image-6.png b/res/image-6.png new file mode 100644 index 0000000..3102d92 Binary files /dev/null and b/res/image-6.png differ diff --git a/res/image-7.png b/res/image-7.png new file mode 100644 index 0000000..0b6cd1b Binary files /dev/null and b/res/image-7.png differ diff --git a/res/image.png b/res/image.png new file mode 100644 index 0000000..f4dbce0 Binary files /dev/null and b/res/image.png differ