Thanks guys! I knew I would be embarrased by the solution and I was right!
OK, Now I have made the circuit change and have made the switch changes. I get the 5V outputs on pins GPIO.0 and .1 which go low when I press the up or down buttons. I do not, however, get any output from GPIO.2 which is the triac trigger. My guess is that the problem lies in the ACDetect routine. I see in previous posts that there were many references to this routine and it went through several revisions. Can someone verify that I have the correct routine?
I have attached the code as a text file and the circuit design as a pdf. Would appreciate comments.
Thanks again! Atom058




Bookmarks