🤖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

    M5 Stick/StickC
    3
    3
    5.6k
    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
      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
        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 0
        • liemphL
          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 0
          • First post
            Last post