cancel
Showing results for 
Search instead for 
Did you mean: 

VL53L0X enclosure/cover?

cyclops
Associate II

Hi,

 

I've been developing a simple water level sensor with the VL53L0X and i'm having trouble putting it into the enclosure that is protected from the moisture. I've been mainly experimenting now, but one of my problems is mounting the sensor behind glass or something like that. I'm happy to glue that on over a hole or something, but wanted to figure out what works.

I've followed some of the video's around crosstalk and have made a 3d print that should help (please see photos).

The sensor works as expected in the 3d printed element, but doesn't work properly when i add the glass lens filter. I took the lens filter after trying a few other things, but not being great at materials, i wanted to be sure, so i tested with this filter from one of my camera lenses.
I think i'm doing everything correctly, albeit not professionally, but can't get it to work.

I would be greatful if somebody could point out some issues that i might have made.

WhatsApp Image 2024-11-08 at 07.55.19(3).jpeg

WhatsApp Image 2024-11-08 at 07.55.19(2).jpeg

WhatsApp Image 2024-11-08 at 07.55.19(1).jpeg

WhatsApp Image 2024-11-08 at 07.55.19.jpeg

 

cyclops_0-1731052732907.png

 

    

1 ACCEPTED SOLUTION

Accepted Solutions

The VL53L4CX would be a fine choice if the CD distance is too short.

3D printer plastic is problematic - It's basically transparent to 940nm. One really has to paint it. 

But is there any way you can simply shove the sensor up against the glass? That's one way of cutting down the crosstalk. Or you could make that gasket out of compressible black 'rubber'. (Actually, it's carbon infused silicon) 

That VCSEL laser creates enough light it can bounce off a wall at 6meters and still return enough photons to get a range. As the light dissipates as a square of the distance you can imagine how much light is hitting around your structure.

That's why your semi-transparent frame didn't work. 

Consider buying the oval coverglass from Hornix

The one on the right has your barrier. you have to cut an oval in your plastic and glue the coverglass to it. 

It completely eliminates crosstalk.

JohnEKVAM_0-1731338834401.png

ST and Hornix are not associated, although we did jointly design that coverglass.  That bit has two separate bits of transparent 'glass' separated by an opaque barrier and surround. 

You could consider building something like that. 

- john 

 


If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.

View solution in original post

7 REPLIES 7
liaifat85
Senior III

If the sensor performs well without any protective layer, it confirms that the issue is likely due to interference from the glass.

Thanks.

 

I understand the conclusion that you make, and also agree with it. However, i find it hard to understand why a UV filter used for a photo camera lens wouldn't be sufficient. That's why i'm wondering what i'm doing wrong. Should i just try other glass/acrylic? I've tried a few things here at home, but i'm quite sceptical that other things will work.

If you want to check water level, I want you to do some different things. 

1) Use the VL53L4CD. It's cheaper and newer, but most importantly it has an 18 degee Field of View. With water you want only those photons that hit perpendicularly to the water. So 18 degrees is better. 

Same footprint, so all your work is presevered.

2) Paint that plastic black.  Photons that hit white bounce. And most plastics are translucent at best. Use a flat black paint. Rust-o-lium makes one with primer in it - and it works on plastic

3) Make the bottom of your container as non-reflective as possible. I put a black shelf under my clear tanks. 

- john


If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.

Thanks John for the response.

The water i'm measusing is not clean. It's very dirty. It's a foul water tank.... So it's dark and no light goes in there.

It's also around 2m deep, so the VL53L4CD doesn't really work for me as that seems to go to 1200mm?

I was wondering about the white reflection too. I can paint it, but maybe printing it in a black/dark PLA is an easier option? What do you think.

I appreciate that you respond, and that the VL53L4CD is a direct replacement. I'm however not able to do SMD soldering, so i will have to buy a simple board from a supplier like adafruit or so. I see they do have the VL53L4CD, so that's fine!

Seems the VL53L4CX would do the trick for me, but how adafruit mounted that seems hard to cover with glass!

The VL53L4CX would be a fine choice if the CD distance is too short.

3D printer plastic is problematic - It's basically transparent to 940nm. One really has to paint it. 

But is there any way you can simply shove the sensor up against the glass? That's one way of cutting down the crosstalk. Or you could make that gasket out of compressible black 'rubber'. (Actually, it's carbon infused silicon) 

That VCSEL laser creates enough light it can bounce off a wall at 6meters and still return enough photons to get a range. As the light dissipates as a square of the distance you can imagine how much light is hitting around your structure.

That's why your semi-transparent frame didn't work. 

Consider buying the oval coverglass from Hornix

The one on the right has your barrier. you have to cut an oval in your plastic and glue the coverglass to it. 

It completely eliminates crosstalk.

JohnEKVAM_0-1731338834401.png

ST and Hornix are not associated, although we did jointly design that coverglass.  That bit has two separate bits of transparent 'glass' separated by an opaque barrier and surround. 

You could consider building something like that. 

- john 

 


If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.

Thanks John, for the response. I have some things to try here.


And yes, i can push the sensor up against the glass. That's not really a problem either. I've also ordered some real perspex and will try that later.

I've learned a lot, and the Hornix option is also something i will get to. Thank you!

 

 

ps. I don't know what the hornix site normally looks like, but it feels like that's hacked :)