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

    M5Stack and HC-SR04

    Lessons and Guides
    3
    6
    9.1k
    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.
    • C
      cepics
      last edited by

      Hi, I would like to port my project with esp8266 and hc-sr04 to M5Stack.
      I'm in the arduino envirement.

      1. which HC-SR04 have I to chose ? 3v3(HC-SR04+) o 5v version?
      2. can I use the NewPingESP8266.h library?

      best regards

      m5-docsM 1 Reply Last reply Reply Quote 0
      • m5-docsM
        m5-docs @cepics
        last edited by

        @cepics
        Do you want M5Core and esp8266 are linked together? And at the meanwhile, M5Core and hc-sr04 are linked together?

        In addition, choose 5V version of hc-sr04 will be convenient for you, because all GROVE ports on M5Core consists of GPIOx, GPIOx, GND, and 5V.

        M5Stack documentation URL

        https://docs.m5stack.com

        C 1 Reply Last reply Reply Quote 0
        • C
          cepics @m5-docs
          last edited by

          @watson said in M5Stack and HC-SR04:

          @cepics
          Do you want M5Core and esp8266 are linked together? And at the meanwhile, M5Core and hc-sr04 are linked together?

          sorry I don't understood ... I have an old project with esp8266 and HC-SR04 and now I would like to use M5Stack instead of esp8266, to display distance locally and send distance value through esp-now to M5Stick

          @watson said in M5Stack and HC-SR04:

          @cepics
          In addition, choose 5V version of hc-sr04 will be convenient for you, because all GROVE ports on M5Core consists of GPIOx, GPIOx, GND, and 5V.

          this means that GPIOx pins of GROVE connector in M5Core(M5Stack and M5Stick), are 5V tollerant?

          thanks a lot

          m5-docsM 1 Reply Last reply Reply Quote 0
          • m5-docsM
            m5-docs @cepics
            last edited by

            @cepics
            Yes, tollerant
            0_1548121582731_TIM截图20190122094611.png

            M5Stack documentation URL

            https://docs.m5stack.com

            1 Reply Last reply Reply Quote 0
            • lukasmaximusL
              lukasmaximus
              last edited by

              @cepics said in M5Stack and HC-SR04:

              HC-SR04

              Perhaps this might be useful https://www.instructables.com/id/Pocket-Size-Ultrasonic-Measuring-Tool-With-ESP32/

              1 Reply Last reply Reply Quote 0
              • C
                cepics
                last edited by

                thanks a lot !!!

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post