Hello,
I have experience of developing code with PIC and other microcontrollers. Do you have the PCB ready? Are you looking for enclosure for mass production , if it is for one or few, we can get the box from market. Can you please supply me the board along with the programmer. It would be good to have opto isolators such as pc817. Hopefully we can detect zero crossing and use that interrupt to check the phase reversal.