Comments (26)
Raspbian version 9 (stretch)
from lipopi.
Ok, testing now, but it appears that UART RX stays high when powered up. I will reimplement the power up/down circuit using GPIO 15 and see if it works. The pin is constant at 2.47v which seems enough to keep EN happy.
from lipopi.
Does RX go low again after shutdown though?
If it doesn't the circuit wont work.
Unfortunately they keep messing with the serial port settings and its almost impossible to keep up. I would keep trying different combinations until you find one that makes TX go high. Did you try the enable_uart boot setting?
from lipopi.
from lipopi.
from lipopi.
It is in the README?
Step2 in the software setup.
from lipopi.
from lipopi.
Ahhh sorry, I didn't realise you were looking at the power up/down version, thanks for the tipoff I've updated it.
I had a look at your circuit, I have to say I'm not great at RC networks either and there's a lot going on in that circuit so I couldn't say for sure if it would work but I can't see any harm that could come from trying?
The only possible issue I could see is theoretically there could be infinite current from bat through push button and diode to the capacitor during initial charging of the 4.7u. Its a small enough cap that it likely wont matter though but if you wanted to be really cautious you could put a small resistor, say 100 ohm between bat and the pushbutton just to keep it under control.
from lipopi.
Well, worth a try, but no luck. The 2M (actually 1.8M) is to much resistance to be an effective pull down resistor, and so EN never goes low. Somehow I need a way to isolate the RC network from EN such that it holds it high for the required period without letting the cap prematurely discharge through the 100K pulldown.
from lipopi.
Now I am heading into dangerous territory, as I only have a slight clue as to what I am doing.
from lipopi.
Transistor is the wrong way around I think, should be pointing downwards.
from lipopi.
Whoops, I was disoriented. Yes, upside down. I have the transistors on order, I'll try it out then.
from lipopi.
Another suggestion I received on electronics.stackexchange does the EN pulldown through the UART. Not sure if this would work, but interesting idea:
from lipopi.
Yes that may well work.
from lipopi.
No, don't think so. Powered off, there is 29M resistance between UART Tx and Gnd.
from lipopi.
Yeah that sounds to high for the pulldown to be active, the integrated pull up/down resistors are like 50k I think.
from lipopi.
I have a working solution. Very similar to your original, with the addition of a capacitor and I replaced the two diode voltage step down with a voltage divider - which actually reduced the component count because the 22K also serves the same purpose of the original 10K on GPIO 18.
So, press/release to power on. Capacitor keeps EN high for a bit more than 10 seconds so UART TX can stabilize. Press again to power off. After the Pi shuts down, EN keeps the powerboost on for an additional 8 seconds or so, but not an issue.
from lipopi.
Awesome!
Would you be prepared to do a pull request to include it in the project?
from lipopi.
from lipopi.
I have a branch to push for a pull request, but I don't have write access
from lipopi.
Yes thats correct, I can't remember how you do it exactly but I think you commit it to your own repo then make a pull request or something?
from lipopi.
from lipopi.
Does this help?
https://help.github.com/articles/creating-a-pull-request/
from lipopi.
from lipopi.
from lipopi.
Thanks for that!
Sorry it took so long to reply I've had a crazy week.
I'll also add you to the contributors list.
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.