We'll be 3D modelling the body of our robot. It's a simple plate with a few boss features to hold our motors and our batteries. At the end, we will 3D print the model we create.
This class will contain a lot of videos. You should be viewing this lesson in a web browser. View them full screen if you can't see something clearly.
Create a new document. You can give it any name you like.
If you've never used 3D software before, you need to learn how to use the mouse to rotate, pan, and zoom:
Your First Sketch
Everything starts with a sketch. A sketch can be made on any flat surface or plane. There are three main planes that are always available: top, right, front. We will make the first rectangular block as a sketch on the top plane.
Drawing a rectangle simply involves clicking the rectangle tool on the toolbar, and then starting and ending the rectangle.
Things in your sketch can be given dimensions. We want to make this rectangle exactly 60mm wide and 65mm long. The dimension tool is on the toolbar, then pick the object(s) you want to dimension, pick a place to show the dimension, and finally type in the numbers.
Here are some other ways of dimensioning things.
Turning a Sketch 3 Dimensional
The simplest way to turn a 2D sketch into a 3D solid is to "extrude" it. You can extrude an enclosed sketch (like a rectangle) to a certain length.
Making Changes and Edits
A good CAD tool must allow you to make changes to your model, designs change often and people make mistakes. It's easy to edit a sketch even after you've exited or extruded it, and it is easy to change the parameters of your extrusion as well. Simply right-click on the sketch or extrude operation in the "feature list" (left side of the screen) and then click edit.
Making Bosses on Your Rectangle
There are 6 little rectangular bosses on the flat rectangular plate. 4 of these are meant to attach your servo motors, and 2 are meant to attach your battery holder. First, start the sketch on top of the flat rectangular plate. Since the design is symmetrical, we can use the "mirror" tool later, this means you should draw some "mirror lines" using the construction line tool.
Draw the rectangles inside this sketch. There are only two to start with, and you'll end up with all 6 after using the mirror function twice.
Now here is the video that teaches you how to use the mirror tool.
Next we will give the bosses some dimensions. This will also show you how when you move objects on one side of a mirror line, the mirrored objects on the other side will move as well.
This sketch is done, so now we can use the extrude tool again to turn it 3 dimensional. We make it as high as the servo motors are thick.
House Keeping
When a 3D model becomes more and more complex, it's a good idea to name your features. This way, you and other people can know where to go when there needs to be a change made.
Some really complex models can have hundreds of features. Remember that in a professional situation, you will be working with other people who need to understand your model as well.
Holes: Attaching the Battery Holder
The battery holder has two holes on it, and we will be using screws to attach it to the robot. We will cut holes into the model like we did before.
First start with the sketch of a circle, using center-lines to help you position it exactly. Mirroring is used to create the second circle.
(this video below also shows how to reuse sketches for constraints, in which case, constraints are not added automatically, so you must manually add them)
Finally, use the extrude tool in remove mode to do the cutting. Again, using "through all" instead of a depth.
One of our holes should become a slot shape. This involves making a narrow rectangle and using extrude-remove.
We used "cut up to surface" mode here instead of specifying a depth. This means the bosses can be made taller or shorter, but the cutting depth will always go right up to the flat plate.
Holes for the Servo Motors
Each servo has two holes on it, and we will be using screws to attach them to the robot. We need to cut holes into the bosses for these screws. This is done by drawing circles on the side of the bosses, and then using the extrude tool in remove mode.
While in remove mode, we can choose "through all", which tells the tool to cut through the entire model, instead of to a certain depth. (this means you can make the model thicker later and still have the hole go all the way through)
Holding the Circuit Board
The front of the robot body has a slight extension that will attach to the circuit board.
This is done in CAD with a simple rectangular sketch followed by an extrude-add operation.
The circuit board attaches to the 3D printed body with some pins, we need to make some slots for these pins in our 3D model. We will start with a thin rectangle in the front of the robot, on the bottom side, where we just made the extension. We center it using constraints made with older sketches.
We need a lot of slots, so this will teach you how to use the pattern tool, so you can make many rectangles from a single rectangle. We make the pattern on one side, and then mirror all of the rectangles created by the pattern.
Finally, the slots are cut into the plate, using the extrude tool in remove mode.
Congratulations, You Are Finished!
If you did all that, you are finished making your 3D model.
3D Printing
Export the part from Onshape. Give it a name, use STL binary format with millimeter units. After the file is downloaded, use your slicer tool (in our case, Ultimaker Cura) to prepare the GCODE file for printing. Remember to rotate the model so that the flat side is on the bottom. Use 0.2mm or 0.3mm for layer height if possible, with 30% - 50% infill, no support or adhesion should be necessary.
Other 3D Printed Parts
Try to start your own 3D printing project. Try out what all of the tools do. Make your own 3D models and come to the library to 3D print them. With more practice you'll be able to do more amazing things, and learning CAD is essential to being an engineer.
If you need a project idea, I like to think of things that helps you in some way. Maybe a phone stand? They are usually just a J shape with a leg. Maybe you need to protect something? Make a box for it that's the perfect size. Maybe you need to organize stuff? You can make single object with multiple boxes in it.