Introduction: Connect Relays Than the Pins Available in Arduino

Can you connect relays or other devices to Micro-controller more than the number of pins available ?

Yes, It is possible . It can be done using logic gates

Please go to my instructable link CONNECT 16384 RELAYS TO A SINGLE ARDUINO and Infinite other possibilities you will the methods to do it.