My strategy was to use HC-SR04 sensors(connected to arduino) spread out every 2.5 inches to measure distance of items placed in each column(like a vending machine). My issue is that the range of sensor is too broad and the sensor cannot distinguish between columns(unless I use blinders which are not ergonomic).
Can someone suggest a more accurate sensor to use or different strategy all together. I see that laser tape measure are fairly accurate. Are there laser distance sensors that I could use in conjunction with the Arduino?
I cannot think of a sensor to cover your distance range as most get a bit unreliable at very short ranges.
Maybe someone else can suggest something?
I wonder if IR distance sensors would be better than sound as they should maintain a tighter beam for the longer distances.
As you have so many sensors so close together your probably going to get bleed over between them unless you scan through them.
Starting with all sensors off
do
turn one sensor on
wait for it to settle
take a distance reading
turn sensor off
move to next sensor
loop
A quick google finds this Products | Acroname interesting article and you can get arduino libraries for them if needed. Non of them can go all the way down to zero though the GP2D120 can manage 4 to 30 cm