Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Help to use UART

    Scheduled Pinned Locked Moved MicroPython
    2 Posts 2 Posters 979 Views 2 Watching
    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.
    • V Offline
      vruizvil
      last edited by

      Hi guys!!! Lopy has 2 uart port, but I need some help to use the secondary uart, the docs aren't very clear about this.
      How could I try the secondary uart??
      Is possible to use both uart at the same time??
      Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • R Offline
        rskoniec
        last edited by rskoniec

        I'm writing from my head, but this should work:

        import machine
        uart = machine.UART(1, 115200)
        

        According to LoPy pinout scheme https://www.pycom.io/wp-content/uploads/2016/11/lopy_pinout.pdf and Expansion Board pinout scheme https://www.pycom.io/wp-content/uploads/2016/11/expansion_v02_pinout.pdf UART1 (2nd) comm pins are:

        TX1 - P3 / G24
        RX1 - P4 / G11

        The machine is working as good as it's code.

        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
        • 1 / 1
        • First post
          Last post

        Pycom on Twitter

        Pycom