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

    Maximun Voltage Input Pin 13-18 (ADC1 input)

    Scheduled Pinned Locked Moved GPy
    5 Posts 2 Posters 385 Views 2 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.
    • F Offline
      fruiz1113
      last edited by fruiz1113

      Even I understood that for ADC measurements you have to enable internal attenuation according to input voltage , for instance 3.3 V , 11db :
      adc_c = adc.channel(pin='P16', attn=ADC.ATTN_11DB) ; what happens if I forget to set the attenuation and apply 3V peak at this input port , does it damage ?
      If I apply 3.3 V before downloading the script , does it damage ?
      Thanks

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

        @fruiz1113 All GPIO input including the analog inputs can withstand 3.6V (Vdd + 0.3V). Only the values will overflow. You may go beyond that up to 5V, as long as the inrush current is limited by a sufficiently high impedance, e.g. a resistor >= 4.7 kOhm at 'slow' signal transition.

        1 Reply Last reply Reply Quote 0
        • F Offline
          fruiz1113
          last edited by fruiz1113

          Hi Robert , thanks for the reply but look the end of this document for adc input :

          https://docs.pycom.io/firmwareapi/pycom/machine/adc/

          da2421a7-ebfb-4563-a9f7-7d2a35d95503-image.png

          This doesn´t apply to GPY+Expansion Board kit ?

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

            @fruiz1113 I looked into the ESP32 data sheet, and it's the ESP32, which is built into the GPY. 3.3V is the safe voltage. The ESP32 data sheet says Vdd + 0.3V, which is 3.6V at a Vdd of 3.3V. But the ESD protection circuit on each pin inside the ESP32 is able to catch overvoltage, as long as the current is limited.
            If you expect higher voltages than 3.3v as normal operation, better use an appropriate method for shifting (e.g. voltage divider, or external limiting circuit, ....).

            F 1 Reply Last reply Reply Quote 0
            • F Offline
              fruiz1113 @robert-hh
              last edited by

              @robert-hh Thanks !

              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