Aiuto configurazione Marlin con SainSmart Ramps 1.4 + Mega2560 R3 + LCD 12864

1,437 views
Skip to first unread message

Savio Thecnic

unread,
Jul 10, 2014, 6:29:11 PM7/10/14
to reprap...@googlegroups.com
Buona Sera,

Mi sono aggiudicato quest' asta e in pochissimo giorni il pacco era gia a casa.
Ho quindi quasi tutta elettronica compresi 6 finecorsa :D
SainSmart Ramps 1.4 + Mega2560 R3 + LCD 12864
Adesso sto provando a configurare il tutto.
Mi Hanno consigliato come FW il Marlin ho quindi scaricato e provato a compilare cercando di mettere le config che ho carpito seguedno i vari forum
Solo che non va se metto LCD 128 ho questo errore di compilazione


Odino - IndieGearLab

unread,
Jul 10, 2014, 6:32:43 PM7/10/14
to reprap...@googlegroups.com
Ancora non ho provato un LCD, ma non è che potresti postare la riga che hai modificato?
Così almeno si vede la parte di codice editata e posso vedere di provare a ricreare tale errore.

Fabio Bruzzone

unread,
Jul 11, 2014, 1:34:43 AM7/11/14
to reprap...@googlegroups.com
Per il Full Graphic LCD devi avere installate anche le librerie U8Glib, che puoi scaricare da qui: https://code.google.com/p/u8glib/

Questo potrebbe essere uno dei problemi,poi quali altre definizioni hai messo?

Savio Thecnic

unread,
Jul 11, 2014, 2:29:28 AM7/11/14
to
Allora ma confermatemi se ho fatto bene

Come righe ho editato

#define MOTHERBOARD 33

Da come potetevedere dall' asta che mi sono aggiudicato il mio sistema è schada Ramps 1.4 e Arduino Mega 2560 6 finecorsa tappeto scalndato e ventola
E se non ho visto male la configurazione dovebbe essere la N° 33 ma non ne sono certo al 100%

E nella sessione LCD and SD support ho decommentato queste due linee

#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
#define SDSUPPORT // Enable SD Card Support in Hardware Console

E compilando veniva fuori errore postato nel inizio topic

Quindi credete che che siano le Librerie mancanti ?
Effettivamente nel pacchetto che ho scaricato Marlin-Marlin_v1 ho effetticamente una cartella ArduinoAddons
e nelle sotto cartelle U8glib
Domanda per installarla basta che la copio sotto library della cartella di arduino esatto ?

Provo e vi faccio sapere

Domanda oltre questo va settato altro ?
Tipo dove gli dico che ho un sistema a 6 e non tre finecorsa ?

Grazie :D

Savio Thecnic

unread,
Jul 13, 2014, 4:46:00 AM7/13/14
to reprap...@googlegroups.com
Il giorno venerdì 11 luglio 2014 07:34:43 UTC+2, Fabio Bruzzone ha scritto:
Per il Full Graphic LCD devi avere installate anche le librerie U8Glib, che puoi scaricare da qui: https://code.google.com/p/u8glib/



