🤖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?

    Scheduled Pinned Locked Moved Modules
    2 Posts 2 Posters 4.1k 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.
    • J Offline
      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 Offline
        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

        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