Skip to content

Commit

Permalink
Merge pull request #50 from rfvermut/main
Browse files Browse the repository at this point in the history
UI Board
  • Loading branch information
ClemensElflein authored Feb 16, 2023
2 parents 890ada7 + 7565b24 commit 5ff3c74
Show file tree
Hide file tree
Showing 23 changed files with 55,775 additions and 2 deletions.
38 changes: 38 additions & 0 deletions Hardware/CoverUI/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# For PCBs designed using KiCad: https://www.kicad.org/
# Format documentation: https://kicad.org/help/file-formats/

# Temporary files
*.000
*.bak
*.bck
*.kicad_pcb-bak
*.kicad_sch-bak
*-backups
*.kicad_prl
*.sch-bak
*~
_autosave-*
*.tmp
*-save.pro
*-save.kicad_pcb
fp-info-cache

# Netlist files (exported from Eeschema)
*.net

# Autorouter files (exported from Pcbnew)
*.dsn
*.ses

# Exported BOM files
*.xml
*.csv

replicate_layout.log

# Kibot tmp files
*-drc.txt
*-erc.txt
kibot_errors.filter
*.kicad_pro-bak
release
78 changes: 78 additions & 0 deletions Hardware/CoverUI/CoverUI-cache.lib
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
EESchema-LIBRARY Version 2.4
#encoding utf-8
#
# Device_LED
#
DEF Device_LED D 0 40 N N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "Device_LED" 0 -100 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
LED*
LED_SMD:*
LED_THT:*
$ENDFPLIST
DRAW
P 2 0 1 10 -50 -50 -50 50 N
P 2 0 1 0 -50 0 50 0 N
P 4 0 1 10 50 -50 50 50 -50 0 50 -50 N
P 5 0 1 0 -120 -30 -180 -90 -150 -90 -180 -90 -180 -60 N
P 5 0 1 0 -70 -30 -130 -90 -100 -90 -130 -90 -130 -60 N
X K 1 -150 0 100 R 50 50 1 1 P
X A 2 150 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Mechanical_MountingHole_Pad
#
DEF Mechanical_MountingHole_Pad H 0 40 N N 1 F N
F0 "H" 0 250 50 H V C CNN
F1 "Mechanical_MountingHole_Pad" 0 175 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
MountingHole*Pad*
$ENDFPLIST
DRAW
C 0 50 50 0 1 50 N
X 1 1 0 -100 100 U 50 50 1 1 I
ENDDRAW
ENDDEF
#
# Switch_SW_MEC_5G
#
DEF Switch_SW_MEC_5G SW 0 40 N N 1 F N
F0 "SW" 50 100 50 H V L CNN
F1 "Switch_SW_MEC_5G" 0 -60 50 H V C CNN
F2 "" 0 200 50 H I C CNN
F3 "" 0 200 50 H I C CNN
$FPLIST
SW*MEC*5G*
$ENDFPLIST
DRAW
C -80 0 20 0 1 0 N
C 80 0 20 0 1 0 N
P 2 0 1 0 0 50 0 120 N
P 2 0 1 0 100 50 -100 50 N
X A 1 -200 0 100 R 50 50 0 1 P
X B 3 200 0 100 L 50 50 0 1 P
X A 2 -200 0 100 R 50 50 1 1 P N
X B 4 200 0 100 L 50 50 1 1 P N
ENDDRAW
ENDDEF
#
# power_GND
#
DEF power_GND #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -250 50 H I C CNN
F1 "power_GND" 0 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N
X GND 1 0 0 0 D 50 50 1 1 W N
ENDDRAW
ENDDEF
#
#End Library
96 changes: 96 additions & 0 deletions Hardware/CoverUI/CoverUI.kibot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
kibot:
version: 1

preflight:
run_drc: true
run_erc: true

set_text_variables:
- name: 'git_version'
# Replace n.m.i with n.m."x"
command: >
git describe --tags | sed -E 's/^(v[0-9]+\.[0-9]+)\.([0-9]+)/\1.x/'
update_xml: true

outputs:
- name: 'bom'
comment: 'Used to generate the BoM in CSV, HTML, TSV, TXT, XML or XLSX format using the internal BoM.'
type: 'kibom' # reads bom.ini in contrast with 'bom'
dir: 'release'
options:
format: CSV

- name: 'ibom'
comment: 'Generates an interactive web page useful to identify the position of the components in the PCB.'
type: 'ibom'
dir: 'release'
options:
extra_fields: LCSC
highlight_pin1: true

- name: 'write_gerber_drill'
comment: 'This is the information for the drilling machine in gerber format.'
type: 'gerb_drill'
dir: 'release/gerber_cover'

- name: 'write_gerber'
comment: 'This is the main fabrication format for the PCB.'
type: 'gerber'
dir: 'release/gerber_cover'
layers: 'selected'

- name: 'gerber'
comment: 'Generates a compressed file containing gerber files.'
type: 'compress'
dir: 'release'
options:
files:
# [string=''] Destination directory inside the archive, empty means the same of the file
- dest: '.'
source: 'release/gerber_cover/*'

- name: 'position'
comment: 'Generates the file with position information for the PCB components, used by the pick and place machine.'
type: 'position'
dir: 'release'

- name: 'pcbdraw_svg'
comment: 'Exports the PCB as a 2D model (SVG, PNG or JPG).'
type: 'pcbdraw'
dir: 'release'
options:
format: 'svg'

- name: 'pcbdraw_png'
comment: 'Exports the PCB as a 2D model (SVG, PNG or JPG).'
type: 'pcbdraw'
dir: 'release'
options:
format: 'png'

- name: 'pcbdraw_svg_bottom'
comment: 'Exports the PCB as a 2D model (SVG, PNG or JPG).'
type: 'pcbdraw'
dir: 'release'
options:
bottom: true
format: 'svg'

- name: 'pcbdraw_png_bottom'
comment: 'Exports the PCB as a 2D model (SVG, PNG or JPG).'
type: 'pcbdraw'
dir: 'release'
options:
bottom: true
format: 'png'

- name: 'render_3d'
comment: "Exports the image generated by KiCad's 3D viewer."
type: 'render_3d'
dir: 'release'
options:
rotate_x: 1
rotate_y: 1
ray_tracing: true
wait_render: -600
zoom: 2
Loading

0 comments on commit 5ff3c74

Please sign in to comment.