As you would have understood by now, we can control any AC electrical appliances as per our needs. We have understood switching and have also perfected the way we can vary the intensity of light and the speed of fans. But did you notice one thing? Sooner or later as our system gets more and more complex, the number of GPIOs needed will increase. There will come a moment when you will want to have more and more devices connected to your Raspberry Pi; however, you will not be able to do so due to lack of physical ports.
This is a very common situation in electronics. As always, there is a solution for this problem as well. This solution is known as a multiplexer. The basic job of a multiplexer is to multiply the number of ports ...