Hello Steve,

I am looking for a code using PICBASIC Pro, It would be much easier to understand and modify.

AC - 230V @ 50 Hz.

I would then be interested in coupling this circuit with some IR chip set and making it totally remote operated. The IR would be ready made solution and not integrated withing the PIC itself.

regards