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

    How do I use L298N motor driver with M5StickC

    Scheduled Pinned Locked Moved M5 Stick/StickC
    3 Posts 3 Posters 6.8k 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.
    • A Offline
      anuj01
      last edited by

      Hi

      I think to control two DC motors using L298N motor driver I need at least 3 GPIO pins per motor.

      So is it possible to use L298N driver with M5StickC?

      liemphL 1 Reply Last reply Reply Quote 0
      • R Offline
        RussNelson
        last edited by

        Yes and no. You would need more output pins, so you would need an I2C I/O pin expander. Like this: https://datasheets.maximintegrated.com/en/ds/MAX7328-MAX7329.pdf

        1 Reply Last reply Reply Quote 1
        • liemphL Offline
          liemph @anuj01
          last edited by

          @anuj01 Another alternative is to use the M5 official IO expander unit.
          https://m5stack.com/collections/m5-unit/products/official-extend-serial-i-o-unit
          M5StickC has an I2C grove port, and you can connect this unit to it. I have tested and it works. Good luck.

          1 Reply Last reply Reply Quote 1

          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