How to build a substation from scratch