TCRT5000 Circuit For ESP32 S3

Hello,

for my project i am making use of 4 TCRT5000 IR-reflective sensors.
i worked with these at school and that is where i got the resistor values from. but that was hooked up to an arduino that has an operating voltage of 5V.
but now i have an ESP32 S3 which works on 3.3V. so i think if i will read the values from the analog pin i will kill my ESP because if it absorbs all the light more than 3.3V will come through.

it is power from external 5V
i know i need to connect the ground to my ESP for correct measuring. but i haven't done that yet.

how do i make sure that i don't kill my ESP? I was thinking about a resistor on the Analog input, but not sure what value.

note: changing the current resistors will be a pain in the ass. So i hope that the analog input will also work.

Connect R1 to 5volt.
Connect R2 to 3.3volt.

or

Connect both to 3.3volt, and change R1 to 470 ohm.

or

Put an extra 1k resistor across R1.
Leo..

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