Mathieu Glachant
unread,Feb 6, 2012, 4:24:06 PM2/6/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to makerbot-c...@googlegroups.com
So I cleaned up the code from clockathon 2, and implemented the changes discussed.
1. Changed the gearing to add another factor of two to account for the fifteen tooth escapement wheel. Still six gears total.
2. 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.
3. 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.
4. 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? ;-)