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

    USB or UART

    Scheduled Pinned Locked Moved MicroPython
    uartusbserial
    6 Posts 4 Posters 1.8k Views 4 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.
    • J Offline
      jmpratt
      last edited by

      This may be a simple question:
      If I connect a sensor to a serial to usb converter (FTDI serial-to-usb board) and plug that board into the mini-usb port on the WiPy expansion board, which Python module would I use to communicate with it? machine.uart?

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

        @jmpratt None. The reason: The USB port on the expansion board is connected to UART0, which is exclusively used for the REPL. Buit you can make it much simpler. Since your sensor has already a serial port, it can be directly connected to UART1 or UART2 of WiPy. UART1 is be default connecetd to P3 an P4, UART2 must be assigned during initialization. Just take care about 3.3V/5V signal levels. The WiPy expects 3.3V and is not deisgned to be 5V tolerant. If your sensor runs at 5V, you will need level converting.

        1 Reply Last reply Reply Quote 0
        • J Offline
          jmpratt
          last edited by

          Thank you. That is exactly what I needed to know!

          1 Reply Last reply Reply Quote 0
          • S Offline
            semireg
            last edited by

            We are building a custom expansion board that will have a USB host port for bringing IOT to ordinary USB devices. If you message me I can keep you updated of our progress. First batch of boards are due to arrive next week.

            L 1 Reply Last reply Reply Quote 0
            • L Offline
              livius @semireg
              last edited by

              @semireg
              What it will be containing?

              think about people first, then computers

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                semireg @livius
                last edited by semireg

                @livius It features a MAX3421E USB host controller chip and USB-A port. We created this board to communicate with existing serial-over-USB (CDC, or communications device class) devices. Adding support for other USB "drivers" is a matter of understanding the USB endpoints and writing the implementation in MicroPython.

                Update: Check out the First look: USB Host Expansion Board by Semireg

                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