Jump to content

Recommended Posts

Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...