Monthly Archives: July 2014

Mains power detection circuit

Code used for microcontroller: The uC used was a pic18f14k50. Code compiled using xc8 compilter. Read analog channel function taken from batchloaf’s template code post. Here is the source code:

Posted in Hardware, Ideas, Microcontrollers, pic microcontrollers | Tagged , | 15 Comments