DIY - Motorized Camera Slider | Adjustable Step-Speed and Joystick controlled


In this video we will build a DIY Motorized Camera Slider with a few 3D printed parts, an Arduino Uno, a L293D Motor Shield and some components. It has the ability to move with a joystick module and adjust step-speed with a potentiometer. Required Hardware: Arduino Uno - https://goo.gl/RcRmi1 L293D Motor Shield - https://goo.gl/qty5um Joystick Module - https://goo.gl/qupktG Potentiomer 10K - https://goo.gl/zZWTKZ NEMA 17 Stepper - https://goo.gl/Nyyoqv Slide Rail with Platform - https://goo.gl/EnR1pJ 36 Tooth GT2 Pulley - https://goo.gl/gpcc1v 608ZZ Ball Bearing - https://goo.gl/ZGmqds GT2 Timing Belt - https://goo.gl/bWVSyG 8x AA Battery Holder - https://goo.gl/RqYZjm 3/8 to 1/4 Adapter Screw - https://goo.gl/X3Vnfc Tripod Adapter Bracket - https://goo.gl/hC2S5y Shoe Mount Adapter - https://goo.gl/BE9hnQ Screws Nuts- https://goo.gl/DD5gxq 4-Pin Wire Cable - https://goo.gl/eQ9V4r Jumper Wires - https://goo.gl/EGTafY Female Header Socket - https://goo.gl/osrVis Tools: JGAURORA A3S 3D Printer - https://goo.gl/o5pQcb DANIU Soldering Kit - https://goo.gl/2oZhtu Realacc Four Arms Holder - https://goo.gl/BCehBi 16MP HD Action Camera - https://goo.gl/rj8qtK 3D Parts - https://goo.gl/Yxidbs

This project was inspired by this source: https://learn.adafruit.com/bluetooth-...

Source Code:
You'll need to make sure the Adafruit Motor Shield library used by the code are installed.
#include <AFMotor.h>

AF_Stepper mertArduino(200,1);

int joystickPin = A0;
int potentiometerPin = A1;
int valueJoystick;
int valuePotentiometer;
int valueMotorSpeed;

void setup(){mertArduino.release();}

void loop(){
  valuePotentiometer = analogRead(potentiometerPin);
  valueMotorSpeed = map (valuePotentiometer, 0, 1023, 0, 50);
  mertArduino.setSpeed(valueMotorSpeed);
  valueJoystick = analogRead(joystickPin);
  if(valueJoystick < 549 && valueJoystick > 449){mertArduino.release();}
  if(valueJoystick < 450){mertArduino.step(1, FORWARD, MICROSTEP);}
  if(valueJoystick > 550){mertArduino.step(1, BACKWARD, MICROSTEP);}
}