Ok fatto ho prima copiato quello presente nel pacchetto Marlin e niente
poi ho provato anche ha scaricalro dal tuo link per levarmi il dubbio che fosse un problema di versione LIB http://dl.bintray.com/olikraus/u8glib/u8glib_arduino_v1.16.zip
Ma anche con la libreia presente installata appana inserisco LCD ho in compilazione errore citato :(

Mi si evidenza questa righa

lcd_contrast = DEFAULT_LCD_CONTRAST;


Grazie

Savio Thecnic

unread,
Jul 13, 2014, 7:34:01 AM7/13/14
to reprap...@googlegroups.com
Ragazzi piano piano sto adnando avanti :D

Inizio a montare qualcosa questo tutorial mi è stato utile
[YOUTUBE]Jdp2AkGC0uc[/YOUTUBE]

Adesso vedo qualcosa sul LCD
Come parametri ho settato

[CODE]
#define MOTHERBOARD 33
#define SDSUPPORT
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER[/CODE]



Domanda sto usando la IDE arduino 1.0.5 r2 in molti tutorial leggo che usano la 033
come mai perche sono vecchi i tutorial che vedo o perche se gli compilo con questa IDE potrei avere qualche problema ?

Grazie

Francesco Giovanni Molinari

unread,
Jul 19, 2015, 10:21:11 AM7/19/15
to reprap...@googlegroups.com
Ciao a tutti,

volevo sapere se avete risolto con la configurazione del display 12864.
Io ho una Hephestos, ho comperato anche LCD12864 ma non riesco a configurarlo, mi da sempre errore di compilazione...

Letterato Salvatore

unread,
Jul 19, 2015, 10:26:53 AM7/19/15
to reprap...@googlegroups.com
Ciao, l'hai caricata la libreria U8GLIB ?
http://code.google.com/p/u8glib/

Ti mando il file su come installarlo...

Install instructions for the Arduino environment.

  1. Start Arduino IDE
  2. In the Arduino IDE, import the library from the "Add Library" Menu.

Alternative install instructions for the Arduino environment.

  1. Unzip u8glib_arduino_vX.XX.zip into the "libraries" folder of the
      Arduino install directory
  2. Start Arduino IDE

Install instructions for the Chipkit (Arduino) environment.

  1. cd <mpide-... path>/libraries
  2. unzip u8glib_arduino_vX.XX.zip
  3. cd <mpide-... path>///hardware/pic32/libraries
  4. again: u8glib_arduino_vX.XX.zip
  5. Open hardware/pic32/cores/pic32/Print.h
      Remove line
        #define BYTE 0
      from the file, use PRINT_BYTE instead of BYTE.

--
--
Hai ricevuto questo messaggio in quanto sei iscritto al gruppo RepRap Italia.
Maggiori informazioni:
http://groups.google.com/group/reprap-italia?hl=it

---
Hai ricevuto questo messaggio perché sei iscritto al gruppo "RepRap Italia" di Google Gruppi.
Per annullare l'iscrizione a questo gruppo e non ricevere più le sue email, invia un'email a reprap-itali...@googlegroups.com.
Per altre opzioni visita https://groups.google.com/d/optout.



--
Un tempo l'uomo per comunicare non scriveva, disegnava

Francesco Giovanni Molinari

unread,
Jul 19, 2015, 10:34:16 AM7/19/15
to reprap...@googlegroups.com
Grazie,
ho fatto tutto quello che mi hai scritto, ma non compila, mi dà sempre errore...

Hai il file che posso provare sulla mia Hephestos?

Letterato Salvatore

unread,
Jul 19, 2015, 10:48:08 AM7/19/15
to reprap...@googlegroups.com
Allora, io il file configuration te lo mando ma dovresti dare un pò più informazioni. Che versione di Marlin usi? Che Arduino IDE hai caricato?

Letterato Salvatore

unread,
Jul 19, 2015, 10:56:15 AM7/19/15
to reprap...@googlegroups.com

Letterato Salvatore

unread,
Jul 19, 2015, 10:57:24 AM7/19/15
to reprap...@googlegroups.com

Francesco Giovanni Molinari

unread,
Jul 19, 2015, 11:00:59 AM7/19/15
to reprap...@googlegroups.com
Grazie,
allora:  arduino mega con ramps1.4
lcd 12864
ide 1.6.1, ma ho anche la Alpha 23
FW: Marlin 1.4

Letterato Salvatore

unread,
Jul 19, 2015, 11:03:27 AM7/19/15
to reprap...@googlegroups.com
Ok il software e il firmware vanno bene. Se segui i tutorial ce la fai a caricare il tutto. :)


--
--
Hai ricevuto questo messaggio in quanto sei iscritto al gruppo RepRap Italia.
Maggiori informazioni:
http://groups.google.com/group/reprap-italia?hl=it

---
Hai ricevuto questo messaggio perché sei iscritto al gruppo "RepRap Italia" di Google Gruppi.
Per annullare l'iscrizione a questo gruppo e non ricevere più le sue email, invia un'email a reprap-itali...@googlegroups.com.
Per altre opzioni visita https://groups.google.com/d/optout.

