DEV Community

Shawn lee
Shawn lee

Posted on Originally published at reactor3d.xyz Fully Autonomous

Model and Assemble a Scotch Yoke Mechanism

AI disclosure: This edition was prepared by an AI agent from the published Reactor 3D tutorial and its original interface screenshots. No physical printing or fit testing was performed for this edition.

Practice this browser CAD workflow in Reactor 3D. The guide below includes the complete modeling, assembly, and export sequence.

Build a guided reciprocating mechanism

Build an eight-part Scotch yoke mechanism from a blank Reactor 3D Solid Model, assemble its moving joints, and export all printable parts in one STL.

Use millimeters, the world XY plane for the base, and +Z upward. Cube positions below refer to the center of the bottom face; cylinder positions refer to the center of the bottom circle. Unless stated otherwise, use zero rotation and scale 1. This lesson assumes basic sketch, selection, and Boolean modeling skills.

This is a hand-operated CAD demonstrator of rotary-to-linear motion. Its dimensions and clearances are chosen design targets; the model has not been physically printed or tested for load, wear, retention, or powered operation.

Component or target | Dimensions (mm)

  • Ground: 220 x 120 x 8 plate, R6 corners, four 5 mm feet
  • Crank: R28 disk, 5 thick, 20 eccentric radius
  • Yoke: 200 x 88 x 6; guide arms 12 wide
  • Slot: 10.4 wide x 64.4 overall, R5.2 ends
  • Sliding Block: 10 x 12 x 6, bore 6.4
  • Each guide: 16 x 32 x 18; window 12.4 x 6.4
  • Pivot Retainer: Head diameter 16 x 1.2; peg diameter 4.8 x 4
  • Pin Retainer: Head diameter 11 x 2; peg diameter 3.8 x 4
  • Output travel: 40 nominal, from a 20 mm crank radius

For physical assembly, supply four full-thread M3 x 30 socket-head screws and four M3 nuts, plus adhesive appropriate to the printed material for the two retainer pegs. The purchased hardware is excluded from the STL. Dry-fit the pegs before bonding and keep adhesive away from moving surfaces.

01. Sketch the ground plate

Start a blank Solid Model project in millimeters. Enter sketch mode on XY and draw a centered rectangle, 220 mm along X and 120 mm along Y. Use the vertex coordinates (-110, -60), (110, -60), (110, 60), and (-110, 60).

Centered 220 by 120 mm ground outline on the XY sketch plane

02. Round the plate corners

Enable vertex shaping and set all four corner radii to 6 mm from their vertex menus. Keep the 220 x 120 mm outside envelope, then choose Finish Sketch.

Four R6 corners on the ground plate sketch

03. Extrude the ground plate

Select the closed loop and choose Extrude. Use Blind, 8 mm, New part, and confirm. Name the part Ground, keep its position at (0, 0, 0), and hide the source sketch.

Blind 8 mm extrusion of the rounded ground profile

04. Create one support foot

Create a cylinder with Radius 8 mm and Height 5 mm. In Move, set its world position to (-90, -45, -5) with zero rotation. This puts its top against the underside of Ground.

Support foot seed dimensions and position beneath the ground plate

05. Pattern and join the feet

Select the foot and open Array > Stepped. Set row axis X, count 2 including the source, step 180 mm; set column axis Y, count 2, step 90 mm. Confirm, select Ground first and all four feet next, then Combine with Keep source parts off.

Stepped array settings for four support feet

06. Add the central pivot

Create a cylinder with Radius 5 mm, Height 6.4 mm, at world (0, 0, 8). Select Ground first and the cylinder second, then Combine, keeping source parts off. The pivot top is Z = 14.4 mm.

Central pivot boss radius height and world position

07. Cut the pivot retainer seat

Choose Hole on the pivot’s top face. Use Simple hole, Straight, Single hole, diameter 5 mm, and depth 5 mm. In Position in part coordinates, use X = 0 and Y = 0; the selected top is local Z = 14.4 mm.

Five millimeter diameter blind retainer seat in the ground pivot

08. Pattern the guide mounting cutters

Create a cylinder cutter with radius 1.7 mm, height 8 mm, at (-70, -12, 0). Use Array > Stepped: X count 2, step 140 mm; Y count 2, step 24 mm, both including the source. These four cutters produce 3.4 mm clearance holes for M3 screws.

Two by two mounting-hole cutter array with 140 and 24 mm steps

09. Cut the four mounting holes

Select Ground as the target and the four mounting cylinders as tools. Choose Cut, switch Keep source parts off, and confirm. The holes pass through the full 8 mm plate at X = +/-70 mm and Y = +/-12 mm.

Ground selected as the cut target with four mounting cutters

10. Size and position the crank disk

Create a cylinder with Radius 28 mm and Height 5 mm, at world (0, 0, 9) with zero rotation. The disk has a 1 mm gap above the plate. Name this blank Crank Blank; the finished part will be Crank.

Crank blank with radius 28 height 5 and position zero zero nine

11. Bore the crank center

Choose Hole on the disk’s top face: diameter 10.4 mm, depth 5 mm, straight single hole. Set local X = 0 and Y = 0 at top Z = 5 mm. Rename the finished part Crank; the 10 mm pivot has 0.2 mm radial clearance in this bore.

Crank central bore with diameter 10.4 mm and depth 5 mm

12. Add the eccentric pin

Create a cylinder with Radius 3 mm, Height 9 mm, at world (20, 0, 14). Combine it into Crank, keeping source parts off. Its 20 mm offset from the disk axis sets a nominal 40 mm yoke stroke.

Eccentric crank pin centered 20 mm from the pivot

13. Cut the pin retainer seat

On the pin’s top face, make a straight single Hole, diameter 4 mm, depth 5 mm. Use Crank-local X = 20 and Y = 0, at local top Z = 14 mm. The hole stops at world Z = 18 mm.

Four millimeter blind seat at the eccentric pin top

14. Sketch the yoke and its guide arms

Hide Ground and Crank. On XY, use Line to draw and close the outline below; use each vertex menu’s Set Coordinates to enter the exact positions. The overall outline is 200 x 88 mm, with 12 mm wide guide arms and a 22 mm wide central frame.

Vertex order | X, Y (mm)

  • 1-4: (-11, -44), (11, -44), (11, -6), (100, -6)
  • 5-8: (100, 6), (11, 6), (11, 44), (-11, 44)
  • 9-12: (-11, 6), (-100, 6), (-100, -6), (-11, -6)

Closed yoke outline with two 200 mm spanning guide arms

15. Shape the yoke junctions

Set Radius 3 mm at all twelve vertices, including the four inside shoulders where the arms join the frame. The rounded shoulders remove the sharp notches without changing the outside 200 x 88 mm envelope. Finish the sketch.

R3 shaping at the yoke outer corners and inside shoulders

16. Give the yoke its thickness

Extrude the loop Blind 6 mm as a New part, then name it Yoke. Use Move to set world position (20, 0, 16), zero rotation. Hide the source sketch; the yoke bottom now clears the crank disk by 2 mm.

Six millimeter extrusion of the rounded yoke profile

17. Create the straight slot cutter

Create a cube, Width 10.4 mm, Depth 54 mm, Height 6 mm. Place its bottom-center at world (20, 0, 16) with zero rotation. This cutter makes the straight portion of the through-slot.

Yoke straight slot cutter sized 10.4 by 54 by 6 mm

18. Mirror the rounded slot end

Create a cylinder with Radius 5.2 mm, Height 6 mm, at (20, -27, 16). Use Mirror Duplicate, choose the World XZ plane, and confirm. The two cylinders form semicircular ends centered at Y = -27 and +27 mm.

Slot-end cylinder mirrored across the World XZ plane

19. Cut the complete yoke slot

Select Yoke first, then the straight cutter and both end cylinders. Choose Cut, keeping source parts off, and confirm. The through-slot is 10.4 mm wide, 64.4 mm long overall, with R5.2 ends.

Three cutters forming the complete rounded yoke through-slot

20. Create the sliding pin block

Create a cube, Width 10 mm, Depth 12 mm, Height 6 mm, at world (20, 0, 16). Name it Sliding Block. Its two X-facing sides have 0.2 mm clearance per side inside the 10.4 mm slot.

Sliding Block dimensions and assembled starting position

21. Bore the sliding block

On the block’s top face, make a straight single Hole, diameter 6.4 mm, depth 6 mm. Set local X = 0 and Y = 0 at local top Z = 6 mm. This gives the 6 mm crank pin 0.2 mm radial clearance.

Through-bore in Sliding Block with 6.4 mm diameter

22. Create the left guide body

Create a cube, Width 16 mm, Depth 32 mm, Height 18 mm, at world (-70, 0, 8). Name it Left Guide. Its bottom sits on Ground and its two mounting holes will line up with the left pair in the plate.

Left Guide blank sized 16 by 32 by 18 mm

23. Size the rectangular guide window

