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

    HMI module with M5Stack Basic V2.7 - Grove Port C

    Scheduled Pinned Locked Moved Modules
    1 Posts 1 Posters 2.0k Views
    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.
    • Z Offline
      zeeman
      last edited by

      I had my wires plugged into pins 16 (RX), 17 (TX), and Ground on the M5Stack Basic V2.7 for some serial communication with a camera lens motor. This was working fine when I setup Serial2 with:

      Serial2.begin(115200, SERIAL_8N1, 16, 17);

      I have attached the HMI module to the M5Stack Basic V2.7 and I've soldered my wires to a grove cable utilising the white (for RX), yellow (for TX), and black (for Ground) with red being unused. I have plugged this grove cable into Port C on the HMI module (as I understand it's for UART communication). According to the HMI documentation the RX should be pin 16 and the TX should be pin 17 on the M5Stack Basic, which matches what I had coded originally (Image showing the pin allocations here https://shop.m5stack.com/cdn/shop/products/10_c6822166-63d0-4fd9-8ec4-371a090d6177_1200x1200.webp?v=1680240342).

      However, my code does not work now. Am I missing a step? Do I need to do anything differently in my code?

      I saw the HMI example code on the GitHub repository (https://github.com/m5stack/M5Unit-HMI), however that example was for the buttons and rotary encoder which I'm not using for the time being (so I haven't included the MODULE_HMI.h/cpp files).

      Any help would be appreciated as I'd like to the the grove connector rather than individual pins. Thanks!

      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