Skip to main content
added 192 characters in body
Source Link
Edin Fifić
  • 7.4k
  • 10
  • 29

You can do this without a voltage divider as well, either by using a Zener, an LED across the input with a resistor in series with the sensor, or place a Schottky diode from the input to the 3.3 V rail.
Here are examples:

schematic

simulate this circuit – Schematic created using CircuitLab

P.S.: It is not clear what type of output is on your sensor. If it's an NPN open collector, you could simply use a pull-up resistor to the 3.3V rail, as others have indicated in their answers.

You can do this without a voltage divider as well, either by using a Zener, an LED across the input with a resistor in series with the sensor, or place a Schottky diode from the input to the 3.3 V rail.
Here are examples:

schematic

simulate this circuit – Schematic created using CircuitLab

You can do this without a voltage divider as well, either by using a Zener, an LED across the input with a resistor in series with the sensor, or place a Schottky diode from the input to the 3.3 V rail.
Here are examples:

schematic

simulate this circuit – Schematic created using CircuitLab

P.S.: It is not clear what type of output is on your sensor. If it's an NPN open collector, you could simply use a pull-up resistor to the 3.3V rail, as others have indicated in their answers.

added 1 character in body
Source Link
winny
  • 16.8k
  • 6
  • 50
  • 71

You can do this without a voltage divider as well, either by using a zenerZener, an LED across the input with a resistor in series with the sensor, or place a Schottky diode from the input to the 3.3V3 V rail.
Here are examples:

schematic

simulate this circuit – Schematic created using CircuitLab

You can do this without a voltage divider as well, either by using a zener, an LED across the input with a resistor in series with the sensor, or place a Schottky diode from the input to the 3.3V rail.
Here are examples:

schematic

simulate this circuit – Schematic created using CircuitLab

You can do this without a voltage divider as well, either by using a Zener, an LED across the input with a resistor in series with the sensor, or place a Schottky diode from the input to the 3.3 V rail.
Here are examples:

schematic

simulate this circuit – Schematic created using CircuitLab

Source Link
Edin Fifić
  • 7.4k
  • 10
  • 29

You can do this without a voltage divider as well, either by using a zener, an LED across the input with a resistor in series with the sensor, or place a Schottky diode from the input to the 3.3V rail.
Here are examples:

schematic

simulate this circuit – Schematic created using CircuitLab