DC Motor
A Greartisan DC 12 V 120 RPM motor was used to drive the motion of the entire mechanism. The motor angle range went from 0° to 180° to produce the desired slider stroke length of six inches.
Arduino Uno and Arduino Motor Shield
An Arduino REV3 Motor Shield was combined with an Arduino Uno microcontroller to control the behavior of the DC motor. This setup was used so that the microcontroller could interface with this higher-voltage motor and with the power supply. An Arduino sketch was used to write to the motor to achieve the desired motion (see Appendix for the exact code that was used).
Power supply
The power supply was used to power up the 12 V DC motor since an Arduino is only capable of outputting a maximum of 5 V at its output pins. A power cord served as a direct connection between the power supply and a wall electrical outlet.