ESP32 based project

This commit is contained in:
Ollo
2020-09-07 18:18:46 +02:00
parent b6d3f96239
commit c8ebe2a6bc
30 changed files with 41356 additions and 0 deletions

5
board/gerber/.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
*.gbr
*.drl
*.ngc
*.png
*.bakT*

File diff suppressed because it is too large Load Diff

39
board/gerber/ReadMe.md Normal file
View File

@@ -0,0 +1,39 @@
# Export Gerber
The exported gerber files can be used to convert it into gcode for a mill
## Export settings
Open the board in KiCad and select:
File | Plot
### General
Plot format: Gerber
### Include Layer
Include the Layer ***B.Cu*** and ***Edge.Cuts***
[ ] Plot border and title block
[x] Plot footprint values
[x] Plot footprint reference
[ ] Force plotting of invisible values / refs
[x] Exclude PCB edge layer from other layers
[x] Exclude pads from silk screen
[ ] Do not tent vias
[x] Use auxilary axis as origin
Drill marks: None
Scaling: 1:1
Plot mode: Filled
Default line width: 0.1mm
[ ] Mirrored plot
[ ] Negated plot
### Gerber Options
[ ] Use Protel filename extensions
[ ] Generate Geber job file
[ ] Substract soldermask from silkscreen
Coordinate format: 4.6, unit mm
[ ] Use extended X2 format
[ ] Include netlist attributes
### Doing
Click
* **Plot**
* **Generate Drill Files ...**
* [x] PTH and NPTH in a single file
* Map File Format: DXF
* Drill Units: mm
* Drill Origin: Auxilary axis

16
board/gerber/generatePCB.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Needs the tool pcb2gcode
# Was documented at: http://marcuswolschon.blogspot.de/2013/02/milling-pcbs-using-gerber2gcode.html
MILLSPEED=600
MILLFEED=200
PROJECT=PlantCtrlESP32
pcb2gcode --back $PROJECT-B_Cu.gbr --metric --zsafe 5 --zchange 10 --zwork -0.01 --offset 0.02 --mill-feed $MILLFEED --mill-speed $MILLSPEED --drill $PROJECT.drl --zdrill -2.5 --drill-feed $MILLFEED --drill-speed $MILLSPEED --basename $PROJECT
if [ "$1" == "C3MA" ]; then
#update all Tools higher and equal to T4 in generated file
for i in 4 5 6 7; do
echo "Replace T$i"
sed -i.bakT$i "s/T${i}/T3/" ${PROJECT}_drill.ngc
done
fi