CS 448M Spring 2019

Goals

This assignment is to build a working t-bot plotter.

  1. Learn how to work with 2020 v-slot aluminum extrusion
  2. Understand how to control bipolar stepper motors
  3. Learn how to compile, install, and run GRBL
  4. Plot a drawing

T-Bot Kit

Bill of Materials

  • 2 x 500mm 2040 v-slot (A)
  • 8 solid v-wheel kits[w/ 2 precision spacers and 1 nylock nut] (B)
  • 4 eccentric spacers (C)
  • 6 spacers 1/4" (D)
  • 2.133m 6mm wide GT2 belt (E) ** note that you need to cut your own belt! **
  • 2 GT2 smooth pulley (F)
  • 2 GT2 timing pulleys, 20t (G)
  • 1 arduino uno R3 (H)
  • 1 stepper motor driver shield (I)
  • 2 stepper motor driver (J)
  • 2 NEMA-17 stepper motors (K)
  • 1 IEC power cord (L)
  • 1 Mean Well LRS-150-24 24V power supply (M)
  • 2 thin M5 t-nuts (N)
  • 2 M5 nylock nuts (O)
  • 6 thick M5 t-nuts (P)
  • 2 M5x5mm set screws (Q)
  • 6 M5x10mm BHCS (Q)
  • 8 M5x30mm BHCS (R)
  • 2 M5x25mm BHCS (R)
  • 8 M3x10mm BHCS (S)
  • 2 Omron snap-action switches (T)
  • 1 SG90 9g micro servo (U)
  • 8 M5 precision shims (V)
  • 1 laser cut center plate (W)
  • 2 laser cut motor plates (X)
  • 1 laser cut idler plate (Y)

Mechanical

Assembling center plate

Components

Instructions

** Click on an image to view a larger version of it.

  1. Start by removing the protective paper from the acrylic plate.

    WARNING: (1) The edges of laser-cut acrylic can be sharp and may require scraping or sanding; (2) Removing paper protection from acrylic may be difficult.
  2. Assemble the 8 solid v-wheels. This involves inserting 2 bearings into the wheel with a precision shim placed between the bearings. Solid v-wheel kit assembly video
  3. Attach 4 solid v-wheels to one slide of the center plate. Each v-wheel requires 1 M5x30mm cap screw, a v-wheel, a 1/4" spacer or eccentric spacer, 2 precision shims, and a nylon nut. First, insert the 4 machine screws facing up, then place a spacer and 2 shims on each bolt. Next add the v-wheel, and then place the nylon nut and hand tighten. The plate's large holes are for the eccentric spacers.

    Note that as the eccentric spacer is rotated the off-axis center hole causes the center of the spacer to move relative to the center of the plate. Orient the eccentric spacer so that the notch is facing outward; aligning it in this way creates the maximum distance between the opposing wheels.
  4. Flip the plate over and attach 4 more solid wheels on the other side.
  5. Insert a piece of 2040 through the wheels on the top. Adjust the eccentric spacers to achieve smooth motion. The wheels should fit tightly against the 2040 so that there is no play, yet not so tight that you cannot rotate the wheels by hand. Repeat this process for the 2040 on the bottom.

    WARNING: The edges of the 2040 are sharp, and can damage the wheels when inserted into the assembly. Assemble the 2040 & wheel assembly once, then tighten the elliptical spacers last.

Stepper motor and mount

Components

Instructions

** Click on an image to view a larger version of it.

  1. Attach the stepper motor to the motor mounting plate using 4 M3 BHCS.
  2. Slide 2 x M5 machine screws through the center holes of the mounting plate. Attach a t-nut to each screw.
  3. Attach the timing pulley to the shaft of the stepper motor. Note that the shaft has a flat side. Align one of the set screws so that it pushes against the flat side and tighten both screws.
  4. Repeat this process for the second stepper motor.

Idler pulleys and mount

Components

Instructions

** Click on an image to view a larger version of it.

