Photo resistor 5 or 3,3V ESP32

Hi

Hopefully a simple question.

On my system I have both 3,3 and 5V. Uses ESP32 WROOM 32

I want to add a photo resistor to the system, GPIO26.

My fist thought was to use 5 v and in series a 4,7kOhm resistor, this to have "bigger" volts to play with.

ESP32 is a 3,3v device so now I'm not sure wat to do

Q:
Should I use 3,3 or 5v to get the best out of this, and not destroy my ESP?

M

It's a 3.3v device, and the GPIO pins should not be exposed to anything above that.

2 Likes

Hi

I did a test.

3.3V gives max 3.24V and minimum 0,80V.

Case closed, connect to 3.3V to not give overvoltage to ESP32.

M

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