Read all values at same time from IC UNL2803

Hello guys, how are you ?

I'm trying to make a water level read like show's the below picture. My question is if exists a method to read all values (serialized or an array) using only 1 Analog input from Arduino.

My idea is use 4 levels as minium, but I'm using a Wemos D1 Mini, and don't won't to use a INPUT PIN from each level.

I know that 74HC165 has a Serial OUT Pin, but my knowledge is limited to know if I can use it for my purpose or not

It's possible ?

Thanks

Diagram

You need to read in 4 analog levels? Then an analog mux or analog switch is needed. 2 control pins will be needed to select which of the 4 inputs will be seen by the analog input pin.
DG408 is one example of such a device
https://www.digikey.com/en/products/detail/vishay-siliconix/DG408DJ-E3/2621718

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.