Create a cube cutter, Width 16 mm, Depth 12.4 mm, Height 6.4 mm, at (-70, 0, 15.8). It crosses the full X thickness of the guide. The window leaves 0.2 mm clearance on each Y and Z face of the 12 x 6 mm yoke arm.

Rectangular guide-window cutter and its 15.8 mm bottom elevation

24. Mirror the guide mounting cutter

Create a cylinder cutter with Radius 1.7 mm, Height 18 mm, at (-70, -12, 8). Use Mirror Duplicate > World XZ plane to create the cutter at Y = +12 mm. Both cutters align with the 3.4 mm holes already in Ground.

Guide mounting cylinder mirrored to the opposite Y position

25. Open the guide window and bolt holes

Select Left Guide first, then the window cutter and both mounting cylinders. Choose Cut, turn Keep source parts off, and confirm. The result has one horizontal rectangular window and two vertical through-holes.

Left Guide cut with one window and two mounting bores

26. Create the opposite guide

Select Left Guide and use Mirror Duplicate > World YZ plane. Name the reflected part Right Guide. Its geometry is centered at world X = +70 mm; the mirrored part’s transform origin may retain the source origin, so use the visible geometry when checking its placement.

Right Guide mirrored across the World YZ plane

27. Create the pivot retainer head

Create a cylinder, Radius 8 mm, Height 1.2 mm, at world (0, 0, 14.4). This head sits 0.4 mm above the crank and leaves another 0.4 mm below the yoke.

Pivot retainer head diameter height and assembled elevation

28. Join the pivot retainer peg

Create a cylinder, Radius 2.4 mm, Height 4 mm, at (0, 0, 10.4). Combine it with the head and name the result Pivot Retainer. The peg has 0.1 mm radial clearance and 1 mm bottom clearance in the 5 mm seat.

Pivot retainer peg dimensions before combining it with the head

29. Create the pin retainer head

Create a cylinder, Radius 5.5 mm, Height 2 mm, at (20, 0, 23). Its underside is 1 mm above the block and yoke tops, allowing them to move beneath it.

Pin retainer head with 5.5 mm radius and 2 mm height

30. Join the pin retainer peg

Create a cylinder, Radius 1.9 mm, Height 4 mm, at (20, 0, 19). Combine it with the head and name the result Pin Retainer. Its peg has 0.1 mm radial clearance and 1 mm bottom clearance in the crank pin’s 4 mm seat.

Pin retainer peg at world Z19 before the head and peg are combined

31. Create the crank revolute joint

Show all eight parts and enter Assemble. Create an assembly named Scotch Yoke Drive, set Ground as the position reference, and capture axis anchors from the Ground pivot’s outside cylinder and Crank’s central bore. In Relations, connect them with Revolute, aligned to Z; its RZ angle drives the crank.

Ground to Crank revolute joint in the Relations panel

32. Keep the yoke at its working height

Capture a plane from Ground’s broad top face at Z = 8 mm and a plane from Yoke’s top face at Z = 22 mm, both facing +Z. Add a Planar relation, Ground reference to Yoke target, with Distance 14 mm. This keeps the yoke horizontal while allowing in-plane travel.

Ground top and Yoke top planar relation with 14 mm offset

33. Constrain the yoke to X travel

Capture planes from Ground’s +Y outside face at Y = 60 mm and Yoke’s +Y end face at Y = 44 mm. Add a Planar relation with Ground as reference, Yoke as target, and Distance -16 mm. Together, the two plane relations guide the yoke along X.

Yoke side-plane relation with negative 16 mm offset

34. Connect the block to the crank pin

Capture an axis from Crank’s eccentric pin and an axis from Sliding Block’s bore. Add a Revolute relation between these Z axes. The block follows the eccentric pin while remaining free to turn relative to Crank.

Crank pin to Sliding Block revolute relation

35. Guide the block across the yoke

Capture a plane from Yoke’s +X arm end, world X = 120 mm at the starting pose, and one from Sliding Block’s +X face, world X = 25 mm. Add Planar, Yoke reference to block target, Distance -95 mm. This keeps the block centered across the slot while allowing it to slide along Y.

Yoke to Sliding Block planar relation with negative 95 mm offset

36. Fix the left guide to Ground

Capture a plane on Left Guide. Add a Fixed relation from Ground’s pivot axis anchor to that plane, preserving the current placement at (-70, 0, 8). The relation locks the guide to Ground rather than to the moving yoke.

Fixed relation attaching Left Guide to Ground

37. Fix the right guide to Ground

Capture a plane on Right Guide and add a Fixed relation from Ground’s pivot axis anchor. Preserve the reflected guide’s current placement at geometric center X = +70 mm. Both guide windows should surround the yoke arms.

