rodzic
7406a9607c
commit
8bf911f09e
BIN
pinout.xlsx
BIN
pinout.xlsx
Plik binarny nie jest wyświetlany.
|
@ -21,7 +21,7 @@
|
|||
|
||||
// ################## EDIT THESE SETTINGS MANUALLY ################
|
||||
|
||||
#define DAVINCI 1 // "0" if not DAVINCI, "1" For DAVINCI 1.0, "2" For DAVINCI 2.0 with 1 FAN, "3" For DAVINCI 2.0 with 2 FAN, 4 for AiO (WITH NO SCANNER SUPPORT)
|
||||
#define DAVINCI 4 // "0" if not DAVINCI, "1" For DAVINCI 1.0, "2" For DAVINCI 2.0 with 1 FAN, "3" For DAVINCI 2.0 with 2 FAN, 4 for AiO (WITH NO SCANNER SUPPORT)
|
||||
#define MODEL 0//"0" for first generation (jumper JP1 to reset ) , "1" for new generation (jumper J37 to reset)
|
||||
#define REPURPOSE_FAN_TO_COOL_EXTRUSIONS 0 //Setting this to 1 will repurpose the main Extruder cooling fan to be controlled VIA M106/M107
|
||||
//Warning: for DaVinci 1.0 need to add a permanent fan with power supply to cool extruder
|
||||
|
@ -101,6 +101,16 @@
|
|||
//default mode is advanced
|
||||
#define CASE_DISPLAY_MODE_DEFAULT 1
|
||||
|
||||
//Laser and turntable
|
||||
#if DAVINCI == 4
|
||||
#define TURNTABLE_STEP_PER_MM 5.20 // 3200 / perimeter (P= 196 * pi)
|
||||
#define DEFAULT_SPEED 100
|
||||
#define TURNTABLE_INVERT_ENABLE 0
|
||||
#define TURNTABLE_INVERT_DIR 0
|
||||
#define NUM_MOTOR_DRIVERS 0
|
||||
#define MOTOR_DRIVER_1(var) StepperDriver<TURNTABLE_STEP_PIN,TURNTABLE_DIR_PIN,TURNTABLE_ENABLE_PIN,TURNTABLE_INVERT_ENABLE,TURNTABLE_INVERT_DIR> var(TURNTABLE_STEP_PER_MM,DEFAULT_SPEED)
|
||||
#endif
|
||||
|
||||
/* Some words on units:
|
||||
|
||||
From 0.80 onwards the units used are unified for easier configuration, watch out when transferring from older configs!
|
||||
|
|
|
@ -44,7 +44,7 @@ MotorDriverInterface *getMotorDriver(int idx)
|
|||
}
|
||||
|
||||
/**
|
||||
Run motor P until it is at position X
|
||||
Run motor P until it is at position X at speed F
|
||||
*/
|
||||
void commandG201(GCode &code)
|
||||
{
|
||||
|
@ -54,6 +54,11 @@ void commandG201(GCode &code)
|
|||
if(id < 0) id = 0;
|
||||
if(id >= NUM_MOTOR_DRIVERS) id = 0;
|
||||
if(!code.hasX()) return;
|
||||
//Davinci Specific
|
||||
if(code.hasF())
|
||||
{
|
||||
delayUS = 500000 / (code.F * stepsPerMM);
|
||||
}
|
||||
motorDrivers[id]->gotoPosition(code.X);
|
||||
}
|
||||
|
||||
|
|
|
@ -80,6 +80,14 @@
|
|||
#endif
|
||||
#if DAVINCI==4
|
||||
#define BADGE_LIGHT_PIN 6
|
||||
|
||||
#define TURNTABLE_STEP_PIN 22
|
||||
#define TURNTABLE_DIR_PIN 13
|
||||
#define TURNTABLE_ENABLE_PIN 26 //HIGH = Disabled
|
||||
#define LASER1_PIN 101 //Low = off
|
||||
#define LED_LASER1_PIN 7 //0 = off
|
||||
#define LASER2_PIN 2 //Low = off
|
||||
#define LED_LASER2_PIN 108
|
||||
#else
|
||||
#define BADGE_LIGHT_PIN -1
|
||||
#endif
|
||||
|
|
Ładowanie…
Reference in New Issue