Attach smooth pulleys to the mounting plate.
  1. Insert 25mm cap screw through one side, then on the other side add the spacer, the pulley, and then tighten with a nylock nut. Make sure not to overtighten the assembly, the pulleys should still be able to rotate. It's okay if the assembly is a little loose.
  2. Repeat for the 2nd pulley.
  3. Add 2 x 10mm machine screws and t-nuts.
Idler mount Idler pulleys and mount Idler pulleys and mount Idler pulleys installed Idler pulleys installed on 2040 Idler pulleys installed on 2040 Idler pulleys installed on 2040

Assembling tbot

Components

Assembly

** Click on an image to view a larger version of it.

  1. Slide center plate onto 2040.
  2. Attach idler pulleys to one end of 2040.
  3. Cut timing belt to length. The final length should be 2.133 m.
  4. Position timing belt.
  5. Attach stepper motor to one side of extrusion.
  6. Slide extrusion with belt through v-wheels on center plate.
  7. Loop timing belt through solid v-wheels.
  8. Loop timing belt over timing pulleys attached to stepper motors.
  9. Adjust timing-belt tension using the thin t-nuts. You may need to use a set screw to hold the belt in place.
center plate center plate 2 stepper motors and center plate center plate

Electrical

Power supply

Components

Instructions

** Click on an image to view a larger version of it.

  1. Slide switch on power supply to 115 VAC position (photo 2).
  2. Cut off the female end of the power cord. The male (the one that plugs into the wall outlet should still be attached to the cord).
  3. Cut the outer sleeve on the power cord. You should remove approximately 1.5 in of the sleeve. After you do this, three wires should be exposed.
  4. Strip the three wires so that approximately 1/4" of copper wire is exposed.
  5. Attach line, neutral and ground to power supply terminals. Now is a good time to memorize the color scheme for electrical wiring. Ground is green, neutral is white, and live is black. Take care to attach the right lines to the right terminals (photo 3).

    WARNING: Be Careful! These are live wires.

Stepper motor shield and stepper motor drivers

Components

Instructions

** Click on an image to view a larger version of it.

The stepper motor shield has space for 4 stepper motor driver chips. The plotter only uses two of them, one for X and one for Y.
  1. The plastic jumpers are used to configure the CNC SHIELD's stepper motor drivers for microstepping. Slide 3 jumpers over the headers M0, M1, and M2 (see diagram) to configure the driver to 16 microsteps. Do this for both the X and the Y axes.
  2. Insert 2 stepper motor drivers (A4988) in X and Y axis sockets of the stepper motor shield.

    WARNING: Make sure that the stepper motor drivers are oriented correctly.
  3. Attach the stepper motor driver shield to the Arduino UNO
  4. Attach stepper motor cables to the 4 pin headers.
  5. Locate the red-black power zip cord. Cut a short length (8-12 in) and strip the wire ends exposing about 1/4" of copper wire. Attach 24V DC power supply to the stepper motor shield power terminals. Make sure you connect positive to positive, and negative to negative. The power supply provides power to the stepper motors.

    WARNING: DO NOT apply motor power to the shield unless the stepper motors as attached to the driver chips. Providing power when a motor is not attached will short-circuit the driver chips.

Software

Instructions

  1. Download Arduino development environment

  2. Clone GRBL 1.1. The wiki has instructions on how to compile using the Arduino IDE (recommended).

  3. Follow the instructions to compile grbl in CoreXY mode. This involves uncommenting the CoreXY definition in config.h before compiling.

     % make   # or use Arduino IDE
    
  4. Connect the Arduino UNO to your laptop and install.

     % make install   # or use Arduino IDE
    
  5. Download Universal GCODE Sender. Check your GRBL settings by entering “$$”

  6. Configure GRBL settings by entering these values:

    $100=80
    $101=80
    $110=2500
    $111=2500
    $120=200
    $121=200

  7. Test by jogging, then try plotting a square.

Pen holder and other attachments

TBD