Dear Friends ,
I would like to know what is the best way to drive the contactors for switching on/off motors using mcu , optocoupler etc.
Recently i tried to drive 2 contactors using 2 relays driven by the mcu.The description of ckt is as follows :
2 windings from transformer : a.)0-9 & b.)0 -14.
a.) Driving the 7805 regulator for running mcu and displays(seven segment) .
b.) Driving the coils of 2 relays 12vdc (diode in reverse added to the relays).
using pc817 to drive the transistor which turns on the relay 12vdc ,i.e mcu is turning on the optocoupler which in turn is driving the relay.The dc relay in turn is driving the contactor (running on 230 Vac)., Applied rc snubber across the contactor terminals of the contact.
Using the proximity switch (power from the input side of 5v regulator and ground of winding a.).Proximity switch is connected to hardware interrupt of the mcu (pic16f886).
The problem is 1 in 10 times the moment the contactor is turned on the counts of the proximity signal increases by say 2 to 6 or sometimes more.
So far i am able to judge that the moment the contactor is turned on there is spike on 5v output line driving the mcu.
Please suggest what to do to remove this spike from entering the unit from ac mains........
Why i am saying that the noise is entering from the ac mains is because the dc relays driving the contactor are driven by winding b.) and that too after being driven by optocoupler .
Please suggest what to do.....
I have seen a good digital counter using cd4093 in the circuit , it has schmitt trigger inputs , can someone suggest will it be useful and how.......
View attachment images.pdf