You could put a bladder system in the pipe. Look at repurposing a small home-use blood pressure monitor (like this one.) It runs on batteries, so you could power the pump and your controller with the same power source (also inside the headspace of the riser pipe.)