I have connected an array of 6V relays to one of the digital pins of my Atmega328 microcontroller via a driver ulN2803. I have connected two lights and one fan to the relays. The light bulbs seem to work completely fine but when I try to turn the fan off(especially when its on lower speeds) the microcontroller resets. Is this some kind of interference? I have broken the wire that goes to the regulator and fed it to the 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. :)