Hi everyone, I'm trying to build a PSU for an x-ray tube. I have already built and tested the HV part of the circuit and it works, but the problem is that I'm not very confident about grounding everything. I have to do it because the PSU of the filament is a XL4015 module bought on eBay, so it's not an isolated PSU.
However, the HV PSU that outputs 5kV is isolated, I made the transformer myself and I used epoxy as insulation, also the tube and voltage multiplier will be submerged in dielectric oil, so in theory if I do the grounding as presented in the picture, I should have no problem, but since the voltage is high and so is the frequency, I don't know if it's a good idea to connect one leg of the 5kV transformer to the (-) of arduino and ground them all.