• 1
    Watch the Video
  • 2
    Get All the Stuff

    For this project, you will need:

    • An Arduino microcontroller board
    • A PS/2 touchpad from a laptop(Try to get one with a Synaptics chip onboard)
    • *A ULN2003 stepper motor driver(For unipolar stepper motors(5-wire))
    • *An L298N stepper motor driver(For bipolar stepper motors(4-wire) as well as unipolar stepper motors)
    • 6 male to female jumper wires(2 for power and 4 for digital signals)
    • A stepper motor
    • A 5-12 volt DC power source(Depending on the stepper motor)

    Here, the setup is powered from a mobile phone charger that supplies 5-volts to the Arduino board and the stepper driver. Even though the stepper motor is rated for 12-volt, you can use a lower voltage supply if the torque requirements of the motor are not high because using a lower voltage supply will keep the motor as well as the driver cooler.

    *Both the stepper motor drivers have the same pin connections with the Arduino board.

  • 3
    Get the Ps2 and Accel Stepper Libraries

    Download the folder of the ps2 library from here. Move the downloaded folder to the desktop as it will be easier to find. Open the Arduino IDE and click Sketch>Include Library>Add .ZIP Library... and then select the ps2 folder from the desktop. The library will be included and you now be able to use the ps2 library.

    For the Accel Stepper library, you can get it by pressing Ctrl+Shift+I and then typing in 'Accel Stepper' and installing the library.