user11718: I am currently working on a wireless home automation system. The system is connected to a wireless network in the home via the ethernet cable connected the ethernet shield and router. Hence, I need more pins on the Arduino to connect the appliances to be controlled in the home.

user10794: You can control a shift register with shiftOut or bit-banged SPI.
My page about SPI has a small library that does bit-banged SPI.
It is also possible to control a shift register using the same pins (MOSI/MISO/SCK) that the Ethernet interface uses, as long as you use a different SS (slave select) pin for your shift register. This may not be practical if the Ethernet card is active all the time. It is probably easier to do the bit-banged SPI or use shiftOut.

11718: <p>I am currently working on a wireless home automation system. The system is connected to a wireless network in the home via the ethernet cable connected the ethernet shield and router. Hence, I need more pins on the Arduino to connect the appliances to be controlled in the home.</p>
 10794: <p>You can control a shift register with <a href="https://www.arduino.cc/en/Reference/ShiftOut" rel="nofollow">shiftOut</a> or bit-banged SPI.</p>

<p>My page about <a href="http://www.gammon.com.au/spi" rel="nofollow">SPI</a> has a small library that does bit-banged SPI.</p>

<p>It is also possible to control a shift register using the <strong>same</strong> pins (MOSI/MISO/SCK) that the Ethernet interface uses, as long as you use a different SS (slave select) pin for your shift register. This may not be practical if the Ethernet card is active all the time. It is probably easier to do the bit-banged SPI or use <code>shiftOut</code>.</p>
