Stepper Motor Slider
thingiverse
Only three pieces are required. Use a motor step like the 28BYJ-48 DC, which operates on either 12V or 5V, and pair it with a driver for optimal performance. Adding lubricant can also enhance the overall experience. You will need two Allen M4 screws to secure everything in place. Additionally, one End Stop Switch is necessary to ensure smooth operation. Here's an example Arduino code to get you started, available as .ino files within Thing Files:
Download Model from thingiverse
With this file you will be able to print Stepper Motor Slider with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Stepper Motor Slider.