gauravkothari23
Advanced Member level 2
Hi all.
I have made a project where i have connected 3 relays, and connected 220V A.C. solonied to each of this relays.
The realys are connected to 89S52 Microcontroller and drived using BC547 transistor. Where base is connected to port pin 0.1, 0.2, 0.3 using a 1K resistor. And also connected 1N4007 diode on relay coil
Now my problem is when i ON the relay or even sonetimes i OFF the relay the 89S52 gets hang and stops working.
This problem occurs only when load is connected to the output of relay.
Can anybody please help me to figure out where the error is.
I have made a project where i have connected 3 relays, and connected 220V A.C. solonied to each of this relays.
The realys are connected to 89S52 Microcontroller and drived using BC547 transistor. Where base is connected to port pin 0.1, 0.2, 0.3 using a 1K resistor. And also connected 1N4007 diode on relay coil
Now my problem is when i ON the relay or even sonetimes i OFF the relay the 89S52 gets hang and stops working.
This problem occurs only when load is connected to the output of relay.
Can anybody please help me to figure out where the error is.