Distance for 6mm lens ELP camera and LED ring hookup?

1,195 views
Skip to first unread message

Shai Schechter

unread,
Sep 27, 2018, 8:32:39 PM9/27/18
to OpenPnP
1. I searched the group and couldn't find a clear answer. What is the distance that people mount their downward facing cameras? Please refer to the attached image to understand where I am measuring from on the ELP camera - to - the face of the PCB. Please ignore the measurement in the picture. 

2. Also, the wiring here shows one led ring in the schematics. Is this the top facing or bottom facing camera? I am considering connecting lights directly into the camera PCB since these cameras usually come with 5V out, but not sure I understand if people usually hook up both bottom AND top LEDs to be controlled on/off by openpnp? If the top light is always on (which I assume it will be if I connect it directly to the ELP camera, then I can see that being an issue when the nozzles go over the bottom camera - glare will cause interference. Thoughts on this?

Any help appreciated, thanks!

screenshot_1242.png


Shai Schechter

unread,
Sep 27, 2018, 8:38:53 PM9/27/18
to OpenPnP
See attached schematic for what I'm referring to about LEDs. Considering connecting the LEDs to pin 5 and 6.

screenshot_1243.png

Shai Schechter

unread,
Sep 27, 2018, 9:15:31 PM9/27/18
to OpenPnP

Marek T.

unread,
Sep 28, 2018, 3:29:32 AM9/28/18
to OpenPnP
Hi Shai

Lens depend on distance and FOV that you want to get, of course. Typically upper camera need more narrow fov (if is used only for fiducials) and bottom relatively wider fov and lens (if you want to work with large parts like some 40-50mm).
I think that 6mm probably will be pretty good for upper camera but to narrow for bottom. But having it wider on upper is useful to observe some parts after placement.

Maybe it can be helpful for you:
https://www.peauproductions.com/pages/lens-calculator

Lightning on bottom may remain constantly on. On upper rather must be off while allignment - reason as you said is correct.

br
Marek

Marek T.

unread,
Sep 28, 2018, 3:31:39 AM9/28/18
to OpenPnP
Rather forget these outputs on the camera tho use it fur leds driving. You need a lot of current for it.

Mike Menci

unread,
Sep 28, 2018, 10:05:28 AM9/28/18
to OpenPnP
Shai 
My camera is apx 45mm under pcb surface - Logitech C270 camera for Up View with original lens - 
Lite ring is a bit different than others use - 
I use 2 Hard disck drive discs which work as mirror to guide the light trugh 2x plexi plastic to Nozzle direction... This way there is no direct light going to up or down camera to interfear.... - see picture enclosed


ELV is normaly the down looking camera ... 

Mike
Up_Camera Light_Ring.jpg

Jason von Nieda

unread,
Sep 28, 2018, 10:08:51 AM9/28/18
to ope...@googlegroups.com
Wow Mike, that's really neat! So when doing bottom vision do you have the nozzle insert the part down into that illuminated hole?

Jason

--
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 post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/e406e92a-bb30-48f3-8abd-3253aae559e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marek T.

unread,
Sep 28, 2018, 10:22:44 AM9/28/18
to OpenPnP
Looks really interesting.
What is diameter of this illuminated hole? If the part is lowered inside there - it seems the size of it is very limited, isn't it?

Mike Menci

unread,
Sep 28, 2018, 10:23:03 AM9/28/18
to OpenPnP
I’m doing the vision abt 4-5mm above the top disc mirror, light reflects so much from bottom mirror that there is no need to go into the ring... and I prefer to have PnP work area free of anything except PCB

Jason von Nieda

unread,
Sep 28, 2018, 10:24:18 AM9/28/18
to ope...@googlegroups.com
Very clever Mike. I like it! Could you post a picture or two of a chip over it? Curious to see how the lighting is.

Jason


On Fri, Sep 28, 2018 at 9:23 AM Mike Menci <mike....@gmail.com> wrote:
I’m doing the vision abt 4-5mm above the top disc mirror, light reflects so much from bottom mirror that there is no need to go into the ring...  and I prefer to have PnP work area free of anything except PCB

--
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 post to this group, send email to ope...@googlegroups.com.

Mike Menci

unread,
Sep 28, 2018, 10:51:10 AM9/28/18
to OpenPnP
Marek - at the moment I’m using disc as it is - internal plastic has much larger “hole” as the original disc is - so no problem to enlarge if needed.
For my needs this is already Large hole!
Mike

Marek T.

unread,
Sep 28, 2018, 11:15:11 AM9/28/18
to OpenPnP
Understand. Pls post the picture of the biggest chip you can use on the moment and tell it's dimensions (and hole size).

Mike Menci

unread,
Sep 28, 2018, 2:05:29 PM9/28/18
to OpenPnP
Hi Jason & Marek, 
reqested screenshots enclosed - to me its magic in compare to my earlier set-up....
Hole is 25mm diameter.
You will find two shots (one 10mm above Zero level and one at Zero level) in enclosed Zip file. 
For smaller size it seams I need to use a dimmer to reduce light.
Let me know what you think!
Thanks, 
Mike
Logitech270+myNewLedRing.rar

Marek T.

unread,
Sep 28, 2018, 3:12:25 PM9/28/18
to OpenPnP
Can't open it on my funny w10 smartphone (let it be cursed), will do on Sunday only when I'm back home...

M. Mencinger

unread,
Sep 28, 2018, 3:15:12 PM9/28/18
to ope...@googlegroups.com
Marek buy iPhone - support US economy and all will work out fine.... :-)) 
Enjoy your weekend!
Mike


