Go to advanced search

by Amit2001
Sat Dec 08, 2018 11:24 pm
Forum: General discussion
Topic: Help - Incorrect reading of magnetic encoder
Replies: 8
Views: 612

Re: Help - Incorrect reading of magnetic encoder

I'd start with fixing the code: you have class decoder and variable decoder. On top of that you don't use that class? Try flake8, autopep8, pylint to check your code. You wrote the code? I did not write the code I found it online after looking for code to read an encoder. The code works ok, I do no...
by Amit2001
Sat Dec 08, 2018 2:54 pm
Forum: General discussion
Topic: Help - Incorrect reading of magnetic encoder
Replies: 8
Views: 612

Help - Incorrect reading of magnetic encoder

Hi everyone, I am a beginner having trouble to read a magnetic encoder. I have found the following code I found that I am using in order to read the encoder values: #!/usr/bin/env python import pigpio class decoder: """Class to decode mechanical rotary encoder pulses.""" def __init__(self, pi, gpioA...

Go to advanced search