Calificación:
  • 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.


Citar
#2
Ya esta arreglado. gracias.
Citar


Temas similares...
Tema Autor Respuestas Vistas Último mensaje
  Duda sensor capacitivo y reductor de voltaje Flautarian 2 65 12-11-2018, 09:45 PM
Último mensaje: norwix
  DUDA OVM20 Lite y 3d Touch pframon 9 216 23-09-2018, 07:34 PM
Último mensaje: Simemart
  CONSULTA Ofset Z con sensor auto bed leveling dvera16 0 363 08-01-2018, 09:48 AM
Último mensaje: dvera16
  Sensor autolevel kingpin82 8 1,392 22-09-2017, 05:08 PM
Último mensaje: tximy
  Sensor inductivo ayuda samufiscal 16 1,546 09-02-2017, 07:35 PM
Último mensaje: samufiscal