Ultrasonic Range Finder - HRXL-MaxSonar-WR



  • 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?



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

    Thanks



  • @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.



Pycom on Twitter