- Wed Dec 01, 2010 3:57 pm
#114646
i have an easydriver+stepper connected to an arduino.
only step pin is attached to pin 48 (mega).
if i connect a servo to any PWM pin > stepper STEP pin starts getting pulses > stepper rotates constantly.
i trimmed down the code, to the bare minimum to reproduce.
mybe i need some filtering ?
servo gets 5V and stepper 12V, arduino is powered via usb, ground is shared.
before i connected the servo i had no problems.
i also tried powering the servo via the easydriver regulated 5v output. same deal.
only step pin is attached to pin 48 (mega).
if i connect a servo to any PWM pin > stepper STEP pin starts getting pulses > stepper rotates constantly.
i trimmed down the code, to the bare minimum to reproduce.
mybe i need some filtering ?
Code: Select all
power via modified ATX psu. #include <Servo.h>
Servo myservo;
void setup() {
myservo.attach(9);
}
void loop() { }
servo gets 5V and stepper 12V, arduino is powered via usb, ground is shared.
before i connected the servo i had no problems.
i also tried powering the servo via the easydriver regulated 5v output. same deal.