PCB Design

From EWIKI
Jump to navigation Jump to search

KiCAD

Important: use up to date version, not the Ubuntu package

Autorouter: freerouting

  • Print: PDF Export -> GIMP to extract PNG
    • width/height in mm is relevant (filename or in CU)
  • Plot: Gerber export

NEJE Master 20 W Laser Engraver

Using NEJE software: Problem with beam width

Install GRBL Tools

DON'T DO IT !!

see also Getting PCBs from KiCad to X-Carve

Online Tools

GCODE / GRBL

Inkscape + Laserengraver plugin:

Inkscape:

  1. Import Image from PDF KiCAD output
  2. Path > Trace Bitmap > Delete Original
  3. Extensions Laserengraver > Export
  4. Delete Image > Border Box > Obj to Path > Extensions Laserengraver > Export > Editor > uncommet Laser on: (M03)
  5. Editor (speed): F30 > F150

Stencil:

  1. Inkscape: replace pads by rectangles, else, see above to generate GCODE
  2. Editor:
    1. G1 F30.000000 > (G1 F30.000000)
    2. M03 > M03 S50
    3. G1 > G0

S50 is 1/5 laser power. Too less only melts, to high also not good.

1st try: PCB1.jpgPCB2.jpg


Commands

  • G – Preparatory (main) commands
    • G21 Programming in mm
    • G0 – Idle pass [G 0 X 10]
    • G1 – Coordinated movement along the X Y Z E axes [G 1 X 10]
    • G02 Clockwise interpolation
    • G03 Counterclockwise interpolation
    • G4 – Pause in seconds [G4 S15]
    • G28 – Home command – head parking [G28 Y0 X0 Z0]
    • G90 – Use of absolute coordinates [G90]
    • G91 – Use of relative coordinates [G91]
    • G92 – Setting of the present given position [G92]
  • М – Auxiliary (technological) commands
    • M00 Mandatory stop
    • M02 End of program
    • M03 Spindle on (clockwise rotation)
      • M03 S0 mean laser power = 0%
      • M03 S128 mean laser power 50%
      • M03 S255 mean laser power 100%
    • M04 Spindle off (counter-clockwise rotation)
    • M05 Spindle (laser) stop
    • M08 Cooling system
    • M09 Cooling off
    • M30 End of the program with a return to the top part of the program

see also https://endurancelasers.com/work-g-code/

Check Results with CAMotics