This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

  • 0 voto(s) - 0 Media
  • 1
  • 2
  • 3
  • 4
  • 5
CONSULTA configurar gbrl ramps 1.4
#1
buenas noches!!!!

tengo una duda estoy intentando hacer un cnc  con una electronicaque me quedo deuna impresora 3d, consultando llegue a la conclusion de que el fimware que mas se adapta a lasnecesidades del proyecto es Grbl  pero este esta diseñado para  un shield cnc. consultando encontre que tengo qeu modificar unos archivos del finware  y hay estoy en la tarea juicioso pero no tengo idea de si lo que estoy haciendo puede funcionar, basicamente coji del finware sprinter el archivo pins  y empeze a verificar que pines usan para la ramps 1.4  pero al validar en el fimware del Grbl en la parte la configuracion de los pineshay unos campos que no se como configurar 

// Define stepper driver enable/disable output pin.
#define STEPPERS_DISABLE_DDR  DDRB
#define STEPPERS_DISABLE_PORT  PORTB
#define STEPPERS_DISABLE_BIT  38,56,62 // MEGA2560 Digital Pin 13
#define STEPPERS_DISABLE_MASK (1<<STEPPERS_DISABLE_BIT)



asi el arduino me reconocera esos puertos para enable del eje x,y y z o puedo modificar un poco la eletronica y sacar de un pin el enable para los motores PAP nos e que hacer

// Define spindle enable and spindle direction output pins.
#define SPINDLE_ENABLE_DDR      DDRH
#define SPINDLE_ENABLE_PORT    PORTH
#define SPINDLE_ENABLE_BIT      3 // MEGA2560 Digital Pin 6
#define SPINDLE_DIRECTION_DDR  DDRE
#define SPINDLE_DIRECTION_PORT  PORTE
#define SPINDLE_DIRECTION_BIT  3 // MEGA2560 Digital Pin 5

// Define flood and mist coolant enable output pins.
// NOTE: Uno analog pins 4 and 5 are reserved for an i2c interface, and may be installed at
// a later date if flash and memory space allows.
#define COOLANT_FLOOD_DDR    DDRH
#define COOLANT_FLOOD_PORT    PORTH
#define COOLANT_FLOOD_BIT    5 // MEGA2560 Digital Pin 8
#ifdef ENABLE_M7 // Mist coolant disabled by default. See config.h to enable/disable.
#define COOLANT_MIST_DDR    DDRH
#define COOLANT_MIST_PORT  PORTH
#define COOLANT_MIST_BIT    6 // MEGA2560 Digital Pin 9
#endif 

// Define user-control CONTROLs (cycle start, reset, feed hold) input pins.
// NOTE: All CONTROLs pins must be on the same port and not on a port with other input pins (limits).
#define CONTROL_DDR      DDRK
#define CONTROL_PIN      PINK
#define CONTROL_PORT      PORTK
#define RESET_BIT        0  // MEGA2560 Analog Pin 8
#define FEED_HOLD_BIT    1  // MEGA2560 Analog Pin 9
#define CYCLE_START_BIT  2  // MEGA2560 Analog Pin 10
#define SAFETY_DOOR_BIT  3  // MEGA2560 Analog Pin 11
#define CONTROL_INT      PCIE2  // Pin change interrupt enable pin
#define CONTROL_INT_vect  PCINT2_vect
#define CONTROL_PCMSK    PCMSK2 // Pin change interrupt register
#define CONTROL_MASK ((1<<RESET_BIT)|(1<<FEED_HOLD_BIT)|(1<<CYCLE_START_BIT)|(1<<SAFETY_DOOR_BIT))
#define CONTROL_INVERT_MASK CONTROL_MASK // May be re-defined to only invert certain control pins.

// Define probe switch input pin.
#define PROBE_DDR      DDRK
#define PROBE_PIN      PINK
#define PROBE_PORT      PORTK
#define PROBE_BIT      7  // MEGA2560 Analog Pin 15
#define PROBE_MASK      (1<<PROBE_BIT)

// Start of PWM & Stepper Enabled Spindle
#ifdef VARIABLE_SPINDLE
  // Advanced Configuration Below You should not need to touch these variables
  // Set Timer up to use TIMER4B which is attached to Digital Pin 7
  #define PWM_MAX_VALUE      65535.0
  #define TCCRA_REGISTER TCCR4A
  #define TCCRB_REGISTER TCCR4B
  #define OCR_REGISTER OCR4B
 
  #define COMB_BIT COM4B1
  #define WAVE0_REGISTER WGM40
  #define WAVE1_REGISTER WGM41
  #define WAVE2_REGISTER WGM42
  #define WAVE3_REGISTER WGM43
 
  #define SPINDLE_PWM_DDR DDRH
  #define SPINDLE_PWM_PORT    PORTH
  #define SPINDLE_PWM_BIT 4 // MEGA2560 Digital Pin 97
#endif // End of VARIABLE_SPINDLE



con esa parte del codigo no tengo ni idea que hacer, como onfigurar los pines para poder conectarlos en la ramps 


https://reprap.org/mediawiki/images/3/3f...ematic.png // este es el diagrama de los pines de la ramps 1.4  no se cual puedo cojer para el spindle que creo que es el taladro agradezco mucho quien me puesa echar una manito
  Responder


Posibles temas similares…
Tema Autor Respuestas Vistas Último mensaje
Exclamación resetear configurar impresora térmica; SOLUCIONADO!!! karlosjta 1 170 02-02-2023, 03:52 PM
Último mensaje: karlosjta
  Cómo configurar la salida de elevador dc dc? cybero 8 2,612 13-05-2015, 07:31 AM
Último mensaje: Ranganok