Sorry if this gets long. I think this is half going to be a tip post and then I’m going to ask for some help. I’m closing in on the setup I want to quickly iterate boards for home production…
- I’ve got a cheap T8 cnc machine from banggood which I intend to use only for drilling/cutting
- I’ve gott a pretty decent chemical ething process for the rest.
I got that cnc to mill pcb’s but got the toner transfer method working pretty well for two-sided pcbs before it arrived so I’m sticking with that to reduce the mess and all the work . However, I’d like to be drilling automatically.
My idea is to drill first and then align two sides of toner transfer using the already drilled holes. So workflow is to create a pcb in kicad. I then use a python script to output gerbers, then pcb2gcode to generate gcode. This I’m now going to send to the cnc with bCNC. So I have this master script that just looks like this:
#!/bin/bash # This generates gerbers and drill files ../kicad-python-scripts/generate-gerbers.py ../../vco555-3/vco555.kicad_pcb . # Generate gcode using pcb2gcode pcb2gcode export PYTHON=python2 /Users/viktor/dev/projects/bCNC/bCNC drill.ngc
From this I can make changes in pcbnew and just rerun and 2 seconds later I have bCNC open with the changes loaded, ready to send to the cnc. However, I’m having problems with offset, the gcode I get looks like this:
I can find no setting in pcb2gcode to input any offset in the generation from drl to gcode. I’ve tried just setting the “origin point for drill and place files” but that doesn’t even make difference. This is my pcb in kicad:
It looks to me that origin is still on top left of the A4 or whatever that is… I’m not sure where the best in the pipe to fix this or where to investigate…
Any help highly appreciated!