Turning Potentiometer crashes ESP32

Hello there !

I've been trying to use a potentiometer STEC12E07 but when turning it, the ESP crashes.

I did not find any pin layout of this pot but from what i understood, the wiper is the middle pin and it doesn't matter which outer pin is connected to GND / 3v3.

It crashes even when not trying to read the value (as long as i don't turn it, i can read the value) so i'm guessing it comes from my wiring/hardware but i really don't know what could go wrong. I tried every combination without success (depending on my wiring, 0 is the default value, 4095 or the serial monitor does not see the ESP)

Here is my wiring, orange is connected to GPIO13 (adc2_channel_4), red to GDN and yellow to 3v3

Hi! This is not a potentiometer. It´s a rotary encoder. They work differently.
Look for videos and tutorials on rotary encoder and also try to find yours datasheet. :wink:

1 Like

Currently cursing the person who gave me this and their family😭 (and my self for not checking)

Thanks a lot !! Time for some more tutorials ahah

Thanks !!

There is a datasheet for the STEC12E07 here

And in one position you are shorting out 3v3 & GND.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.