0
\$\begingroup\$

This is my first time using an encoder as well as a Schmitt trigger. Typically, I would do debouncing in software, but I want a hardware solution for the sake of learning how to do so.

The encoder I am using is: PEC11L-4115F-S0020

Hex Inverter w/ Schmitt Trigger Input: SN74LVC3G14DCTR

End Goal: Use the encoder as an input knob similar to an oscilloscope for changing and accepting settings in the final application.

The encoder datasheet shows the encoder being pulled up to 5V, but my MCU is an nRF52832 being powered by 3v3, so I would like to translate the 5V output from the encoder to 3v3. Then I'll utilize the Quadrature Decoder peripheral on chip.

Does the circuit I've drawn make sense since the inverter is being supplied with 3v3? It'll output 3v3 when the input is low and 0 when input is high?

I am aware that the nRF52 has a digital debouncing option as well, but I would like to stick to a hardware implementation.

Additionally, the switch to the left is an integrated momentary switch with the encoder.

\$\endgroup\$
1
\$\begingroup\$

LVC inputs are overvoltage tolerant (as shown by the VI specifications in the datasheet), so the inverters will indeed translate the voltages down in the way you want.

\$\endgroup\$
0
\$\begingroup\$

The encoder does not need 5V, it will work with 3.3V levels just fine as it is just a switch basically. The encoder datasheet has an example schematic how to connect it, your implementation does not work because of the capacitor on the common pin, and the series resistors are missing as well.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.