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

    Grove PORT A for both Onewire and i2c sensors

    Scheduled Pinned Locked Moved Core 2
    6 Posts 4 Posters 14.2k 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.
    • G Offline
      GLP
      last edited by GLP

      Question: Grove PORT A for two sensors, i need to measure temp via 1-wire Ds1820, and Humidity, Pressure etc via i2c ENV II Unit. Someone has tried before? Further, is better use LDO (HT7533 or AM1117-3.3) to power DS1820, to avoid burn input pins (aren't 5V tolerant?). Any other minimal solution? (voltage divider etc).

      ZontexZ 1 Reply Last reply Reply Quote 0
      • ZontexZ Offline
        Zontex @GLP
        last edited by

        @glp you shouldn't use input higher than 3.3v to the IO ports (any IO ports) as it will damage the pins.
        do you plan to use M5Stack sensors or external sensors? if you use external sensors just make sure the output to the pins is not higher than 3.3V

        G 1 Reply Last reply Reply Quote 0
        • G Offline
          GLP @Zontex
          last edited by GLP

          @zontex thanks to answer, just to have confirm it is "safe" use a LDO to work at 3.3, i'm planning to connect one ENV II unit and at the same grove port A input pin 32 (or 33) of a Core 2. My doubt came from observe ENV unit schematic, where DHT 12 pin have pullup at 5V. Btw i don't have problem to put a LDO, my goal is share both sensors (one M5Stack and another external DS1820 alt text

          1 Reply Last reply Reply Quote 0
          • innovationsmakerI Offline
            innovationsmaker
            last edited by

            So, to conclude: Is the Grove port on the Core2 5V tolerant or not? In other words - can I connect a I2C sensor powered with 5V of the Grove connector without level shifter? Also, If the pins are not 5V tolerant, why is then 5V available on the Grove port and not 3.3V?

            Nothing will work, unless you do!

            ZontexZ 1 Reply Last reply Reply Quote 0
            • ZontexZ Offline
              Zontex @innovationsmaker
              last edited by

              @innovationsmaker the esp32 and other microcontrollers such as Arduino are not 5v tolerant, they can sustain a max of 3.3v input into their input pins, there is no voltage regulator on the grove pin to lower 5v to 3.3v so connecting it will damage it.

              The output is 5V because it's delivered by the power management chip and doesn't interact with the ESP32, some sensors require 5V, and its much easy to drop 5V to 3.3V than boosting 3.3V to 5V, most if not all of the M5 Units and sensors support 5V be default so no harm will be caused to them.

              1 Reply Last reply Reply Quote 1
              • hagueH Offline
                hague
                last edited by

                Maybe it would be an idea to use an I2C to 1-Wire converter? Like the DS2482-100. Then you can have several I2C devices on the bus and also 1-Wire devices. I have not tried the chip yet. But I will do that soon.

                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