Author Topic: Proximity sensing  (Read 2543 times)

0 Members and 1 Guest are viewing this topic.

Offline timelessbeingTopic starter

  • Frequent Contributor
  • **
  • Posts: 929
  • Country: 00
Proximity sensing
« on: March 23, 2018, 10:56:15 pm »
Proximity activated stuff is pretty common. We've all walked through automatic doors. Public washrooms have them in them in the urinals, taps, soap dispensers and hand driers. How do they work? The driers usually have what looks like a piece of darkened glass, so I presume that it's optical (IR) based. Do they work in the dark?  What other methods exist? Capacitive? Radar?

I want to install some LED strip in my van that is activated when you wave your hand in front of a sensor, say within 15cm. It needs to be fairly immune to false readings. Are there inexpensive, easy to use ICs or cheap modules one could buy for this?
 

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: Proximity sensing
« Reply #1 on: March 23, 2018, 11:08:27 pm »
Proximity activated stuff is pretty common. We've all walked through automatic doors. Public washrooms have them in them in the urinals, taps, soap dispensers and hand driers. How do they work? The driers usually have what looks like a piece of darkened glass, so I presume that it's optical (IR) based. Do they work in the dark?

Yes, IR sensors work in the dark. IR sensors are not that optical as you may think. Yes, for 15cm application you need IR sensor.

Quote
What other methods exist? Capacitive? Radar?

Capacitive: usually hand driers and of course, capacitive touch sensors everywhere including your smartphone, if any.
Radar: mostly long-range, like automatic doors.
 

Online mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13731
  • Country: gb
    • Mike's Electric Stuff
Re: Proximity sensing
« Reply #2 on: March 23, 2018, 11:14:22 pm »
IR is the most common as it's cheap and reliable for the sort of short ranges it's typically used for.
They typically use near IR, either strength of reflection or triangulation.
 ST also do IR time-of-flight sensors initially aimed at phones etc. but also useable at longer ranges with more recent parts.
The big advantage of TOF is measurement certainy - if you have a good enough signal, you know the proximity value has to be right, so good where you want to know the distance, or want triggering at a well-defined distance as opposed to a  simple "there/not-there"

Reflective sensors that use signal strength are much cheaper and simpler, but the signal varies a lot with target type - fine for washroom type applications where you just want a "there/not-there" indication at a fairly sort range.
Ambient light is fairly easily excluded with a combination of optical filtering (Extremely effective with LED lighting which has minimal IR) and modulation to ignore DC ( daylight) and most artifical light.

Capacitive is possible but has lots of issues, particularly noise pickup, that make it only useable in more niche cases where the environment is fairly predictable ( i.e. not anywhere that can be wet, or have wide variations in humidity, temperature, phase of the moon etc.)


Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline timelessbeingTopic starter

  • Frequent Contributor
  • **
  • Posts: 929
  • Country: 00
Re: Proximity sensing
« Reply #3 on: March 23, 2018, 11:37:26 pm »
This product doesn't appear to have any optical emitters/receivers or capacitive pads.
http://www.klusdesign.com/products/show/177

capacitive touch sensors everywhere including your smartphone

You're referring to the film that lets us use our fingers with the smartphone, but you reminded me of something. My smartphone knows to turn the display on and off depending if I'm holding it up to my ear. Is it using the same capacitive film meant for fingers, or something else?
 

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: Proximity sensing
« Reply #4 on: March 23, 2018, 11:57:53 pm »
You're referring to the film that lets us use our fingers with the smartphone, but you reminded me of something. My smartphone knows to turn the display on and off depending if I'm holding it up to my ear. Is it using the same capacitive film meant for fingers, or something else?

Mobile phone "ear proximity sensor" usually is capacitive sensor as well. Other option is "RF loss" sensor, but honestly I don't (and don't want to) know how popular in mobile phones it is.
 

Online mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13731
  • Country: gb
    • Mike's Electric Stuff
Re: Proximity sensing
« Reply #5 on: March 24, 2018, 12:02:57 am »
This product doesn't appear to have any optical emitters/receivers or capacitive pads.
http://www.klusdesign.com/products/show/177

Can't see a clear enough image but I think the square leadless device is probably an optical sensor
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline Paul Moir

  • Frequent Contributor
  • **
  • Posts: 926
  • Country: ca
Re: Proximity sensing
« Reply #6 on: March 24, 2018, 12:16:58 am »
Ultrasonic missing from the list.  Good for a wide range of distance measurements but susceptible to interference.  Cutting edge electronics are not required; this is how Polariod did autofocus in the early 80s.   (Off topic, but how autofocus is done now is pretty neat.)
Inductive for metal things not far away is super cheap and reliable.
 
 

Offline timelessbeingTopic starter

  • Frequent Contributor
  • **
  • Posts: 929
  • Country: 00
Re: Proximity sensing
« Reply #7 on: March 24, 2018, 12:27:28 am »
I found something promising on eBay.
Advertised as "Infrared Reflective Photoelectric Switch IR Barrier Line Sensor Module TCRT5000L "

