SolidWorks Tutorial 1c: Design of an Electronic Box, Continued
Link to: CAD Main Page
Link to: Tutorial 1b (prev)
Introduction
This tutorial continues the sequence for designing a sample electronics box to demonstrate how to use SolidWorks.
In the previous tutorials, most of the basic tools have already been addressed. In the steps that follow, knowledge of these tools will be assumed. If you are unfamiliar with any of these tools, you may want to review the previous entries in this sequence.
In the previous tutorials in this sequence, a thin-walled box was designed with mounting lugs attached to the bottom face. The first step in this tutorial is to add some additional lugs around the top of the box that could be used to attach a lid to the box. The operations to do this are mostly the same as those used in the previous tutorial. Accordingly, we will move quickly through this first operation until we need to use some new functions.
Attach Lugs to the Box Edge
Select the flat surface at the top edge of the box, as shown in the figure above. Open a new sketch on that plane. Notice that you can open a sketch on any planar face, no matter how tiny.
Sketch four squares in the four corners of the inside of the box. By snapping the edges of the squares onto the inside edges of the box top, the relations are set automatically that fix them to those edges.
Set the four dimensions as shown below. To fully define these four squares, manually set four "Collinear" relations between the remaining edges. Hopefully is is obvious to you where these should be. See the illustration below.
To check whether the relations are set correctly, change the four dimensions that are explicitly defined in the figure. In the example, the lugs were originally set to 5/8" square. Change them now to 3/8" square, which is more reasonable in the box design. All of the lugs should change to the correct size.
It should also be possible to change the outside dimensions of the box and have the lugs remain attached to the box corners. It is very rare that something like this is designed at its correct size from the first step. That is the strength of "parametric" design. At this stage however it is not possible to check. We need to finish the sketch first and then extrude the lugs into solid features.
Fillet the corners as shown below. You can use the default radius of 0.1 inches.
Exit the sketch. Select "Extruded Boss/Base" and project the sketch into the 3rd dimension. Make sure the lugs sit below the plane of the top of the box.
Make Screw Holes in the Lugs
We assume the box lid will be held on with screws. We need to cut holes in the lugs to accommodate them, and they should be designed parametrically so they move with the features if the dimensions are changed. The screw-holes could have been applied in the previous sketch, but this step is an opportunity to introduce the "Extruded Cut" tool from the "Features" tab.
The first step in cutting screw holes is to open a new sketch on the same plane as the previous sketch. We will set features to locate holes in the centers of two of the lugs in opposite corners. These are line segments that cross the lugs diagonally as shown below.
These segments will be used to locate circles in the sketch. The circles will form the contours of cuts through the solid tabs. Although the diagonal line segments are present in the sketch, we don't want them to affect the contours of the cuts, so they need to be marked "For Construction" in their "Properties" dialog. The midpoints of these line segments locate the centers of those lugs.
Add two more points onto the two lugs in the two remaining corners. Add the necessary relations to align these points with respect to the center points of the two diagonals in the previous step.
With these four points set on the lugs, sketch a set of circles with the four points as centers. Set the radius of one of the circles to some preferred value for a pilot hole, 0.03" is suggested. Hold down the -CTRL- button and click on all four circles to select them and open a "Properties" window in the left margin. Look at the selection list and make sure all four are there. Click on the "Equal" button to fix their sizes to the same values at that of the first circle.
Click on "Exit Sketch."
With the newly-drawn sketch selected, open the "Features" tab and select "Extruded Cut." The tool is very similar to the "Extruded Boss/Base." Since the lugs have the default thickness of 0.1 inches, this default depth will also create holes that penetrate the lugs.
Hit the (
) green check-mark to accept.
Fillet the Lugs
These tabs aren't quite finished. Add fillets as shown below. This is the same process used in the previous tutorial.
Circuit Board Mounting Features
In this section we will create a set of columns to support a circuit board. For an example, we will use an Arduino Due circuit board.
| Overall | Hole 1 | Hole 2 | Hole 3 | Hole 4 | Hole 5 | Hole 6 | |
|---|---|---|---|---|---|---|---|
| X | 4.00 | 0.55 | 2.60 | 3.80 | 0.60 | 2.60 | 3.55 |
| Y | 2.095 | 0.10 | 0.30 | 0.10 | 2.00 | 1.40 | 2.00 |
| |
|---|---|
| Arduino Due dimensions |
Set the Location Points
Open a new sketch on the inside bottom face of the box. To accurately place the six supports, you will need to place eight points. One point is the origin for the circuit board, and the six screw-hole locating points are dimensioned relative to that one. The whole pattern can be shifted by altering the location of that point. The screw-hole origin point is dimensioned relative to a point placed at the origin of the design space.
You can now move the array of points around by dragging any of the points in the array.
Design the Standoffs
Open the "Circle" tool and sketch two circles centered on one of the locating points. The diameter of the mounting pads on the Arduino is 0.2 inches, so the redius of one of the circles shoud be set to 0.1 inches. The other hole is for a pilot hole that could be tapped to receive a plastic screw. In this example, we set the diameter to 0.06 inches, or radius of 0.03 inches.











