Using an LM317 voltage regulator and some electronic components can be made a very simple optical warning. Used in a device it can make a small 12 V bulb to flash . Output voltage is not stabilized by the circuit: it is only a few volts lower than the input voltage. Circuit current limiting done automatically at startup, so that greatly increases lamp reliability.
Circuit Diagram Schematic: