skmdmasud
Member
Hi..
i made a timer using an ATMEGA8 uC and RTC DS1307. it works fine for days without anything connected to the relay. the moment i connect something to the relay for example a transformer which runs my high power led's my uC hangs almost 30% of the time. Most of the times this happens when my relay is turning off which i find very strange.
I have connected a diode 1N4148 (which protects the uC) and a 1KΩ resistor in parallel to the relay. do i need to connect capacitors or something. I believe this should be easy, just cant figure it out.
Regards.
i made a timer using an ATMEGA8 uC and RTC DS1307. it works fine for days without anything connected to the relay. the moment i connect something to the relay for example a transformer which runs my high power led's my uC hangs almost 30% of the time. Most of the times this happens when my relay is turning off which i find very strange.
I have connected a diode 1N4148 (which protects the uC) and a 1KΩ resistor in parallel to the relay. do i need to connect capacitors or something. I believe this should be easy, just cant figure it out.
Regards.