Poll
Question: I am Requesting for some help?
Help - 0 (0%)
Help - 2 (100%)
Total Voters: 2

Pages: [1]   Go Down
Author Topic: Help,Aarduino with L298  (Read 647 times)
0 Members and 1 Guest are viewing this topic.
Kampala-Uganda
Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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);
}


* from website.png (33.46 KB, 768x493 - viewed 22 times.)

* from website.png (33.46 KB, 768x493 - viewed 15 times.)
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 634
Posts: 34572
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you connected the motor power ground to the arduino ground?

In the diagram you have pins 2, 3, 4 & 5 connected to the motor, where as in your sketch you have pins 8, 9, 10 & 11 defined as the motor pins.
Logged

Kampala-Uganda
Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yeah i put the digital pins from 8 through 11 not as indicated
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 634
Posts: 34572
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes this seems to be all too common with people asking for help, not providing a true picture of what you have. How do you expect to get help if you provide false information?

OK so lets start again.

What happens? Do you feel the motors energise when the power is applied? Do you here any vibrations when the motor is trying to turn?
Logged

Kampala-Uganda
Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No they are no energisations particulary with this circuit.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 634
Posts: 34572
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You need to measure if the motor voltage is on the pin of the driver chip. Also the ground of the power supply must be connect to the ground of the arduino.
Logged

Pages: [1]   Go Up
Jump to: