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

    Serial communication on GPIO pin

    Scheduled Pinned Locked Moved MicroPython
    gpiosdi-12serial
    6 Posts 3 Posters 1.5k Views 3 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 jmpratt

      I'm trying to use a GPIO port for SDI-12 communication (http://sdi-12.org/specification.php). It's a one wire, 1200 baud serial protocol. I was looking at the onewire.py module by danicampora from Pycom. Can this module be adapted to another one wire protocol?

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

        @jmpratt
        It is really different protocol
        better if you really need it, try to addapt to micropython this one
        https://github.com/EnviroDIY/Arduino-SDI-12/tree/develop/src

        think about people first, then computers

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

          Thanks @livius . That code is very helpful. Now, who wants to port it to MicroPython for me?

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

            @jmpratt Did you have any luck with this?

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

              @jimpower No I haven't. I ended up using a SDI-12 to serial conversion board. So instead of rewriting the SDI-12 protocol, I just read and write to the UART. It works fine, but requires and extra piece of hardware.

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

                @jmpratt Would you mind providing me a link for the hardware you used? I was thinking of using the RS485 library and a 485 to uart breakout board.

                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