Giter Site home page Giter Site logo

marlinkimbra4due's People

Contributors

giutrec avatar magokimbra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

marlinkimbra4due's Issues

MKdue V4_2_9 compile error

Hi Mago
I have a compile error

C:\Users\io\AppData\Local\Temp\buildc948b8971d27b06242df706ab1a6243a.tmp\sketch\src\nextion\Nextion_lcd.cpp: In function 'void PlayPausePopCallback(void*)':

C:\Users\io\AppData\Local\Temp\buildc948b8971d27b06242df706ab1a6243a.tmp\sketch\src\nextion\Nextion_lcd.cpp:576:16: error: 'class CardReader' has no member named 'pauseSDPrint'

       card.pauseSDPrint();

            ^

C:\Users\io\AppData\Local\Temp\buildc948b8971d27b06242df706ab1a6243a.tmp\sketch\src\nextion\Nextion_lcd.cpp:580:16: error: 'class CardReader' has no member named 'startFileprint'

       card.startFileprint();

            ^

C:\Users\io\AppData\Local\Temp\buildc948b8971d27b06242df706ab1a6243a.tmp\sketch\src\nextion\Nextion_lcd.cpp: In function 'void StopPopCallback(void*)':

C:\Users\io\AppData\Local\Temp\buildc948b8971d27b06242df706ab1a6243a.tmp\sketch\src\nextion\Nextion_lcd.cpp:588:14: error: 'class CardReader' has no member named 'stopSDPrint'

     card.stopSDPrint(ptr == &Logo);

Thanks

DUAL_X_CARRIAGE (again?)

Hi!
I've tried this new version with DUAL_X_CARRIAGE, but doesn't works. (Arduino Mega)

When compile the code raise this error:

### sketch/src/MK_Main.cpp: In function 'void tool_change(uint8_t, float, bool)':
sketch/src/MK_Main.cpp:8777:78: error: 'DEBUG__INFO_POS' was not declared in this scope
if (DEBUGGING(INFO)) DEBUG__INFO_POS("New Extruder", current_position);
^
In file included from sketch/src/../base.h:72:0,
from sketch/src/MK_Main.cpp:31:
sketch/src/MK_Main.cpp:8781:59: error: 'inactive_extruder_x_pos' was not declared in this scope
current_position[X_AXIS] = LOGICAL_X_POSITION(inactive_extruder_x_pos);
^
sketch/src/../src/MK_Main.h:129:38: note: in definition of macro 'LOGICAL_POSITION'
#define LOGICAL_POSITION(POS, AXIS) (POS + home_offset[AXIS] + position_shift[AXIS])
^
sketch/src/MK_Main.cpp:8781:40: note: in expansion of macro 'LOGICAL_X_POSITION'
current_position[X_AXIS] = LOGICAL_X_POSITION(inactive_extruder_x_pos);
^
sketch/src/MK_Main.cpp:8785:13: error: 'active_extruder_parked' was not declared in this scope
active_extruder_parked = (active_extruder == 0); // this triggers the second extruder to move into the duplication position
^
sketch/src/MK_Main.cpp:8789:64: error: 'duplicate_extruder_x_offset' was not declared in this scope
current_position[X_AXIS] = destination[X_AXIS] + duplicate_extruder_x_offset;
^
sketch/src/MK_Main.cpp:8791:13: error: 'extruder_duplication_enabled' was not declared in this scope
extruder_duplication_enabled = false;
^
In file included from sketch/src/../base.h:60:0,
from sketch/src/MK_Main.cpp:31:
sketch/src/MK_Main.cpp:8803:56: error: 'active_extruder_parked' was not declared in this scope
SERIAL_LMV(INFO, "Active extruder parked: ", active_extruder_parked ? "yes" : "no");
^
sketch/src/../src/communication/communication.h:100:56: note: in definition of macro 'SERIAL_V'
#define SERIAL_V(val, args...) Com::print(val, ##args)
^
sketch/src/../src/communication/communication.h:124:59: note: in expansion of macro 'SERIAL_MV'
#define SERIAL_LMV(srt, msg, val, args...) SERIAL_S(srt),SERIAL_MV(msg, val, ##args),SERIAL_E
^
sketch/src/MK_Main.cpp:8803:11: note: in expansion of macro 'SERIAL_LMV'
SERIAL_LMV(INFO, "Active extruder parked: ", active_extruder_parked ? "yes" : "no");
^
exit status 1
Error compilación en tarjeta Arduino/Genuino Mega or Mega 2560.

