I'm using Mega 2560 to control VariableFrequencyDrive for the motor. all it needs to be done is just turn it on & off.
I also have 20x4 lcd hooked up to the board & RealTimeClock. RTC connected thru i2c bus.
Program freezes after a couple seconds when arduino turns on VFD. My guess it is caused by radio interference from VFD. without having it on everything runs fine for long time.
before i used 16x2 i2c display & never had problems. it only started to happen with RTC module.
now i have to stop requesting time every time when vfd is running to avoid program lockup.
Is there any program solution for it?