Hi Philip,
I'm assuming you have the latest test version:
Camera settling is not active in the Primary Calibration Fiducial
vision. Instead OpenPnP uses a very conservative built-in fixed
settling time of 600ms, assuming this is enough for any
(practically usable) camera.
Background: this is a chicken and egg situation. Issues &
Solutions can only perform the automatic Camera Settling
calibration once the Primary Calibration Fiducial calibration is
done. Hence it needs to improvise first.
Best set the camera settling back to FixedTime for the
automatic Camera Settling calibration to be proposed later.
Back to your problem: Please send the log at TRACE level and your machine.xml.
_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/77029d3e-a511-4171-8506-6a78eadde149n%40googlegroups.com.
Hi Philip,
You're on the develop branch, i.e. way behind the latest test versions. There have been many improvements, including camera calibration using the conservative 600ms fixed time camera settling I discussed.
I checked: branch test was last merged to develop on 2022-06-19. Since then a few commits have been cherry picked to develop, so it now shows the date 2022-08-01. The better camera settling was merged 2022-08-02. *)
In fact I've been bugged 🪳 by long-known bugs 🪳🪳 in develop too many times . I just now merged test version into develop, which I wanted to do for some time now. More info here:
https://github.com/openpnp/openpnp/pull/1520
You can now just upgrade your regular OpenPnP version, or you can change over to the test version for continued improvements (including when we find something specifically for your case).
Once you've upgraded, proceed as follows:
Primary calibration should now work. Otherwise please send log
and machine.xml again.
Then best set the camera settling back to FixedTime for the automatic Camera Settling calibration to be proposed. Then Issues & Solutions will automatically perform a camera settling test and propose settings for you. Watch the video:
_Mark
*)
https://github.com/openpnp/openpnp/pull/1462
https://github.com/openpnp/openpnp/pull/1462/commits/d0bcea04f1d5e1dac93b70a3ccc3a5009b43ae19#diff-904f2986348849aa62c8ef8f4e19286ab10038f121d9e40d74caa49a97f8f958_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/b620f1c8-ecfd-4e3f-8007-faebf82b7322n%40googlegroups.com.
Hi Philip,
I don't see anything particular. I leave the TinyG $$ dump to
Tony to analyze 😅.
I&S laments "The camera light actuator LIGHT_TOP has no
ACTUATE_BOOLEAN_COMMAND assigned", but I guess you just have the
light on indefinitely for now, right?
In your $HOME/.openpnp2/org.openpnp.machine.reference.solutions.VisionSolutions/
directory you should find loc_*.png
files that you should be able to associate with the log timestamp
2023-02-13 14:54:33.779.
Please send a few of the .png from around this timestamp, there should be one with a red marker.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/98925df3-04b5-4cc8-bc5e-b3b3107c6be1n%40googlegroups.com.



Doesn't make sense. Two big, one small. I guess the large ones
actually come from the Auto-Detect Next.
File dates are often not precise (seconds only). But because the
loc_*.png file name is built from
the "epoch" nanosecond-time, you can order the files by name, then
select the ones belonging together. Send them.
Just to be sure, there is no misunderstanding in the required
steps:

This video is a bit dated, some feature in OpenPnP improved since then, but maybe it can still help?
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/05647606-8ac5-4f77-bd7c-05eba9854ee1n%40googlegroups.com.

> my primary homing fiducial was made using a section of 12mm SMD component tape that has a hole in the center.
I must advise against this. The fiducial should be entirely
planar. Remember, the calibration must move all around the
fiducial and look at it from different angles. A fiducial with
"3D" depth (such as a hole) is therefore not well suited. When
looked at from the side, a different edge higher up in Z will
suddenly define the contour of the fiducial, it will change from
circular to lenticular shape, and even a small difference in Z
will introduce a surprisingly large error in X/Y as shown in this
illustration (errors in red):

I just edited the Wiki on this:
https://github.com/openpnp/openpnp/wiki/Vision-Solutions#calibration-primary-fiducial
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/5e247387-707d-4cb3-9dfc-d1208e049a98n%40googlegroups.com.
> I'm using a camera with an 8mm focal length, maybe that makes a difference.
Yes, that will diminish the error. And such a long lens is generally
better.
But note that the error will not be noticeable for a human being. It is symmetric and increasing (almost) smoothly all around, so you would hardly "see" it in the plot. At 8mm focal length you can probably ignore it.
I just hope others (especially those with short lenses) will not copy the idea. 😁
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/e85ddad8-cfa0-454d-a1c7-c87475156576n%40googlegroups.com.
I guess it is often the paper, not the printer that affects the quality. Even the cheapest printer has ample resolution. But if the paper has coarse fibers, these will unevenly soak up the ink sideways on ink-jet printer, and create uneven specular reflections on laser printers, i.e., even when printed black, some very shiny fibers appear white under directly reflected LED light.
In both cases it helps a lot to use a photo quality matte paper.
Should be doable.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/69d6af48-4391-4ee8-ab8c-5daf388c5da0n%40googlegroups.com.
> I would also like to ask about the Calibration Rig with the 2 Fiducials. How often does this thing come into use? Is it only once while calibrating the machine or is it recommended you make a permanent rig? Should it be permanently attached to the work area in some way?
Ideal is to use a spare PCB and temporarily mount it on your PCB
holder.

It is OK if its position varies for +/-1mm in X/Y, but the
surface Z needs to be precise, and it is very beneficial
if it matches the surface Z of the PCBs you want to assemble
later.
You will need it again sporadically, but not permanently.
https://github.com/openpnp/openpnp/wiki/Vision-Solutions#calibration-rig
_Mark