I recently tried measuring the resistance of a thermistor using the .resistance() method, the results are sadly not accurate. I measured the resistance with a multimeter and it showed 100kΩ, while the different EV3's all showed something between 330kΩ and 360kΩ. Even with no resistance the EV3 shows around 10kΩ resistance, so the results are not off by a fixed amount, but the results are repeatable.
Here is the code I used:
#!/usr/bin/env pybricks-micropython
from pybricks.hubs import EV3Brick
from pybricks.iodevices import AnalogSensor
from pybricks.parameters import Port
ev3 = EV3Brick()
termistor = AnalogSensor(Port.S1)
x = termistor.resistance()
print(x)
Any help, explanation or like a formula to calculate the real resistance would be very appreciated
Thanks