Here are some notes and pictures of how I made a working, automated hydro-electric dam in Luanti. The dam gates can be opened and closed manually to generate more or less power, or, if the power demand becomes too high or too low, the dam will automatically open or close gates to adjust the power accordingly.