Where did I go wrong by trying to add an extra motor to my board?Z axis issue with Ramps 1.4Can I use external stepper motor power and USB connectionControlling more fans with RAMPS boardStepper motors are not working when connected with RAMPS 1.4Why did my stepper motor controller chips burn?Error:Printer halted. kill() called!After some time stepper motor is hotPronterface not connecting ERROR: A device attached to the system is not functioningDisplay locks when executing G-code for laser cutting using Marlin on RAMPS boardDigital vs. analog pins

Prepare a user to perform an action before proceeding to the next step

If the Moon were impacted by a suitably sized meteor, how long would it take to impact the Earth?

What Marvel character has this 'W' symbol?

Derivative is just speed of change?

What are these hats and the function of those wearing them? worn by the Russian imperial army at Borodino

Adding a (stair/baby) gate without facing walls

How did Biff return to 2015 from 1955 without a lightning strike?

Why didn't General Martok receive discommendation in Star Trek: Deep Space Nine?

What to expect in a jazz audition

Is it unprofessional to mention your cover letter and resume are best viewed in Chrome?

How to structure presentation to avoid getting questions that will be answered later in the presentation?

Why is “deal 6 damage” a legit phrase?

Were there any unmanned expeditions to the moon that returned to Earth prior to Apollo?

Academic progression in Germany, what happens after a postdoc? What is the next step?

Why do we need a voltage divider when we get the same voltage at the output as the input?

What force enables us to walk? Friction or normal reaction?

Can I shorten this filter, that finds disk sizes over 100G?

How does the barbarian bonus damage interact with two weapon fighting?

No Shirt, No Shoes, Service

My employer is refusing to give me the pay that was advertised after an internal job move

In the Schrödinger equation, can I have a Hamiltonian without a kinetic term?

Rampant sharing of authorship among colleagues in the name of "collaboration". Is not taking part in it a death knell for a future in academia?

How can flights operated by the same company have such different prices when marketed by another?

LWC: Removing a class name on scroll



Where did I go wrong by trying to add an extra motor to my board?


Z axis issue with Ramps 1.4Can I use external stepper motor power and USB connectionControlling more fans with RAMPS boardStepper motors are not working when connected with RAMPS 1.4Why did my stepper motor controller chips burn?Error:Printer halted. kill() called!After some time stepper motor is hotPronterface not connecting ERROR: A device attached to the system is not functioningDisplay locks when executing G-code for laser cutting using Marlin on RAMPS boardDigital vs. analog pins






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4












$begingroup$


I'd like to add an extra motor to my board and I'm not sure where I went wrong. The motor will be used to spin a rotating wheel/carriage of potential hot ends to switch to. Because it's just a motor it doesn't need a heatrod or a temperature sensor.



I had just a MKS_BASE 1.0 board, so I purchased a RAMPS 1.4 board from Ebay to be its extender.



RAMPS 1.4 board



