Compare commits

...

55 Commits

Author SHA1 Message Date
b7ffcefe61 Fix paths in workflow trigger (#3)
Reviewed-on: #3
Co-authored-by: Andreas Tsouchlos <an.tsouchlos@gmail.com>
Co-committed-by: Andreas Tsouchlos <an.tsouchlos@gmail.com>
2024-10-20 14:15:14 +00:00
f04493bcd1 Add MIT license (#2)
Reviewed-on: #2
Co-authored-by: Andreas Tsouchlos <an.tsouchlos@gmail.com>
Co-committed-by: Andreas Tsouchlos <an.tsouchlos@gmail.com>
2024-10-20 13:36:46 +00:00
e84799ca64 Add doc generation workflow (#1)
Co-authored-by: an.tsouchlos <an.tsouchlos@users.noreply.github.com>
Reviewed-on: #1
Co-authored-by: Andreas Tsouchlos <an.tsouchlos@gmail.com>
Co-committed-by: Andreas Tsouchlos <an.tsouchlos@gmail.com>
2024-10-20 13:31:11 +00:00
a67b8fe123 Fix component values 2023-09-07 11:59:02 +02:00
0d21f201a8 Update PCB from schematic 2023-08-26 20:49:58 +02:00
9df9dc85b3 Add 1k value to LED resistor 2023-08-26 20:48:31 +02:00
29ceb800b5 Update to newest version of library 2023-08-22 22:10:19 +02:00
76fda99eee Change crystal capacitor values 2023-08-22 22:09:05 +02:00
98e85899db Change constraints to fix design errors 2023-08-08 18:53:33 +03:00
77521f485e Add stitching vias to RF trace 2023-08-08 18:46:36 +03:00
bc352c1ef9 Move pin headers to ensure multiple of 2.54mm spacing; Add proper via stitching 2023-08-08 18:39:26 +03:00
3e4ffe054e Move I2C pullups closer to nrf chip; Moved I2C lines further appart 2023-08-06 18:01:26 +03:00
a3efce4b15 Check out newest version of library and update component 2023-08-05 03:14:44 +03:00
9d4f103f3b Change battery holder value to component number 2023-08-05 03:06:04 +03:00
14ea99b19e Add antenna datasheet 2023-08-05 02:44:20 +03:00
5881a12bf2 Changed Antenna icon to chip antenna and fixed designator 2023-08-05 02:37:50 +03:00
65c245e1f2 Add kiri directory to gitignore 2023-08-05 02:27:27 +03:00
4cc6da8e05 Move power pin header to properly align with I2C pin header 2023-08-02 01:55:58 +02:00
0d15a5aa94 Added interactive HTML BOM output directory to gitignore 2023-08-01 23:16:34 +02:00
322f5afbb1 Tidy up schematic 2023-08-01 22:51:57 +02:00
788bdf1d99 Add vias to avoid islands 2023-08-01 22:30:17 +02:00
a07c2176a1 Route LED and fix silk screen warnings 2023-08-01 18:45:38 +02:00
0ecab2ae47 Add additional 1u bypass capacitor 2023-08-01 18:34:12 +02:00
b612cc3bcd Re-route SWD connector 2023-08-01 18:28:42 +02:00
29cd66dd2f Clean up copper keepout of matching network 2023-08-01 17:49:34 +02:00
e46114806a Add reverse polarity protection diodes; Start cleaning up top part of PCB 2023-08-01 17:38:35 +02:00
e828dc4a13 Add inductors and clean up bottom part of PCB 2023-07-31 23:34:18 +02:00
f7b4757be6 Remove one status LED and move the other one; Fix text placement of 3V3 GND 2023-07-31 21:22:53 +02:00
c4f8c0662b Increase clearance around trace running under crystal 2023-07-31 20:56:08 +02:00
519b772dfd Add SWD connector; Add text on silkscreen 2023-07-31 08:57:09 +02:00
dd8bf45675 Add TODO for DC/DC 2023-07-31 01:35:09 +02:00
3351a0cab8 Move around vias 2023-07-31 01:27:10 +02:00
66cc4cfc8f Position i2c and power bit headers close to other header; Add text to silk screen 2023-07-31 01:24:25 +02:00
3c2354b0f1 Add 1x2 pin headers for power and I2C 2023-07-30 23:28:25 +02:00
e4342258bd Add forgotten ground vias 2023-07-30 17:16:43 +02:00
2f1c467b8d Add SWD connector TODO to schematic 2023-07-30 17:13:45 +02:00
e68695c7df Finish routing ADC in IO pins 2023-07-30 17:10:03 +02:00
485c5bf7e4 Start routing connections to pin header 2023-07-30 16:53:23 +02:00
c96fcff3ab Connect IOs and AINs to pin header 2023-07-30 16:52:46 +02:00
cb4059b84a Add I2C pullup resistors to PCB 2023-07-30 16:40:15 +02:00
ca5583c799 Tidy up schematic and add I2C pullup resistors 2023-07-30 16:29:29 +02:00
39c10124fd Not sure what changed 2023-07-30 16:10:56 +02:00
9c63e68db6 Add version text 2023-07-30 14:51:39 +02:00
3cae36f24b Minor cosmetic changes 2023-07-30 14:40:54 +02:00
d6d60f1417 Routed all connections 2023-07-30 14:38:13 +02:00
8ef0b56bab Fix most DRC violations 2023-07-30 09:26:25 +02:00
5f3dd6fbe4 Add missing 3d models 2023-07-30 08:55:35 +02:00
fe3a7975c5 Create first basic layout 2023-07-30 08:48:36 +02:00
054350be88 Check out new version of encyclopedia galactica 2023-07-30 08:48:21 +02:00
06d9df3d7b Replace schematic symbols with new versions from library 2023-07-30 08:47:49 +02:00
2f9c182b3c Remove net class labels from schematic 2023-07-29 23:42:02 +02:00
c161c15ddc Check out new version of encyclopedia galactica 2023-07-29 22:48:57 +02:00
fa63368079 Change librararies of components to encyclopedia galactica 2023-07-29 22:48:28 +02:00
d647deef05 Add symbol and footprint libraries to project 2023-07-29 22:09:16 +02:00
b2e2d3f3ca Add lck files to gitignore 2023-07-29 21:56:27 +02:00
19 changed files with 74129 additions and 896 deletions

7
.gitattributes vendored Normal file
View File

@ -0,0 +1,7 @@
*.csv filter=bom_csv
*.html filter=bom_html
*.gbr filter=gerber
*.gbrjob filter=gbrjob
*.xml filter=xml
*.kicad_pcb filter=kicad_pcb_f
*.net filter=net_filter

20
.gitconfig Normal file
View File

@ -0,0 +1,20 @@
[filter "bom_csv"]
clean = sed -E 's/^BoM Date:.*$/BoM Date:Date/'
smudge = sed -E \"s/BoM Date:Date/BoM Date:,`date +\\\"%a %d %b %Y %X %:::z\\\"`/\"
[filter "bom_html"]
clean = sed -E 's/^<tr><td>BoM Date<\\/td><td>.*$/<tr><td>BoM Date<\\/td><td>Date<\\/td><\\/tr>/'
smudge = sed -E \"s/<tr><td>BoM Date<\\/td><td>Date<\\/td><\\/tr>/<tr><td>BoM Date<\\/td><td>`date +\\\"%a %d %b %Y %X %:::z\\\"`<\\/td><\\/tr>/\"
[filter "gerber"]
clean = sed -E -e 's/^%TF.CreationDate,.*$/%TF.CreationDate,Date%/' -e 's/^G04 Created by KiCad.*$/G04 Created by KiCad*/'
smudge = sed -E \"s/%TF.CreationDate,Date%/%TF.CreationDate,`date +%Y-%m-%dT%H:%M:%S%:z`/\"
[filter "gbrjob"]
clean = sed -E 's/\"CreationDate\":.*/\"CreationDate\": \"Date\"/'
smudge = sed -E \"s/\\\"CreationDate\\\": \\\"Date\\\"/\\\"CreationDate\\\": \\\"`date +%Y-%m-%dT%H:%M:%S%:z`\\\"/\"
[filter "xml"]
clean = sed -E -e 's/^ <date>.*<\\/date>/ <date>Date2<\\/date>/' -e 's/^ <date>.*<\\/date>/ <date>Date1<\\/date>/'
smudge = sed -E -e \"s/<date>Date1<\\/date>/<date>`date +\\\"%a %d %b %Y %X %:::z\\\"`<\\/date>/\" -e \"s/<date>Date2<\\/date>/<date>`date +\\\"%Y-%m-%d\\\"`<\\/date>/\"
[filter "kicad_pcb_f"]
clean = sed -E 's/\\(host pcbnew ([[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+).*/\\(host pcbnew \\1\\)/'
[filter "net_filter"]
clean = sed -E -e 's/\\(date \\\".*\\\"\\)/\\(date \\\"Date\\\"\\)/'
smudge = sed -E -e \"s/\\(date \\\"Date\\\"\\)/\\(date \\\"`date +\\\"%a %d %b %Y %X %:::z\\\"`\\\"\\)/\"

View File

@ -0,0 +1,23 @@
name: docs-generation
on:
pull_request:
paths:
- '**.kicad_sch'
- '**.kicad_pcb'
- '**.kicad_pro'
jobs:
docs-generation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: INTI-CMNB/KiBot@v1.8.1
with:
config: config.kibot.yaml
schema: 'CommonSense.kicad_sch'
board: 'CommonSense.kicad_pcb'
- name: upload results
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'Update Docs'

5
.gitignore vendored
View File

@ -11,6 +11,7 @@
*.kicad_prl
*.sch-bak
*~
*.lck
_autosave-*
*.tmp
*-save.pro
@ -27,6 +28,10 @@ fp-info-cache
# Exported BOM files
*.xml
*.csv
bom/
# Backups
*-backups
# Kiri files
.kiri/

File diff suppressed because it is too large Load Diff

View File

@ -3,26 +3,202 @@
"3dviewports": [],
"design_settings": {
"defaults": {
"board_outline_line_width": 0.1,
"copper_line_width": 0.2,
"board_outline_line_width": 0.09999999999999999,
"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.15,
"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.15,
"silk_text_italic": false,
"silk_text_size_h": 1.0,
"silk_text_size_v": 1.0,
"silk_text_thickness": 0.15
"silk_text_thickness": 0.15,
"silk_text_upright": false,
"zones": {
"min_clearance": 0.5
}
},
"diff_pair_dimensions": [],
"diff_pair_dimensions": [
{
"gap": 0.0,
"via_gap": 0.0,
"width": 0.0
}
],
"drc_exclusions": [],
"rules": {
"min_copper_edge_clearance": 0.0,
"solder_mask_clearance": 0.0,
"solder_mask_min_width": 0.0
"meta": {
"version": 2
},
"track_widths": [],
"via_dimensions": []
"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_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.0,
"min_hole_clearance": 0.25,
"min_hole_to_hole": 0.25,
"min_microvia_diameter": 0.19999999999999998,
"min_microvia_drill": 0.09999999999999999,
"min_resolved_spokes": 1,
"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.127,
"min_via_annular_width": 0.049999999999999996,
"min_via_diameter": 0.39999999999999997,
"solder_mask_clearance": 0.0,
"solder_mask_min_width": 0.0,
"solder_mask_to_copper_clearance": 0.0,
"use_height_for_length_calcs": true
},
"teardrop_options": [
{
"td_allow_use_two_tracks": true,
"td_curve_segcount": 5,
"td_on_pad_in_zone": false,
"td_onpadsmd": true,
"td_onroundshapesonly": false,
"td_ontrackend": false,
"td_onviapad": true
}
],
"teardrop_parameters": [
{
"td_curve_segcount": 0,
"td_height_ratio": 1.0,
"td_length_ratio": 0.5,
"td_maxheight": 2.0,
"td_maxlen": 1.0,
"td_target_name": "td_round_shape",
"td_width_to_size_filter_ratio": 0.9
},
{
"td_curve_segcount": 0,
"td_height_ratio": 1.0,
"td_length_ratio": 0.5,
"td_maxheight": 2.0,
"td_maxlen": 1.0,
"td_target_name": "td_rect_shape",
"td_width_to_size_filter_ratio": 0.9
},
{
"td_curve_segcount": 0,
"td_height_ratio": 1.0,
"td_length_ratio": 0.5,
"td_maxheight": 2.0,
"td_maxlen": 1.0,
"td_target_name": "td_track_end",
"td_width_to_size_filter_ratio": 0.9
}
],
"track_widths": [
0.0,
0.15,
0.2,
0.25,
0.35,
0.4,
0.6
],
"via_dimensions": [
{
"diameter": 0.0,
"drill": 0.0
},
{
"diameter": 0.4,
"drill": 0.3
},
{
"diameter": 0.6,
"drill": 0.3
},
{
"diameter": 0.9,
"drill": 0.4
}
],
"zones_allow_external_fillets": false
},
"layer_presets": [],
"viewports": []
@ -254,7 +430,7 @@
"classes": [
{
"bus_width": 12,
"clearance": 0.2,
"clearance": 0.127,
"diff_pair_gap": 0.25,
"diff_pair_via_gap": 0.25,
"diff_pair_width": 0.2,
@ -264,31 +440,65 @@
"name": "Default",
"pcb_color": "rgba(0, 0, 0, 0.000)",
"schematic_color": "rgba(0, 0, 0, 0.000)",
"track_width": 0.25,
"via_diameter": 0.8,
"track_width": 0.2,
"via_diameter": 0.6,
"via_drill": 0.3,
"wire_width": 6
},
{
"bus_width": 12,
"clearance": 0.127,
"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": "rgba(0, 0, 0, 0.000)",
"track_width": 0.4,
"via_diameter": 0.9,
"via_drill": 0.4,
"wire_width": 6
},
{
"bus_width": 12,
"clearance": 0.127,
"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": "RF - 50Ohm",
"pcb_color": "rgba(0, 0, 0, 0.000)",
"schematic_color": "rgba(0, 0, 0, 0.000)",
"track_width": 0.35,
"via_diameter": 0.6,
"via_drill": 0.3,
"wire_width": 6
}
],
"meta": {
"version": 3
},
"net_colors": null,
"netclass_assignments": {
"+3V3": "Power",
"/DEC1": "Signal",
"/DEC4": "Signal",
"/LED_RES1": "Signal",
"/LED_RES2": "Signal",
"/STATUS_LED1": "Signal",
"/STATUS_LED2": "Signal",
"/XC1": "Signal",
"/XC2": "Signal",
"/XL1": "Signal",
"/XL2": "Signal",
"GND": "Signal"
},
"netclass_patterns": []
"netclass_assignments": null,
"netclass_patterns": [
{
"netclass": "RF - 50Ohm",
"pattern": "/RF"
},
{
"netclass": "Power",
"pattern": "+3V0"
},
{
"netclass": "Power",
"pattern": "+BATT"
}
]
},
"pcbnew": {
"last_paths": {

File diff suppressed because it is too large Load Diff

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2024 Andreas Tsouchlos
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,10 +1,17 @@
# CommonSense
A BLE-based PCB for measuring humidity and temperature
A BLE-based PCB for measuring humidity and temperature.
## Downloading libraries
After cloning, the libraries have to be downloaded using
After cloning, the libraries can be downloaded using
```bash
$ git submodule update --init
```
## PCB
<img width=400 src="./doc/generated/CommonSense-top.svg" />
<img width=400 src="./doc/generated/CommonSense-bottom.svg" />
## Schematic
<img src="./doc/generated/CommonSense-schematic.svg" />

50
config.kibot.yaml Normal file
View File

@ -0,0 +1,50 @@
kibot:
version: 1
outputs:
- name: 'schematic pdf'
comment: 'Schematic pdf generation'
type: 'pdf_sch_print'
dir: 'doc/generated'
- name: 'schematic svg'
comment: 'Schematic pdf generation'
type: 'svg_sch_print'
dir: 'doc/generated'
options:
background_color: true
- name: 'pcbdraw top svg'
comment: 'PCB top image generation'
type: 'pcbdraw'
dir: 'doc/generated'
options:
bottom: false
style: 'set-blue-cu'
show_components: 'none'
- name: 'pcbdraw top pdn'
comment: 'PCB top image generation'
type: 'pcbdraw'
dir: 'doc/generated'
options:
format: 'png'
dpi: 600
bottom: false
style: 'set-blue-cu'
show_components: 'none'
- name: 'pcbdraw bottom svg'
comment: 'PCB bottom image generation'
type: 'pcbdraw'
options:
bottom: true
style: 'set-blue-cu'
show_components: 'none'
dir: 'doc/generated'
- name: 'pcbdraw bottom png'
comment: 'PCB bottom image generation'
type: 'pcbdraw'
options:
format: 'png'
dpi: 600
bottom: true
style: 'set-blue-cu'
show_components: 'none'
dir: 'doc/generated'

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 430 KiB

@ -1 +1 @@
Subproject commit d7c6225a24e0fd8e60ca66601700c2681419d555
Subproject commit 0187699e02a9b9181755ef47a5f2d6f5bf65efe5

4
fp-lib-table Normal file
View File

@ -0,0 +1,4 @@
(fp_lib_table
(version 7)
(lib (name "encyclopedia_galactica")(type "KiCad")(uri "${KIPRJMOD}/encyclopedia_galactica/encyclopedia_galactica.pretty")(options "")(descr ""))
)

4
sym-lib-table Normal file
View File

@ -0,0 +1,4 @@
(sym_lib_table
(version 7)
(lib (name "encyclopedia_galactica")(type "KiCad")(uri "${KIPRJMOD}/encyclopedia_galactica/encyclopedia_galactica.kicad_sym")(options "")(descr ""))
)