A usual pattern is to use an optocoupler for this sort of interfacing. Allows to have the power supply of the sensor completely separated from the RPi. Be careful to connect the sensor in right polarity. Or use a IL250 as a replacement for the 4N25.I’m concerned about the output of the sensors frying my Pi.
Statistics: Posted by ghp — Sun Apr 21, 2024 5:51 am