Skip to content

Commit

Permalink
V4.6 (#153)
Browse files Browse the repository at this point in the history
* CAN chip replacement
* Update ControllerCircuit.kicad_pcb
* Change thermal relief on ground pins
* Change solid state relays to AQY282SX, remove i2c debug pins
* Added dual footprint for LED
* Update ControllerCircuit.sch
* Minor changes for thermal pad connections on screw terminals
* Correct MHPC3528 footprint
* Added pull up for CS line on SD CARD.  Power input down to 2 pin socket
* Added current shunt to pcb
* Bridge 120ohm termination resistors by default
* Fix c3/c4/u1 rotation
* Update config-2layer.kibot.yaml
* Update pcb-artifacts-esp32-controller.yaml
* Tidy up part names
* Tidied up silkscreen labels
* MHPC3528CRGBCT is optional
* Update ControllerCircuit_bom_jlc.csv
* Update part numbers for C3/C4 (22uF)
* Remove incorrect link to 1614 datasheet PDF
* Updated Gerbers
* Fix C1 part number 0805 size #150
* Fix for #149
* Update ComponentListBOM.md
* Increase size of PCB holes for J5
  • Loading branch information
stuartpittaway committed Apr 13, 2023
1 parent 89a3aae commit be885e1
Show file tree
Hide file tree
Showing 33 changed files with 43,086 additions and 122,329 deletions.
50 changes: 28 additions & 22 deletions .github/workflows/pcb-artifacts-esp32-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ on:
# Allows you to run this work flow manually from the Actions tab
workflow_dispatch:

env:
repo: stuartpittaway/diyBMSv4
main_branch: master

jobs:
generate-artifacts:
runs-on: ubuntu-latest
Expand All @@ -33,36 +29,43 @@ jobs:
git lfs install
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
lfs: true

- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v6

- name: Running on branch
run: |
echo "Running on branch: ${{ steps.branch-name.outputs.current_branch }}"
- name: Update the PCBs with on default branch with git hash
if: steps.extract_branch.outputs.branch == env.main_branch
if: steps.branch-name.outputs.is_default == 'true'
run: |
export COMMIT=$(git rev-parse --short HEAD)
echo "COMMIT = ${COMMIT}"
echo "ref: ${{ github.ref }}"
echo "default: ${{ env.default }}"
echo "COMMIT = ${COMMIT}"
sed -i "s!<<hash>>!${COMMIT}!" ControllerCircuit/ControllerCircuit.kicad_pcb
- name: Update the PCBs with the git hash and BETA.
if: steps.extract_branch.outputs.branch != env.main_branch
if: steps.branch-name.outputs.is_default != 'true'
run: |
export COMMIT=$(git rev-parse --short HEAD)
echo "COMMIT = ${COMMIT}"
sed -i "s!<<hash>>!BETA-${COMMIT}!" ControllerCircuit/ControllerCircuit.kicad_pcb
- name: Prepare artifacts
- name: Remove existing export folder
run: |
cd ControllerCircuit
rm -rf export/
kibot -c config-2layer.kibot.yaml -e ControllerCircuit.sch -b ControllerCircuit.kicad_pcb -d export
rm -rf ./ControllerCircuit/export/
- name: Run KiBot
uses: INTI-CMNB/KiBot@v2
with:
config: ./ControllerCircuit/config-2layer.kibot.yaml
dir: ./ControllerCircuit/export
schema: './ControllerCircuit/ControllerCircuit.sch'
board: './ControllerCircuit/ControllerCircuit.kicad_pcb'

# Splitting this out to ensure a failed kibot run will mark a check as failed.
- name: Prepare Gerbers artifact
Expand All @@ -71,14 +74,17 @@ jobs:
zip -r -j ../controllercircuit_esp32_gerbers.zip *
- name: upload artifacts
uses: actions/upload-artifact@v2
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.repository != env.repo)
uses: actions/upload-artifact@v3
if: steps.branch-name.outputs.is_default != 'true'
with:
name: controllercircuit_esp32_gerbers
path: ControllerCircuit/export/controllercircuit_esp32_gerbers.zip
path: |
ControllerCircuit/export/controllercircuit_esp32_gerbers.zip
ControllerCircuit/export/ControllerCircuit_bom_jlc.csv
ControllerCircuit/export/ControllerCircuit_cpl_jlc.csv
- name: Commit files
if: github.event_name == 'push' && github.repository == env.repo
if: steps.branch-name.outputs.is_default == 'true'
run: |
git add -f ControllerCircuit/export
git config --local user.email "[email protected]"
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ ModuleV400/v4-rescue.lib
ModuleV421/ModuleV421-cache.lib
ModuleV421/ModuleV421-rescue.lib
ModuleV440/fp-info-cache
ControllerCircuit/_autosave-ControllerCircuit.kicad_pcb
ControllerCircuit/fp-info-cache
ControllerCircuit/sym-lib-table
130 changes: 49 additions & 81 deletions ControllerCircuit/ComponentListBOM.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions ControllerCircuit/ControllerCircuit-rescue.dcm
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
EESchema-DOCLIB Version 2.0
#
#End Doc Library
25 changes: 25 additions & 0 deletions ControllerCircuit/ControllerCircuit-rescue.lib
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,31 @@ X IO25 9 -800 100 200 R 40 40 0 0 B
ENDDRAW
ENDDEF
#
# INA229-Q1-INA229-Q1
#
DEF INA229-Q1-INA229-Q1 U 0 20 Y Y 1 F N
F0 "U" -250 450 50 H V C CNN
F1 "INA229-Q1-INA229-Q1" 150 450 50 H V C CNN
F2 "Package_SO:VSSOP-10_3x3mm_P0.5mm" 800 -450 50 H I C CNN
F3 "" 350 -100 50 H I C CNN
$FPLIST
VSSOP*3x3mm*P0.5mm*
$ENDFPLIST
DRAW
S 300 400 -300 -400 0 1 10 f
X CS 1 400 300 100 L 50 50 1 1 I
X Vin+ 10 -400 -100 100 R 50 50 1 1 I
X MOSI 2 400 200 100 L 50 50 1 1 I
X ~Alert~ 3 400 -300 100 L 50 50 1 1 C
X MISO 4 400 0 100 L 50 50 1 1 O
X SCLK 5 400 -100 100 L 50 50 1 1 I
X VS 6 0 500 100 D 50 50 1 1 W
X GND 7 0 -500 100 U 50 50 1 1 W
X Vbus 8 -400 300 100 R 50 50 1 1 I
X Vin- 9 -400 -200 100 R 50 50 1 1 I
ENDDRAW
ENDDEF
#
# LCD-ControllerCircuit
#
DEF LCD-ControllerCircuit LCD 0 40 Y Y 1 F N
Expand Down
Loading

0 comments on commit be885e1

Please sign in to comment.