Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. zeeman
    Z
    • Continue chat with zeeman
    • Start new chat with zeeman
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    zeeman

    @zeeman

    0
    Reputation
    1
    Posts
    103
    Profile views
    1
    Followers
    0
    Following
    Joined Last Online

    zeeman Follow

    Posts made by zeeman

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

      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!

      posted in Modules
      Z
      zeeman