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

    USB Host module - which pins?

    Scheduled Pinned Locked Moved Modules
    3 Posts 2 Posters 3.5k 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.
    • P Offline
      PaulHamshere
      last edited by

      Hi
      I have the USB Host module but I'm confused over the circuit and code. It says it connects P35 to the INT line on the MAX3421 but the code in the library (https://github.com/felis/USB_Host_Shield_2.0/blob/master/avrpins.h) has this // Pinout for ESP32 dev module

      MAKE_PIN(P0, 0);
      MAKE_PIN(P1, 1); // TX0
      MAKE_PIN(P10, 10); // TX1
      MAKE_PIN(P3, 3); // RX0
      MAKE_PIN(P21, 21); // SDA
      MAKE_PIN(P22, 22); // SCL
      MAKE_PIN(P19, 19); // MISO
      MAKE_PIN(P23, 23); // MOSI
      MAKE_PIN(P18, 18); // SCK
      MAKE_PIN(P5, 5); // SS
      MAKE_PIN(P17, 17); // INT

      which shows 17 as INT.
      It seems not to matter, as with a different ESP32 board I have connected 17, 35 and nothing and it still seems to work,
      Is there a special library for the M5Stack USB Host that specifically uses P35?
      Thanks

      1 Reply Last reply Reply Quote 0
      • IAMLIUBOI Offline
        IAMLIUBO
        last edited by

        Hi @PaulHamshere ,
        Did you try this code?

        https://docs.m5stack.com/en/module/usb?id=example

        It seem we provide a library for this module:
        https://github.com/m5stack/M5Stack/blob/22e1d65b1062b185d1692fa19af3cbd238633859/examples/Modules/USB_MAX3421E/USB_Host_Shield_Library_2.0.rar

        1 Reply Last reply Reply Quote 0
        • P Offline
          PaulHamshere
          last edited by

          Hi - I did try the example and it works. But it works whether any pin is connected to INT - pin 17, pin 35 or no pin at all. INT drives interrupt responses and perhaps this really doesn't use any interrupts - but then why connect P35 at all?
          The rar looks to have the same pin assignment as above in avrpins.h - pin 17 to INT.
          I am wondering if I've missed something here!

          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