EMI is a disturbance generated by an EMI source that affects an electrical circuit through electromagnetic induction, electrostatic coupling, or conduction. The disturbance may degrade the performance of the circuit or even stop it from functioning.
In the case of a CNC system there are several EMI sources present in the forms of
Depending on your particular configuration and environment, you may experience some of the following symptoms:
You may notice that data transfer between the computer and the controller getting corrupted. You may notice feedback from the controller landing in your Serial log with missing sections, weird characters, etc. But you may also just notice this as the machine making weird moves or erroring out on known good gcode. EMI can corrupt the data being sent, as well as received to/from the controller.
Most computers will try and protect themselves from potential EMI damage but shutting down the USB port when it detects EMI exceeding certain voltage levels. You will see random disconnect events in the Serial log as a first clue, and you will loose connectivity to the machine. Usually you will encounter this while a router, spindle or dust collection is running, but when you turn those off and do an air-cut the issue does not appear.
EMI can cause Grbl to falsely think that the Hard limit switches has been hit (when you are sure the carriages did not touch any of the limit switches at the time of the Alarm) . This can largely be avoided by using Xtension Limit Switches with onboard RC filters
The easiest solution is to physically space EMI sources further away from any USB, Limit switch, and other low voltage signal cables: These include:
Avoid running power/motor cabling in the same bundle/cable chain/tubing as low voltage/signal wiring
An excellent way of clearing Spindle power cabling / dust extraction hoses away from the other low voltage wiring, is to add a Swing Arm to your machine: See https://openbuilds.com/builds/swing-arm.9678/
We offer our Xtension Limit Switches as a quick solution to any EMI related Endstop issues. These have an onboard RC filter and pullup-resistors to help filter away EMI that could be affecting your limit switches.
Many of the components on your CNC machine will need to be Earthed for your safety:
NB Never daisy-chain earth wiring: Wire all the Earths back to a central connection (Star-grounding), which is connected to Mains Earth - this also serves to protect you in case of an electrical leakage / short
An often overlooked source of EMI in the form of static electricity discharges, comes in the form of vacuum / dust collection hoses. Fast moving air molecules, material chips, and dust rubbing against the inside of the hose can generate quite a static charge. Once the charge builds up enough it can discharge to nearby metal frame, structures, or electronics. This shows up as typical EMI symptoms.
Ideally you want a dust-hose with anti-static features built in, but alternatively, you can run run a length of bare copper braid (or copper wire, but Braid is more effective) down the inside of the hose, earthing the side by the vacuum cleaner / dust collector. This will help dissipate any charges preventing some EMI issues.
An excellent way of clearing Spindle power cabling / dust extraction hoses away from the other low voltage wiring, is to add a Swing Arm to your machine: See https://openbuilds.com/builds/swing-arm.9678/
Using a high quality DC power supply, like our Meanwell PSU with PowerCase can help eliminate EMI conducted through the mains wiring from a VFD, Router or some other nearby AC EMI source.
You can purchase Ferrite cores from many online retailers, and electronics suppliers. They do wonders at suppressing EMI noise. You get a variety that can be clipped over existing wiring, which makes them really easy to install. You can clip these around any troublesome wires. Also, note high quality USB cables usually come with molded-on ferrite cores near the end. Sometimes unexpected wires can acts as EMI receptors, for example, the computer mouse/keyboard can channel EMI into the motherboard, causing the USB hub to shutdown, showing up as a disconnect of your controller. In this case, you can install some Ferrite cores on these unrelated cable as well
Here's an in-depth video explaining the working of Ferrite cores to filter EMI noise: Basics of Ferrite Beads: Filters, EMI Suppression, Parasitic oscillation suppression / Tutorial
In extreme cases you may need to make use of Shielded wire for any EMI sources, or any particularly sensitive EMI receptors. A shielded cable has a braided metal / foil shield between the individual wires, and the insulation. The shield has to be connected to Earth to channel away any EMI that induces in the shield, thus acting as a barrier preventing EMI from entering/exiting the wires inside the shield. Furthermore, some strong EMI sources like VFD inverters, may need to be mounted inside a metal enclosure to helps shield the environment against their electromagnetic radiation.
VFDs create a lot of EMI. You will likely have to employ most of the solutions below to counteract the EMI from the VFD: