Hey. Could someone give me some guidance regards to designing a circuit for proximity sensor. I am using STM32 microcontroller which is 3.3V and the proximity sensor is powered using 18V.
The link for the proximity sensor:
https://uk.rs-online.com/web/p/inductive-proximity-sensors/2811436/
https://docs-emea.rs-online.com/webdocs/1617/0900766b81617697.pdf
Is it possible that the output of the proximity sensor will be anywhere between 0 and 18V depending on how close the oebject is or the output will only have 2 states - either 18V or 0V?
Second question:
The proximity sensor above is using 3 wires, therefore I assume that 2 wires are used for power (VCC and GND) and the last one for the output. I am planning to use logic lever converter to convert sensor output to 3.3V logic:
I have found this example online, could someone advice me how to properly size the resistors for the application? I am not quite understanding why it has been chosen to use 100k Ohm resistor for the base of the transistors. I cannot identify what is the output current of the sensors or thats not relevant at all?
I have simulated the circuit using multisim live - seems to be working thought the output current is very small if that matters?
Any help is appreciated!
The link for the proximity sensor:
https://uk.rs-online.com/web/p/inductive-proximity-sensors/2811436/
https://docs-emea.rs-online.com/webdocs/1617/0900766b81617697.pdf
Is it possible that the output of the proximity sensor will be anywhere between 0 and 18V depending on how close the oebject is or the output will only have 2 states - either 18V or 0V?
Second question:
The proximity sensor above is using 3 wires, therefore I assume that 2 wires are used for power (VCC and GND) and the last one for the output. I am planning to use logic lever converter to convert sensor output to 3.3V logic:
I have found this example online, could someone advice me how to properly size the resistors for the application? I am not quite understanding why it has been chosen to use 100k Ohm resistor for the base of the transistors. I cannot identify what is the output current of the sensors or thats not relevant at all?
I have simulated the circuit using multisim live - seems to be working thought the output current is very small if that matters?
Any help is appreciated!