Open stevenfagg opened 3 years ago
I too would like information on the external button. I put my V3P into an enclosure and would like to have a power button on the outside. I haven't yet probed anything and I haven't updated the firmware yet either.
If I figure anything out I will post it here.
i'm also trying to find documentation for the v3p model, google searches are coming out dry though 😕
i found the aliexpress listing for the v3p model and it comes with a self locking switch ( https://www.aliexpress.com/i/1005002374340811.html ). theres no information about the switch, but from how its plugged in, the ext btn header should act like an external switch, despite what is written on the board. my tests show that as long as SW+ and ground are shorted it will act as if the switch on the board is at the on position
@rullinoiz Interesting looks like you need a latching button then. Also looks like black and red means you could have a button with LED. Neat.
The project I was working on that used the battery has been stagnant for a few weeks but when I pull it back out I will plug something in and see what happens.
So I can confirm bridging the SW and GND pads does power the UPS. I thought I had read about a safe shutdown where when you turn the unit off that the pi completes its normal shutdown procedure and that doesn't appear to be the case. I will have to try to find where I originally read that information. Seems like there would need to be a few sensing lines between the UPS and PI for that to actually work.
@a7hybnj2 im pretty sure the safe shutdown feature is if the battery runs out, it'll send a signal through the serial pins to the pi telling it to shutdown, that way it doesn't corrupt anything
@ rullinoiz for a safe shutdown GPIO18 (shutdown_pin = 18) on the Raspi and STA on the UPS board is used and not the serial interface (RX/TX -pins).
The serial interface is currently used for FW updates and gimmicks, which will not be used in later operation.
@hoffmakl1961 Cool, I just looked at the python file and saw that. Very cool. I think it would be smart to implement that for my project.
It looks like it just prints maybe to stdout that it is shutting down. I think I will add an actual popup maybe with tkinter or something easy.
I use a UPS board RPI UPSPACK Standard V3P board with the firmware: SmartUPS V3.2P and shutdown_check.py.
With this all basic functions of a UPS are available
For me, the Raspberry should always be in operation. What I have tested so far, everything seems to work.
It would make sense to add it, but it is not part of the function of a UPS: When the Raspberry is powered up and SW+ is triggered: That a signal is sent to the Pi to shutdown_pin = 18 (GPIO18) and the Raspi shuts down. When the Raspberry is shutdown and SW+ is triggered: That the Raspi boots again. But only if the LiPo battery is charged enough to shutdown safely.
I have a latching switch with LED bodged to the external switch connector. Anyone know the name of the plug type required for the external switch / LED socket?
I just when through probing and connecting to this interface (using this with this connector)
It's a PH2.0 4 pin interface. Shorting the SW+ and GND (pins 3-4) turn the power on, then provides 5V between the LED+ and GND (pins 1-2).
Thanks for the pointer @rfep2016 . Here some feedback on my implementation for anyone that like to do something similar.
I got this board: It include a Jst 2.0 Ph 4 Pin male connector: 1: LED+ 2: GND 3: SW+ 4: GND
I used the same female connector that @rfep2016 used
Finally, I got this button . The button had 4 pins: C, NO, NC, + and -
I connected them this way: pin 1 to + pin 2 to - pin 3 to C pin 4 to NO
And It all works nicely.
I recently bought the V3P version off of Amazon. I finally found some information which linked me to this git repo with information regarding it. However, there appears to be no information on the V3P version which comes with an EXT BTN header. I found this listing on xm680.com (https://www.xm680.com/goods/597160727755) for the exact version but I'm still none the wiser as to what I can do with the header and a button attached to the UPS.
Also, when running the UPS_GUI_demo.py demo application, it runs for about 6 seconds and then an exception is thrown:
When running minicom (and turning wrap on other wise all I see are $ signs at the far right of the window) I see the following continually being received:
$ SmartUPS V3.2P,Vin GOOD,BATCAP 100,Vout 5250 $
so in theory the UPS_GUI app should work but is failing.Also, there doesn't seem to be anything in the above output which would identify if the button (plugged into EXT BTN) had been pressed.