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

    M5stack V uart communication

    M5Stick V
    4
    5
    12.5k
    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
      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
        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
          vvs551
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • J
            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
              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
              • First post
                Last post