๐Ÿค–Have you ever tried Chat.M5Stack.com before asking??๐Ÿ˜Ž
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5stack V uart communication

    Scheduled Pinned Locked Moved M5Stick V
    5 Posts 4 Posters 15.5k Views 1 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.
    • J Offline
      jarain78
      last edited by

      Hello everyone, does anyone know how I can connect my M5Stick V to my M5Stack Fire using serial communication? These are a part of the codes I use.

      Stick-V

      import time
      from machine import UART
      from fpioa_manager import fm

      fm.register(35, fm.fpioa.UART2_TX, force=True)
      fm.register(34, fm.fpioa.UART2_RX, force=True)
      uart = UART(UART.UART2, 9600)

      while(True):
      uart.write("Hello World!\r")
      time.sleep(1000)

      Stack-Fire

      #include <M5Stack.h> // needed for my board M5Stack

      HardwareSerial m5stack_uart(2);

      void setup()
      {
      M5.begin();

      Serial.begin(9600); ;
      m5stack_uart.begin(9600, SERIAL_8N1, 16, 17);
      //Serial2_.flush();
      Serial.println("Hola");
      m5stack_uart.println("Hola");

      }

      void loop()
      {
      m5stack_uart.println("@");
      if (m5stack_uart.available()) {
      String s = m5stack_uart.readString();
      Serial.println(s);
      }

      if (Serial.available()) {
      String s = Serial.readString();
      m5stack_uart.println(s);
      }

      }

      Regards

      Jaime

      1 Reply Last reply Reply Quote 0
      • S Offline
        staberas
        last edited by

        https://m5stack.hackster.io/anoken2017/cheering-watch-of-m5stickc-v-34f0cc

        Near the end , tell us if it helps

        1 Reply Last reply Reply Quote 0
        • V Offline
          vvs551
          last edited by

          https://qiita.com/nnn112358/items/5efd926fea20cd6c2c43

          1 Reply Last reply Reply Quote 0
          • J Offline
            jarain78
            last edited by jarain78

            Problem solved, thanks to both of you for the suggestions.

            Thank you

            Jaime

            1 Reply Last reply Reply Quote 0
            • S Offline
              syphax_halou
              last edited by

              Hello, I also bought the same m5stack and m5stick v products, I have the same problem. can you help me to be able to communicate my camera with the m5stack, knowing that I program my camera with maixpy โ€‹โ€‹and the m5stack with arduino thank you in advance.

              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