Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPIO 14 does not stay high on power up (Pi Zero W version 1.1) #32

Closed
svenyonson opened this issue Apr 18, 2018 · 26 comments
Closed

GPIO 14 does not stay high on power up (Pi Zero W version 1.1) #32

svenyonson opened this issue Apr 18, 2018 · 26 comments

Comments

@svenyonson
Copy link

I have disabled the serial port, although the raspi-config menu has changed for Raspberry Pi W version 1.1.
Instead of Advanced, you have to use Interfacing Options->Serial.

Testing by leaving EN unconnected and inserting the battery to turn on the Pi W, and with a voltmeter on GPIO 14 ( pin 8), the pin goes to 3.3v as soon as it powers on, but then goes low again after a second or two. So, when the power up/down circuit is implemented as described in the README, it does not latch in the power up state. I'm looking at the meter now, after the Pi has been running for about 5 minutes, and the voltage is .75 volts.

@svenyonson
Copy link
Author

Raspbian version 9 (stretch)

@svenyonson
Copy link
Author

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.

@NeonHorizon
Copy link
Owner

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?

@svenyonson
Copy link
Author

svenyonson commented Apr 18, 2018 via email

@svenyonson
Copy link
Author

svenyonson commented Apr 19, 2018 via email

@NeonHorizon
Copy link
Owner

It is in the README?
Step2 in the software setup.

@svenyonson
Copy link
Author

svenyonson commented Apr 19, 2018 via email

@NeonHorizon
Copy link
Owner

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.

@svenyonson
Copy link
Author

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.

@svenyonson
Copy link
Author

Now I am heading into dangerous territory, as I only have a slight clue as to what I am doing.
lipopi_schematic_powerboost_q

@NeonHorizon
Copy link
Owner

Transistor is the wrong way around I think, should be pointing downwards.

@svenyonson
Copy link
Author

Whoops, I was disoriented. Yes, upside down. I have the transistors on order, I'll try it out then.

@svenyonson
Copy link
Author

Another suggestion I received on electronics.stackexchange does the EN pulldown through the UART. Not sure if this would work, but interesting idea:
image

@NeonHorizon
Copy link
Owner

Yes that may well work.

@svenyonson
Copy link
Author

No, don't think so. Powered off, there is 29M resistance between UART Tx and Gnd.

@NeonHorizon
Copy link
Owner

Yeah that sounds to high for the pulldown to be active, the integrated pull up/down resistors are like 50k I think.

@svenyonson
Copy link
Author

svenyonson commented Apr 24, 2018

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.
lipopi_schematic_powerboost_final

@NeonHorizon
Copy link
Owner

Awesome!
Would you be prepared to do a pull request to include it in the project?

@svenyonson
Copy link
Author

svenyonson commented Apr 24, 2018 via email

@svenyonson
Copy link
Author

I have a branch to push for a pull request, but I don't have write access

@NeonHorizon
Copy link
Owner

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?

@svenyonson
Copy link
Author

svenyonson commented Apr 25, 2018 via email

@NeonHorizon
Copy link
Owner

@svenyonson
Copy link
Author

svenyonson commented Apr 25, 2018 via email

@svenyonson
Copy link
Author

svenyonson commented Apr 25, 2018 via email

@NeonHorizon
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants