While I understand that moving up to a high pin-count uC might be the simplest option, I am looking for Low-cost options to do the same with low pin-count uC.
Would like to control a maximum of 8 relays, using an ATtiny85, which has 5 available GPIO pins, of which I definitely need to set aside 2 for some other purpose, leaving me 3. One obvious approach that comes to my mind is a Mux. Given 3 pins, 2^3 = 8, fits nicely. However I was wondering if the relays (which control the power-supply socket for servers), would de-energise, while changing mux values ?
Are there other gotchas with this approach ? Are there any alternative methods available ? I've heard about IO expanders, but would it be a worthwhile approach from complexity / cost standpoint ?