Hey Bob… thanks for this.
I’ve made progress… but my kit is now someone disassembled…i am desperately trying to lock things down, but am spread a bit thin. Not enough hours in a day (and night)
The significant change since my last post: I have indeed massaged the signal from the 5A CT sensor using 1/4 of a quad op amp (HC17902… simply because thats all I had lying around). Put a trimpot in-circuit so I can tweak the gain… and after putting an electrolytic across the output, I indeed have a DC signal that clearly transitions between two different positive voltages, depending on pump on/off state. Woohoo. Should be trivial from here on. That said, I will go back and review the links you sent. I have so many tabs open its not funny…over 60! Sheesh…
In my “ïdle” time, I’ve been teaching myself how to use fritzing, and am well advanced in documenting the circuits, breadboard etc. Planning on replacing the breadboard with a Makers project board, as the breadboard connections are just too flakey. Who knows … might even go PCB once everything settles down!
Next challenge is to read input from my main pump… which I am switching on/off via an opto-isolated mains relay, driven from a GPIO pin. All works just fine, my remainng challenge is reading the opto-isolated relay-is-activated detect signal. I think I am almost there… probably just need to use a pull-up on the input pin. Am trying to master the technique of detecting zero crossings on a pin… and use interrupts, but I suspect I won’t need such fancy stuff when I hook it all up again… with a pull-up. Once again… all I want is pump ON/OFF status confirmation… nothing more. This relay unit is currently connected via wires - it’s several meters from my Pico… I have a couple RF boards on order to go wireless… maybe next week.
This project has been a real learning exercise, forcing me to dust off my 55+ years electronics skills (or… lack of!), learn about Pico, Python, microcontrollers generally, fritzing (I did wonder about using LTSpice… but fritzing seems OK for what I need).
Along the way, I made some huge improvements in the ability of the laser distance sensor (VL53L1X) to detect water levels… I plan to write it all up when I’m done, maybe it will help someone else.
Many thanks for your ongoing advice!
T.