Update: I got a little time to work on it some more. I got the RS232 serial port working. Dimming was a little strange. I tried the wireless and I found that I had the header connections for the wireless modem flipped. I got it connected but it would not communicate with the PIC chip for some reason. At this point I broke out the o-scope and things went south.
Apparently the ground on the o-scope is earthed (VAC neutral) and not floating. I went to connect my scope ground to the to the board ground and fried the 5VDC power circuit on the PIC chip side. I blew up several components and traces, an expensive lesson. I am going to get an isolation transformer for testing purposes and the next round of testing will be done with 12 VAC rather than 120 VAC.
That SUCKS!!!
I'm truly sorry. I'm going to look in the manual to see if mine is earthed now.
First time I read this I thought that he broke the scope...then I read it closer...
--
Phil
The scope survived the board did not.
It lives!
The board works and I have tested at 12VDC, 12VAC, and 120VAC. The RS-232 serial port works and the wireless serial modem works. I have not tested the RS-485 but it should work also.
I'll need to come up with a new dimming curve since the rectified voltage acts differently that the unrectified. It works perfectly on DC input but is a little weird on AC.
