<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Problem with A4899 drivers</title>
        <description> Hi, until a few days ago, I&#039;ve never been able to make a functioning 3D printer with my
1.4 board, so I&#039;ve decided to do some manual tests with my Arduino on the motor drivers (the 
A4899).

First of all I&#039;ve placed it on a breakboard. I&#039;ve connected VDD and GND to 5V rail of the Arduino,
the VMO and GND to a 9V battery with a 100μF capactitor, I&#039;ve connected the two pairs of the
motor, the STEP and DIR pins to two digital pins on the Arduino and lastly I&#039;ve shorted
together RESET and SLEEP. After all of this the motor worked fine.
(Photo od the breadboard attached [attachment 92354 breadboard.jpg])
Here&#039;s the code by the way


#define STEP 3
#define DIR 4

void setup()
{
  pinMode(STEP, OUTPUT);
  pinMode(DIR, OUTPUT);
}

void loop()
{
  digitalWrite(DIR, HIGH);
  for(int i = 0; i &amp;lt; 10; i++)
  {
    digitalWrite(STEP, HIGH);
    delayMicroseconds(250);
    digitalWrite(STEP, LOW);
    delayMicroseconds(250);
  }
  delay(100);
  digitalWrite(DIR, LOW);
}


So, I&#039;ve put a single stepper driver (and nothing else) on the Ramp board, and it didn&#039;t work at
all. After some tests I&#039;ve decided that, instead of placing the driver directly on the
socket, I would attacch it with some jumper wires (photo attached [attachment 92355 jumpers.jpg]). With a multimeter
I&#039;ve found that the DIR pin on the E0 socket was connected to the pin 28 on my Arduino and
the STEP to pin 26, so it was easy to change the code based on that.

Of course it didn&#039;t work, so I&#039;ve started disconnecting some of the wires and biapssing
the RepRap board, first of all I&#039;ve connected the VMO and GND to the same 9V battery, but it
didn&#039;t change anything. Then I&#039;ve started leaving disconnected some of the cables and I&#039;ve
found that without the ENABLE pin attached it worked fine and I could control the motor.

After some researching on the datasheet, I figured out that when the ENABLE pin is set to
high the driver will not work, so I&#039;ve done some inspecion with the multimeter and found that
the ENABLE pin on the driver socket is actually connected to the 5V rail on the Arduino, which
means that the driver will never function.

Is my inference correct? If yes, how can I fix it? Is my board faulty?</description>
        <link>https://reprap.org/forum/read.php?4,758400,758400#msg-758400</link>
        <lastBuildDate>Sun, 06 Sep 2026 08:05:10 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?4,758400,758553#msg-758553</guid>
            <title>Re: Problem with A4899 drivers</title>
            <link>https://reprap.org/forum/read.php?4,758400,758553#msg-758553</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>master1900</strong><br />
Is my inference correct? If yes, how can I fix it? Is my board faulty?</div></blockquote>
<br />
Not enough information. ENABLE is pulled high by a resistor on RAMPS 1.4, so if you measure the voltage it will be 5V. The Arduino firmware should drive it low to enable the stepper.<br />
<br />
It's also possible the driver module is faulty, I've had a few bad ones.<br />
<br />
BTW I assume you mean A4988, A4899 does not exist. Unless you mean car drivers on the A489 out of Newtown, they are pretty bad :)]]></description>
            <dc:creator>bobc</dc:creator>
            <category>Reprappers</category>
            <pubDate>Sun, 26 Mar 2017 13:17:42 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?4,758400,758482#msg-758482</guid>
            <title>Re: Problem with A4899 drivers</title>
            <link>https://reprap.org/forum/read.php?4,758400,758482#msg-758482</link>
            <description><![CDATA[ IIRC, the Enable pin is low active. You'd have to switch or hardwire it to GND.<br />
<br />
PS: There is a readymade <a href="http://reprap.org/wiki/File:RAMPS1.4_TestCode.pde" target="_blank"  rel="nofollow">Ramps_test program</a> in the Wiki. I had a hard time finding it, there is no link from the RAMPS mainpage?!]]></description>
            <dc:creator>o_lampe</dc:creator>
            <category>Reprappers</category>
            <pubDate>Sun, 26 Mar 2017 02:49:46 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?4,758400,758400#msg-758400</guid>
            <title>Problem with A4899 drivers</title>
            <link>https://reprap.org/forum/read.php?4,758400,758400#msg-758400</link>
            <description><![CDATA[ Hi, until a few days ago, I've never been able to make a functioning 3D printer with my<br />
1.4 board, so I've decided to do some manual tests with my Arduino on the motor drivers (the <br />
A4899).<br />
<br />
First of all I've placed it on a breakboard. I've connected VDD and GND to 5V rail of the Arduino,<br />
the VMO and GND to a 9V battery with a 100μF capactitor, I've connected the two pairs of the<br />
motor, the STEP and DIR pins to two digital pins on the Arduino and lastly I've shorted<br />
together RESET and SLEEP. After all of this the motor worked fine.<br />
(Photo od the breadboard attached [attachment 92354 breadboard.jpg])<br />
Here's the code by the way<br />
<br />
<pre class="bbcode">
#define STEP 3
#define DIR 4

void setup()
{
  pinMode(STEP, OUTPUT);
  pinMode(DIR, OUTPUT);
}

void loop()
{
  digitalWrite(DIR, HIGH);
  for(int i = 0; i &lt; 10; i++)
  {
    digitalWrite(STEP, HIGH);
    delayMicroseconds(250);
    digitalWrite(STEP, LOW);
    delayMicroseconds(250);
  }
  delay(100);
  digitalWrite(DIR, LOW);
}</pre>
<br />
<br />
So, I've put a single stepper driver (and nothing else) on the Ramp board, and it didn't work at<br />
all. After some tests I've decided that, instead of placing the driver directly on the<br />
socket, I would attacch it with some jumper wires (photo attached [attachment 92355 jumpers.jpg]). With a multimeter<br />
I've found that the DIR pin on the E0 socket was connected to the pin 28 on my Arduino and<br />
the STEP to pin 26, so it was easy to change the code based on that.<br />
<br />
Of course it didn't work, so I've started disconnecting some of the wires and biapssing<br />
the RepRap board, first of all I've connected the VMO and GND to the same 9V battery, but it<br />
didn't change anything. Then I've started leaving disconnected some of the cables and I've<br />
found that without the ENABLE pin attached it worked fine and I could control the motor.<br />
<br />
After some researching on the datasheet, I figured out that when the ENABLE pin is set to<br />
high the driver will not work, so I've done some inspecion with the multimeter and found that<br />
the ENABLE pin on the driver socket is actually connected to the 5V rail on the Arduino, which<br />
means that the driver will never function.<br />
<br />
Is my inference correct? If yes, how can I fix it? Is my board faulty?]]></description>
            <dc:creator>Anonymous User</dc:creator>
            <category>Reprappers</category>
            <pubDate>Sat, 25 Mar 2017 12:48:33 -0400</pubDate>
        </item>
    </channel>
</rss>
