Show Posts
Pages: 1 [2]
16  Topics / Robotics / Need some help on Arduin+L298 on: February 08, 2012, 08:22:46 am
I have wired up the circuit in the arduino cookbook on page 289 as is,for now three times and it seems not to be working,has any one ever tried that before?I have attached the image.
And about the PID Library,i want to incorporate a PID code into the code for my bipolar steppr motor,how can i do this,the code for the motor is this,
#include <Stepper.h>

const int steps = 200;

Stepper Stepper(steps, 8,9,10,11);           

void setup() {
 
  Stepper.setSpeed(60);
 :
  Serial.begin(9600);
}

void loop() {
 
   Serial.println("clockwise");
 Stepper.step(steps);
  delay(500);
 
  Serial.println("counterclockwise");
 Stepper.step(-steps);
  delay(500);
}
17  Using Arduino / Project Guidance / Help,Aarduino with L298 on: February 08, 2012, 07:57:37 am
I have wired up the circuit in the arduino cookbook on page 289 as is,for now three times and it seems not to be working,has any one ever tried that before?I have attached the image.
And about the PID Library,i want to incorporate a PID code into the code for my bipolar steppr motor,how can i do this,the code for the motor is this,
#include <Stepper.h>

const int steps = 200;

Stepper Stepper(steps, 8,9,10,11);           

void setup() {
 
  Stepper.setSpeed(60);
 :
  Serial.begin(9600);
}

void loop() {
 
   Serial.println("clockwise");
 Stepper.step(steps);
  delay(500);
 
  Serial.println("counterclockwise");
 Stepper.step(-steps);
  delay(500);
}
Pages: 1 [2]