Opposing batteries with resistor