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

    does modules work directly with arduino boards

    Modules
    2
    3
    2.7k
    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.
    • V
      vanoak
      last edited by

      Hello,

      A student of mine bought the Servo 2 Module thinking that it could work directly with the Arduino Uno board. I helped him identify the 5V and I2C pins, but to the best of my knowledge I2C requires a sketch to be present on the module and I wasn't able to identify which pins to use to flash the sketch. Is it possible?

      Thank you,

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        Hello @vanoak

        just to clarify - do you mean this module?

        If yes, this module uses the PCA9685 which as far as I can tell doesn't allow to download any firmware. So no, you don't need to download anything into the module - it can be used out of the box. The sketch goes into the M5Stack device or in your case into the Arduino Uno.

        One important thing you need to consider though is that the PCA9685 in the Servo2 module is an 3.3 V device whereas the Arduino Uno is a 5 V device. This means you should be using some level shifter for the I2C lines (SCL and SDA) else you risk to destroy the PCA9685.

        The other question is - how many servos do you need? If only a few the Arduino Uno can do that w/o using the Servo2 module. See here.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • V
          vanoak
          last edited by vanoak

          Hi @felmue,

          Yes, I mean that module.

          I will look into the documentation you provided, thank you.

          Regarding the number of servos I mandated the student - i teach art students - to scale down from his initial proposal of 24 servos, because of the logistics implied. He came to the class, proposing 13 servos with this module arguing that it should work, so here we are, trying to make it work.

          Thank you for your time.

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