I would like to install a lamp at the entrance gate to the property which will light up when the gate is opened and only go out when the gate closes. I have come up with the idea of mounting a pushbutton on the gate which the gate leaf will short-circuit. When the button is opened, voltage is applied to the lamp (light). When the gate closes, the gate leafs short-circuit the button and the light goes out. Please give me some ideas on how to implement such a system.
Moderated By Marek J.:.3.1.15. Don't ask straight away on the forum if you haven't checked anything yourself before or attempted a diagnosis yourself. Remember that advice is given remotely in the absence of physical access to the device, the problem must be very well described and understood by users and the title should include make, model and a summary description of the fault.