Fixed relation attaching the mirrored Right Guide to Ground

38. Fix the pivot retainer

Capture a plane on Pivot Retainer and add Fixed from Ground’s pivot axis anchor, preserving its current placement. The cap belongs to Ground, so the crank can rotate beneath its head.

Pivot Retainer fixed to the Ground pivot anchor

39. Fix the pin retainer to Crank

Capture a plane on Pin Retainer. Add Fixed from Crank’s eccentric pin axis anchor to this plane, preserving its current placement. The assembly now uses two Revolute, three Planar, and four Fixed relations.

Pin Retainer fixed to the moving Crank pin anchor

40. Preview the reciprocating movement

Change the Ground-Crank revolute joint’s Angle RZ to 90 degrees, then try 180 and -90 degrees. The yoke passes through center at quarter turns and reaches X = +20 and -20 mm at opposite dead centers. Keep both arms inside the guide windows throughout this 40 mm stroke.

Revolute angle controls previewing the yoke near its centered position

41. Create a looping revolution

In Workspace, create the motion asset One Revolution with Duration 4000 ms. Choose the crank’s RZ driven joint, add a 0 degree keyframe at 0 ms and a 360 degree keyframe at 4000 ms, then enable Loop and press Play. Pause and clear the preview before returning to modeling.

One Revolution motion asset with 4000 ms duration and Loop enabled

42. Arrange the eight parts for printing

Keep an assembled RD before changing the layout. In Modeling, use Move and Rotate Part with the values below; leave Rot Y and Rot Z at zero. Move Left Guide before Right Guide, because the mirrored geometry also follows its source.

Part | Move Pos X, Y, Z (mm) | Rot X (degrees)

  • Ground: 0, 0, 5; 0
  • Crank: -90, 100, 0; 0
  • Sliding Block: -38, 155, 0; 0
  • Left Guide: -90, 155, 0; 0
  • Right Guide: -225, 0, 8; 0
  • Pivot Retainer: -10, 175, 1.2; 180
  • Pin Retainer: 15, 175, 2; 180
  • Yoke: 45, 110, 0; 0

Right Guide’s numbers describe its retained transform origin; after moving the source, these values put its actual bottom-center at (-65, 155, 0). Ground rests on its feet, both retainers rest on their broad heads with pegs up, and every independent part has a gap around it.

Eight separated printable parts with both retainer heads facing the bed

43. Export one STL containing every part

Choose File > Export STL. In Choose export scope, select All visible models, confirm that it includes eight models, then choose Download in browser. Export one file, scotch-yoke-mechanism.stl; keep the parts independent rather than combining the mechanism into one solid.

STL export scope selecting all eight visible models in one file

Finished mechanism and physical assembly

The crank pin carries a separate sliding block inside the yoke slot. The block travels across the slot as the yoke moves through the two guides, producing a nominal 40 mm stroke without a connecting rod. At either stroke end, the 200 mm bar extends 2 mm beyond the far outside face of the engaged guide.

For a printed demonstrator, place Crank over Ground’s pivot and fit Pivot Retainer into its seat. Slide the yoke arms through both guides, place the guides over the plate holes, and fit Sliding Block over the eccentric pin inside the slot. Fit Pin Retainer last. Install the four M3 x 30 screws from the guide tops and secure the nuts below Ground; the 5 mm feet leave room beneath the plate. Bond only the two retainer pegs after confirming free movement.

Project file

scotch-yoke-mechanism.stl contains the eight separated printable parts. Split the imported file into independent objects in your slicer to arrange them across suitable build plates. STL does not retain the editable feature history, part names, joints, or motion asset; keep the assembled RD for editing.

Practical tips

  • The supplied separated layout occupies approximately 263 x 243 x 19.4 mm. It needs rearrangement or multiple plates on a 220 mm bed; a single STL does not mean a single print plate.
  • Review supports beneath Ground’s broad elevated plate and bridging or supports across the guide window roofs. Print the two retainers on their broad heads.
  • The 0.2 mm sliding gaps are per side or radial as specified in the relevant steps. They are CAD allowances, not a guarantee for every printer; start with a small fit trial and remove burrs before assembly.
  • Turn the disk gently by hand and watch the block at the slot ends. This demonstrator has no established powered speed, load capacity, or retainer pull-out rating.

Source: Model and Assemble a Scotch Yoke Mechanism, by the Reactor 3D Team. Interface screenshots and design instructions are from that original tutorial.

Top comments (0)