Requirement: be able to change the i2c address on the strips. @cleoqc: is this possible?
Setup:
On the side you want to follow the wall mount one strip horizontally, parallel to the floor, high enough to avoid any floor molding.
On the same side, (perhaps above the horizontal strip), mount a vertical strip with a slight inward cant.
Software:
The vertical strip determines distance: When the sensor is closer than some distance, it will flip from black to white. The number of sensors flipped is a rough indication of the distance.
The horizontal sensor determines if you are parallel to the wall. All sensors flipped indicates parallel. Or you could give the horizontal sensor a slight angle and the number of sensors flipped indicates angle to the .
OR
You can use just the vertical sensor and use changing distance to indicate parallel.
You can’t change the line follower address, but you can put them on two different I2C buses.
Connect one to the I2C connector, and the other into the AD1 connector.
I’m trying to visualize this set up. I haven’t tried the DI line follower. But I have used similar ones (from Pololu). My experience is that they are best used very close to the surface to distinguish dark from light. If they’re mounted high up I’m not sure how effective they’d be.
/K
I don’t know how well they’d do at some non-trivial distance either - it might depend on calibration or it might not work at all. However, since a line-follower sensor is orders of magnitude less expensive than a LIDAR, I thought it might be worth a thought.