I am working on a project which involves reading a 0-5V voltage measure (related to custom-made encoders made of slide potentiometers) to ADC on STM32F103. However, I have only one pin with ADC available. Anyway - i have 3 measurements which I would like to multiplex - and there comes the problem. The measures do not need to bo switched with high frequency, they will be switched only when needed to be read.
I was thinking about using NPN transistors, although I am not sure if I have used them correctly. Anyway - is it a good idea? Are there any other possibilities?