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
Ayuda sensor BL touch
#1
Nuenas tardes, os comento un problema que me esta dando un terrible dolor de cabeza... estoy intentando montar un sensor bl touch, sobre una placa lionheart pro, el problema surge a la hora de compilar, hago las modificaciones pertinentes en el codigo pero me aparece un error de sketch demasiado grande 124.124 bytes de un maximo de 122.048.
Lo que he modificado en el codigo es:
-const bool Z_MIN_ENDSTOP_INVERTING = false
-#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line)

//#define Z_PROBE_REPEATABILITY_TEST  // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled.



#ifdef ENABLE_AUTO_BED_LEVELING



  // There are 2 different ways to specify probing locations

  //

  // - "grid" mode

  //   Probe several points in a rectangular grid.

  //   You specify the rectangle and the density of sample points.

  //   This mode is preferred because there are more measurements.

  //

  // - "3-point" mode

  //   Probe 3 arbitrary points on the bed (that aren't colinear)

  //   You specify the XY coordinates of all 3 points.



  // Enable this to sample the bed in a grid (least squares solution)

  // Note: this feature generates 10KB extra code size

  #define AUTO_BED_LEVELING_GRID



  #ifdef AUTO_BED_LEVELING_GRID



    #define LEFT_PROBE_BED_POSITION 40 //SAG20150811

    #define RIGHT_PROBE_BED_POSITION 160

    #define FRONT_PROBE_BED_POSITION 40

    #define BACK_PROBE_BED_POSITION 260



    #define MIN_PROBE_EDGE 10 // The probe square sides can be no smaller than this



    // Set the number of grid points per dimension

    // You probably don't need more than 3 (squared=9)

    #define AUTO_BED_LEVELING_GRID_POINTS 5



  #else  // !AUTO_BED_LEVELING_GRID



      // Arbitrary points to probe. A simple cross-product

      // is used to estimate the plane of the bed.

      #define ABL_PROBE_PT_1_X 15

      #define ABL_PROBE_PT_1_Y 180

      #define ABL_PROBE_PT_2_X 15

      #define ABL_PROBE_PT_2_Y 20

      #define ABL_PROBE_PT_3_X 140 //SAG20150811

      #define ABL_PROBE_PT_3_Y 20



  #endif // AUTO_BED_LEVELING_GRID



  // Offsets to the probe relative to the extruder tip (Hotend - Probe)

  // X and Y offsets must be integers //SAG20150811

  #define X_PROBE_OFFSET_FROM_EXTRUDER 39     // Probe on: -left  +right

  #define Y_PROBE_OFFSET_FROM_EXTRUDER 0     // Probe on: -front +behind

  #define Z_PROBE_OFFSET_FROM_EXTRUDER 0  // -below (always!)



  //SAG20150811    

  #define Z_RAISE_BEFORE_HOMING 2       // (in mm) Raise Z before homing (G28) for Probe Clearance.

                                        // Be sure you have this distance over your Z_MAX_POS in case



  #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min



  //SAG20150811

  #define Z_RAISE_BEFORE_PROBING 10   //How much the extruder will be raised before traveling to the first probing point.

  #define Z_RAISE_BETWEEN_PROBINGS 5  //How much the extruder will be raised when traveling from between next probing points

  #define Z_RAISE_AFTER_PROBING 10    //How much the extruder will be raised after the last probing point.
Aqui he añadido mis offsets y demás.

-// Number of servos

//
// If you select a configuration below, this will receive a default value and does not need to be set manually
// set it manually if you have more servos than extruders and wish to manually control some
// leaving it undefined or defining as 0 will disable the servo subsystem
// If unsure, leave commented / disabled
//
#define NUM_SERVOS 1 // Servo index starts with 0 for M280 command //SAG20150811

// Servo Endstops
//
// This allows for servo actuated endstops, primary usage is for the Z Axis to eliminate calibration or bed height changes.
// Use M851 to set the z-probe vertical offset from the nozzle. Store that setting with M500.
//
#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 10,90} // X,Y,Z Axis Extend and Retract angles.
Y aqui he activado el servo.

La duda me surge si ademas de estas modificaciones tengo que tocar el archivo pin.h.

Si algun alma caritativa me ayudara se lo agradeceria enormemente, ya que en tema de programacion estoy bastante verde.
Gracias.


  Responder
#2
Ya esta arreglado. gracias.
  Responder


Posibles temas similares…
Tema Autor Respuestas Vistas Último mensaje
  CONSULTA problemas con sensor inductivo nallib150789 1 83 08-03-2023, 05:27 PM
Último mensaje: Simemart
  CONSULTA Sensor filamento optico casero snakesanti 9 317 21-02-2023, 07:50 PM
Último mensaje: Simemart
  sensor de final de filamento Tass3D 1 155 19-11-2022, 04:47 PM
Último mensaje: Simemart
  problemas con sensor de filamento homer32 1 579 08-08-2022, 12:17 AM
Último mensaje: Etimoe
  Sensor filamento infrarrojo de PRUSA y MKS TFT3.5 error tras parada Mafer 4 603 12-10-2021, 03:32 PM
Último mensaje: Mafer