Attach Everything Together

Method

Step 1: Connect the electronics

Connect the wires from the LED pushbutton and the sensor switch into the relevant ports of the Arduino, as shown below. You will need several breadboard jumper cables.

Stepper driver expansion to Arduino Uno

Connect the 42CH Stepper Motor Driver Expansion Board and the Arduino Uno together as shown.

Connect the stepper driver expansion board DIR to Arduino Pin 2.

Connect the stepper driver expansion board STEP to Arduino Pin 3.

Connect the stepper driver expansion board EN to Arduino Pin 4.

Connect the stepper driver expansion board V to the Arduino 5V Pin.

Connect the stepper driver expansion board G to the Arduino Uno GND.

DC socket to Stepper driver expansion

Connect the negative terminal of the soldered DC socket to the stepper drive expansion board screw terminal GND. Connect the negative terminal of the soldered DC socket to the stepper drive expansion board screw terminal VIN. .

Before operation you should adjust the current limiting potentiometer on the [DRV8825] using these instructions (under Current limiting).

Change the dip switches on the Stepper driver expansion board to:

MS1 MS2 MS3 Microstep Resolution
High Low Low Half step

Button and swiches

Connect the positive terminal of the soldered LED pushbutton button to the Arduino Pin 5. Connect the negative terminal of the LED (part of the soldered LED pushbutton) to the stepper driver expansion board GND. Connect the positive terminal of the LED (part of the soldered LED pushbutton) to the Arduino Pin 13. Connect the negative terminal of the soldered LED pushbutton button to the Arduino GND. Connect the positive terminal of the soldered limit switch to the Arduino Pin 6. Connect the negative terminal of the soldered limit switch to the Arduino Pin GND.

Step 2: Screw the lid onto the base

Push four M3 nuts into the base nut traps. Use four M3x8mm screws on the four corners to secure the assembled lid onto the assembled base with a M2.5 hex screwdriver.

Step 3: Attach the slider

Screw the lead screw nut onto the rotating arm of the nema motor.

Align the holes of the assembled slider with two holes opposite each other of the lead screw nut and attach them together using two M3x8mm screws with a M2.5 hex screwdriver.

Step 4: Upload the Arduino code

Install the Arduino programming software (from the website), along with the Arduino code required for running this device. Upon downloading the software, open up the code. You will need to install the AccelStepper library.

Connect the Arduino to the computer and select the corresponding port connected to the Arduino in the software (under Port in Tools).

(The Arduino software version used at the time of this documentation Arduino IDE 1.8.15)

At the top of the code, under //Adjust these variables, are various parameters that can be altered:

When the appropriate parameters are adjusted, upload the code onto the Arduino of the autohaem smear+ device.

Step 5: Plug in the power supplies

Connect the Arduino power supply to the right-most port (smaller rectangular hole) of the autohaem smear+ device. This will be used to power the Arduino Uno.

Next, connect the Motor power supply to the circular port of the autohaem smear+ device. This will be used to power the motor.


Previous page | Next page