On Fri, Sep 28, 2018 at 9:12 PM Marek T. <marek.tw...@gmail.com> wrote:
Can't open it on my funny w10 smartphone (let it be cursed), will do on Sunday only when I'm back home...

--
You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/BrOtYDYFFnI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+u...@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Mike

"--
 **************************************************************************************************************
This e-mail may be confidential and it may also be legally privileged. If you are not the addressee you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return e-mail. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. 
 SAVE THE NATURE - SAVE PAPER - THINK BEFORE YOU PRINT!  "

Marek T.

unread,
Sep 28, 2018, 5:06:22 PM9/28/18
to OpenPnP
I'd do if it have dual sim what's announced :-)

Jason von Nieda

unread,
Sep 29, 2018, 11:09:06 AM9/29/18
to ope...@googlegroups.com
Lighting looks pretty good! Excellent contrast. Looks like focus could be a little better, but overall pretty nice, and no big bright specular reflections, which is excellent. Nice work!

Jason


--
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 post to this group, send email to ope...@googlegroups.com.

Shai Schechter

unread,
Sep 29, 2018, 12:11:57 PM9/29/18
to OpenPnP
So no word on how both LED rings should be connected? Is one of them always on? The build instructions only show one LED ring connected to smoothieware.

Jason von Nieda

unread,
Sep 29, 2018, 12:16:03 PM9/29/18
to ope...@googlegroups.com
Hi Shai,

If you just have one output available, I recommend having the top light controllable and the bottom light always on. But ideally if you have outputs available for it, being able to control both is best so that they don't interfere with the other camera.

Jason


On Sat, Sep 29, 2018 at 11:11 AM Shai Schechter <shai...@gmail.com> wrote:
So no word on how both LED rings should be connected? Is one of them always on? The build instructions only show one LED ring connected to smoothieware.

--
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 post to this group, send email to ope...@googlegroups.com.

Marek T.

unread,
Sep 29, 2018, 12:16:18 PM9/29/18
to OpenPnP
I've written but you don't read...

Shai Schechter

unread,
Sep 29, 2018, 12:21:49 PM9/29/18
to OpenPnP
Ok thank you guys! Sorry I overlooked it Marek! I guess I will have to do some digging now to figure out the camera/lens situation for up and bottom cameras.

Marek T.

unread,
Sep 29, 2018, 12:24:40 PM9/29/18
to OpenPnP
You can on/off both cameras using one pin of the controller. It's rather rare required to have both lightnings on.

Shai Schechter

unread,
Sep 29, 2018, 12:27:37 PM9/29/18
to OpenPnP
That's a good point! I will have to look into finding opposite mosfets that work with high/low pins. I think my PNP will have lots of mosfets in the end :)

Marek T.

unread,
Sep 29, 2018, 2:09:05 PM9/29/18
to OpenPnP
Find that for most of the time the top lightning is rather required to be on, and replaced with bottom for the only bottom vision time.
I have bottom light set nonstop on but it is not very good solution and I'm going to change it. Two reasons:
1. It's not my problem, but in some situation if bottom vision is mounted on the machine in place being very close to some fiducial that may occur to be scanned - this light may be harmful for the top vision working.
2. Bottom lightning usually has a lot of diodes, each takes some 20-30mA. Totally it's pretty much warming. If they are nonstop on - also the camera module gets quite warm (my laser sensor pointed 60 Celcius on the camera board so I've decided to low down the diodes current) - what's not good for sensor nor for optics. Specially in case of shity plastic lenses. Also not sure how harmful it is for the camera sensor life.

Mike Menci

unread,
Sep 29, 2018, 5:04:21 PM9/29/18
to OpenPnP
Hi,
 there is a script here : https://github.com/openpnp/openpnp/wiki/Setup-and-Calibration:-Camera-Lighting
but need some updating as not long time ago I loaded it and had some problems and Jason did say he will look at it....
Mike

Marek T.

unread,
Sep 30, 2018, 3:15:52 AM9/30/18
to OpenPnP
This works good for me to control the top light. No problem to add there bottom opposite actuator for bottom light if needed separate pin to control it.

Vision.PartAlignment.After.js
var downCamLights = machine.getActuatorByName("DownCamLights");
downCamLights.actuate(true);

Vision.PartAlignment.Before.js
var downCamLights = machine.getActuatorByName("DownCamLights");
downCamLights.actuate(false);

Maple_Dude

unread,
Jun 1, 2020, 3:56:47 PM6/1/20
to OpenPnP
How big of a viewing area do you get with that Light Box Enclosure? 

Mike M.

unread,
Jun 2, 2020, 2:21:45 AM6/2/20
to OpenPnP

Maple_Dude

unread,
Jun 2, 2020, 10:39:06 AM6/2/20
to OpenPnP
Oh, 25mm diameter hole. Okay. Sorry Mike, I must be blind lately - I missed that when I was first reading it through. 

Mike M.

unread,
Jun 2, 2020, 10:55:35 AM6/2/20
to OpenPnP
The size of hole should be larger than angle of your focus view
Reply all
Reply to author
Forward
0 new messages