Letterato Salvatore

unread,
Jul 19, 2015, 11:04:35 AM7/19/15
to reprap...@googlegroups.com
PS: Non usare l'Alpha 23...

Francesco Giovanni Molinari

unread,
Jul 19, 2015, 11:10:34 AM7/19/15
to reprap...@googlegroups.com
Sono due giorni che seguo tutorial, ho scaricato versioni librerie e firmware da tutti i link...
Niente da fare...

è possibile che mi dà sempre errore di compilazione?

Ho provato anche la versione Marlin V1, niente da fare

La versione master... ecc...
 

Francesco Giovanni Molinari

unread,
Jul 19, 2015, 11:11:23 AM7/19/15
to reprap...@googlegroups.com
Ti posso allegare l'errore di compilazione?

Francesco Giovanni Molinari

unread,
Jul 19, 2015, 11:14:54 AM7/19/15
to reprap...@googlegroups.com
Eccolo 
Arduino:1.6.1 (Windows 7), Scheda:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from ultralcd.cpp:101:0:
dogm_lcd_implementation.h: In function 'void lcd_implementation_status_screen()':
dogm_lcd_implementation.h:179:7: error: 'blink' was not declared in this scope
  if ((blink % 2) &&  fanSpeed ) u8g.drawBitmapP(9,1,STATUS_SCREENBYTEWIDTH,STATUS_SCREENHEIGHT,status_screen0_bmp);
       ^
ultralcd.cpp: In function 'void lcd_update_button()':
ultralcd.cpp:260:54: error: 'lcd_implementation_update_buttons' was not declared in this scope
     button_input = lcd_implementation_update_buttons();
                                                      ^
ultralcd.cpp: In function 'void lcd_update_encoder()':
ultralcd.cpp:292:55: error: 'lcd_implementation_update_buttons' was not declared in this scope
     encoder_input = lcd_implementation_update_buttons();
                                                       ^
ultralcd.cpp: In function 'void lcd_enable_button()':
ultralcd.cpp:427:54: error: 'lcd_implementation_update_buttons' was not declared in this scope
     button_input = lcd_implementation_update_buttons();
                                                      ^
ultralcd.cpp: In function 'void lcd_enable_encoder()':
ultralcd.cpp:437:55: error: 'lcd_implementation_update_buttons' was not declared in this scope
     encoder_input = lcd_implementation_update_buttons();
                                                       ^
ultralcd.cpp: In function 'void view_menu_main()':
ultralcd.cpp:580:115: error: 'lcd_implementation_drawmenu_wizard_selected' was not declared in this scope
                             lcd_implementation_drawmenu_ ## type ## _selected (_drawLineNr, _label_pstr , ## args ); \
                                                                                                                   ^
ultralcd.cpp:716:5: note: in expansion of macro 'MENU_ITEM'
     MENU_ITEM(wizard, "FW info", draw_picture_splash);
     ^
ultralcd.cpp:582:102: error: 'lcd_implementation_drawmenu_wizard' was not declared in this scope
                             lcd_implementation_drawmenu_ ## type (_drawLineNr, _label_pstr , ## args ); \
                                                                                                      ^
ultralcd.cpp:716:5: note: in expansion of macro 'MENU_ITEM'
     MENU_ITEM(wizard, "FW info", draw_picture_splash);
     ^
ultralcd.cpp: In function 'void view_menu_filament_load()':
ultralcd.cpp:931:47: error: 'lcd_implementation_set_cursor' was not declared in this scope
             lcd_implementation_set_cursor(0, 0);
                                               ^
ultralcd.cpp:932:59: error: 'lcd_implementation_print_P' was not declared in this scope
             lcd_implementation_print_P(PSTR(MSG_CF_HEAT_1));
                                                           ^
ultralcd.cpp:936:60: error: 'lcd_implementation_print' was not declared in this scope
             lcd_implementation_print(LCD_STR_THERMOMETER[0]);
                                                            ^
ultralcd.cpp: In function 'void view_menu_filament_unload()':
ultralcd.cpp:1016:47: error: 'lcd_implementation_set_cursor' was not declared in this scope
             lcd_implementation_set_cursor(0, 0);
                                               ^
ultralcd.cpp:1017:59: error: 'lcd_implementation_print_P' was not declared in this scope
             lcd_implementation_print_P(PSTR(MSG_CF_HEAT_1));
                                                           ^
ultralcd.cpp:1021:60: error: 'lcd_implementation_print' was not declared in this scope
             lcd_implementation_print(LCD_STR_THERMOMETER[0]);
                                                            ^
In file included from ultralcd.cpp:101:0:
ultralcd.cpp: In function 'void view_picture_move_x()':
dogm_lcd_implementation.h:33:22: error: 'buttons' was not declared in this scope
 #define LCD_CLICKED (buttons&EN_C)
                      ^
ultralcd.cpp:1162:9: note: in expansion of macro 'LCD_CLICKED'
     if (LCD_CLICKED) {
         ^
ultralcd.cpp: In function 'void view_picture_move_y()':
dogm_lcd_implementation.h:33:22: error: 'buttons' was not declared in this scope
 #define LCD_CLICKED (buttons&EN_C)
                      ^
ultralcd.cpp:1206:9: note: in expansion of macro 'LCD_CLICKED'
     if (LCD_CLICKED) {
         ^
ultralcd.cpp: In function 'void view_picture_move_z()':
dogm_lcd_implementation.h:33:22: error: 'buttons' was not declared in this scope
 #define LCD_CLICKED (buttons&EN_C)
                      ^
ultralcd.cpp:1250:9: note: in expansion of macro 'LCD_CLICKED'
     if (LCD_CLICKED) {
         ^
ultralcd.cpp: In function 'void view_picture_move_e()':
dogm_lcd_implementation.h:33:22: error: 'buttons' was not declared in this scope
 #define LCD_CLICKED (buttons&EN_C)
                      ^
ultralcd.cpp:1290:9: note: in expansion of macro 'LCD_CLICKED'
     if (LCD_CLICKED) {
         ^
ultralcd.cpp: In function 'void view_wizard_level_bed()':
ultralcd.cpp:1334:55: error: 'lcd_implementation_set_cursor' was not declared in this scope
                     lcd_implementation_set_cursor(1, 0);
                                                       ^
ultralcd.cpp:1335:77: error: 'lcd_implementation_print_P' was not declared in this scope
                     lcd_implementation_print_P(PSTR(MSG_WIZARD_LEVELBED_0_1));
                                                                             ^
ultralcd.cpp: In function 'void view_picture_level_bed_cooling()':
ultralcd.cpp:1677:47: error: 'lcd_implementation_set_cursor' was not declared in this scope
             lcd_implementation_set_cursor(0, 0);
                                               ^
ultralcd.cpp:1678:59: error: 'lcd_implementation_print_P' was not declared in this scope
             lcd_implementation_print_P(PSTR(MSG_LB_COOL_1));
                                                           ^
ultralcd.cpp:1682:60: error: 'lcd_implementation_print' was not declared in this scope
             lcd_implementation_print(LCD_STR_THERMOMETER[0]);
                                                            ^
ultralcd.cpp: In function 'void view_wizard_change_filament()':
ultralcd.cpp:1782:55: error: 'lcd_implementation_set_cursor' was not declared in this scope
                     lcd_implementation_set_cursor(0, 0);
                                                       ^
ultralcd.cpp:1783:83: error: 'lcd_implementation_print_P' was not declared in this scope
                     lcd_implementation_print_P(PSTR(MSG_WIZARD_CHANGEFILAMENT_0_0));
                                                                                   ^
ultralcd.cpp: In function 'void view_picture_set_temperature()':
ultralcd.cpp:2007:47: error: 'lcd_implementation_set_cursor' was not declared in this scope
             lcd_implementation_set_cursor(1, 1);
                                               ^
ultralcd.cpp:2008:56: error: 'lcd_implementation_print_P' was not declared in this scope
             lcd_implementation_print_P(PSTR(MSG_NOZZLE));
                                                        ^
ultralcd.cpp:2009:41: error: 'lcd_implementation_print' was not declared in this scope
             lcd_implementation_print(':');
                                         ^
ultralcd.cpp: In function 'void view_picture_speed_printing()':
ultralcd.cpp:2123:47: error: 'lcd_implementation_set_cursor' was not declared in this scope
             lcd_implementation_set_cursor(1, 1);
                                               ^
ultralcd.cpp:2124:55: error: 'lcd_implementation_print_P' was not declared in this scope
             lcd_implementation_print_P(PSTR(MSG_SPEED));
                                                       ^
ultralcd.cpp:2125:41: error: 'lcd_implementation_print' was not declared in this scope
             lcd_implementation_print(':');
                                         ^
ultralcd.cpp: In function 'void view_picture_splash()':
ultralcd.cpp:2164:47: error: 'lcd_implementation_set_cursor' was not declared in this scope
             lcd_implementation_set_cursor(1, 6);
                                               ^
ultralcd.cpp:2165:58: error: 'lcd_implementation_print_P' was not declared in this scope
             lcd_implementation_print_P(PSTR(MSG_WELLCOME));
                                                          ^
In file included from ultralcd.cpp:101:0:
ultralcd.cpp: In function 'void menu_edit_int3()':
dogm_lcd_implementation.h:33:22: error: 'buttons' was not declared in this scope
 #define LCD_CLICKED (buttons&EN_C)
                      ^
ultralcd.cpp:2268:13: note: in expansion of macro 'LCD_CLICKED'
         if (LCD_CLICKED) \
             ^
ultralcd.cpp:2290:1: note: in expansion of macro 'menu_edit_type'
 menu_edit_type(int, int3, itostr3, 1)
 ^
ultralcd.cpp: In function 'void menu_edit_float3()':
dogm_lcd_implementation.h:33:22: error: 'buttons' was not declared in this scope
 #define LCD_CLICKED (buttons&EN_C)
                      ^
ultralcd.cpp:2268:13: note: in expansion of macro 'LCD_CLICKED'
         if (LCD_CLICKED) \
             ^
ultralcd.cpp:2291:1: note: in expansion of macro 'menu_edit_type'
 menu_edit_type(float, float3, ftostr3, 1)
 ^
ultralcd.cpp: In function 'void menu_edit_float32()':
dogm_lcd_implementation.h:33:22: error: 'buttons' was not declared in this scope
 #define LCD_CLICKED (buttons&EN_C)
                      ^
ultralcd.cpp:2268:13: note: in expansion of macro 'LCD_CLICKED'
         if (LCD_CLICKED) \
             ^
ultralcd.cpp:2292:1: note: in expansion of macro 'menu_edit_type'
 menu_edit_type(float, float32, ftostr32, 100)
 ^
ultralcd.cpp: In function 'void menu_edit_float5()':
dogm_lcd_implementation.h:33:22: error: 'buttons' was not declared in this scope
 #define LCD_CLICKED (buttons&EN_C)
                      ^
ultralcd.cpp:2268:13: note: in expansion of macro 'LCD_CLICKED'
         if (LCD_CLICKED) \
             ^
ultralcd.cpp:2293:1: note: in expansion of macro 'menu_edit_type'
 menu_edit_type(float, float5, ftostr5, 0.01)
 ^
ultralcd.cpp: In function 'void menu_edit_float51()':
dogm_lcd_implementation.h:33:22: error: 'buttons' was not declared in this scope
 #define LCD_CLICKED (buttons&EN_C)
                      ^
ultralcd.cpp:2268:13: note: in expansion of macro 'LCD_CLICKED'
         if (LCD_CLICKED) \
             ^
ultralcd.cpp:2294:1: note: in expansion of macro 'menu_edit_type'
 menu_edit_type(float, float51, ftostr51, 10)
 ^
ultralcd.cpp: In function 'void menu_edit_float52()':
dogm_lcd_implementation.h:33:22: error: 'buttons' was not declared in this scope
 #define LCD_CLICKED (buttons&EN_C)
                      ^
ultralcd.cpp:2268:13: note: in expansion of macro 'LCD_CLICKED'
         if (LCD_CLICKED) \
             ^
ultralcd.cpp:2295:1: note: in expansion of macro 'menu_edit_type'
 menu_edit_type(float, float52, ftostr52, 100)
 ^
ultralcd.cpp: In function 'void menu_edit_long5()':
dogm_lcd_implementation.h:33:22: error: 'buttons' was not declared in this scope
 #define LCD_CLICKED (buttons&EN_C)
                      ^
ultralcd.cpp:2268:13: note: in expansion of macro 'LCD_CLICKED'
         if (LCD_CLICKED) \
             ^
ultralcd.cpp:2296:1: note: in expansion of macro 'menu_edit_type'
 menu_edit_type(unsigned long, long5, ftostr5, 0.01)
 ^
Errore durante la compilazione
  Questo report potrebbe essere più ricco
di informazioni con
  "Mostra un output dettagliato durante la compilazione"
  abilitato in "File > Impostazioni"

Letterato Salvatore

unread,
Jul 20, 2015, 7:38:20 AM7/20/15
to reprap...@googlegroups.com
Ciao, allora... ti allego quello che ho caricato io sulla mia Prusa Steel. L'ardware è identico al tuo, ed ho usato Arduino IDE 1.0.6 perchè l'1.6.1 mi dava errore (ho un Mac un pò datato). Resta inteso, che se ti riconosce l'LCD dovrai poi modificare gli altri parametri. Per caricare il firmware, stacca la presa di corrente dalla stampante 3D e collega solo l'USB. Fammi sapere come va. Auguri di buona riuscita.

--
--
Hai ricevuto questo messaggio in quanto sei iscritto al gruppo RepRap Italia.
Maggiori informazioni:
http://groups.google.com/group/reprap-italia?hl=it

---
Hai ricevuto questo messaggio perché sei iscritto al gruppo "RepRap Italia" di Google Gruppi.
Per annullare l'iscrizione a questo gruppo e non ricevere più le sue email, invia un'email a reprap-itali...@googlegroups.com.
Per altre opzioni visita https://groups.google.com/d/optout.
Prusa15:12:2014Marlin_v1.zip

Savio Thecnic

unread,
Jul 21, 2015, 6:51:08 AM7/21/15
to reprap...@googlegroups.com
Adesso ho abbandolato la Ramps 1.4 per provare un po la ramps FD

Vi consiglio di suare questo FW che conj Autoconfiguratore on Line è molto smeplice da suare :D

http://marlinkimbra.it/

Per annullare l'iscrizione a questo argomento, visita https://groups.google.com/d/topic/reprap-italia/4y9p38_JkIY/unsubscribe.
Per annullare l'iscrizione a questo gruppo e a tutti i suoi argomenti, invia un'email a reprap-itali...@googlegroups.com.

Savio Thecnic

unread,
Jul 21, 2015, 6:56:27 AM7/21/15
to reprap...@googlegroups.com
Adesso ho abbandolato la Ramps 1.4 per provare un po la Ramps FD

Vi consiglio d'usare questo FW che con Autoconfiguratore on Line è molto semplice da usare :D

http://marlinkimbra.it/

Vi allego il mio files che era OK sulla Ramps 1.4 e LCD CON SD A Piena Grafica

Per annullare l'iscrizione a questo argomento, visita https://groups.google.com/d/topic/reprap-italia/4y9p38_JkIY/unsubscribe.
Per annullare l'iscrizione a questo gruppo e a tutti i suoi argomenti, invia un'email a reprap-itali...@googlegroups.com.
Configuration.h

Letterato Salvatore

unread,
Jul 21, 2015, 7:17:23 AM7/21/15
to reprap...@googlegroups.com
Grazie:) il Mago è il Mago, sappiamo sappiamo...:)  Io sono a posto e mi funziona tutto, oltretutto quello che ho su, è anche una vecchia versione di Marlin, e come si dice...cavallo vincente non si cambia. Sicuramente sulla la prossima stampante lo monto ha delle "feature" molto interessanti. :)
Reply all
Reply to author
Forward
0 new messages