Hello Every Body
I'm using Arduino UNO + L239 Motor Shield + 2 stepper motor + 1 Mini Servo Motor
When I Use internal Arduio Library Example for servo it working fine only Changing Pin# to 10
But when I use Stepper example it doesn't work , default Pin not working.
could please help me to get correct pin# for 2 stepper motor ?
Thanks in advance
Please supply your code for the stepper motor and please use CODE TAGS < / >
Dear Find below my code which I use but it not working because
i can not get PIN # for 2 stepper i want to use
Note : my stepper is connected by 4 wires
that means i'm using 8 wires for 2 steppers with L239D Shield .
Please help me to get correct PIN# for each Stepper .
Regards,,,
#include <Servo.h>
#include <Stepper.h>
#define LINE_BUFFER_LENGTH 512
// Servo position for Up and Down
const int penZUp = 80;
const int penZDown = 40;
// Servo on PWM pin 6
const int penServoPin = 10;
// Should be right for DVD steppers, but is not too important here
const int stepsPerRevolution = 20;
// create servo object to control a servo
Servo penServo;
// Initialize steppers for X- and Y-axis using this Arduino pins for the L293D H-bridge
Stepper myStepperY(stepsPerRevolution, 2,3,4,5);
**Stepper myStepperX(stepsPerRevolution, 8,9,10,11); **
/* Structures, global variables */
struct point {
float x;
Please learn how to use code tags !
Partial code is also pretty much useless.
Its not uncommon for some of us to try the code as between us all we often have both the hardware and Arduinos to try something to help.
I'm out...
Sorry
But say that you don't Know it is not problem
my request is very simple .
Pin # for 2 stepper connected to motor shield L239d
Regards,,,