If I was building a MF camera and wanted to have a film advance mechanism, I'd use a roller on the film attached to a quadrature encoder driving a small electronic circuit controlling a clutch in the wind mechanism. But I am an electric engineer and I prefer to do things electronically (despite owning a CNC mill... ;-))
I have to warn you though, unless you are building a highly specialized camera (such as extreme pano or rotating), it will likely cost you A LOT more money to build one then to buy a good used one, so I hope you are not doing it to save money...