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)
Answer
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.
No comments:
Post a Comment