Hello, I am a beginner in eletronics and started working with an esp32 for a project. In the project I have to connect an esp32 to a hall sensor, however due to the sensor's voltage (5V) I have to use a voltage divider. I saw a post here that explained how to voltage divide a 5V sensor to an esp32, but I didn't understand which sensor's pins (beyong GND) I should connect to the voltage divider. The sensor is a KY-035, and I am using a 10k and a 5.1k resistor to voltage divide.
That seems right, assuming the sensor is powered by 5V... 5V x 10/(10+5.1) = 3.3V.
But the datasheet for the actual AH49E sensor says it works 3 - 6.5V so if you run it from 3.3V a voltage divider shouldn't be necessary.
1 Like
The left pin is output. Connect in series with 2 resistors, the voltage divider.
Oh well, DVDdoug have a good point there.
Oh really? Okay, thanks bud!
like this:
or as already said just run the sensor from 3.3V
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.