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

    Using P9 as ADC input when using PyTrack

    Scheduled Pinned Locked Moved LoPy
    adcpytrackpins
    3 Posts 3 Posters 1.3k 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
      tholden
      last edited by

      Hello

      I dont understand the documentation regarding the ADC. Right now I am looking at the LoPy datasheet and it clearly indicates that P9 is useable as ADC in.

      However, in the docs about the ADC, it says P13-P20

      What is correct here?

      And... I find it a bit strange that you dont have access to a single adc input from the external header on the pytrack if what is in the documentation is correct, and not the lopy datasheet.

      J L 2 Replies Last reply Reply Quote 0
      • J Offline
        jmarcelino @tholden
        last edited by

        @tholden
        P9 - as the data sheet shows - is part of ADC2 but this isn't available yet due to missing low level software support. It's planned to come to ESP-IDF later I the year.

        For now you need to use ADC1 ports, i.e. P13 - P20

        That said I'd recommend an external ADC connected via I2C or SPI which should plug into the available pins. The internal ADC suffers from calibration issues so, at least for my purposes, was never really useful.

        1 Reply Last reply Reply Quote 1
        • L Offline
          livius @tholden
          last edited by livius

          @tholden
          To see some info about problems with ADC which @jmarcelino pointed
          here is the link to issue report
          https://github.com/espressif/esp-idf/issues/164
          and also interesting
          https://github.com/espressif/arduino-esp32/issues/92

          think about people first, then computers

          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