Camera probe – X Y axis

This topic contains 16 replies, has 10 voices, and was last updated by  Ryan 3 months, 1 week ago.

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #70789

    Mick
    Participant

    I am using Mach3 to control my CNC. mach3 has plugins which can extend its features.

    one plugin is the camera probe which can be used to zero the X and Y axis.

    the offset from the camera centre to the spindle centre must be established.

    I designed and printed a thingy which holds a cheap endoscope camera (7mm dia) the camera sits inside one of the Z axis pipes.

    camera mounted in the Z axis rail

    camera light on.

    2 users thanked author for this post.
    #70792

    Jeffeb3
    Participant

    That is great! We had a PCB CNC machine that had a computer vision/camera solution for finding some registration points when you flipped the board. It worked pretty well.

    #70795

    Mick
    Participant

    unfortunately there isn’t any fancy fiducial recognition on this set up.

    #70919

    Barry
    Participant

    Heh, I was thinking the same thing.

    #70924

    Shorty
    Participant

    Very cool.  Can you use it to home Z-axis as well?  By focus?

    #71099

    Mick
    Participant

    no i don’t think it would work. the camera has a long focal length. defiantly wouldn’t get the <0.1mm required.

    I have a contact auto zero z probe for that

     

    #80427

    Brian
    Participant

    Id like to try Mach3 out.  What control board are  you using??

    #81557

    Mick
    Participant

    Id like to try Mach3 out. What control board are you using??

    I’ve have a LPT port breakout board and KL-4030 stepper drivers.

    I’ve had the setup for 10+years.. it was previously on a different CNC

     

    If I was buying everything now i would go with a USB breakout as most PCs now don’t have the LPT port, the LPT out only works with 32bit windows and i don’t think it works well with anything newer than windows 7.

     

    #105769

    Simon
    Participant

    Would you mind sharing the design file, if you have it? I’m curious as to how you executed it, as I’m looking to do exactly the same thing (albeit with a different camera). Thanks!

    #105771

    Jamie
    Participant

    This would be awesome with an octoprint plugin.

    What if you mounted a laser pointer crossing the field of view at an angle? Then you could estimate Z from the location of the spot within the image.

    #105772

    Simon
    Participant

    I’m using cnc.js (for cnc stuff; using octoprint for 3d printing, but I don’t print using the mpcnc), it already has the webcam plugin (physical or network stream) including the ability to overlay a cross. Very handy.

    I’ve been using a camera to zero from the beginning, and I modified the Dewalt tool mount to accomodate the camera. However it means that I need to modify any mount I want to use, and it takes more space around the tool. Fitting in the pipe is brilliant.

    #105775

    Jamie
    Participant

    I should have elaborated, it would be cool if there were a way to automatically register the workpiece based on the image stream. Maybe print some aruco tags on stickers and it should be possible to get precise positioning, at least in x and y.

    I havent looked at cnc.js and whether it is easy to add extensions, but octoprint appears to have a plugin framework that would allow someone (me) to maybe implement something like this…

    #105788

    Jeffeb3
    Participant

    CNC.js also has the ability to add plugins, although it’s a bit less automatic than octoprint.

    https://github.com/cncjs/cncjs-widget-boilerplate

    There are also pendants, which also look sort of like plugins to me :).

    It seems to me like there are at least two issues with that:

    1) What features are you going to use for the 0,0? The lower left corner of a workpiece would be pretty good, but I am often cutting things out, so a little inside the corner is my preference. But then some designs might be the center or the upper right.

    2) Once you know what you’re looking for, being able to find it (assuming you’re starting close) shouldn’t be too hard from a CV standpoint, but you need good conditions for CV (good lighting, focus, exposure, some actual features). I don’t think a sticker would be necessary, unless that’s what you’re planning on using to determine the 0,0.

    I think it’s cool, but I’m not sure it’s that useful. There was a PCB milling machine at my old work that had a camera system. It had a vac table for clamps and it would look for each corner and adjust for skew. I don’t remember how it determined Z.

    #105815

    Barry
    Participant

    Esko’s machines can use fiducials.  With the right hardware it can print onto adhesive vinyl on one machine then move to another machine that registers the markers, then cuts out the sticker shapes.

    #105852

    Tim
    Participant

    Esko’s machines can use fiducials. With the right hardware it can print onto adhesive vinyl on one machine then move to another machine that registers the markers, then cuts out the sticker shapes.

    The laser engraver I have at work has a camera on the laser head that can register markers and skew/rotate cut jobs based on them. Very useful for cutting out printed media.

    #105854

    JeffH
    Participant

    Lightburn has an option for a camera that is useful. You can put a work piece on the table top in any orientation, see it with the camera, overlay that image with whatever Lightburn image you want to burn on, rotate or align however you want it and laser away. I mounted a simple netcam over my MPCNC that works very well.

    #105871

    Ryan
    Keymaster

    Super cool!

Viewing 17 posts - 1 through 17 (of 17 total)

You must be logged in to reply to this topic.