A Pi Gotcha that got me!

Forumite Members General Topics Tech Makers & Builders Raspberry Pi A Pi Gotcha that got me!

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4557
    Ed PEd P
    Participant
      @edps
      Forumite Points: 39

      In my innocence I thought that all the GPIO pins would go low at boot-up. I was wrong I should have listened to the old mantra — RTFM. In fact because of the way Broadcom have set out the chip spec there is little apparent logic to the assignment. Page 102 of this LINK gives the assignments should you ever need it.

      For those who wonder why anyone would want to have a pin start low, it was driven by a need to force a switched safe shutdown for those who are careless (my family) and this neat little Adafruit switch that pulls the plug when the KILL pin connection goes high. (set high by another push switch switch triggering non-power shutdown code  then code in the rc6.d power-off section). I was patting myself on the back for a neat little arrangement only to be gutted by it failing to start-up at all! After the usual check of every connection in sight I finally RTFM.  😥

      #5799
      Ed PEd P
      Participant
        @edps
        Forumite Points: 39

        I found a more straight-forward reference to the Pi boot state which also covers the very different functionality of some pins between the various Pi incarnations.I needed this for a Adafruit Pushbutton power switch which incorporates an off/kill function that kills everything when it goes high. I therefore needed a gpio that would be low at boot state and stay low until otherwise programmed.

        You will find also this particularly useful for wiring up some of the very small Pi screens (<3 inch) which came out in the early Pi days.

        GPIO link

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.