狠狠撸

狠狠撸Share a Scribd company logo
PCB
with kicad & pcb2gcode on Debian
by Joy
by Sean opjlmi@gmail.com
Kicad
pcb2gcode
Kicad tutorial
Joy
kicad
kicad
sudo apt-get install kicad
1.eeschema -
2.cvpcb -
3.pcbnew – PCB
4.gerbview – Gerber
5.bitmap2component –
6.pcb_calculator –
1 2 3 4 5 6
:
File -> New -> Blank
… ->New for template
Blank
eeschema - ?
pcbnew – PCB
當游標移到元件上?時
M:移動
R:旋轉
E;編輯
DEL:刪除
在圖紙上時
F1: Zoom in
F2: Zoom out
F3: 旋轉顯?
F4: 游標為畫?中?
CTRL+Z : 回到上?步
CTRL+Y: 下?步
CTRL+S: 儲存檔案
eeschema -
eeschema -
eeschema -
eeschema -
R
ex : C
IC
eeschema -
Preferences -> Library
Add Insert
Remove
eeschema -
eeschema -
Test Erc
eeschema -
Netlist
Netlist
eeschema -
Netlist
pcb layout
pcbnew – PCB
pcb layout
.net
Read Current Netlist Netlist
1
2
Gerber
1. File -> Plot?
2. ?
Plot
3. ?
Generate Drill File
pcbnew – PCB
2
3
Gerber
1. Generate Drill File
2.
3. Drill File .drl
pcbnew – PCB
? .gbl .drl
? pcb2gcode
gcode
pcb2gcode tutorial
Sean opjlmi@gmail.com
gcode
? .gbl .drl
gcode pcb2gcode
pcb2gcode
https://github.com/pcb2gcode/pcb2gcode
pcb2gcode API WIKI
https://github.com/pcb2gcode/pcb2gcode/wiki/Manual
※ apt-get install pcb2gcode !
自己的笔颁叠自己做
# pcb2gcode
$ sudo apt-get install git build-essential automake autoconf libtool
libboost-dev libboost-program-options-dev libgtkmm-2.4-dev gerbv
# pcb2code
$ git clone https://github.com/pcb2gcode/pcb2gcode.git
$ cd pcb2gcode
$ autoreconf -i
$ ./con?gure
$ make
$ sudo make install
# sudo
apt-get install sudo
su
#
make -j4
(4 )
pcb2gcode 1/3
?
Google
pcb2gcode 2/3
?
( 20° 0.2mm)
0.8 mm
pcb2gcode 3/3
?
mill speed 9
mill speed 4.724
#
$ pcb2gcode --back YOUR-GBL-FILE.gbl ?
--zwork -0.003 --zsafe 0.02 --zchange 0 ?
--offset 0.003937 --mill-feed 9 --mill-speed 2500 ?
--extra-passes 1 --back-output back.ngc --zero-start
#
$ pcb2gcode --drill YOUR-DRL-FILE.drl ?
--zsafe 0.04 --milldrill --cut-infeed 0.02 --drill-speed 2500 ?
--drill-feed 0.945 --cut-feed 4.724 --cut-speed 2500 --zchange 0.5 ?
--cutter-diameter 0.03149 --zcut -0.067 --zdrill -0.067 ?
--drill-output drl.ngc --zero-start
# pcb2gcode
https://github.com/ssfrr/ftsh_breakout/blob/master/Make?le
Copyright (c) Spencer Russell, MIT Media Lab
#
$ pcb2gcode --back YOUR-GBL-FILE.gbl ?
--zwork -0.003 --zsafe 0.02 --zchange 0 ?
--offset 0.003937 --mill-feed 9 --mill-speed 2500 ?
--extra-passes 1 --back-output back.ngc --zero-start
#
$ pcb2gcode --drill YOUR-DRL-FILE.drl ?
--zsafe 0.04 --milldrill --cut-infeed 0.02 --drill-speed 2500 ?
--drill-feed 0.945 --cut-feed 4.724 --cut-speed 2500 --zchange 0.5 ?
--cutter-diameter 0.03149 --zcut -0.067 --zdrill -0.067 ?
--drill-output drl.ngc --zero-start
# pcb2gcode
https://github.com/ssfrr/ftsh_breakout/blob/master/Make?le
Copyright (c) Spencer Russell, MIT Media Lab
( 1 )
#
$ pcb2gcode --back YOUR-GBL-FILE.gbl ?
--zwork -0.003 --zsafe 0.02 --zchange 0 ?
--offset 0.003937 --mill-feed 9 --mill-speed 2500 ?
--extra-passes 1 --back-output back.ngc --zero-start
#
$ pcb2gcode --drill YOUR-DRL-FILE.drl ?
--zsafe 0.04 --milldrill --cut-infeed 0.02 --drill-speed 2500 ?
--drill-feed 0.945 --cut-feed 4.724 --cut-speed 2500 --zchange 0.5 ?
--cutter-diameter 0.03149 --zcut -0.067 --zdrill -0.067 ?
--drill-output drl.ngc --zero-start
# pcb2gcode
https://github.com/ssfrr/ftsh_breakout/blob/master/Make?le
Copyright (c) Spencer Russell, MIT Media Lab
#
$ pcb2gcode --back YOUR-GBL-FILE.gbl ?
--zwork -0.003 --zsafe 0.02 --zchange 0 ?
--offset 0.003937 --mill-feed 9 --mill-speed 2500 ?
--extra-passes 1 --back-output back.ngc --zero-start
#
$ pcb2gcode --drill YOUR-DRL-FILE.drl ?
--zsafe 0.04 --milldrill --cut-infeed 0.02 --drill-speed 2500 ?
--drill-feed 0.945 --cut-feed 4.724 --cut-speed 2500 --zchange 0.5 ?
--cutter-diameter 0.03149 --zcut -0.067 --zdrill -0.067 ?
--drill-output drl.ngc --zero-start
# pcb2gcode
https://github.com/ssfrr/ftsh_breakout/blob/master/Make?le
Copyright (c) Spencer Russell, MIT Media Lab
offset = (inches) / 2
0.003937 = 0.00787401575(0.2mm to inches) / 2
cutter-diameter = (inches)
0.8mm -> 0.031496063 inches
? drl.ngc back.ngc
CNC
?
or
?

