Go Down

Topic: camera with arduino for 3d printing (Read 788 times) previous topic - next topic

emetss

Hi,
I want to buy a camera for my 3d printer. My 3d printer is controlled by Arduino. The camera should take a picture in every layer.
Any one would recommend a camera?

thanks

Robin2

Do you want the 3D printer to trigger the camera to take a photo at the end of each layer?

What is the purpose of taking the photos?
What resolution do you want for the camera?

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

emetss

Yes, exactly. I want it to check for defects in each layer. Do you recommend specific resolution and a specific camera?

pert

How close is the computer that will be doing the defect detection processing to the 3D printer? The reason I ask is because this might be relevant to whether a USB webcam can be used or whether you will need something that communicates over the network (WiFi or Ethernet IP camera).

emetss

Many Thanks for the question. The Camera is less than 1 meter from the Arduino. The pc is about 2-3 meters from the Arduino.

Robin2

#5
Jun 06, 2018, 10:57 am Last Edit: Jun 06, 2018, 10:58 am by Robin2
Yes, exactly. I want it to check for defects in each layer. Do you recommend specific resolution and a specific camera?
Sorry, I have no idea what would be suitable for that.

My guess is that if you want to use a PC program to analyse the images for defects then you should choose the PC software and get a camera that it can work with.

If my cheap 3D printer is typical I think it would be very difficult to get an image of a complete layer with a single camera.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

groundFungus

And how do you plan to detect the finish (or start) of a layer? 

Robin2

And how do you plan to detect the finish (or start) of a layer? 
I use Slic3r to make my GCode files and it has the option to add some user GCode between layers. I have not considered how that might be physically translated into a command for a camera.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

emetss

I use Slic3r to make my GCode files and it has the option to add some user GCode between layers. I have not considered how that might be physically translated into a command for a camera.

...R
I think the M codes in the Gcode can be used in this case.

emetss

#9
Jun 07, 2018, 04:29 am Last Edit: Jun 07, 2018, 04:48 am by emetss
Sorry, I have no idea what would be suitable for that.

My guess is that if you want to use a PC program to analyse the images for defects then you should choose the PC software and get a camera that it can work with.

If my cheap 3D printer is typical I think it would be very difficult to get an image of a complete layer with a single camera.

...R
Since I need 2D images, one Camera is needed.
I'm a bit new to Arduino. Are there Cameras that come with Arduino? Which ones would you recommend?

Robin2

Since I need 2D images, one Camera is needed.
How will it be able to see the complete layer? The print-head will obscure most of it.

Quote
I'm a bit new to Arduino. Are there Cameras that come with Arduino? Which ones would you recommend?
An Arduino does not have the memory capacity or speed to work with images. It could be used to cause a camera to take a picture but it could not process the picture.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

emetss

#11
Jun 07, 2018, 01:07 pm Last Edit: Jun 07, 2018, 01:16 pm by emetss
How will it be able to see the complete layer? The print-head will obscure most of it.
An Arduino does not have the memory capacity or speed to work with images. It could be used to cause a camera to take a picture but it could not process the picture.

...R
Thanks for the answer

Yes. That's right. It will be obscured. That's why I'm thinking about mounting the camera near to the head. Or mounting two cameras (as you might suggest), to cover the bed.

Processing the imagaes won't be done in Arduino as you mentioned and will be done after the printing. I want the camera to be triggered by arduino in every new layer to take a reasonably clear picture and save the pictures (maybe on the PC directly).

Robin2

I want the camera to be triggered by arduino in every new layer to take a reasonably clear picture and save the pictures (maybe on the PC directly).
Is there a spare I/O feature on your 3D printer driver board that could be triggered with GCode?


To be honest I don't see any value in having a huge number of images on a PC (one for each layer). If the print has not been done properly there is nothing you can do about it - other than throw the part in the trash. If the images could be analyzed by some PC software immediately after they are taken then it would be possible to abort a faulty print saving both time and plastic.

If the purpose is to validate the quality of a part I suspect some other form of non-destructive testing would make more sense.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

kennethgomad02

I recommend buy an usb camera with enthernet expansion boarx for arduino also may also need to buy laser with laser sensor  to detect the layer when it started and to the end point so it will trigger the camera to take a picture, also if you want to be unique you may also consider to buy two stepper motor or any 12v dc motor and buy a rubber track and make it 0-180 degree with a clip to put the camera so it will capture your layers in a 3d printer. Here is the picture looks like for the camera https://bit.ly/2Jhu8q9 and stepper motor https://bit.ly/2kTjs2f and use Arduino Yun instead of arduino and here is the pic https://bit.ly/2Jkorrx

el_supremo

Which program are you going to use on the PC which will detect defects in each layer?
How small a defect will the program be able to detect?
That will determine the type of camera you need.

Pete
Don't send me technical questions via Private Message.

Go Up