https://en.wikipedia.org/wiki/Kelvin_water_dropper
Interesting. It relies on flow in droplets, though, doesn't it? It's hard to make droplets go upwards. Single air bubbles which bridge a narrow pipe, with short regions of oil in between, might work, but I think the implementation and adjustment would be difficult.
Thanks to everyone for the ideas.
Chris