I have a project where I need to read 0-18 Volts AC in Arduino's input (0-5V DC).

So I did a circuit with a diode (half wave bridge), voltage divider, and a RC circuit where I tested some values for the RC part where the speed of the AC to DC converted voltage were enough for me.

Three levels of AC voltage are sent in these terminals depending on button presses (18, 17 and 16V).

I wired my circuit directly over the AC terminals and got readings that varied from 1 to 3V DC, which are enough for me to read in Arduino

When I connected the circuit to Arduino, I grounded one of the AC terminals (the one where the diode blocked current flow) to Arduino's ground.

When I turned on the circuit, connected to Arduino, a fuse on the AC line blew, like there was some short circuit.

So, my question is: How to ground this separate AC circuit to my Arduino, in order to be able to read this converted/lowered voltage? Did I wire it wrong, according to the schematics? How should I correct it?

Edit1: This AC line is a secondary in a big transformer that outputs different voltages. Is there a possibility of any of these two wires not be grounded?


  • \$\begingroup\$ AC supplies usually come with baggage and, some of that baggage might be that one of the wires is already grounded somewhere and you picked the wrong one to ground. \$\endgroup\$ – Andy aka Jan 30 at 17:42
  • \$\begingroup\$ Does the xformer have a ground pin on the line side? Check for continuity to that from the secondary side. You may need to isolate your circuit using either a isolation transformer, or a USB isolator (assuming from your diagram that power is from USB). \$\endgroup\$ – Aaron Jan 30 at 18:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.