Progress is happening. Much of it reworking what I already did. End of year projects crept in and put this project on the back burner for a couple of weeks. But despite the delay, the train moves forward! And what once was done is now redone!
Servo Motors
For example, the servo motors. The first version worked, sort of. They didn’t move a full 180°, and they were kind of weak.
So I found new motors, bought a couple, and tested them out. That of course, required recreating the servo gear and the whole housing unit.
After many iterations of the servo gear…
I dialed in the tolerances and sizing so the new servo horn/arm fits and stays in place. But just to be safe, I’ll be screwing in each of the servo gears.
Holder
The new servo motor is bigger than the previous. That means the holder needs altering. Fortunately, I designed it measurements so that a quick change of a few select dimensions and the holder fits the new motor snug, but not as tight as a fat kid in the middle seat. Hence the screw.
Also note that I started writing the version number on the object.
I also opened up the back side so it is easier to install the gears, especially the servo gear. I tightened up the tolerances here, too.
(New version on the left.)
And here’s the new gear train all assembled with the new servo. It moves so much more cleanly and smoothly.
And just for fun, here are most of the parts I 3D printed so far.
Moving On
This got me to the point of creating the states. I first needed to calculate how big this project was going to be more accurately.
So I counted all of the hexagons horizontally, and vertically to get a much better calculation than we had used in the past.
I plugged these numbers into a spread sheet, and iterated over a few hexagon dimensions in order to see how big this map can be, or how small it needs to be. Two factors weighted the dimensions the most: 1) the maximum size that the laser cutter can cut, 2) the size of a doorway. I figure that I can cut the map out in multiple pieces, so the size of the laser cutter is not too much of an issue. But if this thing needs to travel, then it definitely needs to fit through a doorway. So that is really the limiting factor, because it will need to travel at some point in it’s existence.
Our original dimensions called for a map that was nearly 4 feet by 3 feet. Too large for the laser cutter, and too large to fit through a door.
A good size ended up being a hexagon that is 20mm from side to side, which creates a map about 30 inches long and 23 inches wide. A common, indoor doorway in the US is 30-32 inches wide. Such a table will definitely slide through at 23 inches wide.
And immediately I was confronted with an issue with my calculations.
The Problem
At the end of all my learning and calculating, I decided:
It looks like 36mm (servo) —> 12mm|36mm —> 12mm (pinion)
has smaller gears and gives good enough range.
One thing I forgot to consider is the length of the servo horn that is used to connect the servo to the gear. I could do without it, but trying to design and print such a small toothed hole has issues. I have seen others try and filament 3D printing does not provide fine enough detail to mesh well with the servo gear. So using the supplied horn attachment makes things much easier.
The problem, is that the horn is about 22mm in length. If my gear is only 36mm in diameter, then the horn would stick out into the gear’s teeth!
Another sidetrack bump I had to overcome was the getting the dimensions of the servo horn. The dimensions I could fine online were unsatisfactory. So I measured one myself!
And went ahead and 3D modeled it and put the 3D model and diagram files up on printables.com for anyone to use.
With all of that info, I can then recalculate the gear train dimensions so it fits with the servo horn.
The Correct Gear Train
I played around with different settings, but it seemed the best option (that being the smallest size for the servo and large combo gears) called for a 46mm servo gear → 20mm
The first day of modeling, I decided to jump the Fusion 360 train and try onshape.com. It’s a web based 3D modeling and CAD tool. It has been around since 2015, and is gaining ad time lately in many of the YouTube.com videos I see, so I thought I’d give it a try. I was prepared for some learning curves and to spend some time learning a new system, but two things got me to throw in the towel after a full day of working with it; 1) I couldn’t figure out how to do something pretty simple that would take 2 minutes in Fusion 360, 2) I didn’t care for the interface; it felt too unprofessional. If TinkerCad.com is the elementary school version of CAD, it looked like Onshape.com was the 9th grade version. I did love that it was browser based. And making double helical gears was a breeze! There’s a handy built in menu for all kinds of gears. Fusion 360 on the other hand is big L in gear making. You have to import 3rd-party scripts and I can’t get any of the fancy gear scripts to work.
Like many things, it was the fact that I could get things done much faster with the tool I already knew, and I was accustomed to the interface that led me back to Fusion 360.
Making the Gear Train
I had previous attempts at designing the gear train, but I decided to start from scratch since Fusion 360 doesn’t have an easy way to just change the size of gears when using the gear script plugin thing.
Servo Gear
So, first I designed the servo gear. Pretty easy to create a 46 tooth gear with the gear script plugin thing.
I designed a cut out, or inset, for the servo horn to fit inside. This is the easiest way to attach the gear to the servo. 3D printing these gears with filament would not have enough resolution to print the fine teeth needed to interface with the tiny default gear on the servo shaft. Much easier to use the included horn.
Combo Gear
The combo gear was pretty easy, too. Just make another 46 Tooth gear, then make a 20 Tooth gear and stack them on top of each other.
I set the diameter of the hole through the gear at 4.2mm. That’s big enough for a M4 bolt to go through, with just enough tolerance to allow the gear to spin but not wobble.
Pinion Gear
Another very simple gear to model. There’s nothing special about this, just a 20 tooth gear with a 4.2mm diameter hole.
Rack
The rack is pretty straight forward. I created a 20 tooth gear, then used one of those teeth to copy down the length of the rack.
Gear Holder
This was a little bit tricker. The gears were all prototyped in one go. The first print was great. This part took 7 tries so far.
I started by creating a new Assembly in Fusion. Then adding in the gears and aligning them as needed. I went with a stacked approach so as to keep the footprint as small as possible. I had previously modeled the servo motor, so I was able to add that in as well.
It was tricky to get the servo aligned with the servo gear, and then get each of the gears aligned with the ones the mesh with. In realized that if a part has the sketch turned on, then that shows up in the Assembly file. I used that to create a construction line on the servo gear and put a point where the center of the combo gear should be aligned to. Then I did the same on the combo gear to align the pinion. Then adding the holder, servo motor, and rack.
It was a lot of back and forth between the designs for the parts and the assembly to align everything correctly. But in the end I think it lines up well.
Spacers
After the first version, I realized that the gears needed spacers to keep them in place. The holder is wider than the gears. So modeling and printing a couple of spacers is pretty easy.
Somewhat Working
I connected everything up, bolted in the gears, and plugged it in. And it works… mostly.
As the video shows, the gears work, somewhat. There is a bit of jittering, which may be due to the code just rotating the gears back and forth. A more normal behavior would be moving from one angle to the next and stopping there. The servo is also not moving at a full 180°. More like 100°. This is only about 111mm of travel, not the 150mm we’re hoping for. It might be time to consider better quality servos. Perhaps some that move 270°.
It is also a pain to swap the servo motor. Perhaps a redesign is in order.