Hi everyone!
I'm choosing a design for a matrix of sensors and I think I need some help!
TLDR: Check the last 3 bullet points
For a personal project, I need to build a multiplexed matrix of 560 sensors (14 x 40), each one measuring how elongated a spring is. That is, I have 560 springs, placed vertically with the bottom side fixed and the top side supporting a variable force. Hence, the top side of each spring will be farther or closer to the bottom side depending on the experienced force. The maximum distance (length of the spring without force) is 7cm, and the minimum distance is 2.5cm. That is the range that I want to detect. I can place a sensor on the bottom of the spring, on top, or on both.
I originally considered to use a variable resistor as a sensor, like a sliding potentiometer, and to multiplex the sensors as follows:
In that diagram, the arduino (mega) would iteratively sample the resistors by pushing 5V to only one of the rows while reading drop voltages with the analog inputs.
An important constraint is my budget: since I need 560 sensors, each one needs to be really cheap so the total cost is not too large. I want each of the 560 sensors to cost less than 0.7€ each. I've found several cheap sliding potentiometers like this one, but they don't fit in the space that I have... (ask me for details if you need more info about the space constraints).
So, I'm in the search of alternatives:
- Sliding potentiometers don't fit although some are cheap
- With a force-sensitive resistor on the bottom of the spring I could measure the force, and by knowing the Hooke's constant of the springs, I could obtain the current length of the spring. However, they are too expensive (3.7€ each).
- An ultrasonic distance sensor also doesn't fit and is expensive. However, I have considered to just put the transmitter speaker on the bottom of the spring and the receiver speaker on the top of the spring. This way, I would decrease the size and the overall cost, since each spring only has two speakers and not the entire sensor (then I would reuse a small number of "sensor boards" outside the sensor matrix to control the speakers). However, not all the speakers fit and they are also too expensive (3.37€ each pair of speakers)...
- A VL53L0X Time-Of-Flight laser sensor would be ideal, but they are too expensive as well...
Since I'm desperate in my search, I'm also considering the following alternatives:
- Build my own sliding potentiometer. I would love to receive some feedback and indications about how to mount 560 of such potentiometers myself, and what to use as a resistor. I'm not very inclined about this approach since the accuracy of DIY potentiometer might not be great, and it can take me a lot of time to build 560 of these...
- To use a led and a photoresistor to measure the distance between them. This would use the fact that: There would always be constant darkness, the maximum distance is "small" (7cm), and that the led and the photoresistor would be perfectly aligned all the time. Do you think this is a feasible solution?
- The same as the previous option but using a laser instead of a led. Would that work? Would the laser intensity degrade enough in 7cm travel to be able to consistently detect it with the photoresistor?
I would love to hear your feedback and suggestions that I haven't contemplated.
Thanks!


