🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    ADS1100 Hat with Core2

    Scheduled Pinned Locked Moved UIFlow
    2 Posts 2 Posters 3.1k Views
    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.
    • B Offline
      brvus76
      last edited by

      Dear all,
      I need a better resolution for a project and I have seen that the internal ADC of the ESP32 is really noisy. So I ordered an ADS1100 for my Core2.
      In the meantime I tried to connect an ADS1100 hat (that I bought for an M5Stick).
      I connected it to the Port A of my Core2
      0_1643454725284_IMG_8803.jpg
      Here the code:

      from m5stack import *
      from m5stack_ui import *
      from uiflow import *
      import time
      import unit
      screen = M5Screen()
      screen.clean_screen()
      screen.set_screen_bg_color(0xFFFFFF)
      adc_0 = unit.get(unit.ADC, unit.PORTA)
      label0 = M5Label('Text', x=126, y=113, color=0x000, font=FONT_MONT_14, parent=None)
      while not (btnA.isPressed()):
      label0.set_text(str(adc_0.voltage))
      wait_ms(1)

      When I upload I read:
      ADC unit maybe not connect

      Any suggestion?
      Thank you!

      1 Reply Last reply Reply Quote 0
      • felmueF Offline
        felmue
        last edited by

        Hello @brvus76

        according to the schematic the hat needs 3.3 V.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        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
        • First post
          Last post