I will go into more detail on this subject later but want to get a post in here to get it started.
On my first geared device, I ground an old HSS router bit to approximate shape and cut teeth with a router mounted in my metal lathe and a home made index. They worked OK but didn't look the way I wanted. The index was not very good so I then bought a dividing head from Grizzy for, I think, less than $300 and mounted it on my lathe so that I could get good accurate indexing. That improved the effort but it was still far from perfect.
Some time passed and I obtained a copy of a book, "Gears fpr Small Mechanisms" by Davis and, having also learned to use a CAD program figured out how to draw good cycloidal teeth. This took me some considerable amount of time because it requires thought and concentration, hard commodities to acquire when one is out of practice. I then bought a CAM package to go with the CAD, (Bob CadCam) and was able to produce G code for my machining center and make perfect wheels and pinions. Now this was a long, expensive proceedure and there are numerous other ways to get good results but I am convinced that if you are wealthy enough and crazy enough, this is the best of all possible ways to produce gearing.
The standard, time honored method of gear cutting requires precision ground cutters, and a good lathe with indexing. This will produce excellent gears but the problem is that there are no cutters available that are large enough for wooden wheels and pinions. They are available for brass clocks but wood requires teeth which are at least slightly larger than the largest brass gear cutters made. An enterprising philanthropist could probably have a series of proper cutters made at considerable espense, which he could then sell at reasonable cost to the rest of us. So if there is such an exemplary individual out there, this is your chance to serve humanity.