I’m a little confused how to bet get this going - can anyone help?
I’m trying to measure water level depth using a ALS-MPM-2F water level trasmitter and ideally connecting it into the ADC of a M5 Atom Lite (G33 Pin). The datasheet talks to the “Power supply: 3-5VDC, 12-36VDC( standard)”. I’m wandering how i can connect this up to get a read-out from the current output and translate that into water depth.
You don’t need an IC. A simple resistor will do, but yes the 0-5V version would be a lot simpler to connect if the 4-20mA has not already been purchased. However 4-20mA does have advantages, like low noise due to the low impedance of the current loop.
4-20mA:
The 130 Ohm resistor should be at least 1% tolerance and preferably 0.1%. Though if all you can get is 5% you can easily calibrate it in ESPHome.
Thanks so much for your help, i thought I’d put this together before responding.
So I’ve bought a AC/DC converter and a 130ohm resister, connected it all up as per the above, the only readout I can get in Volts from the GND/AO is 1.06900 volts, this is consistent and not varying even though the tank level has increased over time. I’m not quite sure what I’m doing wrong!! If I look at the raw() value I’m receiving 4095. I’ve checked with a multimeter and I receive the same voltage so the M5 is reporting it back correctly.