Creating an electrical system with flow control

Aaand finally managed to work something out. Let me know if you’re asking for the same thing.