This ultra-simple polarity indicator uses common green and red LEDs and can work with 3 to 9 V sources. For higher voltages, increase the resistor to 1k (up to 12V) and 1k5 for voltages up to 15 V. The circuit will indicate that the voltage is alternated with the lighting of the two LEDs.
