Skip to content

Python sample codes don't works on TeraRanger Evo 15m #15

Description

@Yuanbwcx

I have noticed that the Python sample codes don't work on Evo 15m on a Raspberry Pi.

What I did

  1. I connected the Evo 15m time of flight sensor to a Raspberry Pi 4B via UART
  2. I checked that the sensor appears to be detected at /dev/ttyS0
  3. I first tried to run python3 Evo_64px_sample_py3.py but I got an error saying that no sensor was detected
  4. I specified the port inside the script. In particular, I edited line 131 of that file and changed it to
evo_64px = Evo_64px(portname="/dev/ttyS0")
  1. Then I started to get data, but it all seems wrong and not having the correct encoding; it is stuff like
b'\x05\x16T\n'
Invalid frame length: 4

I would appreciate any help on how to resolve this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions