Page 1 of 1

How to connect 24 volt powered LPD3806 Incremental Encoder to ESP32

Posted: Tue Jan 17, 2023 3:14 am
by wonduek92
Hi,
I need help.

I have a LPD3806 rotary encoder connect to my esp32. Sensor - LPD3806 - Optical Rotary Encoder (domoticx.com)

When I power it with 5volts and with pull up, it works fine.

But when I power it with 24 volts with pull up, it does not work. This 24v supply is external adapter and is not powering the esp32.

I'm stuck to find out the solution as I understand from the numerous discussions online, since this is a NPN open collector output type, it doesn't matter how much voltage goes into VCC from 5 v to 24 v.

Supposedly a pull up with 10k resistor and 3.3v should get the necessary signal from the A and B output.

But I get nothing. I even tried with 9v instead of 24v and yet it doesn't work. I tried also with both the 24v powered encoder and esp32 to have common ground which does not work as well.

I've heard about optocouplers, voltage dividers but since this encoder is NPN output collector type, I should not need those. Right?


Appreciate your feedbacks.

Re: How to connect 24 volt powered LPD3806 Incremental Encoder to ESP32

Posted: Wed Jan 18, 2023 3:18 am
by ESP_Sprite
Agree that that should just work. Do you have a scope so you can look at the waveforms the LPD3806 generates?