Content-type: text/html OkOb Web Forum - Print Page

    
OkOb Web Forum (https://www.okob.net/yabb/YaBB.cgi)
3D Printing >> 3D Printing and RepRap X2 Discussion >> Megateronic V2.0 Borad
(Message started by: samo on Nov 1st, 2015, 6:42am)

Title: Megateronic V2.0 Borad
Post by samo on Nov 1st, 2015, 6:42am
Hello ,
i bought megateronic V2.0 board and trying to upload MarlinX2 on my board , in configuration.h when i change
#define MOTHERBOARD 34 to #define MOTHERBOARD 70 in compile this line shows yellow
const int sensitive_pins[] = SENSITIVE_PINS; // Sensitive pin list for M42
and show this error 'X0_STEP_PIN'was not declared in this scope .

shall i use default setting for Megateronic v2.0 ?

Title: Re: Megateronic V2.0 Borad
Post by Denis Bakin on Nov 2nd, 2015, 1:21am
If you have a single extruder printer then try to use "one_e" branch.

If you have a dual extruder/X-carriage printer (like X2V3) then I assume you know what connectors the additional hardware is hooked up to. Look in the doc for the board which Arduino pins control your hardware and compare with http://www.okob.net/projects/reprap_x2v3/electronics.htm

After that go to pins.h file and find section with pins definitions for RAMPS 1.3/1.4 (it is under "#if MOTHERBOARD == 33 || MOTHERBOARD == 34"). See what defines are used in that RAMPS section for the pins listed in the table on the page linked above.
Then go to the megatronix section in pins.h and add the same defines with the pin numbers you are using for the megatronix board.

Title: Re: Megateronic V2.0 Borad
Post by samo on Nov 2nd, 2015, 5:19am
Thank you for your reply , it was popular problem with megatronic V2.0
i solved the problem
1- download MarlinX2 From
https://github.com/dob71/MarlinX2

2- need to add some code on pin.h
/****************************************************************************************
* MegaTronics v2.0
*
****************************************************************************************/
#if MOTHERBOARD == 701
#define KNOWN_BOARD 1


#ifndef __AVR_ATmega2560__
#error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
#endif


#define X_STEP_PIN         26
#define X_DIR_PIN          27
#define X_ENABLE_PIN       25
#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         4 // A6
#define Y_DIR_PIN          54 // A0
#define Y_ENABLE_PIN       5
#define Y_MIN_PIN          41
#define Y_MAX_PIN          38   //15

#define Z_STEP_PIN         56 // A2
#define Z_DIR_PIN          60 // A6
#define Z_ENABLE_PIN       55 // A1
#define Z_MIN_PIN          18
#define Z_MAX_PIN          19

#define E0_STEP_PIN         35
#define E0_DIR_PIN          36
#define E0_ENABLE_PIN       34

#define E1_STEP_PIN         29
#define E1_DIR_PIN          39
#define E1_ENABLE_PIN       28

#define E2_STEP_PIN         23
#define E2_DIR_PIN          24
#define E2_ENABLE_PIN       22

#define SDPOWER            -1
#define SDSS               53
#define LED_PIN            13


#define FAN_PIN            7
#define FAN2_PIN           6
#define PS_ON_PIN          12
#define KILL_PIN           -1

#define HEATER_0_PIN       9    // EXTRUDER 1
#define HEATER_1_PIN       8    // EXTRUDER 2
#define HEATER_2_PIN       -1  

#if TEMP_SENSOR_0 == -1
  #define TEMP_0_PIN         8   // ANALOG NUMBERING
#else
  #define TEMP_0_PIN         13   // ANALOG NUMBERING  
#endif


#if TEMP_SENSOR_1 == -1
  #define TEMP_1_PIN         4  // ANALOG NUMBERING
#else
  #define TEMP_1_PIN         15   // ANALOG NUMBERING  
#endif

#define TEMP_2_PIN         -1   // ANALOG NUMBERING

#define HEATER_BED_PIN     10   // BED
#define TEMP_BED_PIN       14   // ANALOG NUMBERING

#define BEEPER 64                  // Beeper on AUX-4


#define LCD_PINS_RS 14
#define LCD_PINS_ENABLE 15
#define LCD_PINS_D4 30
#define LCD_PINS_D5 31
#define LCD_PINS_D6 32
#define LCD_PINS_D7 33


//buttons are directly attached using AUX-2
#define BTN_EN1 59
#define BTN_EN2 64
#define BTN_ENC 43  //the click

#define BLEN_C 2
#define BLEN_B 1
#define BLEN_A 0

#define SDCARDDETECT -1            // Ramps does not use this port

  //encoder rotation values
#define encrot0 0
#define encrot1 2
#define encrot2 3
#define encrot3 1

#endif


#ifndef KNOWN_BOARD
#error Unknown MOTHERBOARD value in configuration.h
#endif

#ifndef KNOWN_BOARD
#error Unknown MOTHERBOARD value in configuration.h
#endif

Then in configuration.h
change #define MOTHERBOARD 34 to #define MOTHERBOARD 701
also need to add megateronic to some other .h files just compare original Marlin files with MarlinX2 files
LCD also working as well

but still i have issue with keypad on screen that not working , just click of keypad wroking and can not able to move between menu option



OkOb Web Forum » Powered by YaBB 1 Gold - SP 1.1!
YaBB © 2000-2003. All Rights Reserved.