You did not specify what toolset you are using to compile/develop your program, but if it were Arduino (which I assume being not the case), you could...
If the frequencies are multiple integers as you said (2x, 4x, 8x) and if the output lowpass filter circuit is properly sized, at first sight there is...
As clearly stated there, it is a transformerless circuit designed to do the same job of a current transformer, so it has the same issue regarding the...