> Essentially yes. > > Practically you want to turn the triac on when the AC phase is at zero > (google "zero crossing detector") or you will get lots of interference. > > I used a winding of a small mains transformer buffered by a transistor to > detect the zero crossing when I built a PIC controlled washing machine. > > Dom You can limit the noise with a series inductor (common in phase control light dimmers). You can also get optos that include a zero cross detect optos (see MOC3063). Finally, it may be worthwhile to just buy a solid state relay and let the manufacturer handle all these issues. 5A circuit board mount SSRs are between $5 and $10 in small quantities. Good luck! Harold -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist