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

    LoPy ADC deadzone and isolation

    Scheduled Pinned Locked Moved LoPy
    adcisolationdeadzone
    2 Posts 2 Posters 1.3k 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.
    • Y Offline
      yunying
      last edited by

      Hi guys, our team are testing the ADC in the LoPy, but we notice there is a deadzone lower than 70mA when attenuation is 0dB and 100mA with 12dB.0_1488556512481_lopy_adc_results.png

      Also, there is a problem with Isolation, the input to the ADC is going to be a potentially dangerous signal, this kind connection will not have the isolation protection, it could probably break the PC or the LoPy pic. So in what way can we use isolation protection for the built-in ADC?

      Is there anyone, have this kind of problem and could shear their solution, we will be really appreciated.

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

        Hello @Yunying. Your observation is correct and matches the statements of espressif and others. The ADC should be used with 0 or 6dB attenuation, the 0-reading is at 70 mV, and at high reading it gets very non-linear. You can cope with that in your firmware, and espressif announced a compensation in a later firmware. Even then, it is by no means a high precision ADC.
        When using the ADC, it is recommended to feed it, like any ADC, with a low impedance, low noise Op-Amp and an input stage which filters ESD and possible destructive signals. That reduces noise too. If you need an isolated input, you have to work with opto-couplers or/and isolation amplifiers.
        You can also run the whole unit on battery. If you need USB connectivity, there are so called USB-Isolators, which isolate the USB device from the PC. Just look for that e.g. on EBay or Aliexpress.
        If you need a good quality ADC, use an external one, like the ads1115. There are isolating I2C bridges and DC/DC converters which would allow to run the ADC and input stage in a separate power domain, solving the request for isolation.

        1 Reply Last reply Reply Quote 2

        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