looking for a pair of sensors to detect the distance between two objects

Hi

I'm not really sure if such an object/sensor exists. Im looking for a pair of sensors, that can detect how far apart from one another they are. I have been looking at infrared proximity sensors, but dont think that will be what i'm looking for. I have also looked into a radar sensors but thats also turned out to be the wrong sensor for the job. The maximum distance i'm looking to measure between objects will be around 1 metre. If anyone has any advice on sensors etc. that would be suitable for this, it would be very much appreciated.

Thanks

How accurate and precise it has to be?
Is there a barrier in between?

I'm trying to build a set of air drums. I want to place sensors on the drum sticks, that can detect how far apart the sticks are from one another. the different distances between the sticks will allow me to hopefully select what drums are being hit by the drum sticks. so i guess it might have to be accurate within around 10-15cm or so. im still not sure if this is going to be possible though.

sorry forgot to add that there won't be a barrier between them

BGONZA200:
I'm trying to build a set of air drums. I want to place sensors on the drum sticks, that can detect how far apart the sticks are from one another.

Will the distance between the sticks be enough to determine which drums are being hit?
Imagine four drums in a line. Hitting drums 1 and 3 or 2 and 4 will mean the sticks will be the same distance apart. I think you'll need some form of positioning for at least one of the sticks, a sort of micro GPS. The second stick's offset from the first will give the distance apart. Don't ask me how to do it, though!

I think you'd have more luck putting accelerometers on gloves on your hands, to detect when drum "strikes" are made, and maybe IMUs (inertial measurement unit) to tell when your hands were moving side to side, maybe keep track of where they are that way.
Search for posts by fkeel, I think he was doing things with hand sensors.

thanks for the replys, some very helpful ideas :slight_smile: