Fixed a bug on the hour gear. Download the fixed STL and if you are interested in it, all three OpenSCAD files as well.
This is a cleaned up version of the printed clock we were able to make during Clockathon #2 last weekend. Thank you Makerbot and Bre for setting that up and hosting it, and thank you Ben for all the help, the awesome test print all set up, and the brilliant idea to back off one gear for the power drum.
It was ticking, powered by a weight that would only drop about 9" per twelve hour period, and included printed concentric shafts to support minute and hour hands on the face of the clock.
Here's some video: http://www.youtube.com/watch?v=AH4Tg2tIgfg
I had to inflict grievous harm to the code base at the time and have cleaned everything up since. See details below.
From the makerbot clockmaker google group:
So I cleaned up the code from clockathon 2, and implemented the changes discussed.
- Changed the gearing to add another factor of two to account for the fifteen tooth escapement wheel. Still six gears total.
- Deprecated the old drumgear routine that could only be used on the front of the clock and replaced it with the core pinion wheel routine, which can now include a non ratcheting drum on any gear, and can now produce a gear with no pinion if you set the number of teeth on the pinion to zero.
- Implemented some logic to use one shaft radius (bearingRadius) if the gear has no concentric shaft, and another (pinRadius) if it does. This way, the design automatically assumes you place bearings on all the gears that do not include a concentric shaft.
- Changed the parameters to include concentric shafts and hands for the hour gear and the minute gear.
With these changes, it is now possible to generate the same clock we had at the end of clockathon 2, without touching the code or the parameters incessantly. What it currently does NOT do is include a ratcheting drum solution for any other gear than the front one, or a way to turn the fixed drum on for only one gear (right now, you just turn it on while rendering the gear(s) you want with drums, and turn it off for the rest).
The standard config right now is bearings on all gears except hours and minutes, concentric printed shafts resting directly on M5 threaded rod (had to guess at a good radius value there) for the two exceptions, and a 5mm wide non-ratcheting drum on the gear between hours and minutes.
Today's respite from business travel does not extend to tomorrow, unfortunately, so I will post this code base later today, with some STLs and some screen grabs... And you guys can give it a spin. Ha! See what I did there? ;-)