Hi all, thanks for all the input
allanhurst:
Connecting electronics directly to the mains supply is always fraught with difficulties.... perhaps you could have a go at a circuit diagram?
I actually spend a good 30 mins drawing one on a web app, only to have it shutdown, delete my work and ask me for a paid account, before I could save the circuit.
Paul_KD7HB:
How are you powering the Arduino? If you are in the USA, the hot tub MUST be on a GFI protected circuit, unless you wired it up yourself. So, the Arduino power must be on the GFI protected circuit, as well.
Essentially, I'm tapping the 5V PS for the arduino into the mains lines going to the transformer in the main controller. That line is already connected to a GFI for the pump.
Grumpy_Mike:
Can't see that follows, my background is in Physics also.
So given all the concern above I will add another one. How do you know that the FET on your board will turn on with 5V? That voltage will only work if you have a logic level FET. If you have a normal FET you will need to drive this to 10V.
Also by having two signals going to the same FET what happens if one is HIGH and the other is LOW? Something melts that is what happens.
I've never had to draw complex circuit diagrams, so many of the symbols are new to me. Knowing the difference between a FET and a JFET on sight is not easy.
As for the FET turning on, I measured 4.91V to the gate when it triggers the relay. I have no clue if it's a FET a JFET or whatnot. It's a 3 terminal SM component covered in varnish making it unreadable. Just assumed it was a FET.
To protect agains the HIGH and LOW being sent at the same time, I have two Schottky diodes in place to stop either the arduino's HIGH reaching the original IC's low, or vice versa.
MarkT:
The oscilloscope will see ac waveform due to stray capacitances with the mains. The multimeter sees
just the DC offset.
If at least one supply is isolated, common the grounds. If not, you use opto-isolations.
To test if a supply is isolated, disconnect, measure resistance between mains neutral and output ground,
it should be inifinite if isolated.
Note even an insolated supply can deliver a measurable AC current due to capacitive coupling, it can be
enough to be easily felt.
Since this is involving water I would expect all the supplies to be earthed and it seems sensible to earth your
low voltage ground to the same point.
AFAIK, there is galvanic isolation, since one of the supplies is off a transformer. I'm just uneasy connecting things when I measure such voltages between the two grounds...however, I might just try what dlloyd suggested...I just assumed this would already be happening with the scope's impedance, but maybe it's not "draining the stray capacitance" fast enough. As for earthing the ground, that involves earthing the original circuit's transformer too...wouldn't that trigger the GFI?
Thanks for all the help, I guess I'll give it a go with a resistor and see.