Welcome! Log In Create A New Profile

Advanced

Marlin for Megatronics v3

Posted by Outbound 
Marlin for Megatronics v3
June 17, 2015 10:45AM
Greetings,

I’m trying to replace the controller board on my Creatr Leapfrog with a Megatronics v3 I bought and the only problem I have so far is that in my printer it’s the Y-axis which uses two stepper motors, the Z-axis only uses one.

Is it possible to change this in the firmware?

I'm a bit at a loss ebcause I installedthe test firmware and I don't know exactly where to go and get the base firmware for this board and where to look to change the input/outputs.

Thanks for any help you might provide.
Re: Marlin for Megatronics v3
June 17, 2015 12:56PM
So someone from Github gave me a little help with this so far so I'll leave what I have here:

Quote

"hi
best and easier solution is:
connect the y motors to the z connector on the board and the z to the y
connector.
change the pins .h file in marlin to reflect the change es.

original pins :
#define X_STEP_PIN 58
#define X_DIR_PIN 57
#define X_ENABLE_PIN 59
#define X_MIN_PIN 37
#define X_MAX_PIN 40 //2 //Max endstops default to disabled
"-1", set to commented value to enable.

#define Y_STEP_PIN 5 // A6
#define Y_DIR_PIN 17 // A0
#define Y_ENABLE_PIN 4
#define Y_MIN_PIN 41
#define Y_MAX_PIN 38 //15

#define Z_STEP_PIN 16 // A2
#define Z_DIR_PIN 11 // A6
#define Z_ENABLE_PIN 3 // A1
#define Z_MIN_PIN 18
#define Z_MAX_PIN 19

mod pins:
#define X_STEP_PIN 58
#define X_DIR_PIN 57
#define X_ENABLE_PIN 59
#define X_MIN_PIN 37
#define X_MAX_PIN 40 //2 //Max endstops default to disabled
"-1", set to commented value to enable.

#define Z_STEP_PIN 5 // A6
#define Z_DIR_PIN 17 // A0
#define Z_ENABLE_PIN 4
#define Y_MIN_PIN 41
#define Y_MAX_PIN 38 //15

#define Y_STEP_PIN 16 // A2
#define Y_DIR_PIN 11 // A6
#define Y_ENABLE_PIN 3 // A1
#define Z_MIN_PIN 18
#define Z_MAX_PIN 19

this should work"

So I found this file in the pins_MEGATRONICS_3.h file and switched the fields as mention. As I do a code check it give me the following error message:

Quote

Arduino: 1.6.5 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Build options changed, rebuilding all
In file included from pins.h:96:0,
from Conditionals.h:213,
from Configuration_adv.h:548,
from Configuration.h:814,
from Marlin.h:22,
from blinkm.cpp:5:
pins_MEGATRONICS_3.h:30: error: expected unqualified-id before string constant
"-1", set to commented value to enable.
^
expected unqualified-id before string constant

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.


I'm guessing that I have to name the "pins_MEGATRONICS_3.h" as just "pins.h"?

I'll keep posting my progress, any help/opinions appreciatted.
Re: Marlin for Megatronics v3
June 17, 2015 12:59PM
Put // before '"-1", set to commented value to enable.' or delete that line.


Triffid Hunter's Calibration Guide --> X <-- Drill for new Monitor Most important Gcode.
Re: Marlin for Megatronics v3
June 17, 2015 01:43PM
#define X_MAX_PIN 40 //2 //Max endstops default to disabled
 // "-1", set to commented value to enable.

or

#define X_MAX_PIN 40 //2 //Max endstops default to disabled "-1", set to commented value to enable.

-Olaf
Re: Marlin for Megatronics v3
June 19, 2015 10:54AM
Yeah, you are correct. I just spotted that.

smiling smiley
Sorry, only registered users may post in this forum.

Click here to login