Atmega328 resets when I try to turn off an AC fan using relay
Hey guys I figured out that the fan regulator was causing problem. Initially there was a Electrical regulator(resistance based) and now I have replaced with an Electronic regulator. However I have kept it for test and waiting for further results. As of now there is no reset after replacement of the regulator. 

Thanks for your answers. :)