Fizzbopgalore
Member
Hello,
I'm currently working on a midi controller sketch that needs to use some rotary encoders.
I ended up going with the Alps EC12E24104A6, 24 pulse no detents, as I like the feel. Data sheet https://www.mouser.com/datasheet/2/15/EC12E-1370769.pdf
What is the best way of hooking these up to the digital pins on the Teensy4.1 since the digital pins are not rated to 5v, which the encoders are?
For a quick test, I decided to just try hooking up the encoder's A pin to Digital 0 and B pin to Digital 1. I set each of those pins to PULLUP, but I have had mixed results when checking it with Digital Read. Sometimes it appears to be enough to pull the data pin down to ground, others... not so much.
I'm sure I'm overlooking something simple here, but I'm so used to just hooking these up to 5v with a 1k pullup and calling it a day.
Thanks!
I'm currently working on a midi controller sketch that needs to use some rotary encoders.
I ended up going with the Alps EC12E24104A6, 24 pulse no detents, as I like the feel. Data sheet https://www.mouser.com/datasheet/2/15/EC12E-1370769.pdf
What is the best way of hooking these up to the digital pins on the Teensy4.1 since the digital pins are not rated to 5v, which the encoders are?
For a quick test, I decided to just try hooking up the encoder's A pin to Digital 0 and B pin to Digital 1. I set each of those pins to PULLUP, but I have had mixed results when checking it with Digital Read. Sometimes it appears to be enough to pull the data pin down to ground, others... not so much.
I'm sure I'm overlooking something simple here, but I'm so used to just hooking these up to 5v with a 1k pullup and calling it a day.
Thanks!