Not sure this is the right area, but here you are. https://www.cnccookbook.com/building-the-cnccookbook-e-bike-conversion-part-1/