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

    access TX/RX on fipy + pytrack :

    Scheduled Pinned Locked Moved FiPy
    fipyconnectorsuart
    4 Posts 2 Posters 633 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.
    • T Offline
      testos
      last edited by

      Hello,

      Could you please explain me how to access the TX/RX of the fipy/pytrack. I would like to retrieve the data from the GPS and the Accelerometer data using UART but I'm not quite sure to understand how to proceed on the board.

      I just use Sigfox and the GPS/Accelerometer , and by default I deactivated the wifi/bt pycom.wifi_on_boot(False).

      Thanks.

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @testos
        last edited by

        @testos I do not understand you intention. If you use pytrack, the the UART/USB bridge will forward the communication over UART0 to the USB serial.
        If you want to use another UART for that, you have to open that, like:

        from machine import UART
        uart = UART(1, baudrate=19200, pins=('P9','P10'))
        

        Note that I reassigned the UART1 pins from their default assignment to P9 and P10 to avoid a conflict with the SD card.
        And then you can use uart.write() to send, uart.read() to receive, uart.any() to tell, whether there is data in the input buffer, etc....

        1 Reply Last reply Reply Quote 0
        • T Offline
          testos
          last edited by

          Hello @robert-hh,

          it's a bit related to my question last day in a different thread, I thought it could be better to create a dedicated one.

          You are right I could get the data from the USB but would like to send the data to pi zero. I do understand the "coding" part, what I don't understand is how should I do the wiring on the pytrack, I need to connect to the external IO header ?

          Thanks for your patience

          robert-hhR 1 Reply Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @testos
            last edited by

            @testos Yes, you need to connect to the external IO header below the fipy. And you have to specify these Pins, when you open the UART, most likely UART1. On a Fipy, two of the three UARTs are already used by the firmware UART0 and maybe UART2. You have to try.

            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