How to discharge the battery with resistors