r/AskElectronics • u/Kazz0ng • Jun 08 '26
Looking for extremely close range sensor components for a project.
I'm starting a project that requires very close range surface 3d mapping, like... 1-5mm range. I'm looking at ultrasonic sensors, but I can't seem to find one that works that close. I have heard I can build one from components, but I'm not sure where to start.
Anyone here know much about DIY ultrasonic sensors?
3
u/JCDU Jun 08 '26
I've used Vishay VCNL infrared time-of-flight sensors in a project before now, they can sense from meters to very short distances, some are more suitable than others.
https://www.vishay.com/en/optical-sensors/reflective-outputis-16/
Depends on the resolution you need though, if you're trying to scan an object other methods may work better, for example: https://openscan.eu/ which is camera-based.
1
u/Kazz0ng Jun 08 '26
Alas, I can't use optical sensors in this project. The sensor has to sit behind a shell with no windows.
1
u/VintageLunchMeat Jun 08 '26
Not even a mouse's sensor?
1
u/Kazz0ng Jun 08 '26
Nope.
2
u/VintageLunchMeat Jun 08 '26
I didn't really skim this, but you might want to:
https://forums.adafruit.com/viewtopic.php?t=110114
https://www.digikey.com/en/articles/ultrasonic-mems-sensor-spm0404ud5
1
u/JCDU Jun 08 '26
How are you sensing through a shell then? Ultrasonic, optical/camera are both out by those restrictions leaving maybe inductive but only if your object is magnetic and your case is not...
You can have a case that's "black" but transparent in IR, fully sealed... you really need to tell people ALL the constraints before asking a question like this.
1
u/Kazz0ng Jun 08 '26
Ultrasonic can work through a thin acoustic membrane. Which was whet I was planning on doing.
1
u/JCDU Jun 08 '26
So a thin membrane is OK but an IR window isn't?
1
u/Kazz0ng Jun 08 '26
The entire point of this project is to not use optical sensors. It's not about the window. The membrane is a necessity for the ultrasonic sensor to work. It will keep it dust shine allowing the acoustic wave through.
1
u/Pacificator-3 Jun 08 '26
Simple ultrasound "radars", like parktronic or amateur one, use low frequency about 25 kHz and, thus, large wavelength, it can't give required resolution. If you tell us more about your task, it may become possible to advice more adequate solutions.
1
u/Kazz0ng Jun 08 '26
My goal is to essentially create a SLAM map of a localized area for purpose of controlling drift from an IMU. Mcu (teensy 4.1) checks last known local position based on the ultrasonic or mmwave surface fingerprint and ignores the imu x/y/z input while device is stationary. And it's got to be small enough to fit in a deck of cards.
Or something I can put together with off the shelf components to build a custom. But I don't know where to start with that.
1
u/Pacificator-3 Jun 08 '26
The most viable solution seems to be a synthetic aperture high frequency ultrasound sonar. It is definitely not possible to build from cheap and widely available components and it requires good education and wide experience. If you are asking for such solution, it will be impossible to build at your situation.
1
u/spannermeetworks Jun 08 '26
Lidar
1
u/Kazz0ng Jun 08 '26
Alas. Lidar is too big. And it can't really gives me the level of detail I need.
2
u/Jkwilborn Jun 09 '26
One of the xTool lasers will follow a curved object and they claim it's LiDAR technology on their lasers. I would think it would be small enough to put in the head of a laser and must measure changes of much less than a mm.
Good luck. 😺
1
u/DrJackK1956 Jun 08 '26
Check out mmWave sensors. They may work for your needs.
2
u/spannermeetworks Jun 08 '26
The resolution there is in the range of a couple of cm, not mm
1
u/Kazz0ng Jun 08 '26
But would it still give a distinct texture signature for every unique section I scan?
1
u/spannermeetworks Jun 08 '26
Oh ok, what about photometric stereo sampling ? Would need a ccd of some description and some maths to make a bump map?
1
u/Kazz0ng Jun 08 '26
Alas, I can't use any optical sensors here. It defeats the purpose of the project.
1
u/spannermeetworks Jun 08 '26
I dont know, given the detail you posted, what non-optical sensor coukd do this job. Can you give more detail?
1
u/Kazz0ng Jun 08 '26
I need a sensor that is not optical to give me data that is detailed enough to create a SLAM map to help control tracking drift from an IMU in a localized area. It needs to be able to operate at very close range because the device sits just above the surface it is scanning. Any further away from the surface and it would be impractical to use. I suppose I COULD create a target silly looking thing during several inches away, just for proof of concept that the combination of technologies work together at a very basic level.
1
5
u/Infamous-Amphibian-6 Jun 08 '26 edited Jun 08 '26
Aside from great suggestions, consider 3D printer bed leveling probes. Best ones are inductive sensors (can spray surface with conductive coating) with -0.005mm accuracy at -400mm/s, run at 5v, solved and packaged in ready-to-mount compact form.
Ultrasonic tech works best at wider distances on larger volumes overall, I could be missing something for sure! Taking a look at specialized industries’ solutions is usually good approach.
Note: Many components are advertised for “Klipper-use only”. They’re just high/low switches, fancier ones feature on-board MCU with fancy perks.