Adding power switch without removing GPIO ribbon

13»

Comments

  • This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.

    The dtoverlay statement must NOT contain any space(s).

    E.g. dtoverlay=gpio-shutdown,gpio_pin=33

  • That makes sense, what doesn't make sense is in the picture I provided I had dtoverlay=shutdown and still is now working and messing with the I2C

  • edited June 2021

    Not quite understand the current problem you are having, let’s be sure

    • With dtoverlay=gpio-shutdown

    Pressing the momentary switch (wired between Pin 5 and 6) does not initiate a shutdown process but just stops the I2C momentarily.

    If you have another device using the I2C, it would be an expected behavior. You need to specify a different GPIO pin to initiate the shutdown.

    • With dtoverlay=gpio-shutdown,gpio_pin=33

    Pressing the momentary switch (wired to GPIO33 and GND) does not initiate a shutdown process.

    You might be mixing up bewteen GPIO pins and Physical/Board pins. And only GPIO0 to GPIO27 are lead out to the 40-pin connector. So, GPIO33 is not easily accessible. If you’re meant to connect a momentary switch to the Physical/Board pin 33 (GPIO13), then you should specify it as

    dtoverlay=gpio-shutdown,gpio_pin=13

    Hints: You can type pinout in a terminal window to display the 40-pin GPIO header's pinout description.

Sign In or Register to comment.