harsha_fractal
Newbie level 2
HI
this problem seems to be coming for a lot of people . My MCU , an 89s51 hangs every once in a while when switching a solenoid thorugh a relay. Im driving the transistor through a transistor circuit like the one attached below and i have noticed that when the relay switches there is some 'noise' that is visible in the MCU driving pin . one solution seems to be to put an optocoupler in series with the pin and isolate the transistor circuit from the MCu but im interested in other solutions . are their any ideas??
this problem seems to be coming for a lot of people . My MCU , an 89s51 hangs every once in a while when switching a solenoid thorugh a relay. Im driving the transistor through a transistor circuit like the one attached below and i have noticed that when the relay switches there is some 'noise' that is visible in the MCU driving pin . one solution seems to be to put an optocoupler in series with the pin and isolate the transistor circuit from the MCu but im interested in other solutions . are their any ideas??
Attachments
Last edited: