Test Alignment

79 views
Skip to first unread message

geo0rpo

unread,
Jan 28, 2021, 5:10:53 PM1/28/21
to OpenPnP
Hello friends.

I am testing my bottom camera and after picking up a part I do the "test alignment".
The part is recognized 100% but the crosshair does not show the center of the part and the crosshair orientation does not match the part orientation.
Please look at the video.

tony...@att.net

unread,
Jan 28, 2021, 5:22:25 PM1/28/21
to OpenPnP
I'm not positive what you're asking but have you told it to draw the center and show the orientation?  You probably have a DrawRotatedRects towards the very end of your pipeline, set both drawRectCenter and showOrientation to true.

Tony

ma...@makr.zone

unread,
Jan 28, 2021, 5:35:44 PM1/28/21
to ope...@googlegroups.com

The last computer vision image is frozen for a few seconds, while the cross-hairs keep responding to machine motion. After alignment, the part is centered and rotated, but the last computer vision image is still from the unadjusted rotation/offset of the part, i.e. when it was still slightly off.

If you look closely the two more or less align a moment later.

_Mark

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/f596e69a-a382-4aba-bcd6-efe5be95e3b9n%40googlegroups.com.

geo0rpo

unread,
Jan 28, 2021, 5:40:04 PM1/28/21
to OpenPnP
Please look at the pictures. Both parts are recognized perfectly but are not placed right.

1.jpg

2.jpg

ma...@makr.zone

unread,
Jan 28, 2021, 5:50:38 PM1/28/21
to ope...@googlegroups.com
Have you checked Units per Pixels? It seems the machines compensates, but not nearly enough.

_Mark

geo0rpo

unread,
Jan 29, 2021, 1:17:14 AM1/29/21
to OpenPnP
Actually I set the units per pixel for the bottom camera with a graph paper but after doing so, the ruler cross hair did not match the graph paper steps (1mm).
So I manually set units per pixel to match the graph paper.

Is there an "optimal resolution" for the camera? I have set the bottom to 1280x720.
Also please tell me what should I expect from the test alignment?
Check the part and then align the part center and part rotation with the cross hair?

Markus Oberle

unread,
Jan 29, 2021, 1:53:44 AM1/29/21
to OpenPnP
Problem with offset between camera and nozzle could also be an case.
I would also thing about nozzle calibration, but IMO the gap is too high

Camera/Nozzle offset evaluated?

geo0rpo

unread,
Jan 29, 2021, 2:12:16 AM1/29/21
to OpenPnP
I will adjust the offset again but my main question remains that why does not the cross hair rotate to the rotation of the recognized part.
Also what do you mean the gap is too high?

ma...@makr.zone

unread,
Jan 29, 2021, 2:57:26 AM1/29/21
to ope...@googlegroups.com

> why does not the cross hair rotate to the rotation of the recognized part.

I explained why the rotation is not happening at the same time. Please re-read and tell me what you don't understand.

Also you have to realize that the cross-hairs show the nozzle rotation, not the part rotation. The Bottom vision aligns the part, by rotating the nozzle. The part will not "slip-rotate" on the nozzle.

What I cannot explain yet is the large linear offset you still get.

_Mark

geo0rpo

unread,
Jan 29, 2021, 3:05:21 AM1/29/21
to OpenPnP
Yes of course I understand that the part will not slip rotate on the nozzle.
What I thought should happen , was that the nozzle with the part on it, would center exactly the bottom camera cross hair and the bottom camera cross hair would match exactly the rotation of the part on the nozzle.
Look at an example I just did on Corel.

geo0rpo

unread,
Jan 29, 2021, 3:07:11 AM1/29/21
to OpenPnP
example.png

This is what I thought I should see on the bottom camera after vision check.
The BOTTOM CAMERA cross hair "should" follow the part.
As about the offset I will calibrate everything again.

geo0rpo

unread,
Jan 29, 2021, 3:17:36 AM1/29/21
to OpenPnP
I just loaded my example.png which I rotated 35 degrees in corel.
The nozzle indeed turns 35 degrees CC as seen in the DRO but the bottom cross hair does not follow but I guess this does not matter since the part rotation in recognized correctly.

35degrees.png

ma...@makr.zone

unread,
Jan 29, 2021, 3:48:01 AM1/29/21
to ope...@googlegroups.com

> Yes of course I understand that the part will not slip rotate on the nozzle.

Then what don't you understand in the sentence: "you have to realize that the cross-hairs show the nozzle rotation, not the part rotation"?

As Tony said, you can enable some orientation indicators in the stage.

_Mark

geo0rpo

unread,
Jan 29, 2021, 5:28:26 AM1/29/21
to OpenPnP
OK, I got it :)
I will adjust offsets again and retry.

Also I was wondering about the parts. Shouldn't the part bottom vision pipelines be at the "packages" tab and then just assign packages to the parts?
As it is now, there must be for example  a part for 0805 1K and another part for 0805 10K and another part for 0805 100K even if they have the same pipeline.
I think that if the bottom vision part pipelines were kept in the packages tab, then you could assign package type to the parts and the pipeline would follow. That is how it is in the Philips  assembleon machines.
I mean 0805 ceramic capacitors always "look" the same with (minor adjustments) and a 0805 resistors always "look" the same also.
What am I missing?
Sorry for the long post.

ma...@makr.zone

unread,
Jan 29, 2021, 8:03:34 AM1/29/21
to ope...@googlegroups.com

> shouldn't the part bottom vision pipelines be at the "packages" tab

Yes, absolutely, I started a new discussion here:

https://groups.google.com/g/openpnp/c/7DeSdX4cFUE

_Mark

Reply all
Reply to author
Forward
0 new messages