Now, we would like to make some sort of pressure sensitive floor, using Piezo sensors (pressure sensors).
That is not it.The multiplexers are a big switch.The Common I/O line is connected to one of the I/O lines when the Enable line is active (high or low, need to look it up on the datasheet). The address lines ABCD select which one is connected. The arduino will create those addresses and control the enable line.The shift register will then store the state of the selected I/O line when its Load line is active. For a '165 type part, that happens when the Load line is low and goes high (pin 1 for 74hc165).The clock line is driven by the shift-in command to bring the data into the arduino.So what you doing is this:enable the multiplexers (can be enabled all the time for this use)for (address_bit_d = 0 to 1) for (address_bit_c = 0 to 1) for (address_bit_b = 0 to 1) for (address_bit_a = 1 to 1) digitalwrite (address_bit_a) digitalwrite (address_bit_b) digitalwrite (address_bit_c) digitalwrite (address_bit_d)// address is now setup, piezo sensor state goes thru the multiplexer to the shift register input// activate the shift register latch// shift in the data:shiftIn(dataPin, clockPin, bitOrder) next address_bit_a next address_bit_b next address_bit_cnext address_bit_dso you have 4 loops within loops controlling the address lines, and reading in the data.
If the piezo sensors are not putting out good digital data, then maybe you will have to read them in analog input pins instead - with 6 4051s, you can use 6 analog inputs.Or run them thru another analog mux as you noted above.You said the sensors are on the floor, so I am thinking you will have relatively slowly changing outputs that could look digital.
QuoteNow, we would like to make some sort of pressure sensitive floor, using Piezo sensors (pressure sensors).A Piezo sensor does not measure pressure. It turns the differential of the sensor deformation into voltage.That means as you stand on it you get a signal, as you continue to stand on it the signal goes away and is the same as a sensor not being stood on.Are you sure this is what you want?You can get force sensitive resistors.http://www.sparkfun.com/products/9375but buying 200 will cost some.You can make your own using conductive foam:-http://www.thebox.myzen.co.uk/Hardware/MIDI_Footsteps.htmlI think you will have to scale your ambition down, making those 16 took me long enough.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16