Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Pin (internal) resistance

    Scheduled Pinned Locked Moved Expansion Board
    pinresistancevoltagedacpull
    4 Posts 3 Posters 803 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      Toppert
      last edited by

      Is there a difference ins resistance between Pin19 et Pin18 and if yes, how much? And maybe how to calculate?

      I will explain myself. Reading the pin value of some circuit via on of those pins have a different result depending of the temperature put on the circuit (higher temperature increases the resistance and therefore the voltage if I'm not mistaken). So I was thinking there was a difference at the basis resistance of these 2 pins and would explain my result.

      I have a pin as configured as DAC going back to a certain Pin (here Pin19 for example) as Input pin with a Pull_Down resistance and then reading the value. Maybe the way I'm reading the value is not correct? I just want to check if the circuit is running correctly.

      J robert-hhR 2 Replies Last reply Reply Quote 0
      • J Offline
        jmarcelino @Toppert
        last edited by

        @toppert
        Do you mean you are reading different values using the ADC?

        If so I think there's some electrical noise involved, not just thermal.

        T 1 Reply Last reply Reply Quote 0
        • robert-hhR Offline
          robert-hh @Toppert
          last edited by

          @toppert The value of the internal resistors activated via pull_up or pull_down is not well defined. Espressif just specifies a drive/sink strength of ~75 µA.
          If you need a well defined input impedance, set the input to high impedance and add the resistor of your choice.
          In addition, look into Pycom's pin sheets of the modules, if the ports are used for a certain other purpose.

          1 Reply Last reply Reply Quote 0
          • T Offline
            Toppert @jmarcelino
            last edited by

            @jmarcelino It's without ADC (maybe I need to do it with an ADC). It's just a pin defined as input like :

            pin = Pin('P19', mode = Pin.IN, pull = Pin.PULL_DOWN)
            pin.value()
            

            which gives me a simple 0 or 1 (I guess 1 when the voltage is at least half of the 3v3?).

            I will check what the ADC version gives me next week (I have no module with me unfortunately this week-end). It might give me the reading I want.

            Also thanks Robert for your answer, I will have a look into the pin sheets of the module.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom