Comments (6)
@karlahaiat See "A Simple Press (no hold) Power Up Version" here: Power-up/power down
from lipopi.
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.
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.
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.
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.
from lipopi.
Related Issues (20)
- Auto Power on part Deux HOT 26
- low battery light always on HOT 2
- using other pin than 14 HOT 1
- EN pin on Vs instead of Bat ? HOT 3
- Configuring the serial port without raspi-config HOT 1
- Recommended code change HOT 8
- Hold button 3 seconds to shut down HOT 1
- step 13 not working. Pi powers off when releasing button HOT 4
- error during run process HOT 1
- Wiring from PowerBoost 1000c to RPi 3 B HOT 1
- Is it possible to use other pins that are not UART? HOT 2
- Why is wire to GND needed? HOT 11
- Using other DC-DC converters HOT 1
- Connecting LBO directly to a GPIO pin HOT 1
- Bateria Raspberry
- Variant for reusing switch for soft powerdown HOT 9
- Power down while charging => immediately off HOT 6
- On-Off switch suggestion HOT 2
- Remove transparency from diagrams HOT 1
- Hum noise HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lipopi.