I'm having a bit of trouble with my latest Project. I have:
A Coffee Grinder with 130W AC Motor, controlled by a relais. An OLED Display controlled via I2C. The Arduino that sits in close proximity to the motor.
On Turn-On/Off of the motor the display/Arduino freezes. This got better when I wrapped the wires that go to the display in tin foil and connected them to the metal enclosure.
My guess: On turn on/off of the motor I'm getting EM spikes wich interfere with the arduino and cause it to lock up. So my next step would probably be wrapping the arduino in tin foil as well to shield it from EM. The Tin foil should be connected to the enclosure which in turn is connected to the earth wire of the AC plug and the shielding of the USB cable wich supplies the Arduino. Correct?