Ok, yeap. Fast drawing. Missed that.
There should be 10K resistor tied between GP0 and +5V supply.
Meanwhile, IR LED will never work at the same time with TRIAC. Once there is a detection then TRIAC will be fired for the adjusted duration (by AN0 reading).
For IR encoding, I was thinking like 500Hz.
--------------
Bookmarks