CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > MetalWorking > General Metalwork Discussion


General Metalwork Discussion Discuss everything relating to metal work.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 02-24-2009, 10:11 AM
 
Join Date: Sep 2008
Location: UK
Posts: 3
carlosfandango is on a distinguished road
Camera alignment system

Dear All, I haven't posted for a long time on the forum although I am a regular 'lurker'. I'm posting up something I've tried over the past couple of days - I've no idea if anyone has already done this before (wouldn't be surprised if they had) or if it's 'old hat' in some way, but I couldn't find anything after a quick search. So, apologies if I'm treading old ground here.

I built my CNC a couple of years ago with a HUGE amount of help from this forum (thankyou, thankyou everyone), and the machine has undergone a number of revisions since then. Mainly, to stop it leaking coolant all over the floor of my workshop(!), but also to increase stiffness etc. I use it for many different things, personal and commercial, and it's now settled quite nicely into a production tool for me.

BUT - there always has to be a but - I've always had problems with alignment of one sort or another. Most two-sided machining issues can be solved with appropriate fixtures of course, and I have used this method quite sucessfully. The problems come from what happens if the fixture is moved and then replaced, finding a reliable machine zero position, etc. To try and solve this I purchased a laser alignment tool, which fits in the spindle. This rather expensive piece of gear ended up being somewhat useless, as the laser was not concentric with the part that fitted in the spindle, and despite having adjustment capability, could not be made so. After an extensive analysis of the device I complained, got a replacement which was the same, and - eventually - got refunded. I still have the laser, but it's not really of much use.

So, disappointed by this, I considered other methods of alignment. Over the past weekend I thought 'how about using a camera?'. That's how I came to build the unit I show here. It's basically a miniature security camera in a sealed aluminium housing with an acrylic lens. This attaches to my mill controller PC via a WinTV card from Hauppage. Using some free software, it's possible to overlay an image on the camera view - that's what you can see in some of these images. Any image could be used, but I'm using a cross with some concentric circles here.

Using a pointed tool such as engraving bit, and after ensuring that the camera is parallel to the spindle of course (important! Use a mirror until the camera's lens is centred on the cross in the image), I machined a small pinpoint in a workpiece. Then I moved the pinpoint to the centre of the cross in the image, and made a note of the offset. Testing shows that [using the kit I have here - and it was all lying around my house, by the way, I didn't buy anything special] I can achieve positional accuracies of around 0.1mm. I don't think that's too bad for my needs, but this could no doubt be considerably improved with better equipment / narrower field of view.

Once the offset is obtained, this can be used to find any position on any fixture or workpiece, a desired position, such as the workpiece centre, is then very simply obtained. Because I placed the camera somewhat arbitrarily the offset is quite stupid, something like -105.6 / -20.9 (mm) but again this could be made a proper whole number of units by positioning the camera using vernier adjustment or similar.

Anyway, that's it. The software I used is called ManyCam and is really designed to allow you to attach wigs to your image using a webcam (ha ha), but it does this job quite nicely. I'm on the lookout for something more scientific though, if anyone knows of anything.

-CF
Attached Thumbnails
Click image for larger version

Name:	Pict3656.jpg‎
Views:	131
Size:	100.4 KB
ID:	76334   Click image for larger version

Name:	Pict3659.jpg‎
Views:	126
Size:	77.7 KB
ID:	76335   Click image for larger version

Name:	Pict3660.jpg‎
Views:	159
Size:	72.0 KB
ID:	76336   Click image for larger version

Name:	Pict3662.jpg‎
Views:	147
Size:	106.2 KB
ID:	76337  

Reply With Quote

  #2   Ban this user!
Old 02-25-2009, 08:07 AM
 
Join Date: Jul 2004
Age: 74
Posts: 349
ozzie34231 is on a distinguished road

Hi Carlos,
At one time there was much discussion of this system on the Mach 3 group. In fact Mach 3 has the facility to put the image right on its own window, without added software, including cross hairs.
The offset can be taken care of by writing a simple VB macro and attaching the macro to a screen button,so it really doesn't matter how weird the offset numbers are.
There are also systems that combine lasers and a camera.
As you already said the results depend on how much you are willing to spend on the "stuff".
For me it seems a better approach to use Mach 3 's probe facility, G31 I think. There has been quite a discussion of it, I think somewhere on this site. I'll try to find it for you. With some simple probes that you can cobble yourself for no money, you can obtain near "dead on" accuracy for edges, centering over a point or feature, centering within an existing hole, and even tool height.
Ozzie

Last edited by ozzie34231; 02-25-2009 at 08:08 AM. Reason: add
Reply With Quote

  #3   Ban this user!
Old 02-25-2009, 08:15 AM
 
Join Date: Jul 2004
Age: 74
Posts: 349
ozzie34231 is on a distinguished road

Again Carlos,
I think this will take you to the probe discussion.
http://www.cnczone.com/forums/showthread.php?t=56079

Don't be put off by the need to write some simple VB. nearly all you need is right there in this discussion.
Ozzie
Reply With Quote

  #4   Ban this user!
Old 02-25-2009, 08:27 AM
 
Join Date: Sep 2008
Location: UK
Posts: 3
carlosfandango is on a distinguished road

Originally Posted by ozzie34231 View Post
Hi Carlos,
At one time there was much discussion of this system on the Mach 3 group. In fact Mach 3 has the facility to put the image right on its own window, without added software, including cross hairs.
The offset can be taken care of by writing a simple VB macro and attaching the macro to a screen button,so it really doesn't matter how weird the offset numbers are.
There are also systems that combine lasers and a camera.
As you already said the results depend on how much you are willing to spend on the "stuff".
For me it seems a better approach to use Mach 3 's probe facility, G31 I think. There has been quite a discussion of it, I think somewhere on this site. I'll try to find it for you. With some simple probes that you can cobble yourself for no money, you can obtain near "dead on" accuracy for edges, centering over a point or feature, centering within an existing hole, and even tool height.
Ozzie
Hi Ozzie

I did find a few references to similar things after I'd posted this, including a link to a camera installed in a spindle collet. It hardly surprises me that it has been done previously, as it seems like an obvious approach to the problem. Still, it might be interesting to anyone considering doing something similar, as it plainly works well and (in my case) effectively cost nothing. I think even buying all of the same equipment new today would only cost $100 or so.

I didn't know that Mach3 could handle the video in any way - I'll certainly be looking into that, but thanks greatly for the link to the thread concerning the probe method. Mach3 does seem to have some amazing capabilities, and I've only really scratched the surface with it despite using it for a couple of years! Hats off to those guys.

-CF
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Just IN- Camera Collets only smitty Product Announcements & Manufacturer News 0 02-12-2009 10:25 AM
need help ! fiducial camera!! joeoancea Mechanical Calculations/Engineering Design 0 01-05-2008 07:23 AM
need help with camera/video set-up lok Benchtop Machines 13 11-05-2006 11:02 AM
infrared thermal imaging camera trubleshtr CNCzone Club House 2 03-22-2006 11:16 PM
mounting a camera ona 5-axis router freemanb General Metal Working Machines 1 12-20-2003 05:32 AM




All times are GMT -5. The time now is 10:06 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361