More Related Content

自己的笔颁叠自己做

  • 1. PCB with kicad & pcb2gcode on Debian by Joy by Sean opjlmi@gmail.com Kicad pcb2gcode
  • 5. 1.eeschema - 2.cvpcb - 3.pcbnew – PCB 4.gerbview – Gerber 5.bitmap2component – 6.pcb_calculator – 1 2 3 4 5 6 : File -> New -> Blank … ->New for template Blank
  • 6. eeschema - ? pcbnew – PCB 當游標移到元件上?時 M:移動 R:旋轉 E;編輯 DEL:刪除 在圖紙上時 F1: Zoom in F2: Zoom out F3: 旋轉顯? F4: 游標為畫?中? CTRL+Z : 回到上?步 CTRL+Y: 下?步 CTRL+S: 儲存檔案
  • 11. eeschema - Preferences -> Library Add Insert Remove
  • 16. pcbnew – PCB pcb layout .net Read Current Netlist Netlist 1 2
  • 17. Gerber 1. File -> Plot? 2. ? Plot 3. ? Generate Drill File pcbnew – PCB 2 3
  • 18. Gerber 1. Generate Drill File 2. 3. Drill File .drl pcbnew – PCB
  • 19. ? .gbl .drl ? pcb2gcode gcode
  • 21. gcode ? .gbl .drl gcode pcb2gcode pcb2gcode https://github.com/pcb2gcode/pcb2gcode pcb2gcode API WIKI https://github.com/pcb2gcode/pcb2gcode/wiki/Manual ※ apt-get install pcb2gcode !
  • 23. # pcb2gcode $ sudo apt-get install git build-essential automake autoconf libtool libboost-dev libboost-program-options-dev libgtkmm-2.4-dev gerbv # pcb2code $ git clone https://github.com/pcb2gcode/pcb2gcode.git $ cd pcb2gcode $ autoreconf -i $ ./con?gure $ make $ sudo make install # sudo apt-get install sudo su # make -j4 (4 )
  • 25. pcb2gcode 2/3 ? ( 20° 0.2mm) 0.8 mm
  • 26. pcb2gcode 3/3 ? mill speed 9 mill speed 4.724
  • 27. # $ pcb2gcode --back YOUR-GBL-FILE.gbl ? --zwork -0.003 --zsafe 0.02 --zchange 0 ? --offset 0.003937 --mill-feed 9 --mill-speed 2500 ? --extra-passes 1 --back-output back.ngc --zero-start # $ pcb2gcode --drill YOUR-DRL-FILE.drl ? --zsafe 0.04 --milldrill --cut-infeed 0.02 --drill-speed 2500 ? --drill-feed 0.945 --cut-feed 4.724 --cut-speed 2500 --zchange 0.5 ? --cutter-diameter 0.03149 --zcut -0.067 --zdrill -0.067 ? --drill-output drl.ngc --zero-start # pcb2gcode https://github.com/ssfrr/ftsh_breakout/blob/master/Make?le Copyright (c) Spencer Russell, MIT Media Lab
  • 28. # $ pcb2gcode --back YOUR-GBL-FILE.gbl ? --zwork -0.003 --zsafe 0.02 --zchange 0 ? --offset 0.003937 --mill-feed 9 --mill-speed 2500 ? --extra-passes 1 --back-output back.ngc --zero-start # $ pcb2gcode --drill YOUR-DRL-FILE.drl ? --zsafe 0.04 --milldrill --cut-infeed 0.02 --drill-speed 2500 ? --drill-feed 0.945 --cut-feed 4.724 --cut-speed 2500 --zchange 0.5 ? --cutter-diameter 0.03149 --zcut -0.067 --zdrill -0.067 ? --drill-output drl.ngc --zero-start # pcb2gcode https://github.com/ssfrr/ftsh_breakout/blob/master/Make?le Copyright (c) Spencer Russell, MIT Media Lab ( 1 )
  • 29. # $ pcb2gcode --back YOUR-GBL-FILE.gbl ? --zwork -0.003 --zsafe 0.02 --zchange 0 ? --offset 0.003937 --mill-feed 9 --mill-speed 2500 ? --extra-passes 1 --back-output back.ngc --zero-start # $ pcb2gcode --drill YOUR-DRL-FILE.drl ? --zsafe 0.04 --milldrill --cut-infeed 0.02 --drill-speed 2500 ? --drill-feed 0.945 --cut-feed 4.724 --cut-speed 2500 --zchange 0.5 ? --cutter-diameter 0.03149 --zcut -0.067 --zdrill -0.067 ? --drill-output drl.ngc --zero-start # pcb2gcode https://github.com/ssfrr/ftsh_breakout/blob/master/Make?le Copyright (c) Spencer Russell, MIT Media Lab
  • 30. # $ pcb2gcode --back YOUR-GBL-FILE.gbl ? --zwork -0.003 --zsafe 0.02 --zchange 0 ? --offset 0.003937 --mill-feed 9 --mill-speed 2500 ? --extra-passes 1 --back-output back.ngc --zero-start # $ pcb2gcode --drill YOUR-DRL-FILE.drl ? --zsafe 0.04 --milldrill --cut-infeed 0.02 --drill-speed 2500 ? --drill-feed 0.945 --cut-feed 4.724 --cut-speed 2500 --zchange 0.5 ? --cutter-diameter 0.03149 --zcut -0.067 --zdrill -0.067 ? --drill-output drl.ngc --zero-start # pcb2gcode https://github.com/ssfrr/ftsh_breakout/blob/master/Make?le Copyright (c) Spencer Russell, MIT Media Lab offset = (inches) / 2 0.003937 = 0.00787401575(0.2mm to inches) / 2 cutter-diameter = (inches) 0.8mm -> 0.031496063 inches