(( **Warning ** this board is cheap because it was improperly produced and is a fire hazard: https://reprap.org/wiki/RAMPS_1.4 . I recommend using a CNC shield instead ))



This red board is meant to fit an Arduino Mega, but I figure I can use the extra pins on the MKS_BASE1.0 and connect them with jumper wire to the RAMPS 1.4 board. It made sense in case I want to add other things to the original MKS_BASE 1.0 board (like more hot end heater cartridges).



I connected the 5V and one GND pin from my MKS_BASE 1.0. I also connected some of the SERVOS pins from the MKS_BASE 1.0: D37 is the 'Dir', D35 is the 'Step', and D17 is the 'Enable'. I also connected the 12V power supply to the RAMPS 1.4 board too.



RAMPS 1.4 board pinout



When it came time to modify Marlin everything was a bit annoying because although Marlin makes it easy to add more extruders, adding just motors is a little more difficult. I had to change the number of extruders to be 3 (from dual extrusion to dual extrusion + extra motor), enable an extra temperature pin (which i am leaving empty) and also modify the pins.h file.



I probably wouldn't have had simulate this motor as an extruder if I knew the raw Arduino commands for spinning a motor using calls to D37, D35, and D17, so I figured simulating an extruder would be better, but now I'm second-guessing that decision.



Here's my modification to pins.h:



#define E2_STEP_PIN 35
#define E2_DIR_PIN 37
#define E2_ENABLE_PIN 17

#define HEATER_2_PIN 17

//#define TEMP_SENSOR_2 3 in Configuration.h

#define TEMP_2_PIN 3

// Marlin 0-indexes these pins, so "2" is actually for the "3"rd extruder



First thing I have to do is allow for cold extrusions by using M302 S-80. The other (real) extruder motors will all move after this command, so I have that part working.. .



In Repetier-Host I am just selecting Extruder 3 and trying to "push filament" through it but the motor isn't moving. I'm using an A4988 stepper driver on a Kysan 1124090. Actually, I did this whole process with two motors because I wasn't sure whether the hardware itself would be an issue, so with another set of pins I'm using a Suncor Motor and it also doesn't respond and I also don't know why.



It would be really helpful to debug if I could run a single G-code command just to get the motor running at a speed, and take that out of the equation. it doesn't have to be a command to an "extruder" but just a command to a pin out, like M42 D35 S100 (but I don't know the raw command for just testing a motor's connections).










share|improve this question











$endgroup$













  • $begingroup$
    I'm using Ramps 1.4 and has no fire hazard, just the green connector has to be changed and Is better than CNC shield.
    $endgroup$
    – Fernando Baltazar
    Jul 22 at 21:21

















4












$begingroup$


I'd like to add an extra motor to my board and I'm not sure where I went wrong. The motor will be used to spin a rotating wheel/carriage of potential hot ends to switch to. Because it's just a motor it doesn't need a heatrod or a temperature sensor.



I had just a MKS_BASE 1.0 board, so I purchased a RAMPS 1.4 board from Ebay to be its extender.



RAMPS 1.4 board



(( **Warning ** this board is cheap because it was improperly produced and is a fire hazard: https://reprap.org/wiki/RAMPS_1.4 . I recommend using a CNC shield instead ))



This red board is meant to fit an Arduino Mega, but I figure I can use the extra pins on the MKS_BASE1.0 and connect them with jumper wire to the RAMPS 1.4 board. It made sense in case I want to add other things to the original MKS_BASE 1.0 board (like more hot end heater cartridges).



I connected the 5V and one GND pin from my MKS_BASE 1.0. I also connected some of the SERVOS pins from the MKS_BASE 1.0: D37 is the 'Dir', D35 is the 'Step', and D17 is the 'Enable'. I also connected the 12V power supply to the RAMPS 1.4 board too.



RAMPS 1.4 board pinout



When it came time to modify Marlin everything was a bit annoying because although Marlin makes it easy to add more extruders, adding just motors is a little more difficult. I had to change the number of extruders to be 3 (from dual extrusion to dual extrusion + extra motor), enable an extra temperature pin (which i am leaving empty) and also modify the pins.h file.



I probably wouldn't have had simulate this motor as an extruder if I knew the raw Arduino commands for spinning a motor using calls to D37, D35, and D17, so I figured simulating an extruder would be better, but now I'm second-guessing that decision.



Here's my modification to pins.h:



#define E2_STEP_PIN 35
#define E2_DIR_PIN 37
#define E2_ENABLE_PIN 17

#define HEATER_2_PIN 17

//#define TEMP_SENSOR_2 3 in Configuration.h

#define TEMP_2_PIN 3

// Marlin 0-indexes these pins, so "2" is actually for the "3"rd extruder



First thing I have to do is allow for cold extrusions by using M302 S-80. The other (real) extruder motors will all move after this command, so I have that part working.. .



In Repetier-Host I am just selecting Extruder 3 and trying to "push filament" through it but the motor isn't moving. I'm using an A4988 stepper driver on a Kysan 1124090. Actually, I did this whole process with two motors because I wasn't sure whether the hardware itself would be an issue, so with another set of pins I'm using a Suncor Motor and it also doesn't respond and I also don't know why.



It would be really helpful to debug if I could run a single G-code command just to get the motor running at a speed, and take that out of the equation. it doesn't have to be a command to an "extruder" but just a command to a pin out, like M42 D35 S100 (but I don't know the raw command for just testing a motor's connections).










share|improve this question











$endgroup$













  • $begingroup$
    I'm using Ramps 1.4 and has no fire hazard, just the green connector has to be changed and Is better than CNC shield.
    $endgroup$
    – Fernando Baltazar
    Jul 22 at 21:21













4












4








4





$begingroup$


I'd like to add an extra motor to my board and I'm not sure where I went wrong. The motor will be used to spin a rotating wheel/carriage of potential hot ends to switch to. Because it's just a motor it doesn't need a heatrod or a temperature sensor.



I had just a MKS_BASE 1.0 board, so I purchased a RAMPS 1.4 board from Ebay to be its extender.



RAMPS 1.4 board



(( **Warning ** this board is cheap because it was improperly produced and is a fire hazard: https://reprap.org/wiki/RAMPS_1.4 . I recommend using a CNC shield instead ))



This red board is meant to fit an Arduino Mega, but I figure I can use the extra pins on the MKS_BASE1.0 and connect them with jumper wire to the RAMPS 1.4 board. It made sense in case I want to add other things to the original MKS_BASE 1.0 board (like more hot end heater cartridges).



I connected the 5V and one GND pin from my MKS_BASE 1.0. I also connected some of the SERVOS pins from the MKS_BASE 1.0: D37 is the 'Dir', D35 is the 'Step', and D17 is the 'Enable'. I also connected the 12V power supply to the RAMPS 1.4 board too.



RAMPS 1.4 board pinout



When it came time to modify Marlin everything was a bit annoying because although Marlin makes it easy to add more extruders, adding just motors is a little more difficult. I had to change the number of extruders to be 3 (from dual extrusion to dual extrusion + extra motor), enable an extra temperature pin (which i am leaving empty) and also modify the pins.h file.



I probably wouldn't have had simulate this motor as an extruder if I knew the raw Arduino commands for spinning a motor using calls to D37, D35, and D17, so I figured simulating an extruder would be better, but now I'm second-guessing that decision.



Here's my modification to pins.h:



#define E2_STEP_PIN 35
#define E2_DIR_PIN 37
#define E2_ENABLE_PIN 17

#define HEATER_2_PIN 17

//#define TEMP_SENSOR_2 3 in Configuration.h

#define TEMP_2_PIN 3

// Marlin 0-indexes these pins, so "2" is actually for the "3"rd extruder



First thing I have to do is allow for cold extrusions by using M302 S-80. The other (real) extruder motors will all move after this command, so I have that part working.. .



In Repetier-Host I am just selecting Extruder 3 and trying to "push filament" through it but the motor isn't moving. I'm using an A4988 stepper driver on a Kysan 1124090. Actually, I did this whole process with two motors because I wasn't sure whether the hardware itself would be an issue, so with another set of pins I'm using a Suncor Motor and it also doesn't respond and I also don't know why.



It would be really helpful to debug if I could run a single G-code command just to get the motor running at a speed, and take that out of the equation. it doesn't have to be a command to an "extruder" but just a command to a pin out, like M42 D35 S100 (but I don't know the raw command for just testing a motor's connections).










share|improve this question











$endgroup$




I'd like to add an extra motor to my board and I'm not sure where I went wrong. The motor will be used to spin a rotating wheel/carriage of potential hot ends to switch to. Because it's just a motor it doesn't need a heatrod or a temperature sensor.



I had just a MKS_BASE 1.0 board, so I purchased a RAMPS 1.4 board from Ebay to be its extender.



RAMPS 1.4 board



(( **Warning ** this board is cheap because it was improperly produced and is a fire hazard: https://reprap.org/wiki/RAMPS_1.4 . I recommend using a CNC shield instead ))



This red board is meant to fit an Arduino Mega, but I figure I can use the extra pins on the MKS_BASE1.0 and connect them with jumper wire to the RAMPS 1.4 board. It made sense in case I want to add other things to the original MKS_BASE 1.0 board (like more hot end heater cartridges).



I connected the 5V and one GND pin from my MKS_BASE 1.0. I also connected some of the SERVOS pins from the MKS_BASE 1.0: D37 is the 'Dir', D35 is the 'Step', and D17 is the 'Enable'. I also connected the 12V power supply to the RAMPS 1.4 board too.



RAMPS 1.4 board pinout



When it came time to modify Marlin everything was a bit annoying because although Marlin makes it easy to add more extruders, adding just motors is a little more difficult. I had to change the number of extruders to be 3 (from dual extrusion to dual extrusion + extra motor), enable an extra temperature pin (which i am leaving empty) and also modify the pins.h file.



I probably wouldn't have had simulate this motor as an extruder if I knew the raw Arduino commands for spinning a motor using calls to D37, D35, and D17, so I figured simulating an extruder would be better, but now I'm second-guessing that decision.



Here's my modification to pins.h:



#define E2_STEP_PIN 35
#define E2_DIR_PIN 37
#define E2_ENABLE_PIN 17

#define HEATER_2_PIN 17

//#define TEMP_SENSOR_2 3 in Configuration.h

#define TEMP_2_PIN 3

// Marlin 0-indexes these pins, so "2" is actually for the "3"rd extruder



First thing I have to do is allow for cold extrusions by using M302 S-80. The other (real) extruder motors will all move after this command, so I have that part working.. .



In Repetier-Host I am just selecting Extruder 3 and trying to "push filament" through it but the motor isn't moving. I'm using an A4988 stepper driver on a Kysan 1124090. Actually, I did this whole process with two motors because I wasn't sure whether the hardware itself would be an issue, so with another set of pins I'm using a Suncor Motor and it also doesn't respond and I also don't know why.



It would be really helpful to debug if I could run a single G-code command just to get the motor running at a speed, and take that out of the equation. it doesn't have to be a command to an "extruder" but just a command to a pin out, like M42 D35 S100 (but I don't know the raw command for just testing a motor's connections).







troubleshooting ramps-1.4 wiring






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 22 at 20:45







steve antwan

















asked Jul 22 at 3:57









steve antwansteve antwan

1127 bronze badges




1127 bronze badges














  • $begingroup$
    I'm using Ramps 1.4 and has no fire hazard, just the green connector has to be changed and Is better than CNC shield.
    $endgroup$
    – Fernando Baltazar
    Jul 22 at 21:21
















  • $begingroup$
    I'm using Ramps 1.4 and has no fire hazard, just the green connector has to be changed and Is better than CNC shield.
    $endgroup$
    – Fernando Baltazar
    Jul 22 at 21:21















$begingroup$
I'm using Ramps 1.4 and has no fire hazard, just the green connector has to be changed and Is better than CNC shield.
$endgroup$
– Fernando Baltazar
Jul 22 at 21:21




$begingroup$
I'm using Ramps 1.4 and has no fire hazard, just the green connector has to be changed and Is better than CNC shield.
$endgroup$
– Fernando Baltazar
Jul 22 at 21:21










2 Answers
2






active

oldest

votes


















4












$begingroup$

D35, D37, D17 are the pin labels on the Arduino Mega. These do not correspond to pin numbers within Marlin.



I believe that D35 actually corresponds to marlin pin 49 and this is the number you should enter in your firmware. You can find the mapping in fastio_1280.h:



Hardware Pin : 02 03 06 07 01 05 15 16 17 18 23 24 25 26 64 63 13 12 46 45 44 43 78 77 76 75 74 73 72 71 60 59 58 57 56 55 54 53 50 70 52 51 42 41 40 39 38 37 36 35 22 21 20 19 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 04 08 09 10 11 14 27 28 29 30 31 32 33 34 47 48 49 61 62 65 66 67 68 69 79 80 81 98 99 100
Port : E0 E1 E4 E5 G5 E3 H3 H4 H5 H6 B4 B5 B6 B7 J1 J0 H1 H0 D3 D2 D1 D0 A0 A1 A2 A3 A4 A5 A6 A7 C7 C6 C5 C4 C3 C2 C1 C0 D7 G2 G1 G0 L7 L6 L5 L4 L3 L2 L1 L0 B3 B2 B1 B0 F0 F1 F2 F3 F4 F5 F6 F7 K0 K1 K2 K3 K4 K5 K6 K7 E2 E6 E7 xx xx H2 H7 G3 G4 xx xx xx xx xx D4 D5 D6 xx xx J2 J3 J4 J5 J6 J7 xx xx xx xx xx
Logical Pin : 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx


Look on the top row for the pin number (e.g. D35 corresponds to 35), then look on the bottom row to find the pin number to use in Marlin (in this case, 49).






share|improve this answer











$endgroup$














  • $begingroup$
    I don't think this is true because the D numbers I refer to are from the MKS_BASE1.40 board not the Arduino mega (see second image). When I plug in a pan to pin 49 in the second image and run it with M42 P49 S100 it spins so the Marlin numbers are corresponding to the numbers i'm using.
    $endgroup$
    – steve antwan
    Jul 22 at 13:48






  • 2




    $begingroup$
    M42 does some translation of pin numbers which the motor diving code does not do.
    $endgroup$
    – Tom van der Zanden
    Jul 22 at 13:57










  • $begingroup$
    My CNC shield came today so I wound up foillowing the guide here; reprap.org/wiki/Adding_more_extruders#RAMPS_using_CNC_Shield But it doesn't translate the numbers like you suggested... At the same time, I can get my motor to run very slightly (or at least shake) on the price of a button, but it runs "twitchily" and not smoothly. And I don't know how to fix that.
    $endgroup$
    – steve antwan
    Jul 22 at 19:34










  • $begingroup$
    I think you might be right and i don't know how to translate the numbers correctly... In the above MKS_BASE I'm using four of the AUX-1 pins (5V, GND, D1, D2). I'm also using D63 in AUX-2. Going by your translation, my PINS.h should be... what? 0, 4, 15, for D1, D2, and D63? When I do this nothing moves as opposed to when I use 2,1,63 it at least moves a little
    $endgroup$
    – steve antwan
    Jul 22 at 19:42







  • 2




    $begingroup$
    Since I wrote the answer I linked to, the pin mappings have changed. I will update the answer with the new mappings.
    $endgroup$
    – Tom van der Zanden
    Jul 22 at 19:58



















1












$begingroup$

  • I got it to work using a CNC shield. Still haven't figured out the ramps 1.4 board.


  • It doesn't work using D1 and D2 inside Aux-1 because they are used in serial communication to an LCD. So every time you send a command over USB, they get clogged. I ended up using ports 4, 5, and 63 and it works perfectly (no pin mapping needed like in other answer).


 #define E4_STEP_PIN 4 // 0 // D4
#define E4_DIR_PIN 5// 4 // D5
#define E4_ENABLE_PIN 63// 15 // D63


  • When I was using the RAMPS 1.4 board, I aligned the top wires that would normally go into the Arduino to the bottom of the RAMPS board and the bottom to the top. This is because when you wire the RAMPS 1.4 board from the bottom like that, it is a male header not female so the y-axis is like inverted. After that, I accidentally burned my microcontroller by miswiring something into Aux-1 that should've gone into Servo-2 ground.

  • I will probably try tomorrow with the RAMPS 1.4 board again and edit this post to update it.





share|improve this answer









$endgroup$

















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "640"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2f3dprinting.stackexchange.com%2fquestions%2f10647%2fwhere-did-i-go-wrong-by-trying-to-add-an-extra-motor-to-my-board%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4












    $begingroup$

    D35, D37, D17 are the pin labels on the Arduino Mega. These do not correspond to pin numbers within Marlin.



    I believe that D35 actually corresponds to marlin pin 49 and this is the number you should enter in your firmware. You can find the mapping in fastio_1280.h:



    Hardware Pin : 02 03 06 07 01 05 15 16 17 18 23 24 25 26 64 63 13 12 46 45 44 43 78 77 76 75 74 73 72 71 60 59 58 57 56 55 54 53 50 70 52 51 42 41 40 39 38 37 36 35 22 21 20 19 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 04 08 09 10 11 14 27 28 29 30 31 32 33 34 47 48 49 61 62 65 66 67 68 69 79 80 81 98 99 100
    Port : E0 E1 E4 E5 G5 E3 H3 H4 H5 H6 B4 B5 B6 B7 J1 J0 H1 H0 D3 D2 D1 D0 A0 A1 A2 A3 A4 A5 A6 A7 C7 C6 C5 C4 C3 C2 C1 C0 D7 G2 G1 G0 L7 L6 L5 L4 L3 L2 L1 L0 B3 B2 B1 B0 F0 F1 F2 F3 F4 F5 F6 F7 K0 K1 K2 K3 K4 K5 K6 K7 E2 E6 E7 xx xx H2 H7 G3 G4 xx xx xx xx xx D4 D5 D6 xx xx J2 J3 J4 J5 J6 J7 xx xx xx xx xx
    Logical Pin : 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx


    Look on the top row for the pin number (e.g. D35 corresponds to 35), then look on the bottom row to find the pin number to use in Marlin (in this case, 49).






    share|improve this answer











    $endgroup$














    • $begingroup$
      I don't think this is true because the D numbers I refer to are from the MKS_BASE1.40 board not the Arduino mega (see second image). When I plug in a pan to pin 49 in the second image and run it with M42 P49 S100 it spins so the Marlin numbers are corresponding to the numbers i'm using.
      $endgroup$
      – steve antwan
      Jul 22 at 13:48






    • 2




      $begingroup$
      M42 does some translation of pin numbers which the motor diving code does not do.
      $endgroup$
      – Tom van der Zanden
      Jul 22 at 13:57










    • $begingroup$
      My CNC shield came today so I wound up foillowing the guide here; reprap.org/wiki/Adding_more_extruders#RAMPS_using_CNC_Shield But it doesn't translate the numbers like you suggested... At the same time, I can get my motor to run very slightly (or at least shake) on the price of a button, but it runs "twitchily" and not smoothly. And I don't know how to fix that.
      $endgroup$
      – steve antwan
      Jul 22 at 19:34










    • $begingroup$
      I think you might be right and i don't know how to translate the numbers correctly... In the above MKS_BASE I'm using four of the AUX-1 pins (5V, GND, D1, D2). I'm also using D63 in AUX-2. Going by your translation, my PINS.h should be... what? 0, 4, 15, for D1, D2, and D63? When I do this nothing moves as opposed to when I use 2,1,63 it at least moves a little
      $endgroup$
      – steve antwan
      Jul 22 at 19:42







    • 2




      $begingroup$
      Since I wrote the answer I linked to, the pin mappings have changed. I will update the answer with the new mappings.
      $endgroup$
      – Tom van der Zanden
      Jul 22 at 19:58
















    4












    $begingroup$

    D35, D37, D17 are the pin labels on the Arduino Mega. These do not correspond to pin numbers within Marlin.



    I believe that D35 actually corresponds to marlin pin 49 and this is the number you should enter in your firmware. You can find the mapping in fastio_1280.h:



    Hardware Pin : 02 03 06 07 01 05 15 16 17 18 23 24 25 26 64 63 13 12 46 45 44 43 78 77 76 75 74 73 72 71 60 59 58 57 56 55 54 53 50 70 52 51 42 41 40 39 38 37 36 35 22 21 20 19 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 04 08 09 10 11 14 27 28 29 30 31 32 33 34 47 48 49 61 62 65 66 67 68 69 79 80 81 98 99 100
    Port : E0 E1 E4 E5 G5 E3 H3 H4 H5 H6 B4 B5 B6 B7 J1 J0 H1 H0 D3 D2 D1 D0 A0 A1 A2 A3 A4 A5 A6 A7 C7 C6 C5 C4 C3 C2 C1 C0 D7 G2 G1 G0 L7 L6 L5 L4 L3 L2 L1 L0 B3 B2 B1 B0 F0 F1 F2 F3 F4 F5 F6 F7 K0 K1 K2 K3 K4 K5 K6 K7 E2 E6 E7 xx xx H2 H7 G3 G4 xx xx xx xx xx D4 D5 D6 xx xx J2 J3 J4 J5 J6 J7 xx xx xx xx xx
    Logical Pin : 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx


    Look on the top row for the pin number (e.g. D35 corresponds to 35), then look on the bottom row to find the pin number to use in Marlin (in this case, 49).






    share|improve this answer











    $endgroup$














    • $begingroup$
      I don't think this is true because the D numbers I refer to are from the MKS_BASE1.40 board not the Arduino mega (see second image). When I plug in a pan to pin 49 in the second image and run it with M42 P49 S100 it spins so the Marlin numbers are corresponding to the numbers i'm using.
      $endgroup$
      – steve antwan
      Jul 22 at 13:48






    • 2




      $begingroup$
      M42 does some translation of pin numbers which the motor diving code does not do.
      $endgroup$
      – Tom van der Zanden
      Jul 22 at 13:57










    • $begingroup$
      My CNC shield came today so I wound up foillowing the guide here; reprap.org/wiki/Adding_more_extruders#RAMPS_using_CNC_Shield But it doesn't translate the numbers like you suggested... At the same time, I can get my motor to run very slightly (or at least shake) on the price of a button, but it runs "twitchily" and not smoothly. And I don't know how to fix that.
      $endgroup$
      – steve antwan
      Jul 22 at 19:34










    • $begingroup$
      I think you might be right and i don't know how to translate the numbers correctly... In the above MKS_BASE I'm using four of the AUX-1 pins (5V, GND, D1, D2). I'm also using D63 in AUX-2. Going by your translation, my PINS.h should be... what? 0, 4, 15, for D1, D2, and D63? When I do this nothing moves as opposed to when I use 2,1,63 it at least moves a little
      $endgroup$
      – steve antwan
      Jul 22 at 19:42







    • 2




      $begingroup$
      Since I wrote the answer I linked to, the pin mappings have changed. I will update the answer with the new mappings.
      $endgroup$
      – Tom van der Zanden
      Jul 22 at 19:58














    4












    4








    4





    $begingroup$

    D35, D37, D17 are the pin labels on the Arduino Mega. These do not correspond to pin numbers within Marlin.



    I believe that D35 actually corresponds to marlin pin 49 and this is the number you should enter in your firmware. You can find the mapping in fastio_1280.h:



    Hardware Pin : 02 03 06 07 01 05 15 16 17 18 23 24 25 26 64 63 13 12 46 45 44 43 78 77 76 75 74 73 72 71 60 59 58 57 56 55 54 53 50 70 52 51 42 41 40 39 38 37 36 35 22 21 20 19 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 04 08 09 10 11 14 27 28 29 30 31 32 33 34 47 48 49 61 62 65 66 67 68 69 79 80 81 98 99 100
    Port : E0 E1 E4 E5 G5 E3 H3 H4 H5 H6 B4 B5 B6 B7 J1 J0 H1 H0 D3 D2 D1 D0 A0 A1 A2 A3 A4 A5 A6 A7 C7 C6 C5 C4 C3 C2 C1 C0 D7 G2 G1 G0 L7 L6 L5 L4 L3 L2 L1 L0 B3 B2 B1 B0 F0 F1 F2 F3 F4 F5 F6 F7 K0 K1 K2 K3 K4 K5 K6 K7 E2 E6 E7 xx xx H2 H7 G3 G4 xx xx xx xx xx D4 D5 D6 xx xx J2 J3 J4 J5 J6 J7 xx xx xx xx xx
    Logical Pin : 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx


    Look on the top row for the pin number (e.g. D35 corresponds to 35), then look on the bottom row to find the pin number to use in Marlin (in this case, 49).






    share|improve this answer











    $endgroup$



    D35, D37, D17 are the pin labels on the Arduino Mega. These do not correspond to pin numbers within Marlin.



    I believe that D35 actually corresponds to marlin pin 49 and this is the number you should enter in your firmware. You can find the mapping in fastio_1280.h:



    Hardware Pin : 02 03 06 07 01 05 15 16 17 18 23 24 25 26 64 63 13 12 46 45 44 43 78 77 76 75 74 73 72 71 60 59 58 57 56 55 54 53 50 70 52 51 42 41 40 39 38 37 36 35 22 21 20 19 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 04 08 09 10 11 14 27 28 29 30 31 32 33 34 47 48 49 61 62 65 66 67 68 69 79 80 81 98 99 100
    Port : E0 E1 E4 E5 G5 E3 H3 H4 H5 H6 B4 B5 B6 B7 J1 J0 H1 H0 D3 D2 D1 D0 A0 A1 A2 A3 A4 A5 A6 A7 C7 C6 C5 C4 C3 C2 C1 C0 D7 G2 G1 G0 L7 L6 L5 L4 L3 L2 L1 L0 B3 B2 B1 B0 F0 F1 F2 F3 F4 F5 F6 F7 K0 K1 K2 K3 K4 K5 K6 K7 E2 E6 E7 xx xx H2 H7 G3 G4 xx xx xx xx xx D4 D5 D6 xx xx J2 J3 J4 J5 J6 J7 xx xx xx xx xx
    Logical Pin : 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx


    Look on the top row for the pin number (e.g. D35 corresponds to 35), then look on the bottom row to find the pin number to use in Marlin (in this case, 49).







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jul 22 at 20:00

























    answered Jul 22 at 12:57









    Tom van der ZandenTom van der Zanden

    12k1 gold badge23 silver badges53 bronze badges




    12k1 gold badge23 silver badges53 bronze badges














    • $begingroup$
      I don't think this is true because the D numbers I refer to are from the MKS_BASE1.40 board not the Arduino mega (see second image). When I plug in a pan to pin 49 in the second image and run it with M42 P49 S100 it spins so the Marlin numbers are corresponding to the numbers i'm using.
      $endgroup$
      – steve antwan
      Jul 22 at 13:48






    • 2




      $begingroup$
      M42 does some translation of pin numbers which the motor diving code does not do.
      $endgroup$
      – Tom van der Zanden
      Jul 22 at 13:57










    • $begingroup$
      My CNC shield came today so I wound up foillowing the guide here; reprap.org/wiki/Adding_more_extruders#RAMPS_using_CNC_Shield But it doesn't translate the numbers like you suggested... At the same time, I can get my motor to run very slightly (or at least shake) on the price of a button, but it runs "twitchily" and not smoothly. And I don't know how to fix that.
      $endgroup$
      – steve antwan
      Jul 22 at 19:34










    • $begingroup$
      I think you might be right and i don't know how to translate the numbers correctly... In the above MKS_BASE I'm using four of the AUX-1 pins (5V, GND, D1, D2). I'm also using D63 in AUX-2. Going by your translation, my PINS.h should be... what? 0, 4, 15, for D1, D2, and D63? When I do this nothing moves as opposed to when I use 2,1,63 it at least moves a little
      $endgroup$
      – steve antwan
      Jul 22 at 19:42







    • 2




      $begingroup$
      Since I wrote the answer I linked to, the pin mappings have changed. I will update the answer with the new mappings.
      $endgroup$
      – Tom van der Zanden
      Jul 22 at 19:58

















    • $begingroup$
      I don't think this is true because the D numbers I refer to are from the MKS_BASE1.40 board not the Arduino mega (see second image). When I plug in a pan to pin 49 in the second image and run it with M42 P49 S100 it spins so the Marlin numbers are corresponding to the numbers i'm using.
      $endgroup$
      – steve antwan
      Jul 22 at 13:48






    • 2




      $begingroup$
      M42 does some translation of pin numbers which the motor diving code does not do.
      $endgroup$
      – Tom van der Zanden
      Jul 22 at 13:57










    • $begingroup$
      My CNC shield came today so I wound up foillowing the guide here; reprap.org/wiki/Adding_more_extruders#RAMPS_using_CNC_Shield But it doesn't translate the numbers like you suggested... At the same time, I can get my motor to run very slightly (or at least shake) on the price of a button, but it runs "twitchily" and not smoothly. And I don't know how to fix that.
      $endgroup$
      – steve antwan
      Jul 22 at 19:34










    • $begingroup$
      I think you might be right and i don't know how to translate the numbers correctly... In the above MKS_BASE I'm using four of the AUX-1 pins (5V, GND, D1, D2). I'm also using D63 in AUX-2. Going by your translation, my PINS.h should be... what? 0, 4, 15, for D1, D2, and D63? When I do this nothing moves as opposed to when I use 2,1,63 it at least moves a little
      $endgroup$
      – steve antwan
      Jul 22 at 19:42







    • 2




      $begingroup$
      Since I wrote the answer I linked to, the pin mappings have changed. I will update the answer with the new mappings.
      $endgroup$
      – Tom van der Zanden
      Jul 22 at 19:58
















    $begingroup$
    I don't think this is true because the D numbers I refer to are from the MKS_BASE1.40 board not the Arduino mega (see second image). When I plug in a pan to pin 49 in the second image and run it with M42 P49 S100 it spins so the Marlin numbers are corresponding to the numbers i'm using.
    $endgroup$
    – steve antwan
    Jul 22 at 13:48




    $begingroup$
    I don't think this is true because the D numbers I refer to are from the MKS_BASE1.40 board not the Arduino mega (see second image). When I plug in a pan to pin 49 in the second image and run it with M42 P49 S100 it spins so the Marlin numbers are corresponding to the numbers i'm using.
    $endgroup$
    – steve antwan
    Jul 22 at 13:48




    2




    2




    $begingroup$
    M42 does some translation of pin numbers which the motor diving code does not do.
    $endgroup$
    – Tom van der Zanden
    Jul 22 at 13:57




    $begingroup$
    M42 does some translation of pin numbers which the motor diving code does not do.
    $endgroup$
    – Tom van der Zanden
    Jul 22 at 13:57












    $begingroup$
    My CNC shield came today so I wound up foillowing the guide here; reprap.org/wiki/Adding_more_extruders#RAMPS_using_CNC_Shield But it doesn't translate the numbers like you suggested... At the same time, I can get my motor to run very slightly (or at least shake) on the price of a button, but it runs "twitchily" and not smoothly. And I don't know how to fix that.
    $endgroup$
    – steve antwan
    Jul 22 at 19:34




    $begingroup$
    My CNC shield came today so I wound up foillowing the guide here; reprap.org/wiki/Adding_more_extruders#RAMPS_using_CNC_Shield But it doesn't translate the numbers like you suggested... At the same time, I can get my motor to run very slightly (or at least shake) on the price of a button, but it runs "twitchily" and not smoothly. And I don't know how to fix that.
    $endgroup$
    – steve antwan
    Jul 22 at 19:34












    $begingroup$
    I think you might be right and i don't know how to translate the numbers correctly... In the above MKS_BASE I'm using four of the AUX-1 pins (5V, GND, D1, D2). I'm also using D63 in AUX-2. Going by your translation, my PINS.h should be... what? 0, 4, 15, for D1, D2, and D63? When I do this nothing moves as opposed to when I use 2,1,63 it at least moves a little
    $endgroup$
    – steve antwan
    Jul 22 at 19:42





    $begingroup$
    I think you might be right and i don't know how to translate the numbers correctly... In the above MKS_BASE I'm using four of the AUX-1 pins (5V, GND, D1, D2). I'm also using D63 in AUX-2. Going by your translation, my PINS.h should be... what? 0, 4, 15, for D1, D2, and D63? When I do this nothing moves as opposed to when I use 2,1,63 it at least moves a little
    $endgroup$
    – steve antwan
    Jul 22 at 19:42





    2




    2




    $begingroup$
    Since I wrote the answer I linked to, the pin mappings have changed. I will update the answer with the new mappings.
    $endgroup$
    – Tom van der Zanden
    Jul 22 at 19:58





    $begingroup$
    Since I wrote the answer I linked to, the pin mappings have changed. I will update the answer with the new mappings.
    $endgroup$
    – Tom van der Zanden
    Jul 22 at 19:58














    1












    $begingroup$

    • I got it to work using a CNC shield. Still haven't figured out the ramps 1.4 board.


    • It doesn't work using D1 and D2 inside Aux-1 because they are used in serial communication to an LCD. So every time you send a command over USB, they get clogged. I ended up using ports 4, 5, and 63 and it works perfectly (no pin mapping needed like in other answer).


     #define E4_STEP_PIN 4 // 0 // D4
    #define E4_DIR_PIN 5// 4 // D5
    #define E4_ENABLE_PIN 63// 15 // D63


    • When I was using the RAMPS 1.4 board, I aligned the top wires that would normally go into the Arduino to the bottom of the RAMPS board and the bottom to the top. This is because when you wire the RAMPS 1.4 board from the bottom like that, it is a male header not female so the y-axis is like inverted. After that, I accidentally burned my microcontroller by miswiring something into Aux-1 that should've gone into Servo-2 ground.

    • I will probably try tomorrow with the RAMPS 1.4 board again and edit this post to update it.





    share|improve this answer









    $endgroup$



















      1












      $begingroup$

      • I got it to work using a CNC shield. Still haven't figured out the ramps 1.4 board.


      • It doesn't work using D1 and D2 inside Aux-1 because they are used in serial communication to an LCD. So every time you send a command over USB, they get clogged. I ended up using ports 4, 5, and 63 and it works perfectly (no pin mapping needed like in other answer).


       #define E4_STEP_PIN 4 // 0 // D4
      #define E4_DIR_PIN 5// 4 // D5
      #define E4_ENABLE_PIN 63// 15 // D63


      • When I was using the RAMPS 1.4 board, I aligned the top wires that would normally go into the Arduino to the bottom of the RAMPS board and the bottom to the top. This is because when you wire the RAMPS 1.4 board from the bottom like that, it is a male header not female so the y-axis is like inverted. After that, I accidentally burned my microcontroller by miswiring something into Aux-1 that should've gone into Servo-2 ground.

      • I will probably try tomorrow with the RAMPS 1.4 board again and edit this post to update it.





      share|improve this answer









      $endgroup$

















        1












        1








        1





        $begingroup$

        • I got it to work using a CNC shield. Still haven't figured out the ramps 1.4 board.


        • It doesn't work using D1 and D2 inside Aux-1 because they are used in serial communication to an LCD. So every time you send a command over USB, they get clogged. I ended up using ports 4, 5, and 63 and it works perfectly (no pin mapping needed like in other answer).


         #define E4_STEP_PIN 4 // 0 // D4
        #define E4_DIR_PIN 5// 4 // D5
        #define E4_ENABLE_PIN 63// 15 // D63


        • When I was using the RAMPS 1.4 board, I aligned the top wires that would normally go into the Arduino to the bottom of the RAMPS board and the bottom to the top. This is because when you wire the RAMPS 1.4 board from the bottom like that, it is a male header not female so the y-axis is like inverted. After that, I accidentally burned my microcontroller by miswiring something into Aux-1 that should've gone into Servo-2 ground.

        • I will probably try tomorrow with the RAMPS 1.4 board again and edit this post to update it.





        share|improve this answer









        $endgroup$



        • I got it to work using a CNC shield. Still haven't figured out the ramps 1.4 board.


        • It doesn't work using D1 and D2 inside Aux-1 because they are used in serial communication to an LCD. So every time you send a command over USB, they get clogged. I ended up using ports 4, 5, and 63 and it works perfectly (no pin mapping needed like in other answer).


         #define E4_STEP_PIN 4 // 0 // D4
        #define E4_DIR_PIN 5// 4 // D5
        #define E4_ENABLE_PIN 63// 15 // D63


        • When I was using the RAMPS 1.4 board, I aligned the top wires that would normally go into the Arduino to the bottom of the RAMPS board and the bottom to the top. This is because when you wire the RAMPS 1.4 board from the bottom like that, it is a male header not female so the y-axis is like inverted. After that, I accidentally burned my microcontroller by miswiring something into Aux-1 that should've gone into Servo-2 ground.

        • I will probably try tomorrow with the RAMPS 1.4 board again and edit this post to update it.






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jul 22 at 20:38









        steve antwansteve antwan

        1127 bronze badges




        1127 bronze badges






























            draft saved

            draft discarded
















































            Thanks for contributing an answer to 3D Printing Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2f3dprinting.stackexchange.com%2fquestions%2f10647%2fwhere-did-i-go-wrong-by-trying-to-add-an-extra-motor-to-my-board%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form