I'm adding my Arduino snapshot, to show you how many ports I have left.
Would you please guide me how to connect these 8 sensors with 16-way mux??
New in version 1.4:You can now interface with all but the SRF06 sensor using only one Arduino pin. Added support for the Parallax PING)))™ sensor. You can also interface with the SRF06 using one pin if you install a 0.1uf capacitor on the trigger and echo pins of the sensor then tie the trigger pin to the Arduino pin (doesn't work with Teensy). To use the same Arduino pin for trigger and echo, specify the same pin for both values. Various bug fixes.
I was told there are not enough available pins for 8 sensors(may be more) thats the reason I ordered the Mux
I explained that I have no idea how to connect 8 sensors using Mux on the pins I've left.
On those sr04 sensors, 2 pins are for power as Mike says, connect them to 5V and ground. The other 2 pins are trigger input and pulse output. These can be wired together and are normally connected to a single digital pin on the Arduino, but in this case to one of the "I0" to "I7" pins on the multiplexer. The "common input/output" pin connects to an arduino digital pin. Three more arduino digital pins connect to the "S0" to "S2" pins on the multiplexer.With these types of chips, i understand it's important not to leave any pins unconnected. So connect the 8 unused "I8" to "I15" pins, the "E" pin and the unused "S3" pin to ground.
Just to make things more clear,it can be referred from the picture I uploaded that pins 24-52 under digital and A8 - A15 under Analog are available.
I have 8 HC-04 ultra sonic sensor, each one of them has 4 legs. 1. GND2. Echo3. Trig4. VccWhere does each leg go? I need 32 available pins(theoretically) but from what I understood, there might be a way of assembling few legs together and save pins.
The other 2 pins are trigger input and pulse output. These can be wired together and are normally connected to a single digital pin on the Arduino,
New in version 1.4:You can now interface with all but the SRF06 sensor using only one Arduino pin.
#if ONE_PIN_ENABLED != true *_triggerMode |= _triggerBit; // Set trigger pin to output.
So it might work but I would contend that it would not work well and would also put the hardware under an out of specification strain.