Open collector means it never drives the outputs high, only low. When the encoder wants to output a "high" it just leaves the output open, disconnected from anything - so what you're measuring with the meter at that time is just a floating line...
Yes, there are so many rotary encoders out there that knowing which one is mandatory.
You may want to have a look at this thread and this thread for using rotary encoders with NPN output stage.
Paul
Not sure what encoders you are using and if these need something different, but have you tried the encoder library which comes with the teensy? There are also example sketches for it.
If the encoder is powered from 5V and open-collector, you only need a single pull-up to the Teensy 3.3V supply.
It it's output is push-pull you will need a divider from the encoder output to the Teensy - I can't tell from your diagram where...
These lines look a bit strange.
Are the encoder outputs open-drain and the microcontroller's inputs intended to have active pullups? If so the pinMode calls should be using INPUT_PULLUP, and you can safely connect them without the voltage divider...
Hello all, thanks so much to everyone for their responses. I am an artist, and will often get a kludgey thing working, and then use it over and over and never look back. Yes, I didn't know about the "input_pullup", I had been under the...
I've used rotary encoders with several projects in the past with both Arduino Uno and MEGA. I'm using a 200 pulse/rotation NPN incremental encoder. For this project I need to use 4x encoders, so porting over to the Teensy 4.0 because I'll need...