Many Many Many Sensors

Hello Everyone,

I am looking into a project that has some extreme variables. First, I plan on using a arduino mega, but that is not a limiting factor. Now what is the most efficient way to condense a matrix of 1000's of sensors?

My first idea is to have a shift register (parallel to serial) for each row, then compute from there.

There are other limitations, but the first is to see how quickly and efficiently the sensor data can be condensed.

If its not possible, so be it.

Thank you for your help

Condense?

What kind of sensors?

piezoeletric sensor and move all sensor leads to one wire ( in a perfect world)

What do you want to measure?
Can you tell more about the project, what you try to accomplish, the requirements?

No problem.

The idea is to have a matrix of piezoelectric force sensors, having about 2 to 4 sensors per square inch. have the matix 20 inch wide and about 10 feet long (metric: about 2 sensors per cm^2, width of about 60 cm and a length of 3 meters)

Be able to walk on the mat and have it give back the pressure of the foot step.

Now if its in a matrix, you would know the position of each sensor, so we know the location, we just need to be able to read all the analog outputs of the piezoelectric sensors. as you can see, there are 1000's of individual sensor.

I have already figured out a way to make the sensor mat, i just need to collect and process all the information in real time.

another design limitation is that the entire thing needs to be flexible and be able to be run off battery, and link up to a network ( but for right now this is not need to be considered). There are a few other aspects of the design that will make it mroe unique but since that has nothing to do with electrics or sensors it does not need to be stated.

Are these digital sensors? Shift registers can't do analog. And they don't do multiple bits very well either.

No, analog output from sensors. I thought there was shift registers for analog. well after a little more research, i was wrong. well this project just got more complicated.

first thing I would try to do is to minimize the nr of sensors that need to be read.

4 sensors per SQ inch, 40 wide 120 inch long => 4800 x 4 ~~ 20.000 sensors.
MEGA ADC ~8000 samples per second so under ideal circumstances so scanning all sensors once take 2.5 seconds.

If you scan only one foot ~= 4 inch x 12 inch + some bounding box = 50-80 sq inch => 200-300 sensors.
That is about a gain of a factor 100, which is really needed if you want to do something real time. In theory you have about 25 (10bit) samples per sensor per second. In practice 10 would be quite good.

So reducing somehow is important. you know the direction the person is walking, that helps. Furthermore, one foot is more to the left the other more to the right (at least for most people)

A simple trick might be to draw feet on the floor where they should place their feet. Then predicting the next sensors to sample is pretty straightforward. You could measure the average step size and configure your sketch with that distance too.

my 2 cents,

Reducing the amount of sensors one micro controller is computing, i like that, but i really cant reduce the quantity of sensors nor predict where the person will be stepping. This is for a mat that can used from a average male, 6'0" (1.9 ish meters) to a elderly person that is lucky to be able to fully lift up their feet.

I was looking into having each sensor connected to a ADC and move it to I2C, then to shift register. but that increase the number of components.

I could split it up to having 1 ft segments that can be modular, so if you need to have a longer mat you can jsut add another mat, so that would reduce the numebr of sensre per microcontroller. then have a "master" controller that tells everyone what to do and takes care of the higher level computation.

There used to be analog shift registers, they were "Bucket brigade" CCD's.

While this greatly increases the number of components, I would make each sensor intelligent and connect the serial output of one to the serial input of the next in a large daisy chain Send the first one a start and end marker. If a unit has a pressure below a threshold, it simply passes the data it gets to the serial output. If the pressure exceeds the threshold, it passes the start marker and everything it sees until it gets to the end marker. When it sees the end marker, it appends its own address and pressure and then the end marker.

Your main controller will get back only the addresses of the nodes that exceeded the pressure level. This is also expandable - just add more nodes.

That would resolve the issue. To my knowledge, I2C has a limitation of 127? unique addresses, so I have havea max of 127 sensors and jsut have as many rows and needed.

so the flow would be sensor>ADC>I2C>microchip or another device.

Sound resonable?

There exists 1-Wire voltage monitors e.g. battery monitor chip DS2438 which is able to measure voltage. They have also other products for complex systems.

what is this magic you speak of.....
this is why i like to ask questions, I never knew such a device existed.

It is just idea, to use this kind of 1-wire device. I think, it will be better to utilize more ports since 1-wire could be connected to any digital port. I2C bus is only one.
DS2438 is battery monitor, it has ADC and can measure voltage from pressure sensor (since they have no exact product which you need - I've checked briefly), so MCU unit has to read digital data only.

I like the idea, I will defiantly look more into that. for the past few weeks i have been scratching my brain trying to figure out a way of doing this. I would also want to see if i can make it less expensive, but as of this moment, i just happy it is feasible.

HI,
Do you want to locate or measure the foot pressure or both?

Tom... :slight_smile: