Pages: [1]   Go Down
Author Topic: Arduino Mega y pololu drv8825  (Read 2596 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

First, I wish to greet all the members of this forum and that these words are worth as presentation.
And, of course, I want to ask a little question I have:

How do I connect pololu driver with arduino mega 8825 2560r3?, I tested with the connection shown in pololu site
http://www.pololu.com/catalog/product/2132  and is not in any way.

To test, I loaded the program on the arduino:

int sleep = 11;
int reset = 10;
int direccion = 9;
int paso = 8;


void setup()
{       
  pinMode(sleep,OUTPUT);
  pinMode(reset,OUTPUT);
  pinMode(direccion,OUTPUT);
  pinMode(paso,OUTPUT);
 
  pinMode(12,OUTPUT);

  digitalWrite(sleep, HIGH);
  digitalWrite(reset, HIGH);
  digitalWrite(direccion, HIGH);
 
}



void loop()
{
      digitalWrite(12, HIGH);
      digitalWrite(paso, HIGH);
      delay(100);
      digitalWrite(12, LOW);
      digitalWrite(paso, LOW);
      delay(100);
}
The pin 12 is to see me in a LED each program cycle ...

Awaiting your instructions ...


A greeting.
P.D.: Sorry for the English, is the translator of google.
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 227
Posts: 6639
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Your code looks OK to me. Post a photo of the boards, stepper and the wiring between them, then we can see if that looks OK too.

What voltage power supply are you using for the stepper motor?
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

First of all thanks for answering so quickly.
It is like putting the images in the message. When stepping motor feed him with a 12v source. and noticed that the engine responds something, to play with their coils 12v directly. The scheme is the one in the link in the section where it says "using the driver". What I have is not the 100uF capacitor in the motor supply terminals.

Initializations terminals "sleep" and "reset" for I have put in place instead of directly to +5 v, inicializaras with arduino so you can "play" with the settings to see if it must be HIGH or LOW

Thanks again and I hope your answers.
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 227
Posts: 6639
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

To put images in the message, click on "Additional Options..." and then "Choose file".
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is the scheme with which I have decided to write the post.


* conexionado.JPG (65.68 KB, 939x579 - viewed 378 times.)
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 227
Posts: 6639
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you confirm:

1. You have a wire between one of the Arduino GND pins and the GND connection (next to ¬FAULT) at the bottom right of the DRV8825 board;

2. You have the other GND connection (the one next to VMOT) on the DRV8825 connected to the negative or common output from the 12V power supply?
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Rome
Offline Offline
Full Member
***
Karma: 2
Posts: 188
I love Arduino
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm playing with drv8825 and I have the same problems. The DRV8825 doesn't work. I use 12V power supply, the wiring is the same you have put in place.
I connected with Arduino only one gnd, because in the driver the gnd pins are already connected.
May be is the capacitor? I don't think because in the manual is written that it is used only to avoid destructive LC voltage spikes.
The mistery is not ended...
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

GND all the sack of the same power supply generates +5, -5, 0 (GND), +12 and-12V. The LED connected to pin 12 of arduino I use testing as well as I tried to exit the arduino variety STEP.
Logged

Pages: [1]   Go Up
Jump to: