I just want to control the motor without feedback as first step in project and then i will.If you want accurate control of a Universal motor you need a feedback of some kind.
Also see https://www.fairchildsemi.com/application-notes/AN/AN-3006.pdf
Max.
is there a difference if it is connected to neutral or hot line ?The opto coupler goes across the Mt2 and Gate, make sure its NOT MT1..
To test the triac, short Mt2 and Gate together, connect Mt1 to Neutral, the motor should run at full speed.
i removed the optocoupler and replaced it with wire between gate and resistor but it didn't work too so there are some error in triac partYour circuit looks ok.
What voltage are you applying to the input resistor ?
Bear in mind you will lose a couple of volts across the LED.
I have tested triac and all circuit there were some issues that are solved now.The opto coupler goes across the Mt2 and Gate, make sure its NOT MT1..
To test the triac, short Mt2 and Gate together, connect Mt1 to Neutral, the motor should run at full speed.
I found that code to control the speed using interrupt at pin 2 in the arduino what i am saying it that pin 2 should be connected to some hardware or what ?Yes your opto has zero crossing detection built in.
But the Arduino has to detect the mains Zero crossing, so it can get the correct timing, like this,
Zero crossing detection..
http://cdn.instructables.com/FQZ/NYV7/H8CVG9TK/FQZNYV7H8CVG9TK.MEDIUM.jpg
Datasheet opto.
https://www.google.co.uk/url?sa=t&s...SIvCZg&usg=AFQjCNGTnd7GyY4FDyYebggoQyqwOrwwsg
i mean "pin on the arduino pick up the zero crossing from the mains" where to connect it ? is somewhere at optotriac or what ?i dont know how you have wired your arduino up, a drawing would help, i dont understand the code either,
but you need to have a pin on the arduino pick up the zero crossing from the mains, and another pin giving out the pulses to the triac opto.
by Dale Wilson
by Jeff Child
by Robert Keim