Hi, I sought a whole week an answer about my question but found no one so i finally decided to open a new thread (hoping I'm not doubling an existing one)
I have an Arduino UNO and I need to connect up to eight potentiometers, but i need it to be modular (each pot as a single module due to some different uses and space problems) The problem is I'm not sure how to make the board recognize which pot I'm using, because even if I'm using just one analog input on the board i need every single module to control a different thing: e.g. if I connect two modules in series and they end up in the Analog0 port, it's completely useless for me if they both control the same LED's brightness, I need them to control two different LEDs. I was thinking about using for every module one analog multiplexer like a 4051b (which I already have) and a priority encoder (an MC14532B or an SN74HC148N ): the encoder will recognize which line I'm activating (by changing the potentiometer's state) between the one on the module or the one connected in series to it, and send to the multiplexer's address input the bit value of the corresponding port. The multiplexer will then send the analog value to the board input.
Is this a possible working configuration or am I totally wrong? I also found something about the 74HC595 shift register and about I/O expanders like PCF8574 and mcp23016 but I'm not sure of what they exactly are and do. Could they be a better choice for my project?