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

    Ultrasonic Range Finder - HRXL-MaxSonar-WR

    Scheduled Pinned Locked Moved LoPy
    lopy4maxsonarultrasonic
    3 Posts 2 Posters 546 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.
    • J Offline
      jimpower
      last edited by

      I am trying to read output from the serial pin of the MaxSonar WR series ultrasonic sensor datasheet.

      I have connected via Max3232 Breakout using the below connections

      0_1532310754159_98be4e8e-2e6f-411c-857c-b56d62088f27-image.png

      this is my output

      b'\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e\x18\xe6\x00\xf8\x188\xf8\x98\x1e'
      

      I then tried with a transistor 2N7000 connected like this

      0_1532311307684_60545856-f670-448c-808d-9d13deb18104-image.png

      and it prints none

      Has anyone had any experience with using these sensors at all?

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

        @jimpower Have you checked https://forum.pycom.io/topic/1901/uart-reading-serial-stream-escape-sequences/17 ?

        I believe your transistor's wiring does not match the one described in that thread.

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

          @jcaron My diagram is incorrect sorry, however I tried a new max3232 today and managed to get it to work.

          Thanks

          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