babash88
Newbie level 3
i need help. I'm using a ds89c450 microcontroller to operate a 12V compressor. The relay that i'm using is a regular 12V relay used in auto electronics. When the relay is not connected the microcontroller functions as it should, however, when the relay is connected, the microcontroller begins to malfunction, giving all sorts of wacky outputs. The relay is connected using a transistor. A diode is also connected across the relay input terminals for back emf protection. I asked around and was told to connect small capacitors across power terminals of all IC's. I've used 0.1uF capacitors. this unfortunately has not worked. Can anyone help me?