@Robert93820 this box was “charge only”
I actually had some second thoughts overnight about my “give up” stance!
I am still suffering from being pulled in too many different directions on this and consequently losing focus… but… your comment that the “LiPo” box is charge-only puzzles me, as waaaaay back, I did a test. I actually have code to monitor VBUS on the Pico, and if USB power is disconnected for, say, 3 minutes, my system would do an orderly shutdown, all whilst running off the LiPo battery. THIS WORKED! (Well, unless I am really losing my marbles…which is a definite possibility, so I better retest this, hey
)
The other misgiving I have about abandoning my plan is this: I have always intended to have a secondary box, housing things like 24V transformers (to drive a solenoid), relays, 5V P/S, some other bits’n’pieces - but NO 240V GPO outlet for plugging a USB charger into… and feed all the necessary wires into my Pico box, which kinda needs to be close to the top of my tank, for I2C length issues if nothing else, whilst the secondary box needs to be closer to the ground for other reasons.
Bottom line: I am mentally exhausted from the last week…(working until 4AM on PCB design didn’t help!), but will likely persist with this a bit yet - even if I drop the LiPo, surely using the Raspberry-supplied circuit for adding an external supply, as per the Pico datasheet, should be feasible?
PS One of the other contributing factors to mental exhaustion was my battles with an obstinate KiCAD issue… in the end, I started a new KiCAD project, dropped in a minmal set of components (A Pico, an op-amp) and an external power connector, with +ve pin on the VDD net. Pico Pin 40 was labelled VDD Everything was fine… I could run a trace from VSYS (Pin 39) to my opamp pin 4, on the VSYS net. Great.. it all works as expected… so, the question is, why, in my pump project KiCAD simple refused to run a trace from Pin39/VSYS to my other VSYS net? That’s right. No mistake.
So, I thought, I’ll now make my pump project schematic “more like” my little test circuit. This meant changing my VCC net name to VDD, which is what Pin 40 is labelled on the Pico footprint. And, I think that is the ONLY significant change I made… and KiCAD was then perfectly happy to route Pin 39 to my op-amp etc. on VSYS Go Figure!!
Anyway… that’s another little “learning”, I guess, but it sure was driving me to despair!
I might take a wee break from this… I have other Python programming to add a SLEEP mode (so I don’t keep sampling my water level every 5 seconds, and pipline pressure every second) when I really don’t need to!)
Thanks again for sticking with me on this
Cheers, T.