@felmue Now got some useful readings of Volts using the following code. Not sure about accuracy due to logarithmic scale. I've tested it with an AA 1,5 battery as input signal, connecting GND and ADC pin 32. As I already use a GPS and an expansion board, so at the moment SDA pin 32 at Core2 unit is the only available choice. My code:
execute:
from machine import ADC
adc=ADC(32)
adc.atten(ADC.ATTN_11DB)
while true (with blockly), execute:
signal = int(adc.read())
if signal == 4095:
signal = 0
percentage = float(signal / 4095 / 100)
volts = float(3.9 * percentage * 100)
label2 show volts (with blockly)
Now getting 0 at idle connection and +- 1.5 V when testing it with an AA battery as analog signal.