I have AML-S905X-CC le potato with ubuntu, I want to read data from soil moisture sensor using the analog data to be more accurate. I found that it have the pins 1 and 2 on the header 2J3 (Chip ADC2 Line ADC1 for example).
I want to write a process using python to read it and set other GPIOS pins values as a result of it.
but got an errors and I didn’t found any example how to use this pins using python.
(It’s clear the chip and line values are different than the GPIOs pins that is numbers and the example you have in the guide expected for numbers at least for the line value)
Cool. I used it now with two resitors of 220 OHM to get 1.65V from 3.3V Vin can you explain me the numbers I’m getting from the ADC pin? I didn’t find it’s specification… is it 10bits? what is the minimum and maximum I can get…?
Now the values is about 3700 when the sensor dry and 2400 when it totally wet (covered by water). Is it make sense? I want to be ensure I won’t damage my libre le potato and sensor…