Stepper motor,Carriage

Hii Everyone,

This is Eliyas,
Can you help to write a code to move forward & backward to integrated the 9 wire printhead using bipolar stepper motor with help of Arduino uno board.

Thanks in advanced

Yes.

We need some additional information.

Post your sketch, well formated, with well-tempered comments and in so called code tags "< code >" and a detailed circuit diagram to see how we can help.

Have a nice day and enjoy coding in C++.

In this we are using

  1. bipolar stepper motor
    CR1
    CR2
    CR3

    .
    2.DRV8811 ic
    3.Arduino uno board.

note:- Below i am attaching the project specifications pls check it.
drv8811.pdf (2.2 MB)

This will work with a TI DRV8811:

https://www.airspayce.com/mikem/arduino/AccelStepper/Bounce_8pde-example.html

// Bounce.pde
// -*- mode: C++ -*-
//
// Make a single stepper bounce from one limit to another
//
// Copyright (C) 2012 Mike McCauley
// $Id: Random.pde,v 1.1 2011/01/05 01:51:01 mikem Exp mikem $
 
#include <AccelStepper.h>
 
// Define a stepper and the pins it will use
AccelStepper stepper; // Defaults to AccelStepper::FULL4WIRE (4 pins) on 2, 3, 4, 5
 
void setup()
{  
  // Change these to suit your stepper if you want
  stepper.setMaxSpeed(100);
  stepper.setAcceleration(20);
  stepper.moveTo(500);
}
 
void loop()
{
    // If at the end of travel go to the other end
    if (stepper.distanceToGo() == 0)
      stepper.moveTo(-stepper.currentPosition());
 
    stepper.run();
}

...but you need to modify it to use the driver config rather than the 4-wire config:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.