Printing the Parts

This chapter will go over 3d printing the parts needed for the SwerveBot.

Printing the swerve modules is a bit tricky as they require dimensionally accurate prints. If the gears are slightly too large, they will not run smoothly and if they are slightly too small they will slip. Before you begin, you need to look up the instructions on how to calibrate the X, Y, Z and Feed for your specific printer. This will give you the best chance for success.

For most of the parts I use a 20% fill and 2 walls. The layer height is either 0.2mm or 0.3mm and the folder names indicate which. Some parts require a different fill and/or wall count and that will be reflected in the name and you should respect that. Also some parts require support which is also reflected in the folder names. I recommend Tree supports. If the file name has a number in parenthesis (eg. part(3).stl) it means that you will need that number of copies. Note that if the part is in the SwerveModule folder, this is the number needed for a single swerve module.

I now going to list groups of parts and what settings I use to print them.

Swerve Module Parts

Before you start printing the parts for the Swerve Module, you may want to print the SwerveBaseTestPrint.stl file. This should be printed with a 0.3 mm layer height. It is a small part (compared to the full base) into which you should be able to place the large bearing. The bearing should fit snuggly. If it is too loose you may want to scale your models down slightly. If it is too tight you may want to scale your models up slightly.

The following are the parts that needed for a single Swerve Module. You will need to build four Swerve Modules.

Layer height 0.3mm, no support

I print the following set of parts using a 0.3mm layer height and no support.

Note that when you print the Base part that has the text on the bottom (i.e. SwerveBaseWithInserts.stl) you may need to slow down the first layer speed so that the text will adhere properly to the print bed. For that part I usually set the first layer speed to be 1/3 of normal.

Inserts vs Imbedded nuts

When we need to attach screws we can either use threaded inserts which are inserted into the parts after printing using heat or we can imbed nuts into the parts when they are printed. The advantage of embedding the nuts is that you do not need to add the inserts after printing. The disadvantage is that you must pause the print to insert the nuts.

I strongly recommend that you use the imbedded nuts.

In the above set of parts, the Base and Upper Support have two STL files, one designed for inserts and the other designed for embedded nuts.

Printing the ones with inserts is straightforward. However to print the versions with embedded nuts, you will need to create your G-Code files with commands to pause the print so that you can insert the nuts. I am using UltiMaker Cura for my slicer and the following is the procedure to create the G-Code file for the Upper Support. If you use a different slicer, you will have to figure out how to do it, but it will probably be fairly similar to this.

Note that this piece has two different imbedded nuts so it will require the printer to be paused twice.

First import the piece and slice it using a 0.3mm layer height. Then use the tool that allows you to see the layers and move it down until you find the top of the smaller 4-40 nuts.

Here we can see layer 13 is the top of the nut because layer 14 covers it. This means that we need to pause the print at layer 13.

To do this, choose Modify G-Code option for the Extensions menu:

Then choose the Pause at height option:

Then set the Pause Layer to 14. Also you will need to choose the correct Method for your printer. My printer needs to use the M25 G-Code command to properly pause the printer.

Now when you print the file, the printer will pause at layer 14. At this point you should insert the two 4-40 nuts and two 8-32 nuts then resume.

The Base also has nuts so will require a pause. Note that the pause point might be different so you should determine them in the same way as for the Upper Support.

As a final note, if you are printing the versions with the nuts, after printing you need to drive a screw through the nut to break the support layer which slightly blocks the hole.

Layer height 0.2mm, no support

The following parts should be printed using a 0.2mm layer height. If you print them in the orientation shown below, you will not need supports.

Out of this set of parts, the Large Steering Gear requires inserts or embedded nuts.

Layer height 0.2mm, support required

The following parts need generated support. I recommend using Tree Supports, but your milage might vary. Note that the Pot Coupler should be printed with 100% fill and 4 walls.

Robot Parts

This section specify how to print the remaining parts for the robot.

Layer height 0.3mm, no support

The parts shown below should be printed using 0.3mm layer height with no support:

The panels come in two versions, one with embedded nuts and one that requires inserts. The Flywheel should be printed with 100% fill to maximize it’s moment of inertia.

Layer height 0.2mm no support

The parts shown below should be printed with a 0.2mm layer height with no support.

The Shooter Mount requires either inserts or embedded nuts.

Layer height 0.2mm, with support.

The following should be printed with a 0.2mm layer height with support. I recommend “Tree” supports. Note that this part requires inserts. Because of the printing orientation, using embedded nuts is not possible.

Next: Wiring Cables