Go Down

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

emetss

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
I have a ramps 1.4 mounted on Mega2560 arduino board. The firmware I have is the repetier. I don't have the schematics. So I have to check it myself. Do you have idea about how to check, and add features?
A camera is a must in my case, not necessarily for the defect detection.

emetss

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
I find the idea of using a movable camera amazing. I'm still not sure how practical it can be. I mean moving the camera at every new layer and getting picture each time from different position. But it really worths thinking.

I don't think a sensor is needed to trigger the camera. The camera can be triggered for every z increment, or for every new layer. Or what do you think?
However, since you mentioned this, a distance sensor (maybe capacitive sensor or more accurate one if you know a better arduino one?) might be used to measure the distance to every new layer after printing. If the distance is bigger than it should be, then this means that there was no printing and it will give a signal that in this layer and in this position there was a defect.

emetss

#17
Jun 09, 2018, 06:30 pm Last Edit: Jun 09, 2018, 06:32 pm by emetss
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
I still don't have an idea which program to use. Now I want an image with reasonable resolution that can connect to arduino easily.
You're right. There're also another criteria like: MFD or MOD: minimal focus distance or minimal object distance

Robin2

I don't have the schematics.
The schematics for the RAMPS 1.4 board is readily available on the web.

You need to make a list of everything that is connected to the RAMPS board and which connector it is connected to and also a list of the connectors that are not used.

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

el_supremo

Quote
I still don't have an idea which program to use
Is there such a program at all?

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

emetss

The schematics for the RAMPS 1.4 board is readily available on the web.

You need to make a list of everything that is connected to the RAMPS board and which connector it is connected to and also a list of the connectors that are not used.

...R
I checked and found that I have the Aux1, Aux2, Servos, totally free. So i can use one digital output to trigger.
I checked in the internet and found Arducam shields that come with 5MP camera and can be controlled to capture pictures through arduino.
Is it suitable? Or do you recommend to buy a camera with an external trigger circuit? If you have any idea i would appreciate it.

emetss

Is there such a program at all?

Pete
It's kind of image processing. I'll also try to use the opencv libraries

el_supremo

Of course it's "kind of image processing" (although I would say it is totally image processing) but do you have a program that can detect defects or do you know how to write such a program? Until you have that program, or at least a spec of its abilities, it is too early to be asking about the camera.

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

Go Up