Use Arduino (and Java application) to change source of power