gauravkothari23
Advanced Member level 2
Hi all.
I need to build a relay driver circuit which i can control using my 8051 microcontroller. In my existing circuit i am using NPN Transistor to drive the relay. but the problem here is when i turn the relay ON and OFF continuously with a delay of approx 2 seconds, sometimes the system gets hanged. i have even added a diode to relay coil, but then too i am facing the problem. I am driving 220V AC load using relays.
My only source to power the microcontroller and relay is 5V SMPS. i am powering the microcontroller and SMPS using the same 5V SMPS. is this the problem, if so, can i add two diodes at output of SMPS and differenciate the 5V for both microcontroller and relay.
I need to build a relay driver circuit which i can control using my 8051 microcontroller. In my existing circuit i am using NPN Transistor to drive the relay. but the problem here is when i turn the relay ON and OFF continuously with a delay of approx 2 seconds, sometimes the system gets hanged. i have even added a diode to relay coil, but then too i am facing the problem. I am driving 220V AC load using relays.
My only source to power the microcontroller and relay is 5V SMPS. i am powering the microcontroller and SMPS using the same 5V SMPS. is this the problem, if so, can i add two diodes at output of SMPS and differenciate the 5V for both microcontroller and relay.