It appears to have a pot and comparator to set a threshold, but is otherwise "dumb". ie. no modulation or filtering so it would need additional electronics.

If anybody can think of any purpose designed ICs off the top of their heads I'm all ears.
 

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: Proximity sensing
« Reply #8 on: March 24, 2018, 12:36:16 am »
Advertised as "Infrared Reflective Photoelectric Switch IR Barrier Line Sensor Module TCRT5000L "

In my opinion seems to be good enough for your "up-to 15cm sense for van LED" application.

[edit] Reading of TCRT5000L datasheet revealed that sensor range is 0.2 mm to 15 mm. Perhaps you have to pick another sensor to get 15cm you need.
« Last Edit: March 24, 2018, 12:41:48 am by ogden »
 

Offline timelessbeingTopic starter

  • Frequent Contributor
  • **
  • Posts: 929
  • Country: 00
Re: Proximity sensing
« Reply #9 on: March 24, 2018, 12:50:10 am »
Well I'll order one right away. I'm eager to test it out.

Do you think it will be triggered by changes in daylight?

[edit] Reading of TCRT5000L datasheet revealed that sensor range is 0.2 mm to 15 mm.
I noticed that too in the Vishay datasheet, but this is a Chinese knockoff. The item description says
"from 2 to 30 cm adjustable"

http://ebay.com/itm/192067056868
 

Offline timelessbeingTopic starter

  • Frequent Contributor
  • **
  • Posts: 929
  • Country: 00
Re: Proximity sensing
« Reply #10 on: March 24, 2018, 01:19:30 am »
I found something even better.

Polulu Digital Distance Sensor 15cm
https://www.pololu.com/product/2465

It uses a Sharp GP2Y0D815Z0F sensor unit with an integrated signal processing IC.
It has hysteresis , sunlight tolerance and bunch of other stuff.
 

Online mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13731
  • Country: gb
    • Mike's Electric Stuff
Re: Proximity sensing
« Reply #11 on: March 24, 2018, 08:15:52 am »
If anybody can think of any purpose designed ICs off the top of their heads I'm all ears.
Search "proximity sensor" on Digikey
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: Proximity sensing
« Reply #12 on: March 24, 2018, 09:24:38 am »
Do you think it will be triggered by changes in daylight?

I have no idea. Particular sensor is designated for applications where direct or reflected sunlight is not possible. If you are concerned about interference then you would want to pick sensor which modulates IR
 

Offline JJalling

  • Supporter
  • ****
  • Posts: 246
  • Country: dk
Re: Proximity sensing
« Reply #13 on: March 24, 2018, 12:30:05 pm »
This product doesn't appear to have any optical emitters/receivers or capacitive pads.
http://www.klusdesign.com/products/show/177

Can't see a clear enough image but I think the square leadless device is probably an optical sensor

Looks like VCNL4010 from Vishay (https://www.vishay.com/docs/83462/vcnl4010.pdf).

BR Jonas
 

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: Proximity sensing
« Reply #14 on: March 24, 2018, 01:04:11 pm »
A PIR sensor is a possible. At such short range no IR lens is needed, just mount the PIR sensor in a short ~15mm long shiny reflective tube.
« Last Edit: March 24, 2018, 05:25:23 pm by StillTrying »
.  That took much longer than I thought it would.
 

Online mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13731
  • Country: gb
    • Mike's Electric Stuff
Re: Proximity sensing
« Reply #15 on: March 24, 2018, 04:16:58 pm »
A PIR sensor is a possible. At such short range no IR lens is needed, just mount the PIR sensor in a short 15mm shiny reflective tube.
PIR detects motion, not proximity, and gives no meaningful distance or speed information - whether this matters depends on the application.
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: Proximity sensing
« Reply #16 on: March 24, 2018, 05:27:39 pm »
PIR detects motion, not proximity, and gives no meaningful distance or speed information - whether this matters depends on the application.

Yeah but, from the 1st post:
"I want to install some LED strip in my van that is activated when you wave your hand in front of a sensor, say within 15cm. It needs to be fairly immune to false readings."
.  That took much longer than I thought it would.
 

Online mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13731
  • Country: gb
    • Mike's Electric Stuff
Re: Proximity sensing
« Reply #17 on: March 24, 2018, 07:25:28 pm »
PIR detects motion, not proximity, and gives no meaningful distance or speed information - whether this matters depends on the application.

Yeah but, from the 1st post:
"I want to install some LED strip in my van that is activated when you wave your hand in front of a sensor, say within 15cm. It needs to be fairly immune to false readings."
PIR probably won't work well as you can't really restrict the range, so likely to pick up stray motion unless it has a backstop. 
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline timelessbeingTopic starter

  • Frequent Contributor
  • **
  • Posts: 929
  • Country: 00
Re: Proximity sensing
« Reply #18 on: March 24, 2018, 07:58:26 pm »
Agreed. I think proximity detection will be less likely to activate unintentionally than motion detection.

https://www.ebay.com/itm/222046677349
$6 is reasonable
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf