Aller au contenu

GO Print

LCD 12864 de contrôle compatible ?


Virgin22

Messages recommandés

J'ai une question ??? En regardent me firmware mise à disposition sur le site dagoma, sur le fichier pin.h je n'est pas autant de ligne que celui de @PoLoMoD est ce qu'il faut que je remplace le fichier pin.h ou j'ajoute les ligne en dessous du fichier existent ? :/

Lien vers le commentaire
Partager sur d’autres sites

je me suis aussi fait la réflexion ... mais en regardant de plus prés il semble que DAGOMA ait ""allègé" leur firmware MARLIN

je pense qu'il vaut mieux partir sur un Marlin 'neuf" et reconfigurer tout car je ne sais même pas si le "Smart Discount LCD" est activable dans "configuration.h" dans leur version de MARLIN :/ 

 

Avec l'accouchement de ma femme j'ai pas eu le temps de me pencher activement sur le sujet .... pour l'instant je vous fais pars de mes trouvailles/recherches sans les avoir testés .

Modifié (le) par PoLoMoD
Lien vers le commentaire
Partager sur d’autres sites

il y a 5 minutes, PoLoMoD a dit :

je me suis aussi fait la réflexion ... mais en regardant de plus prés il semble que DAGOMA ait ""allègé" leur firmware MARLIN

je pense qu'il vaut mieux partir sur un Marlin 'neuf" et reconfigurer tout car je ne sais même pas si le "Smart Discount LCD" est activable dans leur version de MARLIN :/ 

 

Avec l'accouchement de ma femme j'ai pas eu le temps de me pencher activement sur le sujet .... pour l'instant je vous fais pars de mes trouvailles/recherches sans les avoir testés .

Tout d'abord FELICITATION, profites bien de ta petite famille, c'est le plus important !!

Et un grand merci pour le travail de débroussaillage que tu nous as fait !!

De mon côté, je termine de me bricoler l'adaptateur (pour moi, le A2 va bien sur le A2 et le D10 sur le D10) et je passe sur le firmware...

Sauf que ça va me prendre un peu de temps car je n'avais encore jamais raccordé ma D200 à mon PC !!! Here we Go (comme dirait l'autre) !!!

Lien vers le commentaire
Partager sur d’autres sites

il y a 6 minutes, PoLoMoD a dit :

j'ai regardé vite fait le marlin de dagoma et c'est une version allégé :/

je suis en train de le modifier et faire des tests de compilation

Effectivement, le marlin de dagoma est réduit à son strict minimum !!

Quelle section du pin.h que tu nous a débusqué as tu ajouté au pin.h du Marlin Dagomisé ?

Penses tu qu'il faille modifier d'autres éléments ?

Lien vers le commentaire
Partager sur d’autres sites

test de compilation réussi avec le "configuration.h" suivant : (et le "pins.h" plus haut dans le topic)

Attention, librarie  "u8glib" obligatoire dans l'IDE Arduino !!!

http://code.google.com/p/u8glib/wiki/u8glib

a voir si il ne manque pas d'autres ".h" ou ".cpp" ...

#ifndef CONFIGURATION_H
#define CONFIGURATION_H

// User-specified version info of this build to display in [Pronterface, etc] terminal window during
// startup.
#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
#define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.

// SERIAL_PORT selects which serial port should be used for communication with the host.
// This allows the connection of wireless adapters (for instance) to non-default port pins.
// Serial port 0 is still used by the Arduino bootloader regardless of this setting.
#define SERIAL_PORT 0
// This determines the communication speed of the printer
#define BAUDRATE 250000

#define MOTHERBOARD 6

// Define this to set a custom name for your generic Mendel,
#define CUSTOM_MENDEL_NAME "discovery 200"

// Define this to set a unique identifier for this printer, (Used by some programs to differentiate between machines)
// You can use an online service to generate a random UUID. (eg http://www.uuidgenerator.net/version4)
// #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"

// This defines the number of extruders
#define EXTRUDERS 1

//// The following define selects which power supply you have. Please choose the one that matches your setup
// 1 = ATX
// 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)
#define POWER_SUPPLY 1

// Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.
// #define PS_DEFAULT_OFF

//===========================================================================
//=============================Thermal Settings  ============================
//===========================================================================
#define TEMP_SENSOR_0 70 //@gauthier - modif du 02 octobre 2014 - disco avec nouvelle sonde de temperature (104GT2)

#define MAX_REDUNDANT_TEMP_SENSOR_DIFF 10

// Actual temperature must be close to target for this long before M109 returns success
#define TEMP_RESIDENCY_TIME 10  // (seconds)
#define TEMP_HYSTERESIS 3       // (degC) range of +/- temperatures considered "close" to the target one
#define TEMP_WINDOW     1       // (degC) Window around target to start the residency timer x degC early.

#define HEATER_0_MINTEMP 12
#define HEATER_0_MAXTEMP 330 //disco

// If you want the M105 heater power reported in watts, define the EXTRUDER_WATTS
//#define EXTRUDER_WATTS (12.0*12.0/6.7) //  P=I^2/R

// PID settings:
// Comment the following line to disable PID and enable bang-bang.
#define PIDTEMP
#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
#define PID_MAX 255 // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
#ifdef PIDTEMP
  //#define PID_DEBUG // Sends debug data to the serial port.
  //#define PID_OPENLOOP 1 // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX
  #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
                                  // is more then PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
  #define PID_INTEGRAL_DRIVE_MAX 255  //limit for the integral term
  #define K1 0.95 //smoothing factor within the PID
  #define PID_dT ((OVERSAMPLENR * 8.0)/(F_CPU / 64.0 / 256.0)) //sampling period of the temperature routine


// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
// Ultimaker dagoma disco changement le 20 aout

//    #define  DEFAULT_Kp 13.98
//    #define  DEFAULT_Ki 0.92
//    #define  DEFAULT_Kd 53.14
    
// Disco S1 --> PID calculé à 220°C le 15/07/2015 + nouvelle table de température + résistance de tirage 10K
    #define  DEFAULT_Kp 30.83
    #define  DEFAULT_Ki 5.35
    #define  DEFAULT_Kd 44.45

#endif // PIDTEMP

#define MAX_BED_POWER 0 // limits duty cycle to bed; 255=full current disco car inutile




//this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
//can be software-disabled for whatever purposes by
#define PREVENT_DANGEROUS_EXTRUDE
//if PREVENT_DANGEROUS_EXTRUDE is on, you can still disable (uncomment) very long bits of extrusion separately.
#define PREVENT_LENGTHY_EXTRUDE

#define EXTRUDE_MINTEMP 160 //a changer disco
#define EXTRUDE_MAXLENGTH (X_MAX_LENGTH+Y_MAX_LENGTH) //prevent extrusion of very large distances.

#define DISCO_MINI_FAN_SPEED 130 //minimum speed for the head fan to prevent head softening over printing

//===========================================================================
//=============================Mechanical Settings===========================
//===========================================================================

// Uncomment the following line to enable CoreXY kinematics
// #define COREXY

// coarse Endstop Settings
#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors

#ifndef ENDSTOPPULLUPS
  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
  // #define ENDSTOPPULLUP_XMAX
  // #define ENDSTOPPULLUP_YMAX
  // #define ENDSTOPPULLUP_ZMAX
  // #define ENDSTOPPULLUP_XMIN
  // #define ENDSTOPPULLUP_YMIN
  // #define ENDSTOPPULLUP_ZMIN
#endif

#ifdef ENDSTOPPULLUPS
  #define ENDSTOPPULLUP_XMAX
  #define ENDSTOPPULLUP_YMAX
  #define ENDSTOPPULLUP_ZMAX
  #define ENDSTOPPULLUP_XMIN
  #define ENDSTOPPULLUP_YMIN
  #define ENDSTOPPULLUP_ZMIN
#endif

// The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
const bool X_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
const bool Y_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
const bool Z_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop. DISCO
const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. DISCO
//#define DISABLE_MAX_ENDSTOPS
//#define DISABLE_MIN_ENDSTOPS

// Disable max endstops for compatibility with endstop checking routine
#if defined(COREXY) && !defined(DISABLE_MAX_ENDSTOPS)
  #define DISABLE_MAX_ENDSTOPS
#endif

// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
#define X_ENABLE_ON 0
#define Y_ENABLE_ON 0
#define Z_ENABLE_ON 0 //disco 0
#define E_ENABLE_ON 0 // For all extruders

// Disables axis when it's not being used.
#define DISABLE_X false // disco x gauche
#define DISABLE_Y false
#define DISABLE_Z true //disco
#define DISABLE_E false // For all extruders
#define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled

#define INVERT_X_DIR false    // for Mendel set to false, for Orca set to true disco
#define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
#define INVERT_Z_DIR true     // for Mendel set to false, for Orca set to true
#define INVERT_E0_DIR true   // for direct drive extruder v9 set to true, for geared extruder set to false
#define INVERT_E1_DIR false    // for direct drive extruder v9 set to true, for geared extruder set to false
#define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false

// ENDSTOP SETTINGS:
// Sets direction of endstops when homing; 1=MAX, -1=MIN
#define X_HOME_DIR -1
#define Y_HOME_DIR 1  //matt disco blanche 2 oct 2014
#define Z_HOME_DIR -1

#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.

// Travel limits after homing
#define X_MAX_POS 205
#define X_MIN_POS 0
#define Y_MAX_POS 205
#define Y_MIN_POS 0
#define Z_MAX_POS 205 // Disco -> Travel limit
#define Z_MIN_POS 0

#define X_MAX_LENGTH (X_MAX_POS - X_MIN_POS)
#define Y_MAX_LENGTH (Y_MAX_POS - Y_MIN_POS)
#define Z_MAX_LENGTH (Z_MAX_POS - Z_MIN_POS)
//============================= Bed Auto Leveling ===========================

#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line) disco

#ifdef ENABLE_AUTO_BED_LEVELING

// There are 2 different ways to pick the X and Y locations to probe:

//  - "grid" mode
//    Probe every point in a rectangular grid
//    You must specify the rectangle, and the density of sample points
//    This mode is preferred because there are more measurements.
//    It used to be called ACCURATE_BED_LEVELING but "grid" is more descriptive

//  - "3-point" mode
//    Probe 3 arbitrary points on the bed (that aren't colinear)
//    You must specify the X & Y coordinates of all 3 points

  #define AUTO_BED_LEVELING_GRID
  // with AUTO_BED_LEVELING_GRID, the bed is sampled in a
  // AUTO_BED_LEVELING_GRID_POINTSxAUTO_BED_LEVELING_GRID_POINTS grid
  // and least squares solution is calculated
  // Note: this feature occupies 10'206 byte
  #ifdef AUTO_BED_LEVELING_GRID

    // set the rectangle in which to probe disco
    #define LEFT_PROBE_BED_POSITION 15  
    #define RIGHT_PROBE_BED_POSITION 180
    #define BACK_PROBE_BED_POSITION 155
    #define FRONT_PROBE_BED_POSITION 50

     // set the number of grid points per dimension
     // I wouldn't see a reason to go above 3 (=9 probing points on the bed)
    #define AUTO_BED_LEVELING_GRID_POINTS 2 // disco


  #else  // not AUTO_BED_LEVELING_GRID
    // with no grid, just probe 3 arbitrary points.  A simple cross-product
    // is used to esimate the plane of the print bed

      #define ABL_PROBE_PT_1_X 15
      #define ABL_PROBE_PT_1_Y 50
      #define ABL_PROBE_PT_2_X 15
      #define ABL_PROBE_PT_2_Y 155
      #define ABL_PROBE_PT_3_X 180
      #define ABL_PROBE_PT_3_Y 50

  #endif // AUTO_BED_LEVELING_GRID


  // these are the offsets to the probe relative to the extruder tip (Hotend - Probe)
  #define X_PROBE_OFFSET_FROM_EXTRUDER 0 // -25 //disco
  #define Y_PROBE_OFFSET_FROM_EXTRUDER 0 // -29 //disco
  #define Z_PROBE_OFFSET_FROM_EXTRUDER 1.95 // -12.35 //disco ici l'offset de base pour Z

  #define Z_RAISE_BEFORE_HOMING 5       // (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 3000         // X and Y axis travel speed between probes, in mm/min /disco

  #define Z_RAISE_BEFORE_PROBING 20    //How much the extruder will be raised before traveling to the first probing point. disco
  #define Z_RAISE_BETWEEN_PROBINGS 15  //How much the extruder will be raised when traveling from between next probing points. disco

//If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
//it is highly recommended you let this Z_SAFE_HOMING enabled!!!

  #define Z_SAFE_HOMING   // This feature is meant to avoid Z homing with probe outside the bed area.
                          // When defined, it will:
                          // - Allow Z homing only after X and Y homing AND stepper drivers still enabled
                          // - If stepper drivers timeout, it will need X and Y homing again before Z homing
                          // - Position the probe in a defined XY point before Z Homing when homing all axis (G28)
                          // - Block Z homing only when the probe is outside bed area.

  #ifdef Z_SAFE_HOMING

    #define Z_SAFE_HOMING_X_POINT (X_MAX_LENGTH/2)    // X point for Z homing when homing all axis (G28)
    #define Z_SAFE_HOMING_Y_POINT (Y_MAX_LENGTH/2)    // Y point for Z homing when homing all axis (G28)

  #endif

#endif // ENABLE_AUTO_BED_LEVELING

//Manual homing switch locations:
// For deltabots this means top and center of the Cartesian print volume.
#define MANUAL_X_HOME_POS 0
#define MANUAL_Y_HOME_POS 0
#define MANUAL_Z_HOME_POS 0
//#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.

//// MOVEMENT SETTINGS
#define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E
#define HOMING_FEEDRATE {50*60, 50*60, 4*60, 0}  // set the homing speeds (mm/min)

// default settings

#define DEFAULT_AXIS_STEPS_PER_UNIT   {80, 80, 2560, 98} //{78.7402,78.7402,200.0*8/3,760*1.1}  // default steps per unit for Ultimaker      OLD.E=760*1.1
#define DEFAULT_MAX_FEEDRATE          {500, 500, 5, 25}    // (mm/sec) Y de base : 500
#define DEFAULT_MAX_ACCELERATION      {9000,3000,100,10000}    // X, Y, Z=100, E maximum start speed for accelerated moves. E default values are good for Skeinforge 40+, for older versions raise them a lot. Y from 9000 to 3000

#define DEFAULT_ACCELERATION          3000    // X, Y, Z and E max acceleration in mm/s^2 for printing moves
#define DEFAULT_RETRACT_ACCELERATION  3000   // X, Y, Z and E max acceleration in mm/s^2 for retracts

// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
// For the other hotends it is their distance from the extruder 0 hotend.
// #define EXTRUDER_OFFSET_X {0.0, 20.00} // (in mm) for each extruder, offset of the hotend on the X axis
// #define EXTRUDER_OFFSET_Y {0.0, 5.00}  // (in mm) for each extruder, offset of the hotend on the Y axis

// The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)
#define DEFAULT_XYJERK                20.0    // (mm/sec)
#define DEFAULT_ZJERK                 0.4     // (mm/sec)
#define DEFAULT_EJERK                 5.0    // (mm/sec)

//===========================================================================
//=============================Additional Features===========================
//===========================================================================

// Custom M code points
#define CUSTOM_M_CODES
#ifdef CUSTOM_M_CODES
  #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
  #define Z_PROBE_OFFSET_RANGE_MIN -15
  #define Z_PROBE_OFFSET_RANGE_MAX -5
#endif


// EEPROM
// The microcontroller can store settings in the EEPROM, e.g. max velocity...
// M500 - stores parameters in EEPROM
// M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
// M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.
//define this to enable EEPROM support
//#define EEPROM_SETTINGS
//to disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
// please keep turned on if you can.
//#define EEPROM_CHITCHAT

// Preheat Constants
#define PLA_PREHEAT_HOTEND_TEMP 180
#define PLA_PREHEAT_HPB_TEMP 70
#define PLA_PREHEAT_FAN_SPEED 255   // Insert Value between 0 and 255

#define ABS_PREHEAT_HOTEND_TEMP 240
#define ABS_PREHEAT_HPB_TEMP 100
#define ABS_PREHEAT_FAN_SPEED 255   // Insert Value between 0 and 255

//LCD and SD support
//#define ULTRA_LCD  //general LCD support, also 16x2
//#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
#define SDSUPPORT // Enable SD Card Support in Hardware Console
//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
//#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
//#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
//#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking
//#define ULTIMAKERCONTROLLER //as available from the Ultimaker online store.
//#define ULTIPANEL  //the UltiPanel as on Thingiverse
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000	// this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click

// The MaKr3d Makr-Panel with graphic controller and SD support
// http://reprap.org/wiki/MaKr3d_MaKrPanel
//#define MAKRPANEL

// The RepRapDiscount Smart Controller (white PCB)
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
//#define REPRAP_DISCOUNT_SMART_CONTROLLER

// The GADGETS3D G3D LCD/SD Controller (blue PCB)
// http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel
//#define G3D_PANEL

// The RepRapDiscount FULL GRAPHIC Smart Controller (quadratic white PCB)
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
//
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

// The RepRapWorld REPRAPWORLD_KEYPAD v1.1
// http://reprapworld.com/?products_details&products_id=202&cPath=1591_1626
//#define REPRAPWORLD_KEYPAD
//#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0 // how much should be moved when a key is pressed, eg 10.0 means 10mm per click

// The Elefu RA Board Control Panel
// http://www.elefu.com/index.php?route=product/product&product_id=53
// REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARDUINO library folder: https://github.com/kiyoshigawa/LiquidCrystal_I2C
//#define RA_CONTROL_PANEL

//automatic expansion
#if defined (MAKRPANEL)
 #define DOGLCD
 #define SDSUPPORT
 #define ULTIPANEL
 #define NEWPANEL
 #define DEFAULT_LCD_CONTRAST 17
#endif

#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
 #define DOGLCD
 #define U8GLIB_ST7920
 #define REPRAP_DISCOUNT_SMART_CONTROLLER
#endif

#if defined(ULTIMAKERCONTROLLER) || defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL)
 #define ULTIPANEL
 #define NEWPANEL
#endif

#if defined(REPRAPWORLD_KEYPAD)
  #define NEWPANEL
  #define ULTIPANEL
#endif
#if defined(RA_CONTROL_PANEL)
 #define ULTIPANEL
 #define NEWPANEL
 #define LCD_I2C_TYPE_PCA8574
 #define LCD_I2C_ADDRESS 0x27   // I2C Address of the port expander
#endif

//I2C PANELS

//#define LCD_I2C_SAINSMART_YWROBOT
#ifdef LCD_I2C_SAINSMART_YWROBOT
  // This uses the LiquidCrystal_I2C library ( https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home )
  // Make sure it is placed in the Arduino libraries directory.
  #define LCD_I2C_TYPE_PCF8575
  #define LCD_I2C_ADDRESS 0x27   // I2C Address of the port expander
  #define NEWPANEL
  #define ULTIPANEL
#endif

// PANELOLU2 LCD with status LEDs, separate encoder and click inputs
//#define LCD_I2C_PANELOLU2
#ifdef LCD_I2C_PANELOLU2
  // This uses the LiquidTWI2 library v1.2.3 or later ( https://github.com/lincomatic/LiquidTWI2 )
  // Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.
  // (v1.2.3 no longer requires you to define PANELOLU in the LiquidTWI2.h library header file)
  // Note: The PANELOLU2 encoder click input can either be directly connected to a pin
  //       (if BTN_ENC defined to != -1) or read through I2C (when BTN_ENC == -1).
  #define LCD_I2C_TYPE_MCP23017
  #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander
  #define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD
  #define NEWPANEL
  #define ULTIPANEL

  #ifndef ENCODER_PULSES_PER_STEP
	#define ENCODER_PULSES_PER_STEP 4
  #endif

  #ifndef ENCODER_STEPS_PER_MENU_ITEM
	#define ENCODER_STEPS_PER_MENU_ITEM 1
  #endif


  #ifdef LCD_USE_I2C_BUZZER
	#define LCD_FEEDBACK_FREQUENCY_HZ 1000
	#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100
  #endif

#endif

// Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
//#define LCD_I2C_VIKI
#ifdef LCD_I2C_VIKI
  // This uses the LiquidTWI2 library v1.2.3 or later ( https://github.com/lincomatic/LiquidTWI2 )
  // Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.
  // Note: The pause/stop/resume LCD button pin should be connected to the Arduino
  //       BTN_ENC pin (or set BTN_ENC to -1 if not used)
  #define LCD_I2C_TYPE_MCP23017
  #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander
  #define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD (requires LiquidTWI2 v1.2.3 or later)
  #define NEWPANEL
  #define ULTIPANEL
#endif

// Shift register panels
// ---------------------
// 2 wire Non-latching LCD SR from:
// https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection 

//#define SAV_3DLCD
#ifdef SAV_3DLCD
   #define SR_LCD_2W_NL    // Non latching 2 wire shiftregister
   #define NEWPANEL
   #define ULTIPANEL
#endif


#ifdef ULTIPANEL
//  #define NEWPANEL  //enable this if you have a click-encoder panel
  #define SDSUPPORT
  #define ULTRA_LCD
  #ifdef DOGLCD // Change number of lines to match the DOG graphic display
    #define LCD_WIDTH 20
    #define LCD_HEIGHT 5
  #else
    #define LCD_WIDTH 20
    #define LCD_HEIGHT 4
  #endif
#else //no panel but just LCD
  #ifdef ULTRA_LCD
  #ifdef DOGLCD // Change number of lines to match the 128x64 graphics display
    #define LCD_WIDTH 20
    #define LCD_HEIGHT 5
  #else
    #define LCD_WIDTH 16
    #define LCD_HEIGHT 2
  #endif
  #endif
#endif

// default LCD contrast for dogm-like LCD displays
#ifdef DOGLCD
# ifndef DEFAULT_LCD_CONTRAST
#  define DEFAULT_LCD_CONTRAST 32
# endif
#endif

// Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino
//#define FAST_PWM_FAN

// Temperature status LEDs that display the hotend and bet temperature.
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
// Otherwise the RED led is on. There is 1C hysteresis.
//#define TEMP_STAT_LEDS

// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
// which is not ass annoying as with the hardware PWM. On the other hand, if this frequency
// is too low, you should also increment SOFT_PWM_SCALE.
//#define FAN_SOFT_PWM

// Incrementing this by 1 will double the software PWM frequency,
// affecting heaters, and the fan if FAN_SOFT_PWM is enabled.
// However, control resolution will be halved for each increment;
// at zero value, there are 128 effective control positions.
#define SOFT_PWM_SCALE 0

// M240  Triggers a camera by emulating a Canon RC-1 Remote
// Data from: http://www.doc-diy.net/photo/rc-1_hacked/
// #define PHOTOGRAPH_PIN     23

// SF send wrong arc g-codes when using Arc Point as fillet procedure
//#define SF_ARC_FIX

// Support for the BariCUDA Paste Extruder.
//#define BARICUDA

//define BlinkM/CyzRgb Support
//#define BLINKM

#include "Configuration_adv.h"
#include "thermistortables.h"

#endif //__CONFIGURATION_H

 

Modifié (le) par PoLoMoD
Lien vers le commentaire
Partager sur d’autres sites

oui, mais le 'pins.h", c'est pas moi qui l'ai fais ... C'est le "pins.h" du lien de thingiverse ( http://www.thingiverse.com/thing:488884 )

Effectivement, certaines valeurs ne sont pas les mêmes ...

C'est pour ca que je pense partir d'un MARLIN "neuf" et retranscrire/commenter ou dé-commenter les valeurs du MARLIN de Dagoma dans le nouveau .

Mais ca ne va pas se faire en 1 jour .

Modifié (le) par PoLoMoD
Lien vers le commentaire
Partager sur d’autres sites

il y a 9 minutes, PoLoMoD a dit :

bon, déjà il manque les fichier "language", les "blinkM" , les "ultralcd" et surement d'autres :/ 

mieux vaut reprendre un marlin "neuf" et le configurer pour notre dagoma 

Nous pourrions peut être ne récupérer que ces éléments manquant depuis un Marlin Originel (neuf)...

Idem pour le pin.h ne prendre garder celui de Dago et n'y ajouter que lea section dédiée au lcd pour la melzi... idem dans le Configuration.h...

Qu'en pensez vous @Virgin22 et @PoLoMoD ?

Lien vers le commentaire
Partager sur d’autres sites

c'est ce que j'ai fait pour le configuration.h et language.h je rajoute ce qui manque pour l'écran et la langue après pour le fichier pin.h j'ai de faire une connerie et cramer la carte du coup je suis entrain de réécrire le fichier mais comme a dit @PoLoMoD ça ne va pas se faire en 1 jours, 

déja la bonne nouvelle c'est que mon écran s'allume mais rien ne s'affiche dessus ^^ 

Modifié (le) par Virgin22
Lien vers le commentaire
Partager sur d’autres sites

Yep, j'étais en train d'attaquer sur ce front là mais bon, il se fait tard et si ça ne se fait pas en 1 jours, pas non plus en 1 nuit !! Et demain, il faut que j'amuse les enfants !!! Alors bonne nuit messieurs et bon courage... Quel Marlin de "départ" avait vous récup pour servir de source ?

Je vise celui trouvé là : https://github.com/T3P3/Marlin

en partant d'ici : http://blog.think3dprint3d.com/2013/03/panelolu2-for-melzi.html

Mais ne me demandez pas comment je suis tombé sur cette page, je n'en sais plus rien !!!!!!

Lien vers le commentaire
Partager sur d’autres sites

j'essai de modifier le fichier j'ai trouver un truck intéressant 

a la ligne 746 du fichier pin.h tu as 

*my config for melzi glcd starts here*

/* On some broken versions of the Sanguino libraries the pin definitions are wrong, which then needs SDSS as pin 24. But you better upgrade your Sanguino libraries! See #368. */
//#define SDSS               24
#ifdef ULTRA_LCD
 #ifdef NEWPANEL
 //we have no buzzer installed
 #define BEEPER -1
 //LCD Pins
 #ifdef DOGLCD
 #ifdef U8GLIB_ST7920 //SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
 #define LCD_PINS_RS 30 //CS chip select /SS chip slave select
 #define LCD_PINS_ENABLE 29 //SID (MOSI)
 #define LCD_PINS_D4 17 //SCK (CLK) clock
 #define BEEPER 27 // Pin 27 is take by LED_Pin, but Melzi LED do nothing with Marlin and I take this pin for BEEPER.... See here > [github.com] , If you want use this pin with Gcode M42 instead BEEPER
 // Pins for DOGM SPI LCD Support
 #else
 #define DOGLCD_A0 30
 #define DOGLCD_CS 29
 #define LCD_CONTRAST 1
 #endif
 // GLCD features
 // Uncomment screen orientation
 // #define LCD_SCREEN_ROT_0

 

  • J'aime 1
Lien vers le commentaire
Partager sur d’autres sites

il y a 4 minutes, Virgin22 a dit :

j'essai de modifier le fichier j'ai trouver un truck intéressant 

a la ligne 746 du fichier pin.h tu as 

*my config for melzi glcd starts here*

/* On some broken versions of the Sanguino libraries the pin definitions are wrong, which then needs SDSS as pin 24. But you better upgrade your Sanguino libraries! See #368. */
//#define SDSS               24
#ifdef ULTRA_LCD
 #ifdef NEWPANEL
 //we have no buzzer installed
 #define BEEPER -1
 //LCD Pins
 #ifdef DOGLCD
 #ifdef U8GLIB_ST7920 //SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
 #define LCD_PINS_RS 30 //CS chip select /SS chip slave select
 #define LCD_PINS_ENABLE 29 //SID (MOSI)
 #define LCD_PINS_D4 17 //SCK (CLK) clock
 #define BEEPER 27 // Pin 27 is take by LED_Pin, but Melzi LED do nothing with Marlin and I take this pin for BEEPER.... See here > [github.com] , If you want use this pin with Gcode M42 instead BEEPER
 // Pins for DOGM SPI LCD Support
 #else
 #define DOGLCD_A0 30
 #define DOGLCD_CS 29
 #define LCD_CONTRAST 1
 #endif
 // GLCD features
 // Uncomment screen orientation
 // #define LCD_SCREEN_ROT_0

 

Hey dis donc, tu lis pas les post, c'est exactement les lignes que je vous fait remarquer en fin de première page du sujet, c'est @PoLoMoD qui les avaient publiées !!

Lien vers le commentaire
Partager sur d’autres sites

Bonsoir messieurs, j'ai pu un peu avancer après le café de ce tantôt et là, je vais lâcher pour la soirée !

Voici donc où j'en suis :

12243131_10208063813102657_3118778795679
 

Merci à @PoLoMoD pour les croquis du câblage, je me suis bricolé un adaptateur/rallonge avec 2 nappes malles femelles de mon kit arduino !!

11049448_10208063813062656_329643626685812278806_10208063813342663_1071122546985

Petit bricolage pour maintenir la carte au châssis tout en me dégageant de la barre lisse, je ne peux plus remettre le carter de côté car je ne pourrais plus mettre la mini-sd, je ne pouvais déjà pas facilement avec mes (très) gros doigts !!

12239468_10208063813582669_8452023167719

J'ai donc placer mes jumpers en mode usb et auto-reset puis j'ai connectée la carte au PC et :

11202567_10208063813782674_3394659496968

J'ai maintenant une jolie lumière tamisé pour adoucire l'ambiance de mes prochaines impressions, merci à tous, @bientôt !!!

Nâaaan ok je deconne... Me voilà parti à mettre les mains dans le cambouis du firmware...

Je vous passe les détails de toutes mes explorations/comparaisons de pins.h, configurations.h & autres, j'en ai la migraine...

Pour résumer :

Je suis repartis de la version de Marlin by Dagoma que m'a envoyé @OlivierG qui l'avait lui même obtenu de @Benjamin/Dagoma !!!

Pourquoi celui ci ? parceque j'y ai trouvé les fichiers "language", les "blinkM" , les "ultralcd" qui manquaient hier à @PoLoMoD !!!

J'ai dé-commenté la ligne : #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
et j'ai ajouté la librairie U8GLIB à arduino comme requis.

Et alors que je me dis que Bigo Yapluka, je téléverse et ....

12249785_10208063812862651_5528963822865
 

J'ai donc à priori un problème de déclaration de pin, j'imagine, peut être rien du tout ou carrément autre chose mais là, il est 20h22, j'y suis depuis 16h30 et ma famille se demande quand est-ce que je vais m'occuper de l'apéro, du diner, du film du samedi soir avec les nains, de la lessive, de ranger le garage et du débroussaillage de mes paupières, bref, je passe la main pour ce soir, en même temps, je panne et ne sais pas vraiment où regarder, ce firmware étant visiblement un Béta direct from Dagoma qui sont en train de plancher à l'intégration du palpeur et donc du LCD, bref, je me dis que ça peu venir de ... Tataouïne par exemple !!!!

Ha si, mon LCD est estampillé "Nade By Geeetech", je suis donc remonté à la source (et donc confirmation que Paoparts m'a revendu 42.30€ un truc que j'aurais pu/du chopper à 19$ voir encore moins ailleurs, bref, dossier clos)... je vous laisse le lien de leur wiki, j'y ai peut être zapper une ou deux infos importante :

http://www.geeetech.com/wiki/index.php/Smart_controller_With_LED_turn_on_control_12864_Version

Voilà, au plaisir de faire avancer le bouzique, on touche au but mes frères, on touche au but !!!

PS: par contre, ça fait plus de 20hr que nous sommes sans nouvelles de @Virgin22, faut il alerter les secours !!!! Peut être à t il réussi lui de son côté et ce garde tout le confort pour luit !!! Mouhahahhaaaa !

Lien vers le commentaire
Partager sur d’autres sites

@plumcake Ton marlin m'intéresse :) 

 

as tu remplacé le "pins.h" par celui de la page d'avant ? 

https://www.lesimprimantes3d.fr/forum/topic/1022-lcd-de-contr%C3%B4le/?page=4#comment-9437

 

// ************************************************* my config for melzi glcd starts here *****************************

/* On some broken versions of the Sanguino libraries the pin definitions are wrong, which then needs SDSS as pin 24. But you better upgrade your Sanguino libraries! See #368. */
//#define SDSS               24
#ifdef ULTRA_LCD
 #ifdef NEWPANEL
 //we have no buzzer installed
 #define BEEPER -1
 //LCD Pins
 #ifdef DOGLCD
 #ifdef U8GLIB_ST7920 //SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
 #define LCD_PINS_RS 30 //CS chip select /SS chip slave select
 #define LCD_PINS_ENABLE 29 //SID (MOSI)
 #define LCD_PINS_D4 17 //SCK (CLK) clock
 #define BEEPER 27 // Pin 27 is take by LED_Pin, but Melzi LED do nothing with Marlin and I take this pin for BEEPER.... See here > [github.com] , If you want use this pin with Gcode M42 instead BEEPER
 // Pins for DOGM SPI LCD Support
 #else
 #define DOGLCD_A0 30
 #define DOGLCD_CS 29
 #define LCD_CONTRAST 1
 #endif
 // GLCD features
 // Uncomment screen orientation
 // #define LCD_SCREEN_ROT_0

Modifié (le) par PoLoMoD
Lien vers le commentaire
Partager sur d’autres sites

Bonjour tout le monde,

Oui @PoLoMoD, j'ai aussi tenté un  simple remplacement de pin.h cela m'a juste fait apparaître d'autres erreurs

Il va falloir être plus "malin" que ça !! Mais je vous avouerais nager en eau trouble de mon côté, ne maîtrisant pas plus que ça les méandre d'Arduino !

Donc du coup, je ne comprends pas ce que tu veux me dire en surlignant cette ligne en rouge !!

 

Lien vers le commentaire
Partager sur d’autres sites

il y a une heure, simdav a dit :

Ce qui a mon sens justifierait vraiment l'utilisation d'un écran serait la possibilité de pouvoir choisir le gcode a imprimer, sans avoir a repasser par l'ordinateur.

Yep, effectivement, le menu écran te permettra de selectionner un des gcode que tu auras stocké sur ta sd card... cela justifie donc l'ajout de cet écran de contrôle, en plus de :

- toutes les infos en temps réel sur l'écran principal (t°, position, gcode en cours et progression)
- la possibilités de lancer tout un tas de routines comme la mise en chauffe pour changer rapidement de filament
- commander le déplacement des axes manuellement
- ...

et en plus, le plus important : c'est cool !!! ;-)

 

  • J'aime 1
Lien vers le commentaire
Partager sur d’autres sites

Ah tiens du coup si il est possible de faire tout ça, cet écran m’intéresse. Çà m'évitera de faire des allers-retours bureau atelier pour imprimer.
Le must serai une connexion wi-fi imprimante -> smartphone qui puisse faire tout ça à distance, enfin surtout pour savoir quand la pièce est finie et si tout se passe bien.

Lien vers le commentaire
Partager sur d’autres sites

il y a 30 minutes, Skanif a dit :

Le must serai une connexion wi-fi imprimante -> smartphone qui puisse faire tout ça à distance, enfin surtout pour savoir quand la pièce est finie et si tout se passe bien.

Ca reste une Dagoma avec une carte Mezli ..... je ne pense pas que ça vaille le coût (argent et temps) sur une machine comme la Disco200 :/

Vu la difficulté que l'on rencontre pour un simple LCD12864 ..... Je ne pense pas que ça soit possible sans grosse dépense/modif electronique .

Lien vers le commentaire
Partager sur d’autres sites

Créer un compte ou se connecter pour commenter

Vous devez être membre afin de pouvoir déposer un commentaire

Créer un compte

Créez un compte sur notre communauté. C’est facile !

Créer un nouveau compte

Se connecter

Vous avez déjà un compte ? Connectez-vous ici.

Connectez-vous maintenant
  • Sur cette page :   0 membre est en ligne

    • Aucun utilisateur enregistré regarde cette page.
  • YouTube / Les Imprimantes 3D .fr

×
×
  • Créer...