Solar Panel Positive and Negative (Diode + Voltmeter)
Even when inside a building, a simple voltage reading will reveal the polarity of a solar panel. Put the red positive meter lead on one side and the black negative lead on the other. This measures across the