0

I am using an inductive proximity sensor having an operating voltage of 5V with raspberry pi 3B+. Sensor has been given 5V from Pi. On sensing metal, output of this sensor is approximately 4.5-5Volts. I have connected this output to one of GPIO pins of raspberry pi. Raspberry Pi is working fine. But as per specifications, Pi can not tolerate voltage above 3.3V. I am not getting how could GPIO pin tolerate voltage above 3.3V. Is this possible?

6
  • 2
    Yes, but only once. After that the GPIO pin is broken at best or the Pi dead at worst. If you are lucky, the Pi lives in a state where you think everything is fine but will encounter random crashes and kernel panics. This did happen to me after I provvided a 5V signal to a GPIO pin.
    – kwasmich
    Mar 13, 2020 at 7:13
  • 4
    Use a logic level shifter to avoid such problems.
    – kwasmich
    Mar 13, 2020 at 7:14
  • 1
    @kwasmich... That's why I am confused. Pi should be dead the moment it gets above 3.3V. I am using this sensor with Raspberry Pi since 9-10 months. I am surprised that Raspberry Pi is working fine without any issue. Still I will use voltage divider to avoid any sudden crash. Mar 13, 2020 at 7:25
  • 2
    It is like getting a bullet into the head. Some live on happily, some show signs of brain damage right away and some are instantly killed. Just because your Pi still works, does not mean that nothing went wrong. Just don't consider your Pi 100% reliable any more. Anyway it also depends on the exact output signal - is it a short pulsed one or a constent high like in PIR motion sensors; what is the resistence of the wire and so on. All those factors have influence on the outcome of such a small mistake.
    – kwasmich
    Mar 13, 2020 at 7:31
  • 1
    @kwasmich... Thanks for your reply and such a relatable example of bullet in head. Mar 13, 2020 at 7:38

0

Browse other questions tagged or ask your own question.