Greetings forum! In short about the project: I am using lika I41 encoder with an 8-wired cable (AB0 signal) which reads the revolutions of an engine. 3 of the encoder`s wires are soldered up to the RPi in the following way: 4 pin - 5v, 6 pin - GND, 34 and 36 pin - 0-signal wire. The signal wire is soldered to input (36 pin) and GND (34 pin) because on 34th I am using a diode to decrease a Voltage from 5V to 3.3V. I am using 0-signal because it sends only 1 signal per revolution which is perfect not to overload my program (don`t see a need to describe the purpose of it and code specs). The only thing to mention about the code is that I am using Python RPi gpio library to read the signal from the encoder. But as mentioned in the title, RPi just doesn`t see the signal, despite the encoder does send it properly (I have checked with an oscilloscope, signal is 3.3V as needed).
Attaching some debugging code that I used to check the signal (it always output 1).
Image may be NSFW.
Clik here to view.
Will be thankful for any advice! Thanks in advance.
Attaching some debugging code that I used to check the signal (it always output 1).
Image may be NSFW.
Clik here to view.

Will be thankful for any advice! Thanks in advance.
Statistics: Posted by drantya — Sun Feb 16, 2025 9:29 pm — Replies 0 — Views 27