Controlling digital camera in 3D printer

Hi all,

I need to get decent quality pictures of each layer in a powder bed laser 3D printer. I would like to buy a cheap digital camera and hook it up to an arduino. I want the arduino to have a light sensor which (I hope) would read high levels while the laser is operating and low levels when the laser stops. The logic would basically just be - if light was just high and has been low for a few seconds, take a picture. I suspect someone has done something like this already (maybe not with the light sensor or that logic, but some kind of trigger), but I didn't have much luck finding good guides online. Could anyone provide a link to a project they know of which is similar?

It would also be fantastic if I could retrieve the photos wirelessly, but let's take it one step at a time :slight_smile:

These projects would be similar I imagine, but I would like a more comprehensive guide:

In case you were curious...
I thought about just sticking a GoPro in there, but I can't find a good way to interface with it to take pictures at the correct interval. I could just put it in timelapse mode at a higher frequency than a layer would usually take, but then I would have to sift through thousands of pictures to sift out the photos where the laser is active. I could do that with a python script easily enough, but I need this to be user friendly for other people.

Thank you very much

I would suggest you investigate Roborealm. With one script in Roborealm you can interface with your USB camera, detect the light on/off, and save a picture of the change. Much less complexity and perhaps a lower learning curve for yourself and everyone else involved.