Guiye Perez Bongiovanni
Published © GPL3+

Slider Built with Recycled Printer Cart

Slider for medium camera, with programmable speed and paths.

IntermediateShowcase (no instructions)4,230
Slider Built with Recycled Printer Cart

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Adafruit motorshield V1
×1
old inkjet printer
×1
stepper motor generic
×1
Camera (generic)
×1
Power supply 12V 0,5A
×1

Software apps and online services

Arduino IDE
Arduino IDE
Mucha paciencia

Hand tools and fabrication machines

Corded Pillar Drills
screws
metal nuts

Story

Read more

Schematics

Stepper connection

Code

Velocidad y detención a distancias programables.

Arduino
// Slider con velocidad y detenciones a distancias
// determinadas editables. 


#include <AFMotor.h>

AF_Stepper motor(48, 2);

void setup() {
  Serial.begin(9600);           // set up Serial library at 9600 bps
  Serial.println("Stepper test!");

  motor.setSpeed(80);  // Cambiar velocidad según necesidad

  motor.step(100, BACKWARD, INTERLEAVE); 
  motor.release();
  delay(4000);        // Tiempo de detención en un lugar específico
}

void loop() {
  
motor.step(100, BACKWARD, INTERLEAVE); 
  delay(4000);

motor.step(100, BACKWARD, INTERLEAVE); 
  delay(4000);
  
motor.step(100, BACKWARD, INTERLEAVE); 
  delay(4000);

  motor.step(100, BACKWARD, INTERLEAVE); 
  delay(4000);

  motor.step(400, FORWARD, INTERLEAVE); 
  delay(4000);

}

Movimiento continuo con velocidad y aceleración programable

Arduino
// Slider de movimiento continuo
// con aceleracion y desaceleracion
// al arrancar y detenerse.

#include <AccelStepper.h>
#include <AFMotor.h>

AF_Stepper motor1(48, 2);

// you can change these to DOUBLE or INTERLEAVE or MICROSTEP!
void forwardstep() {  
  motor1.onestep(FORWARD, INTERLEAVE);
}
void backwardstep() {  
  motor1.onestep(BACKWARD, INTERLEAVE);
}

AccelStepper stepper(forwardstep, backwardstep); // use functions to step

void setup()
{  
      Serial.begin(9600);           // set up Serial library at 9600 bps
  Serial.println("Stepper test!");
    
    stepper.setMaxSpeed(100.0);
    stepper.setAcceleration(100.0);
    delay(3000);
}

void loop()
{  
   stepper.runToNewPosition(0);
    delay(3000);
      
    stepper.runToNewPosition(400);
    delay(3000);
    

}

Credits

Guiye Perez Bongiovanni

Guiye Perez Bongiovanni

10 projects • 22 followers
Artist / Maker

Comments