Hello,
im trying to connect an inductive proximity sensor which is rated for 6-24 Volt and i will supply 12 Volts.
i am trying to read its signal through an arduino digital pin. It produces 300 ma when the sensor detects something.
My question is : Can i use , diodes resistors or transistors, or anything else, to safely read it through arduino?(is voltage divider a good solution? do i have current protection with it?)
Thanks in advance
For a PNP NO sensor you need to use an appropriate voltage divider from the output to ground. For 12V power, a (roughly) 3:1 divider will work. Don't forget to connect the sensor power supply ground and the Arduino ground together.
Hello and thanks for your quick reply!
Is a voltage divider safe considering the high current that is produced by the sensor?
do I need any diodes?
Is it stable? ( the temperature of the resistor changes the Ohms)
do I need a lot of ohms eg100k or 100ohm
Current is drawn by a load, it is not forced by the sensor. The 300 mA reported by the seller is the maximum current that is permitted, otherwise the sensor will be damaged.
With a 12V supply for the sensor, the above two resistors are all you need to get it working and be safe.
Thank you sir,
I was thinking of optocoupler or regulTor or even amplifier, but I’ll go with the voltage divider!
coffeered:
Hello and thanks for your quick reply!
Is a voltage divider safe considering the high current that is produced by the sensor?
This is where knowing that V=IR is important.
If the sensor could push 0.3A through a 22k resistor, it would be needing 22000 * 0.3 = 6600 volts!!
It only has 12V available, so it can only "push" 12 / 22000 = 0.54mA at most..