Author Topic: CNC'ing PCB's - Aligning board using camera and fiducials.  (Read 2399 times)

0 Members and 1 Guest are viewing this topic.

Offline Mahonroy

  • Newbie
  • Posts: 2
CNC'ing PCB's - Aligning board using camera and fiducials.
« on: January 08, 2015, 12:32:34 am »
Hey guys, I have been lurking around a bit, and this is my first post.
After several failed attempts to find the correct information via google, I figured I would come here and ask.

Currently I am using cadsoft eagle to make PCB layouts, pcb-gcode to create the gcode files, and Mach3 to cut the boards.

I want to rig up a camera to the spindle, and have software locate a couple fiducials, and have the alignment corrected (either by having it alter my gcode, adjusting some rotation setting, etc. honestly I don't really know).

So my question is has anyone done anything like this? Can you point me in the right direction? Thanks and any help is greatly appreciated!
 

Offline IconicPCB

  • Super Contributor
  • ***
  • Posts: 1335
  • Country: au
Re: CNC'ing PCB's - Aligning board using camera and fiducials.
« Reply #1 on: January 08, 2015, 01:52:33 am »
Any correction with the camera is likely to be in the alignment of machine axes.

Have a look at G54 command on mach3. It will effectively allow for a touch off of the X,Y and Z axes against a ( camera ) reference.

You may have to include a subroutine inside Your CNC G code file.
 

Online Fred27

  • Supporter
  • ****
  • Posts: 574
  • Country: gb
    • Fred's blog
Re: CNC'ing PCB's - Aligning board using camera and fiducials.
« Reply #2 on: January 08, 2015, 11:51:43 am »
I'm sure I've seen similar stuff over on some pcb-gcode forum. If you're isolation routing the board though, why would you need to? Just mill the traces and route out the board without removing it from the mill.

I've now gone from isolation routing to etching so do need to line things up for drilling/routing. I just went with adding a camera to the mill and manually lining things up. It seems to work OK for the few boards I do.
http://0xfred.wordpress.com/2014/02/13/cnc-mill-alignment-camera-version-1-0/
 

Online H.O

  • Frequent Contributor
  • **
  • Posts: 641
  • Country: se
Re: CNC'ing PCB's - Aligning board using camera and fiducials.
« Reply #3 on: January 08, 2015, 02:03:40 pm »
And you can use G68 to rotate the X/Y plane a certain angle around a specific location. You'll need external software and interface that to Mach3 if you want it fully automatic but if you can live with the built in Video window and manually "finding" the fiducials you should be able to write a some macros and/or custom button scripts to set the correct offsets and calculate the rotation.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf