Giter VIP home page Giter VIP logo

Comments (26)

svenyonson avatar svenyonson commented on July 20, 2024

Raspbian version 9 (stretch)

from lipopi.

svenyonson avatar svenyonson commented on July 20, 2024

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.

NeonHorizon avatar NeonHorizon commented on July 20, 2024

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.

svenyonson avatar svenyonson commented on July 20, 2024

from lipopi.

svenyonson avatar svenyonson commented on July 20, 2024

from lipopi.

NeonHorizon avatar NeonHorizon commented on July 20, 2024

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

from lipopi.

svenyonson avatar svenyonson commented on July 20, 2024

from lipopi.

NeonHorizon avatar NeonHorizon commented on July 20, 2024

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.

svenyonson avatar svenyonson commented on July 20, 2024

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.

svenyonson avatar svenyonson commented on July 20, 2024

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

from lipopi.

NeonHorizon avatar NeonHorizon commented on July 20, 2024

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

from lipopi.

svenyonson avatar svenyonson commented on July 20, 2024

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

from lipopi.

svenyonson avatar svenyonson commented on July 20, 2024

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

from lipopi.

NeonHorizon avatar NeonHorizon commented on July 20, 2024

Yes that may well work.

from lipopi.

svenyonson avatar svenyonson commented on July 20, 2024

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

from lipopi.

NeonHorizon avatar NeonHorizon commented on July 20, 2024

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

from lipopi.

svenyonson avatar svenyonson commented on July 20, 2024

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

from lipopi.

NeonHorizon avatar NeonHorizon commented on July 20, 2024

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

from lipopi.

svenyonson avatar svenyonson commented on July 20, 2024

from lipopi.

svenyonson avatar svenyonson commented on July 20, 2024

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

from lipopi.

NeonHorizon avatar NeonHorizon commented on July 20, 2024

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.

svenyonson avatar svenyonson commented on July 20, 2024

from lipopi.

NeonHorizon avatar NeonHorizon commented on July 20, 2024

Does this help?
https://help.github.com/articles/creating-a-pull-request/

from lipopi.

svenyonson avatar svenyonson commented on July 20, 2024

from lipopi.

svenyonson avatar svenyonson commented on July 20, 2024

from lipopi.

NeonHorizon avatar NeonHorizon commented on July 20, 2024

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)

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.