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

    RS232 to M5 Basic/Gray?

    Modules
    2
    2
    3.4k
    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
      jnicol
      last edited by

      Hey Guys,
      I have a Basic and Gray Core and also have Commu modules with CAN and RS485. What is the easiest way to get RS232 into the units? Should I try an RS232 to RS485 converter, or should I go with another solution? I see that there might be issues with the RS485 implementation in the commu module?

      In any case, trying to get RS232 serial data in to the Core to display it.

      If someone could point me in the right direction I would be grateful.

      Cheers!
      John

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

        Hello John

        A couple of M5Stack modules (like GPS) already use a serial connection via GPIO16 and GPIO17. However GPIOs only provide logical voltage levels (0V / +3.3V).

        Assuming your source is a standard RS232 device the voltage levels can go down to -15V and up to +15V so you probably need a level converter like this one:

        https://www.amazon.com/Serial-Converter-Equipment-Upgrades-Doupont/dp/B01N42QW8X/ref=sr_1_6?crid=2OZ5U3Q7GY5OS&dchild=1&keywords=ttl+rs232+converter&qid=1597992249&sprefix=ttl+rs2%2Caps%2C276&sr=8-6

        Cheers
        Felix

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

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