Andre, TRIACs work differently, you cannot use a PWM signal to drive a triac. Check out my page on Phase Controlled Dimming, which is what you'll need to understand in order to build an AC line dimmer. http://ubasics.com/adam/electronics/doc/phasecon.shtml I hope this helps! -Adam > -----Original Message----- > From: Andre Abelian [mailto:engelec@EARTHLINK.NET] > Sent: Wednesday, February 14, 2001 4:33 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: [EE]: dimmer with pic can't make it work > > Hi to all engineers. > > I am making a simple light dimmer for my kids and > I am having hard time to make it work with a triac. > I am using pic16c72 hardware pwm , MOC3010, and Power triac. > The pic works fine I checked it with scope when I connect it > thru opto triac the lamp suppose to turn on low and go higher brightness > all I see while PWM goes from 0-70 % blinks a few times > and stays on on higher duty cycle for load I use regular 110 v lamp. > when I connect any LED on PIC output I can see it slowly increases > the brightness I am not sure if same thing happening inside of MOC3010. > I do not know what is wrong with it any help will highly appreciated. > attached is the schematic. > > Andre > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu