C-Brick Posted July 24, 2021 Posted July 24, 2021 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 Quote
Mr Jos Posted July 24, 2021 Posted July 24, 2021 Hey, could you show a photo about what sensor you're speaking, and what/how it's used? I don't know at the moment the sensor you're speaking about, but maybe if you can show us, we can try to help. Quote
David Lechner Posted July 24, 2021 Posted July 24, 2021 answered at https://bricks.stackexchange.com/q/16418/3498 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.