I am trying to setup an arduino so it can detect an AC where it only has access to one pole.
(kind of like these "electricians screwdrivers" that you put in one of the connections of an electric outlet, and then it lights up by completing the circuit through the users body)
I have access to a simulated ac power source, a pin from a different controller with a different power source that is toggled between high and low every 10ms.
Now, when I connect the arduinos analog input and gnd to the ac power source, and print out the value of it every 5ms to the serial monitor of the arduino, all i get is zeros.
However, I know that current is flowing, because when I put a buzzer between the one ac pin and the arduinos gnd, I hear a sound from the buzzer.
Why am I not detecting the current here? Do I have to build my detector differently? below is a simplified drawing of my setup.
(Sorry I am not an electrical engineer, please forgive the limited language and knowledge)