Electronic – I/O expander alternative

gpiomicrocontrollerrelay

I am designing a PCB that controls 16-relay or more using micro-controller, but micro-controller does not have enough pins.I searched google and find solution of this problem is I/O expander, but that cost ~50 Rs and that increase PCB cost drastically high, so i want some alternative of I/O expander.

If possible/exist please suggest.

PS: The design is like as soon as supply high at input to relay circuit the load is "on" and if makes input low at relay circuit the load get off.

This is how design looks

Best Answer

Look into something called a "Shift Register". One shift register (not suitable for driving most relay coils) is the 74HC595. There are others.

If you drive solid state relays, if the per pin current is enough and that there are no inductance that would work.