refactored schematic for wirelessly controlled battery powered application