earth loop through usb - Page 1
Forum section: electronics / beginners

author: V_King
author_rank: Regular Contributor
timestamp: July 10, 2013, 12:48:20 pm
content: Hello,been following the website for a while, there is a lot of useful information. Got a question, which can not find an answer for.I am a mechanical engineering student, and try to tinker with elecronics on my spare time.I am trying to automate the old mini mill into cnc machine using arduino mega and have a dilema with the earth loop through the USB cable, used to pass data to the PC.uC is housed in steel box, which is earthed. All the cables to the linear displacement transducers have single earth to the same steel box. I draw a rough diagram to ilustrate the situation.Should I unsolder the USB ground casing from the uC, to prevent the earth loop? Any common practices in such situations?Cheers

author: bilko
author_rank: Frequent Contributor
timestamp: July 10, 2013, 01:45:16 pm
content: To prevent earth loops you need star point earthing. Make sure that all of your earth cables terminate at the same earth stud, this will go a long way in reducing earth loops.

author: ivan747
author_rank: Super Contributor
timestamp: July 10, 2013, 01:51:28 pm
content: Remember the grounded USB shield must only be grounded at the host. It is left disconnected on the device. Of course, the grounds must be joined (you must connect the GND pin, the black wire on USB cables).

author: bilko
author_rank: Frequent Contributor
timestamp: July 10, 2013, 02:03:02 pm
content: Quote from: ivan747 on July 10, 2013, 01:51:28 pmSo instead of the shield carrying the earth loop, it now travels through the black wire (which is still connected to ground) ?If both chassis are star earthed and connected with substantial earth cable, they will be at the same earth potential so no current will flow through the USB ground. Ohms law, impedance of the ground cable should be substantially less than that of the USB cable shield. Disconnecting the USB ground will lead to other EMI problems.

author: V_King
author_rank: Regular Contributor
timestamp: July 10, 2013, 08:17:46 pm
content: thanks for answers everybody.I want to achieve star point earthing - transducers and communications to the motors inverters cable shields are connected to the steel casing (electric box). The whole casing is mounted to the mill chassis and grounded to the earth to single point.That's were the USB cable confusion arose - as if you check the cable shield and the PC mains power earth connection, they have direct connection. So if I would connect the USB cable to uC in the steel box, I would have a second earth.Would it be a good idea to buy an isolated usb panel socket, mount it to the steel box and inside only run the data wires, isolating the uC from the shielding? As I understand the steel box, I mounted all the electronics into, works as shield (I am using a typical steel box for electronics, which are used in industrial machinery).

author: IanB
author_rank: Super Contributor
timestamp: July 10, 2013, 08:27:27 pm
content: You said the steel box is earthed--is that the mains protective earth? If so, it should be common with the PC mains earth connection. As long as both the PC and the steel box are earthed at the same local mains supply, then they should share a common ground reference and excess voltage differentials should be avoided. It is common to make USB connections between PCs and peripherals like printers with separate mains cords, so there is no strong reason to expect trouble as long as you follow normal wiring conventions.

author: bilko
author_rank: Frequent Contributor
timestamp: July 10, 2013, 08:40:49 pm
content: Quote from: V_King on July 10, 2013, 08:17:46 pmIt doesn't sound like you have a star earthed system.All earth connections should go to the same earth stud/busbar which is isolated from the machine.Machine earths should connect to this same earth stud/busbar.Only one earth lead from the busbar to the mains earth connection.Anything else will introduce ground noise.USB connections are quite critical, especially anything faster than USB1. Check the specifications, but if you isolate the shield, how are you going to stop the shield from behaving as an antenna, injecting noise into the data wires ?

author: V_King
author_rank: Regular Contributor
timestamp: July 10, 2013, 10:15:07 pm
content: Am I over-engineering here? The mill is tiny, run of the single phase mains. Mill and pc are connected to the same mains socket. I don't exactly know where the main earth connection goes behind the mains socket.In one of the IET local meetings, one old-timer was sharing his experience with most common mistakes in control engineering, and he was very serious with ground loops. But he comes from designing control systems for big plants, where you have big distances for data signal lines etc.There are two reasons I am interested in this. Firstly, I want to learn the correct way of approach for the future projects. Secondly, the mill is at the moment at mates workshop in industrial estate with plenty of noise sources, so it would be good to remove at least one variable as I have some minor noise issues with analog signals.

author: Monkeh
author_rank: Super Contributor
timestamp: July 10, 2013, 10:27:45 pm
content: You're over-thinking. You won't have any ground loop issues there.

author: IanB
author_rank: Super Contributor
timestamp: July 10, 2013, 10:30:46 pm
content: USB is used all the time to connect between two devices with separate power supplies. For example between PC and printer, or between PC and USB disk drive.Just make sure you read up on the conventions for USB device and cable wiring and follow the documented standards for what ground connections should be made where and you should be OK. If the mill and PC are connected to the same mains socket they will share the same earth reference potential. Unless you are unlucky or do something daft you won't have any problems.

author: V_King
author_rank: Regular Contributor
timestamp: July 10, 2013, 11:51:30 pm
content: thanks very much for the replies. I do sometimes over-thinkAny recommendations for good reads about wiring conventions?

author: IanB
author_rank: Super Contributor
timestamp: July 11, 2013, 12:40:23 am
content: Quote from: V_King on July 10, 2013, 11:51:30 pmhttp://www.usb.org/developers/docs/