Giter VIP home page Giter VIP logo

Comments (6)

jsinkers avatar jsinkers commented on August 21, 2024 1

@karlahaiat See "A Simple Press (no hold) Power Up Version" here: Power-up/power down

from lipopi.

NeonHorizon avatar NeonHorizon commented on August 21, 2024

The GPIO 14 (UART TXD) is the only pin which goes high at power on and low at power off. If you check the issues, others have used different pins but they have to write a script to make the GPIO high and hold the power button down until the Pi is booted.

from lipopi.

jsinkers avatar jsinkers commented on August 21, 2024

There are a number of pins that boot to HIGH. e.g. for rpi0 BCM2835 Arm Peripherals 6.2 Alternative function assignments indicates the pins that go high at power on are:
* GPIO/BCM: 0, 1, 2, 3, 4, 5, 6, 7, 8, 34, 35, 36

So these pins should be able to be substituted for UART. Obviously some of these pins have other functions that you may not want to interfere with so it's up to you to pick which one works.
I'm not sure if this is the same for other rpi's - you will have to check the documentation.

I am using pin 5 at the moment and I don't have to hold the power button down for it to start up.

But there is another change necessary to ensure that the pin goes low on power down, here I used the power-off dtoverlay.
bash $ sudo nano /boot/config.txt`
Add the following line:
dtoverlay=gpio-poweroff,gpiopin=5,active_low="y"
Replace "5" with whichever power_disable_pin you are using.

This worked for me - hope it helps.

from lipopi.

NeonHorizon avatar NeonHorizon commented on August 21, 2024

There are other pins which boot to high but they don't go high straight away and stay high until the end of shutdown as far as I know?

from lipopi.

jsinkers avatar jsinkers commented on August 21, 2024

I should have mentioned this is using the RC power up/power down circuit. The RC response gives enough time for the pin to go high. The dtoverlay ensures the pin goes low to disable power at the end of shutdown.
People have used scopes to examine this behaviour here: https://www.raspberrypi.org/forums/viewtopic.php?t=201483

from lipopi.

jsinkers avatar jsinkers commented on August 21, 2024

from lipopi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.