When working around mains voltages, it can be useful to know whether a given circuit is live or not. While this can be done by direct connection with a multimeter, non-contact methods are available ...
In this quick Arduino tutorial I will explain how you can control a relay using the Arduino Board, one 1K and one 10K resistors, 1 BC547 transistor, one 6V or 12V relay, one 1N4007 diode and a 12V fan ...