4
\$\begingroup\$

I do power the Raspberry via a 5V USB charger. The Arduino is soldered into a different circuit and is powered from a 24 V circuit via a 5V charge regulator. Both will be connected to the same 230 V power circuit. Is it safe to connect both serial grounds together ? Or is it possible to create a ground loop ? As far as I understood, both devices have to share common ground if serial connection should work (without optical isolation) ?

This is the circuit with the Arduino. The pins on the upper left are the output of the relais. The 6 head pin is made for the control over the relais card. It is essentially a controler for a 8 port valve (IMV-8, Pharmacia)

enter image description here

\$\endgroup\$
1
  • \$\begingroup\$ Post your schematics, if no galvanic isolation then they must be referenced at same ground somehow, but you take the risk to burn everything that is connected. \$\endgroup\$ Commented Jan 19, 2016 at 9:20

2 Answers 2

8
\$\begingroup\$

Generally your power supplies will be isolated from the mains, and generally it's safe to connect the ground of the circuits together.

If you have a concern that they are not isolated, get new power supplies that are, or perform this test:

Connect the two grounds via 100k ohm resistor, then plug them into the mains. Using a multimeter, test the voltage drop across the resistor. If there is a drop larger than a few millivolts, then you will likely be running a ground loop that will cause problems. If there's a very, very small drop then you'll be running a ground loop, but it will probably be acceptable. If there's no drop then you will have no problem.

If you do have a small drop, you can limit the ground loop current with a resistor, and may still be able to have good communications depending on the ground loop signal, but you'd need to do more testing or use an oscilloscope to determine the nature of the ground loop.

Note that you'll want to test for both DC and AC voltage drop.

Also, by plugging into the same phase and ground you'll probably find this test works even if the supplies are not isolated, but if you later connect them to separate phases or grounds you'll have problems. Just keep this in mind if you ever extend your communications line or use these in a different way than currently used.

There are isolated communication methods that will help you if needed, but they will require additional hardware.

\$\endgroup\$
2
\$\begingroup\$

It depends on your power supply. If either your USB charger or your 24V circuit is powered with an isolated power supply, this would not create a ground loop.

Nowadays devices exsist that are not isolated, but have a ground potential a diode drop higher than the neutral line (e.g. some switch mode power supplies, or PC power supplies).

An easy way to check wheater the devices are isolated, is to do a continuity check between both GND pins (or to measure the resistance between the 230V mains pins and the GND, this should be in the order of megaohms. Be careful to not measure this when connected to the 230V line!!).

\$\endgroup\$
5
  • \$\begingroup\$ How to I find that out. I do use standard chargers. \$\endgroup\$
    – Moritz
    Commented Jan 19, 2016 at 9:48
  • \$\begingroup\$ Just added it to my answer ;) \$\endgroup\$
    – Douwe66
    Commented Jan 19, 2016 at 9:50
  • \$\begingroup\$ By the way. The continuity check might not be the best option. Maybe you can better measure the potential difference (voltage) between both grounds when plugged in. However it can be hard to distinguish between noise (changing voltage in mV range when the GNDs are not connected, and a low potential/voltage difference between the GNDs) \$\endgroup\$
    – Douwe66
    Commented Jan 19, 2016 at 10:16
  • \$\begingroup\$ Would an ADC with 10 MOhms Impedance be enough to do that ? \$\endgroup\$
    – Moritz
    Commented Jan 19, 2016 at 11:01
  • \$\begingroup\$ What do you mean with ADC? Also take a look at Adam Davis' answer. It's very useful! \$\endgroup\$
    – Douwe66
    Commented Jan 19, 2016 at 11:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.