This is my Configuration_Overall file
`/**

  • Configuration_Overall.h
  • Here you can define all your custom settings and they will overwrite configurations in the main configuration files.
    */

/**** CONFIGURATION BASIC ****/

define SERIAL_PORT 0

define BAUDRATE 115200

define STRING_CONFIG_H_AUTHOR "(none, default config)"

define MACHINE_UUID "00000000-0000-0000-0000-000000000000"

define MOTHERBOARD BOARD_RAMPS_13_HHF

define MECHANISM MECH_CARTESIAN

define POWER_SUPPLY 0

define EXTRUDERS 2

define DRIVER_EXTRUDERS 2

/**** CONFIGURATION CARTESIAN ****/

define CUSTOM_MACHINE_NAME "Ice3D"

define X_MIN_ENDSTOP_LOGIC true

define Y_MIN_ENDSTOP_LOGIC true

define Z_MIN_ENDSTOP_LOGIC true

define Z2_MIN_ENDSTOP_LOGIC true

define X_MAX_ENDSTOP_LOGIC true

define Y_MAX_ENDSTOP_LOGIC true

define Z_MAX_ENDSTOP_LOGIC true

define Z2_MAX_ENDSTOP_LOGIC true

define Z_PROBE_ENDSTOP_LOGIC true

define E_MIN_ENDSTOP_LOGIC true

define Z_ENDSTOP_SERVO_NR 0

define Z_ENDSTOP_SERVO_ANGLES {0,180}

//#define Z_PROBE_FIX_MOUNTED

define X_PROBE_OFFSET_FROM_NOZZLE 0

define Y_PROBE_OFFSET_FROM_NOZZLE 0

define Z_PROBE_OFFSET_FROM_NOZZLE -21.05

define X_HOME_DIR -1

define Y_HOME_DIR 1

define Z_HOME_DIR 1

define E_HOME_DIR 1

define MIN_Z_HEIGHT_FOR_HOMING 0

define INVERT_X_DIR true

define X_MAX_POS 300

define X_MIN_POS 0

define Y_MAX_POS 250

define Y_MIN_POS 0

define Z_MAX_POS 250

define Z_MIN_POS 0

define E_MIN_POS 0

define AUTO_BED_LEVELING_FEATURE

define DEFAULT_AXIS_STEPS_PER_UNIT {159.757,158.933,800,102.308,102.308,102.308,102.308}

/**** CONFIGURATION FEATURE ****/

define ENABLE_SERVOS

define NUM_SERVOS 1

define DEACTIVATE_SERVOS_AFTER_MOVE

define DUAL_X_CARRIAGE

define X2_MIN_POS 10

define X2_MAX_POS 190

define X2_HOME_DIR 1

define X2_HOME_POS X2_MAX_POS

define DEFAULT_DUAL_X_CARRIAGE_MODE 1

define X_DUAL_STEPPER_DRIVERS

define LCD_LANGUAGE es

/**** CONFIGURATION TEMPERATURE ****/

define TEMP_SENSOR_0 11

define TEMP_SENSOR_1 11

`

with #define DEACTIVATE_SERVOS_AFTER_MOVE not compile!!

from /Users/Fran/Downloads/MarlinKimbra4due-master/MK4due/MK4due.ino:212:
sketch/module/sanitycheck.h:1594:6: error: #error DEPENDENCY ERROR: At least one of the ?_ENDSTOP_SERVO_NR is required for DEACTIVATE_SERVOS_AFTER_MOVE.

error DEPENDENCY ERROR: At least one of the ?_ENDSTOP_SERVO_NR is required for DEACTIVATE_SERVOS_AFTER_MOVE.

^

Only happen when activate:

define DEACTIVATE_SERVOS_AFTER_MOVE

Config of servo:

define ENABLE_SERVOS

define NUM_SERVOS 1

define X_ENDSTOP_SERVO_NR -1

define Y_ENDSTOP_SERVO_NR -1

define Z_ENDSTOP_SERVO_NR 0

define X_ENDSTOP_SERVO_ANGLES {0,0} // X Axis Extend and Retract angles

define Y_ENDSTOP_SERVO_ANGLES {0,0} // Y Axis Extend and Retract angles

define Z_ENDSTOP_SERVO_ANGLES {90,0} // Z Axis Extend and Retract angles

define DEACTIVATE_SERVOS_AFTER_MOVE

define SERVO_DEACTIVATION_DELAY 300

Some idea?

FAST_PWM_FAN doesn't work

if enable FAST_PWM_FAN in Configuration_Feature.h, it causes compiling error.

error message:
AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module\MK_Main.cpp: In function 'void setPwmFrequency(uint8_t, int)':

AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module\MK_Main.cpp:8609:33: error: 'digitalPinToTimer' was not declared in this scope

 switch(digitalPinToTimer(pin)) {

                             ^

SPI error when enable max6675 termocupole on Arduino Due

Hi,
When i try to enable a max6675 support on arduino due board, it's fail to compile and get this output

sketch/module/temperature/temperature.cpp: In function 'void tp_init()': sketch/module/temperature/temperature.cpp:1000:15: error: 'SS_PIN' was not declared in this scope pinMode(SS_PIN, OUTPUT); ^ sketch/module/temperature/temperature.cpp: In function 'int read_max6675()': sketch/module/temperature/temperature.cpp:1238:5: error: 'SPCR' was not declared in this scope SPCR = BIT(MSTR) | BIT(SPE) | BIT(SPR0); ^ In file included from sketch/module/temperature/../../base.h:14:0, from sketch/module/temperature/temperature.cpp:21: sketch/module/temperature/temperature.cpp:1238:16: error: 'MSTR' was not declared in this scope SPCR = BIT(MSTR) | BIT(SPE) | BIT(SPR0); ^ sketch/module/temperature/../../module/macros.h:8:21: note: in definition of macro 'BIT' #define BIT(b) (1<<(b)) ^ sketch/module/temperature/temperature.cpp:1238:28: error: 'SPE' was not declared in this scope SPCR = BIT(MSTR) | BIT(SPE) | BIT(SPR0); ^ sketch/module/temperature/../../module/macros.h:8:21: note: in definition of macro 'BIT' #define BIT(b) (1<<(b)) ^ sketch/module/temperature/temperature.cpp:1248:5: error: 'SPDR' was not declared in this scope SPDR = 0; ^ In file included from sketch/module/temperature/../../base.h:14:0, from sketch/module/temperature/temperature.cpp:21: sketch/module/temperature/temperature.cpp:1249:18: error: 'SPSR' was not declared in this scope for (; !TEST(SPSR, SPIF);); ^ sketch/module/temperature/../../module/macros.h:9:22: note: in definition of macro 'TEST' #define TEST(n,b) (((n)&BIT(b))!=0) ^ sketch/module/temperature/temperature.cpp:1249:24: error: 'SPIF' was not declared in this scope for (; !TEST(SPSR, SPIF);); ^ sketch/module/temperature/../../module/macros.h:8:21: note: in definition of macro 'BIT' #define BIT(b) (1<<(b)) ^ sketch/module/temperature/temperature.cpp:1249:13: note: in expansion of macro 'TEST' for (; !TEST(SPSR, SPIF);); ^ sketch/module/temperature/temperature.cpp:1255:18: error: 'SPSR' was not declared in this scope for (; !TEST(SPSR, SPIF);); ^ sketch/module/temperature/../../module/macros.h:9:22: note: in definition of macro 'TEST' #define TEST(n,b) (((n)&BIT(b))!=0) ^ sketch/module/temperature/temperature.cpp:1255:24: error: 'SPIF' was not declared in this scope for (; !TEST(SPSR, SPIF);); ^ sketch/module/temperature/../../module/macros.h:8:21: note: in definition of macro 'BIT' #define BIT(b) (1<<(b)) ^ sketch/module/temperature/temperature.cpp:1255:13: note: in expansion of macro 'TEST' for (; !TEST(SPSR, SPIF);); ^ exit status 1

Do you can help me?

SERIAL_PORT selection

Hi! I've got DUE with dead programming usb port (I mean MEGA16U2 and looks like Rx pin of UART_0). So best Idea is to use one of 3 other UARTS with TTL adapter. But changing SERIAL_PORT in Configuration_basic doesn't affect at all. Because there is no any connection between MSG_PORT in HAL.h and SERIAL_PORT. So my proposual is just add following in base.h (just before #include "src/HAL/HAL.h"):
#define MSG_PORT SERIAL_PORT.
If you have better solution please - do it in your way, just make it work. My method - works.

Max6675 error during

I'have look a freeze of printer after a few minutes of printing, my printer go on "MAXTEMP" 755*C and freeze.
And it's totally random

não copila

Arduino: 1.6.4 (Mac OS X), Placa:"Arduino Duemilanove or Diecimila, ATmega328"

Opções de compilação alteradas, recompilando tudo
In file included from blinkm.cpp:5:0:
base.h:22:22: fatal error: fastio.h: No such file or directory
#include "fastio.h"
^
compilation terminated.
Erro compilando.

Este relatório deveria ter mais informações
"Mostrar saída verbosa durante a compilação"
habilitado em Arquivo > Preferências.

ramps-fd - pin mapping

hello i have verified this on my ramps-fd and your pinout number are not right...

PIN RAMPS-FD V1 & V2

THERMISTOR 0 0 ANALOG
THERMISTOR 1 1 ANALOG
THERMISTOR 2 2 ANALOG
THERMISTOR 3 3 ANALOG

FET D8 8 OK
FET D9 9 OK
FET D10 10 OK
FET D11 11 OK
FET D12 12 OK
FET D2 2 OK

PS ON 53 OK

MESSAGE LED 13 OK

X MIN 22 OK
X MAX 30 OK

Y MIN 24 OK
Y MAX 38 OK

Z MIN 26 OK
Z MAX 34 OK

X STEP 63 OK
X DIR 62 OK
X ENABLE 48 OK

Y STEP 65 OK
Y DIR 64 OK
Y ENABLE 46 OK

Z STEP 67 OK
Z DIR 66 OK
Z ENABLE 44 OK

E0 STEP 36 OK
E0 DIR 28 OK
E0 ENABLE 42 OK

E1 STEP 43 OK
E1 DIR 41 OK
E1 ENABLE 39 OK

E2 STEP 32 OK
E2 DIR 47 OK
E2 ENABLE 45 OK

SERVO 0 7 OK
SERVO 1 6 OK
SERVO 2 5 OK
SERVO 3 3 OK

KILL PIN 40 OK

I2C-0

SDA 20 ?
SCL 21 ?

I2C-1

SDA 70 ?
SCL 9 ?

standard laser machine

hi @MagoKimbra , thanks for sharing the codes , however I coud'nt find active low laser function in your codes ,
actually I made cnc laser with https://github.com/TurnkeyTyranny modified marlin code which is now updated with Hanken https://github.com/HakanBastedt/Marlin4Due/tree/Laser for due board , we discus with couple of cool guys about how the most code not consider readiness the tools in codes, and always suppose the tools is up and ready , for example in plasma machine it is necessary ,the torch is initiated and ready for cut , also in laser machine , laser power unit always check the cooling system and power of the beam , and I think this readiness should be check in loop function , it is standard way which software such as Mach3 do
I really appreciated if you could check those code as well as my due shield for cnc laser and have your comments ,

Software based SPI pin control

Hi,

I use the Arduino Due. I set up the connections of the SD card to pin 9 and a touch screen to pin 10 both get the MISO, MOSI & TCK from the same pins (74,75,76). Now the internal setup of the Arduino Due is configured in a way to normally just use pin 4 and 10 as chip select pins for SPI. However, is it possible to those via software based SPI control?

Or rephrasing the question. Is it possible while using the extended SPI to use other pins then 4, 10 and 52 to connect an SD cart with the Arduino ´Due?

Cheers,
Tim

PWM on Alligator

While trying to use PWM on the Alligator Board, the output is only binary.

Ramps FD v1 Incorrect temperature

The temperature shows up as 4-5 times the ambient temperature, same printer with same firmware (a part from the DEFINE Board_name) but different board and microcontroller (ramps 1.4 with mega) is reading right temps.

Stepper bug when turning the button

Hello there !
First, thank you for your great work for arduino due 👍
Today i was printing an object and i saw my son turning the rotary button wildly.
I noticed the steppers were not working well (they froze), I was looking to the code and trying to find out where the problem is comming from. I tried to put the priority of the stepper to 0 (NVIC_setPriority) but nothing changed. Does someone have an idea where the problem is comming from ?

Sincerely yours,
Nick

Extruder 2 spinning with every Z movement!

Hi
Just updated firmware using the configuration tool. I use singlenozzle configuration with 2 extruders on prusa-like printer.
STRANGE PROBLEM: Every time Z is moving the Extruder 2 is moving too! but when moving the extruder 2, there is no movement of Z axis....

Help will be appreciated!

M100_FREE_MEMORY_WATCHER doesn't work

if enable M100_FREE_MEMORY_WATCHER in Configuration_Feature.h, it causes compiling error.

error message:
AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module\sd\SDFat.cpp:4283:15: error: type mismatch with previous external decl of 'int* SdFatUtil::__brkval' [-fpermissive]

extern int* __brkval;

           ^

In file included from AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module\sd../../base.h:45:0,

             from AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module\sd\SDFat.cpp:21:

AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module\sd../../module/MK_Main.h:244:16: error: previous external decl of 'void* __brkval' [-fpermissive]

extern void *__brkval;

            ^

Problem in HAL

I was debugging the new LCD screen on Ultratronics with SPI. Problem is with the HAL, where the function receive has the SDSS put to LOW. This is the SD pin, which I reckon should not be in a hardware abstraction layer, as this function is also called from temperature.cpp. So maybe we can set the CS pin as parameter in the spiInit function. Or better, replace the whole thing for the SPI library native to Arduino?

uint8_t HAL::spiReceive() {
WRITE(SDSS, LOW); <- This is specific for SD
uint8_t b = spiTransfer(0xff);
WRITE(SDSS, HIGH); <- This is specific for SD
return b;
}

G30 A AND G29

if I put a figure greater than 55 in bed_printer_radius nothing works properly neither has nor the G29 g30.

My delta have a 200mm diameter bed before it working with marlin...

Max6675 not work

Hi MagoKimbra

With the latest Commit disappeared HAL::spiBegin() in read_max6675 function.
A question: is correct that spiBegin and spiInit are performed every time you read the temperature? (read_max6675)

Drakelive

Board Radds Error

Hello

i select the Radds board and #define BOARD_RADDS 402 // RADDS ARM 32

define MOTHERBOARD BOARD_RADDS_402

i get this Message

error

maybe you can help me

ADVANCE doesn't work

if enable ADVANCE in Configuration_Feature.h, it causes compiling error.

error message:
In file included from AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\base.h:38:0,

             from MarlinKimbra4due.git\trunk\MK4due\MK4due.ino:197:

AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module/sanitycheck.h:378:8: error: #error DEPENDENCY ERROR: Missing setting STEPS_MM_E

   #error DEPENDENCY ERROR: Missing setting STEPS_MM_E

    ^

if I set the STEPS_MM_E(ex. #define STEPS_MM_E 836) in Configuration_Feature.h, it still causes compiling error.

error message:
AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module\motion\stepper.cpp: In function 'void TIMER0_COMPA_vect()':

AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module\motion\stepper.cpp:800:5: error: 'OCR0A' was not declared in this scope

 OCR0A = old_OCR0A;

 ^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.