Shop OBEX P1 Docs P2 Docs Learn Events
python code for getting quadrature encoder data — Parallax Forums

python code for getting quadrature encoder data

hello guys,
I have ARLO robot and
I am controlling DHB10 motor control board serially using raspberry pi instead of a propeller board so how can I read encoders data.
can I get python code from someone or any suggestion on it

Comments

  • Cluso99Cluso99 Posts: 18,069
    edited 2020-02-27 20:20
    I presume you are using Raspian or other *nix. If so, then trying to read ports real-time (deterministic) is a real challenge since the OS can go into “limbo land” at any time to perform housekeeping.
    That’s pretty much the difference between a microcontroller and a computer. A computer may be faster, but it cannot perform things in a deterministic time (reliably at repeatable time slots).

    It’s just the same as a Windoze PC... Like when you are just writing a simple document in word or an email, and your pc appears to go to sleep (unresponsive) while the OS (Windoze) does a cleanup or phones home. Nothing you can do when this happens.
Sign In or Register to comment.