1

Topic: Thermistor is not reading correct temperature for heated bed

Hello Soliforum community,

I am very new at 3d Printing and I am seeking more experienced help. I know your time is valuable and I am super grateful for any help you can give to help me solve my problem.

I have built a Cartesian 3d Printer, it has:
- 2 extruders
- Heated bed (16x16 in)
- Azteeg X3 Pro board
- Viki LCD Screen
- 100K ohm NTC 3950-1% Thermistor
- 85Amp power supply

Arduino Settings:
Board: Arduino Mega or Mega 2560
Processor: ATMega 2560 (Mega 2560)
Programmer: Atmel STK500 development board

I have tried both Repetier and Marlin Firmware and using Repetier Host to communicate with my board.  After many hours and a new computer I finally configured everything correctly and it is connected without any errors... BUT, I cannot get the heated bed thermistor to give me a correct temperature reading.

I have connected heated bed, stepper motors, extruders, power supply all according to its correct specs and diagrams provided by manufactures. Everything is working perfectly except my heated bed thermistor. I have also tried configuring with every possible option given by both Repetier and Marlin, but still do not get a proper reading.

This is how I have my configuration.h files are set up:

#define TEMP_SENSOR_0 -1
#define TEMP_SENSOR_1 -1
#define TEMP_SENSOR_2 0
#define TEMP_SENSOR_BED 1

I have checked over 30 times the correct pins (Azteeg X3 Pro pins http://files.panucatt.com/datasheets/x3 … _reva.pdf) I think they are correct, but I am open to any suggestions.

/****************************************************************************************
* Arduino Mega pin assignment
*
****************************************************************************************/
#if IS_RAMPS || MB(3DRAG) || MB(AZTEEG_X3) || MB(AZTEEG_X3_PRO)
#define KNOWN_BOARD 1

//////////////////FIX THIS//////////////
#ifndef __AVR_ATmega1280__
 #ifndef __AVR_ATmega2560__
 #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
 #endif
#endif


// uncomment one of the following lines for RAMPS v1.3 or v1.0, comment both for v1.2 or 1.1
#define RAMPS_V_1_3
// #define RAMPS_V_1_0


#if (IS_RAMPS && !MB(RAMPS_OLD)) || MB(3DRAG) || MB(AZTEEG_X3) || MB(AZTEEG_X3_PRO)

  #define LARGE_FLASH true

  #if MB(3DRAG)
    #define X_STEP_PIN         54
    #define X_DIR_PIN          55
    #define X_ENABLE_PIN       38
    #define X_MIN_PIN           3
    #define X_MAX_PIN           -1   //2 //Max endstops default to disabled "-1", set to commented value to enable.

    #define Y_STEP_PIN         60
    #define Y_DIR_PIN          61
    #define Y_ENABLE_PIN       56
    #define Y_MIN_PIN          14
    #define Y_MAX_PIN          -1   //15

    #define Z_STEP_PIN         46
    #define Z_DIR_PIN          48
    #define Z_ENABLE_PIN       63
    #define Z_MIN_PIN          18
    #define Z_MAX_PIN          -1

    #define Y2_STEP_PIN        36
    #define Y2_DIR_PIN         34
    #define Y2_ENABLE_PIN      30

    #define Z2_STEP_PIN        36
    #define Z2_DIR_PIN         34
    #define Z2_ENABLE_PIN      30

    #define E0_STEP_PIN        26
    #define E0_DIR_PIN         28
    #define E0_ENABLE_PIN      24

    #define E1_STEP_PIN        36
    #define E1_DIR_PIN         34
    #define E1_ENABLE_PIN      30

    #define SDPOWER            1
    #define SDSS               53
    #define LED_PIN            13

    #define BEEPER             33

  #else

    #define X_STEP_PIN         54
    #define X_DIR_PIN          55
    #define X_ENABLE_PIN       38
    #define X_MIN_PIN           3
    #define X_MAX_PIN           2

    #define Y_STEP_PIN         60
    #define Y_DIR_PIN          61
    #define Y_ENABLE_PIN       56
    #define Y_MIN_PIN          14
    #define Y_MAX_PIN          15

    #define Z_STEP_PIN         46
    #define Z_DIR_PIN          48
    #define Z_ENABLE_PIN       62
    #define Z_MIN_PIN          18
    #define Z_MAX_PIN          19

    #define Y2_STEP_PIN        36
    #define Y2_DIR_PIN         34
    #define Y2_ENABLE_PIN      30

    #define Z2_STEP_PIN        36
    #define Z2_DIR_PIN         34
    #define Z2_ENABLE_PIN      30

    #define E0_STEP_PIN        26
    #define E0_DIR_PIN         28
    #define E0_ENABLE_PIN      24

    #define E1_STEP_PIN        36
    #define E1_DIR_PIN         34
    #define E1_ENABLE_PIN      30

#if MB(RAMPS_13_EEB)  //FMM added for Filament Extruder
#ifdef FILAMENT_SENSOR
    //define analog pin for the filament width sensor input
    //Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
      #define FILWIDTH_PIN        5
#endif
#endif


    #if MB(AZTEEG_X3_PRO)
      #define E2_STEP_PIN        23
      #define E2_DIR_PIN         25
      #define E2_ENABLE_PIN      40

      #define E3_STEP_PIN        27
      #define E3_DIR_PIN         29
      #define E3_ENABLE_PIN      41

      #define E4_STEP_PIN        43
      #define E4_DIR_PIN         37
      #define E4_ENABLE_PIN      42
    #endif

    #define SDPOWER            1
    #define SDSS               53
    #define LED_PIN            13
  #endif

  #if MB(RAMPS_13_EFB) || MB(RAMPS_13_EFF) || MB(AZTEEG_X3) || MB(AZTEEG_X3_PRO)
    #define FAN_PIN            4 // (Sprinter config)
  #else
    #define FAN_PIN            5 // IO pin. Buffer needed
  #endif

  #if MB(3DRAG) || MB(RAMPS_13_EEF)
    #define FAN_PIN            8
  #endif

  #if MB(RAMPS_13_EFF)
    #define CONTROLLERFAN_PIN  -1 //Pin used for the fan to cool controller
  #endif

  #define PS_ON_PIN          12

  #if defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL)
    #define KILL_PIN           41
  #else
    #define KILL_PIN           -1
  #endif

  #if MB(RAMPS_13_EFF)
    #define HEATER_0_PIN       8
  #else
    #define HEATER_0_PIN       10   // EXTRUDER 1
  #endif

  #if MB(RAMPS_13_EFB) || MB(AZTEEG_X3)
    #define HEATER_1_PIN       -1
  #else
    #define HEATER_1_PIN       9    // EXTRUDER 2 (FAN On Sprinter)
  #endif


  #if MB(3DRAG)
    #define HEATER_0_PIN       10
    #define HEATER_1_PIN       12
    #define HEATER_2_PIN       6
  #elif MB(AZTEEG_X3_PRO)
    #define HEATER_2_PIN       16
    #define HEATER_3_PIN       17
    #define HEATER_4_PIN       4
    #define HEATER_5_PIN       5
    #define HEATER_6_PIN       6
    #define HEATER_7_PIN       11
  #else
    #define HEATER_2_PIN       -1
  #endif

  #define TEMP_0_PIN         4   // ANALOG NUMBERING
  #define TEMP_1_PIN         5   // ANALOG NUMBERING
  #if MB(AZTEEG_X3_PRO)
    #define TEMP_2_PIN         12   // ANALOG NUMBERING
    #define TEMP_3_PIN         11   // ANALOG NUMBERING
    #define TEMP_4_PIN         10   // ANALOG NUMBERING
    #define TC1                4    // ANALOG NUMBERING Thermo couple on Azteeg X3Pro
    #define TC2                5    // ANALOG NUMBERING Thermo couple on Azteeg X3Pro
  #else
    #define TEMP_2_PIN         -1   // ANALOG NUMBERING
  #endif

  #if MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF)
    #define HEATER_BED_PIN     -1    // NO BED
  #else
    #if MB(3DRAG)
      #define HEATER_BED_PIN     9    // BED
    #else
      #define HEATER_BED_PIN     8    // BED
    #endif
  #endif

  #define TEMP_BED_PIN       14   // ANALOG NUMBERING

  #ifdef NUM_SERVOS
    #define SERVO0_PIN         11

    #if NUM_SERVOS > 1
      #define SERVO1_PIN         6
    #endif

    #if NUM_SERVOS > 2
      #define SERVO2_PIN         5
    #endif

    #if NUM_SERVOS > 3
      #define SERVO3_PIN         4
    #endif
  #endif

  #if MB(AZTEEG_X3_PRO)
    #define BEEPER 33
  #endif

  #ifdef TEMP_STAT_LEDS
    #if MB(AZTEEG_X3)
      #define STAT_LED_RED       6
      #define STAT_LED_BLUE     11
    #endif
  #endif

  #ifdef ULTRA_LCD

    #ifdef NEWPANEL
      #define LCD_PINS_RS 16
      #define LCD_PINS_ENABLE 17
      #define LCD_PINS_D4 23
      #define LCD_PINS_D5 25
      #define LCD_PINS_D6 27
      #define LCD_PINS_D7 29

      #ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
        #define BEEPER 37

        #define BTN_EN1 31
        #define BTN_EN2 33
        #define BTN_ENC 35

        #define SDCARDDETECT 49
      #elif defined(LCD_I2C_PANELOLU2)
        #define BTN_EN1 47  //reverse if the encoder turns the wrong way.
        #define BTN_EN2 43
        #define BTN_ENC 32
        #define LCD_SDSS 53
        #define SDCARDDETECT -1
        #define KILL_PIN 41
      #elif defined(LCD_I2C_VIKI)
        #define BTN_EN1 22  //reverse if the encoder turns the wrong way.
        #define BTN_EN2 7
        #define BTN_ENC 1
        #define LCD_SDSS 53
        #define SDCARDDETECT 49
      #else
        //arduino pin which triggers an piezzo beeper
        #define BEEPER 33  // Beeper on AUX-4

        //buttons are directly attached using AUX-2
        #ifdef REPRAPWORLD_KEYPAD
          #define BTN_EN1 64 // encoder
          #define BTN_EN2 59 // encoder
          #define BTN_ENC 63 // enter button
          #define SHIFT_OUT 40 // shift register
          #define SHIFT_CLK 44 // shift register
          #define SHIFT_LD 42 // shift register
        #else
          #define BTN_EN1 37
          #define BTN_EN2 35
          #define BTN_ENC 31  //the click
        #endif

        #ifdef G3D_PANEL
          #define SDCARDDETECT 49
        #else
          #define SDCARDDETECT -1  // Ramps does not use this port
        #endif

      #endif

      #if MB(3DRAG)
        #define BEEPER -1

        #define LCD_PINS_RS 27
        #define LCD_PINS_ENABLE 29
        #define LCD_PINS_D4 37
        #define LCD_PINS_D5 35
        #define LCD_PINS_D6 33
        #define LCD_PINS_D7 31

       //buttons
       #define BTN_EN1 16
       #define BTN_EN2 17
       #define BTN_ENC 23 //the click

    #endif
    #else //old style panel with shift register
      //arduino pin witch triggers an piezzo beeper
      #define BEEPER 33   //No Beeper added

      //buttons are attached to a shift register
  // Not wired this yet
      //#define SHIFT_CLK 38
      //#define SHIFT_LD 42
      //#define SHIFT_OUT 40
      //#define SHIFT_EN 17

      #define LCD_PINS_RS 16
      #define LCD_PINS_ENABLE 17
      #define LCD_PINS_D4 23
      #define LCD_PINS_D5 25
      #define LCD_PINS_D6 27
      #define LCD_PINS_D7 29
    #endif
  #endif //ULTRA_LCD

Can anyone point me in the correct direction?

I am happy to post pictures if needed. I will upload the configuration.h files for your viewing.

Have a great day and thank you in advance for hearing me out.

2

Re: Thermistor is not reading correct temperature for heated bed

I can see you are not using the copy of Marlin i gave you in my last post. The PINS>H you have is different from mine. Did you try mine and stay with it for some reason? It should work if you made the electrical connections I specified as well.

Printing since 2009 and still love it!
Anycubic 4MAX best $225 ever invested.
Voxelabs Proxima SLA. 6 inch 2k Mono LCD.
Anycubic Predator, massive Delta machine. 450 x 370 print envelope.

3

Re: Thermistor is not reading correct temperature for heated bed

Update:

Here are screenshots of Repetier Host after I have configured the Temp_Sensor:

Temp_Sensor_1
http://soliforum.com/i/?5Zht2Ml.jpg

Temp_Sensor_2
http://soliforum.com/i/?ynab2JW.jpg

Temp_Sensor_3
http://soliforum.com/i/?CvZpzom.jpg

Temp_Sensor_4
http://soliforum.com/i/?04n0VgD.jpg

Temp_Sensor_5
http://soliforum.com/i/?7m75LX3.jpg

Temp_Sensor_6
http://soliforum.com/i/?T2C9ohs.jpg

Temp_Sensor_7
http://soliforum.com/i/?SuSDD4B.jpg

Temp_Sensor_8
http://soliforum.com/i/?Y8gylhf.jpg

Temp_Sensor_9
http://soliforum.com/i/?bvl6wGK.jpg

Temp_Sensor_10
http://soliforum.com/i/?NNgInEY.jpg

Temp_Sensor_11
http://soliforum.com/i/?3TLDHHf.jpg

Temp_Sensor_12
http://soliforum.com/i/?IcVDYhf.jpg

Temp_Sensor_13
http://soliforum.com/i/?DPLABdh.jpg

Temp_Sensor_20
http://soliforum.com/i/?4PEnlTW.jpg

Temp_Sensor_51
http://soliforum.com/i/?SxUoWy2.jpg

Temp_Sensor_52
http://soliforum.com/i/?94qVLM7.jpg

Temp_Sensor_55
http://soliforum.com/i/?O7dI542.jpg

Temp_Sensor_60
http://soliforum.com/i/?YzSTeTZ.jpg

Temp_Sensor_71
http://soliforum.com/i/?cIJifyx.jpg

Temp_Sensor_110
http://soliforum.com/i/?UAu537Y.jpg

Temp_Sensor_147
http://soliforum.com/i/?w8SMQ9s.jpg

Temp_Sensor_1010
http://soliforum.com/i/?U5wKLb3.jpg

Temp_Sensor_1047
http://soliforum.com/i/?xGRKArr.jpg

4 (edited by EMC2 Robo 2015-10-11 00:43:32)

Re: Thermistor is not reading correct temperature for heated bed

I have tried your configuration.h file, but I keep getting error message when trying to compile. But I have copied your pins.h file and tried compiling, but it gives me the same results... so I reverted back to original as you suggested in an earlier thread.

If you feel think yours pins.h file works better I will copy your pins.h file.

Thank you for your response.

Update:

I also wanted carl_m1968 to know that I have done what you asked: 

I found the compiling error. Seems some how I put a stray ZERO in the pins.h tab.
Open Marlin in Arduino. Go to the pins tab. Click on EDIT, then FIND. Type in VIKI2 then click find.
From the First instance it finds of VIKI2 count down 8 line to just under
#define BTN_ENC 39  //the click switch
there you will see ZER0 (0) on a line all by its self. Just delete it and save the file. Once you save it try to upload it again.

but I am still receiving this error message

Arduino: 1.6.5 (Windows 7), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

temperature.cpp: In function 'void manage_heater()':
temperature.cpp:690: error: unable to find a register to spill in class 'POINTER_REGS'
 }
 ^
temperature.cpp:690: error: this is the insn:
(insn 98 97 100 4 (set (reg/v:SF 103 [ pid_input ])
        (mem:SF (post_inc:HI (reg:HI 151 [ ivtmp.222 ])) [4 MEM[base: _122, offset: 0B]+0 S4 A8])) temperature.cpp:474 99 {*movsf}
     (expr_list:REG_INC (reg:HI 151 [ ivtmp.222 ])
        (nil)))
temperature.cpp:690: confused by earlier errors, bailing out
unable to find a register to spill in class 'POINTER_REGS'

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

I have searched the web and have tried to correct this error but have had no success.

5 (edited by carl_m1968 2015-10-11 00:59:49)

Re: Thermistor is not reading correct temperature for heated bed

You are still using Arduino 1.6.5 I told you that you can't use that version if you are compiling for and LCD based system. The newer versions of Arduion do not have support for LCD's like the ones used in printers. You have to use version 1.0.5 and make sure the make sure the U8g library is also imported.

Please try again using the correct Arduino and use this complete version of Marlin. Do not swap out any files or settings.

Also make sure you make these changes on the actual board as follows.

Heater for Extruder 0 needs to be on HE1. Heater for Extruder 1 needs to be on HE3. If you have cooling fans for the extruders they need to be on HE7 and 8 respectively. The thermistor for the bed will still be in BED.

Post's attachments

Marlin.rar 372.72 kb, 7 downloads since 2015-10-11 

You don't have the permssions to download the attachments of this post.
Printing since 2009 and still love it!
Anycubic 4MAX best $225 ever invested.
Voxelabs Proxima SLA. 6 inch 2k Mono LCD.
Anycubic Predator, massive Delta machine. 450 x 370 print envelope.

6

Re: Thermistor is not reading correct temperature for heated bed

You are still using Arduino 1.6.5 I told you that you can't use that version if you are compiling for and LCD based system.

Yes, you are correct. I apologize, I have overlooked that portion of your response. I will remove Arduino 1.6.5 and install Arduino 1.0.5. Give me a few minutes to locate and I will update shortly.

Thank you for that response.

7

Re: Thermistor is not reading correct temperature for heated bed

Hello carl_m1968,

What do you have selected for Programmer?

AVR ISP
AVRISP mkII
USBtinyISP
USBasp
Parallel Programmer
Arduino as ISP

8

Re: Thermistor is not reading correct temperature for heated bed

Nothing, It defaults for USB and all you do is select the port number and the board type which is Mega2560.

Printing since 2009 and still love it!
Anycubic 4MAX best $225 ever invested.
Voxelabs Proxima SLA. 6 inch 2k Mono LCD.
Anycubic Predator, massive Delta machine. 450 x 370 print envelope.

9

Re: Thermistor is not reading correct temperature for heated bed

Got it, but it keeps giving me this error message:   

In file included from ultralcd.cpp:41:
ultralcd_implementation_hitachi_HD44780.h:172: error: 'LiquidTWI2' does not name a type
/ultralcd_implementation_hitachi_HD44780.h: In function 'void lcd_set_custom_characters()':
ultralcd_implementation_hitachi_HD44780.h:366: error: 'lcd' was not declared in this scope
/ultralcd_implementation_hitachi_HD44780.h: In function 'void lcd_implementation_init()':
ultralcd_implementation_hitachi_HD44780.h:391: error: 'lcd' was not declared in this scope
ultralcd_implementation_hitachi_HD44780.h:391: error: 'LTI_TYPE_MCP23017' was not declared in this scope
/ultralcd_implementation_hitachi_HD44780.h: In function 'void lcd_implementation_clear()':
ultralcd_implementation_hitachi_HD44780.h:417: error: 'lcd' was not declared in this scope
/ultralcd_implementation_hitachi_HD44780.h: In function 'void lcd_printPGM(const char*)':
ultralcd_implementation_hitachi_HD44780.h:425: error: 'lcd' was not declared in this scope
/ultralcd_implementation_hitachi_HD44780.h: In function 'void lcd_implementation_status_screen()':
ultralcd_implementation_hitachi_HD44780.h:485: error: 'lcd' was not declared in this scope
/ultralcd_implementation_hitachi_HD44780.h: In function 'void lcd_implementation_drawmenu_generic(uint8_t, const char*, char, char)':
ultralcd_implementation_hitachi_HD44780.h:633: error: 'lcd' was not declared in this scope
/ultralcd_implementation_hitachi_HD44780.h: In function 'void lcd_implementation_drawmenu_setting_edit_generic(uint8_t, const char*, char, char*)':
ultralcd_implementation_hitachi_HD44780.h:655: error: 'lcd' was not declared in this scope
/ultralcd_implementation_hitachi_HD44780.h: In function 'void lcd_implementation_drawmenu_setting_edit_generic_P(uint8_t, const char*, char, const char*)':
ultralcd_implementation_hitachi_HD44780.h:677: error: 'lcd' was not declared in this scope
/ultralcd_implementation_hitachi_HD44780.h: In function 'void lcd_implementation_drawedit(const char*, char*)':
ultralcd_implementation_hitachi_HD44780.h:732: error: 'lcd' was not declared in this scope
/ultralcd_implementation_hitachi_HD44780.h: In function 'void lcd_implementation_drawmenu_sdfile_selected(uint8_t, const char*, const char*, char*)':
ultralcd_implementation_hitachi_HD44780.h:746: error: 'lcd' was not declared in this scope
/ultralcd_implementation_hitachi_HD44780.h: In function 'void lcd_implementation_drawmenu_sdfile(uint8_t, const char*, const char*, char*)':
ultralcd_implementation_hitachi_HD44780.h:766: error: 'lcd' was not declared in this scope
/ultralcd_implementation_hitachi_HD44780.h: In function 'void lcd_implementation_drawmenu_sddirectory_selected(uint8_t, const char*, const char*, char*)':
ultralcd_implementation_hitachi_HD44780.h:786: error: 'lcd' was not declared in this scope
/ultralcd_implementation_hitachi_HD44780.h: In function 'void lcd_implementation_drawmenu_sddirectory(uint8_t, const char*, const char*, char*)':
ultralcd_implementation_hitachi_HD44780.h:807: error: 'lcd' was not declared in this scope
/ultralcd_implementation_hitachi_HD44780.h: In function 'void lcd_implementation_update_indicators()':
ultralcd_implementation_hitachi_HD44780.h:877: error: 'lcd' was not declared in this scope
/ultralcd_implementation_hitachi_HD44780.h: In function 'uint8_t lcd_implementation_read_slow_buttons()':
ultralcd_implementation_hitachi_HD44780.h:893: error: 'lcd' was not declared in this scope
ultralcd_implementation_hitachi_HD44780.h:895: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd_implementation_hitachi_HD44780.h:895: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_status_screen()':
ultralcd.cpp:246: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:246: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_main_menu()':
ultralcd.cpp:337: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:337: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_tune_menu()':
ultralcd.cpp:420: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:420: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_preheat_pla_menu()':
ultralcd.cpp:558: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:558: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_preheat_abs_menu()':
ultralcd.cpp:578: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:578: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_prepare_menu()':
ultralcd.cpp:608: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:608: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void _lcd_move(const char*, int, int, int)':
ultralcd.cpp:674: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:674: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_move_e()':
ultralcd.cpp:698: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:698: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_move_menu_axis()':
ultralcd.cpp:703: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:703: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_move_menu()':
ultralcd.cpp:733: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:733: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_control_menu()':
ultralcd.cpp:744: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:744: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_control_temperature_menu()':
ultralcd.cpp:773: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:773: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_control_temperature_preheat_pla_settings_menu()':
ultralcd.cpp:810: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:810: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_control_temperature_preheat_abs_settings_menu()':
ultralcd.cpp:827: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:827: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_control_motion_menu()':
ultralcd.cpp:844: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:844: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_control_volumetric_menu()':
ultralcd.cpp:880: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:880: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_sdcard_menu()':
ultralcd.cpp:955: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:955: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp:958: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:958: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void menu_edit_int3()':
ultralcd.cpp:1038: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1038: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void menu_edit_callback_int3()':
ultralcd.cpp:1038: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1038: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void menu_edit_float3()':
ultralcd.cpp:1039: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1039: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void menu_edit_callback_float3()':
ultralcd.cpp:1039: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1039: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void menu_edit_float32()':
ultralcd.cpp:1040: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1040: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void menu_edit_callback_float32()':
ultralcd.cpp:1040: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1040: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void menu_edit_float43()':
ultralcd.cpp:1041: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1041: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void menu_edit_callback_float43()':
ultralcd.cpp:1041: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1041: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void menu_edit_float5()':
ultralcd.cpp:1042: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1042: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void menu_edit_callback_float5()':
ultralcd.cpp:1042: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1042: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void menu_edit_float51()':
ultralcd.cpp:1043: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1043: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void menu_edit_callback_float51()':
ultralcd.cpp:1043: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1043: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void menu_edit_float52()':
ultralcd.cpp:1044: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1044: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void menu_edit_callback_float52()':
ultralcd.cpp:1044: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1044: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void menu_edit_long5()':
ultralcd.cpp:1045: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1045: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void menu_edit_callback_long5()':
ultralcd.cpp:1045: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1045: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_update()':
ultralcd.cpp:1245: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1245: error: 'BUTTON_RIGHT' was not declared in this scope
ultralcd.cpp: In function 'void lcd_buzz(long int, uint16_t)':
ultralcd.cpp:1439: error: 'lcd' was not declared in this scope
ultralcd.cpp: In function 'bool lcd_clicked()':
ultralcd.cpp:1445: error: 'BUTTON_SELECT' was not declared in this scope
ultralcd.cpp:1445: error: 'BUTTON_RIGHT' was not declared in this scope

10 (edited by carl_m1968 2015-10-11 03:03:32)

Re: Thermistor is not reading correct temperature for heated bed

Did you import the library properly? it should tell you library imported at the bottom of the screen in Arduino.

Printing since 2009 and still love it!
Anycubic 4MAX best $225 ever invested.
Voxelabs Proxima SLA. 6 inch 2k Mono LCD.
Anycubic Predator, massive Delta machine. 450 x 370 print envelope.

11 (edited by EMC2 Robo 2015-10-11 03:57:50)

Re: Thermistor is not reading correct temperature for heated bed

Ok, so I got it to compile without any errors.

I did so by

Unziped the file “LiquidTWI2-master.zip”. The directory “LiquidTWI2-master” will be created

Moved the directory to: …<users>[current user]<documents><Arduino><libraries>

Rename the directory “LiquidTWI2-master” to “LiquidTWI2”.

I am uploading your Marlin files now.

Update:

I have uploaded the files you have given me, but I am still unable to get a proper reading from my heated bed. I also had to change:

#define TEMP_0_PIN         5  // ANALOG NUMBERING
  #define TEMP_1_PIN         4   // ANALOG NUMBERING

to

#define TEMP_0_PIN         4  // ANALOG NUMBERING
  #define TEMP_1_PIN         5   // ANALOG NUMBERING

I was not getting a proper reading from my extruder.

Update:

I am now getting a correct reading on my extruder, but my heated bed thermistor is still giving me the same readings I have posted before.

Heated Bed Thermistor still not working properly.

I am open to any suggestions, thank you.

12 (edited by carl_m1968 2015-10-11 04:04:53)

Re: Thermistor is not reading correct temperature for heated bed

EMC2 Robo wrote:

Ok, so I got it to compile without any errors.

I did so by

Unziped the file “LiquidTWI2-master.zip”. The directory “LiquidTWI2-master” will be created

Moved the directory to: …<users>[current user]<documents><Arduino><libraries>

Rename the directory “LiquidTWI2-master” to “LiquidTWI2”.

I am uploading your Marlin files now.

Update:

I have uploaded the files you have given me, but I am still unable to get a proper reading from my heated bed. I also had to change:

#define TEMP_0_PIN         5  // ANALOG NUMBERING
  #define TEMP_1_PIN         4   // ANALOG NUMBERING

to

#define TEMP_0_PIN         4  // ANALOG NUMBERING
  #define TEMP_1_PIN         5   // ANALOG NUMBERING

I was not getting a proper reading from my extruder.

Update:

I am now getting a correct reading on my extruder, but my heated bed thermistor is still giving me the same readings I have posted before.

Heated Bed Thermistor still not working properly.

I am open to any suggestions, thank you.


Ok I am going on the assumption that maybe the bed temp sense input is damaged so we are going to use a different input. Physically move the bed thermistor connection from BED to T2. Then in the firmware change the pin for BED to 12.

Printing since 2009 and still love it!
Anycubic 4MAX best $225 ever invested.
Voxelabs Proxima SLA. 6 inch 2k Mono LCD.
Anycubic Predator, massive Delta machine. 450 x 370 print envelope.

13 (edited by EMC2 Robo 2015-10-16 05:05:55)

Re: Thermistor is not reading correct temperature for heated bed

Hello Everyone,

This is my latest update on "Thermistor is not reading correct temperature for heated bed".

Woohoo... I was finally able to get my thermistor reading the proper temperature. After taking apart my heated bed, purchasing new thermistors, and configuring every option in Repetier and Marlin (took me over two weeks) the problem was my Azteeg X3 Pro board. For some reason my Heated Bed, TC0, TC1, TC2 are all giving me incorrect temperature readings. I was only able to get a proper temp reading from TC3, and TC4 on my Azteeg X3 Pro board.

WOW, this has been a nightmare for me but it is finally over. I would like to give a very special thank you to "carl_m1968". Without your guidance and feedback I am certain I would have given up. I have spent many hours searching online for the correct information and anytime I could not find an answer "carl_m1968" was always here ready to help. Thank you friend, from the bottom of my heart:-)

With that being said, if you are having trouble with you heated bed thermistor like I was, read through this thread and see what we did to troubleshoot until we fixed our problem.

What I learned about thermistors and heated bed:

1. Check Hardware and ensure you choose proper setting
2. Double check wires are not loose, cut or exposed
3. Once connected properly you should see room temp reading
4. Use a Heated Gun or Hair Dryer to ensure the Temp reading is correct and working properly
5. Having additional thermistors can help you see if problem is thermistor or your board
6. Heated Bed will not warm if Temp reading is wrong or if setting is incorrect

Thank you to all who contribute and good luck to all builders.

14

Re: Thermistor is not reading correct temperature for heated bed

Woohoo! Wheres my beer???

Just joking, glad you got it working mind if I ask what the actual problem was?

Printing since 2009 and still love it!
Anycubic 4MAX best $225 ever invested.
Voxelabs Proxima SLA. 6 inch 2k Mono LCD.
Anycubic Predator, massive Delta machine. 450 x 370 print envelope.

15

Re: Thermistor is not reading correct temperature for heated bed

Brother I got you on a case of beer and a bottle, LOL. I am not kiddding:-) You are awesome!

I am not certain exactly, but my Azteeg X3 Pro board is not giving me proper readings on:  Heated Bed, TC0, TC1, TC2

I only get proper readings  from TC3, and TC4. The board looks fine, there does not seem to be any fiscal damage to board. I have emailed Panucatt in hopes they will send me a replacement board. I will update if they respond... we will see.

Right now I am figuring out how to properly calibrate X, Y, Z, E1, E2... then I am done with this machine.

Any thoughts? I am open to suggestions.

16

Re: Thermistor is not reading correct temperature for heated bed

I have somehow the same problem, but with the extruder temp. Still havent fixed it sad

Fat kids are harder to kidnap!

17

Re: Thermistor is not reading correct temperature for heated bed

Hello madfalcon81,

Please explain in detail your issue, try and add pictures and maybe I can help.

Good Luck:-)

18

Re: Thermistor is not reading correct temperature for heated bed

EMC2 Robo wrote:

Hello madfalcon81,

Please explain in detail your issue, try and add pictures and maybe I can help.

Good Luck:-)

When I start the printer it showed the bed temp at 22 C (normal room temp), and extruder temp at 175 C. ??!?  Remove total power, 1 day break , then 155 C. Another day,  75 C. The closest to normal was 50 C (normal should have been 22 C). When I heat the extruder it heats but I dont know the temperature (very hot anyway) and the printer doesnt work (it catches the first layer,  or it stops extruding (due to hot temp it cannot push the filament). On short, the reading is herratic. How much is the resistance on room temp ? More when NOT on phone wink Thanks !

Fat kids are harder to kidnap!

19

Re: Thermistor is not reading correct temperature for heated bed

madfalcon81 wrote:
EMC2 Robo wrote:

Hello madfalcon81,

Please explain in detail your issue, try and add pictures and maybe I can help.

Good Luck:-)

When I start the printer it showed the bed temp at 22 C (normal room temp), and extruder temp at 175 C. ??!?  Remove total power, 1 day break , then 155 C. Another day,  75 C. The closest to normal was 50 C (normal should have been 22 C). When I heat the extruder it heats but I dont know the temperature (very hot anyway) and the printer doesnt work (it catches the first layer,  or it stops extruding (due to hot temp it cannot push the filament). On short, the reading is herratic. How much is the resistance on room temp ? More when NOT on phone wink Thanks !


At room temp assuming you are using a 100K thermistor which is normal
the resistance should be around 100K out of circuit.

What type of sensor do you have selected in the firmware? Should be set for 1.

Printing since 2009 and still love it!
Anycubic 4MAX best $225 ever invested.
Voxelabs Proxima SLA. 6 inch 2k Mono LCD.
Anycubic Predator, massive Delta machine. 450 x 370 print envelope.

20

Re: Thermistor is not reading correct temperature for heated bed

Carl: I have no idea what kind of thermistor it is. The stock one of Press, didnt change anything on this. As for sensor I will take a look, if I will figure out where to look smile

Fat kids are harder to kidnap!

21

Re: Thermistor is not reading correct temperature for heated bed

also check polarity +/-

Solidoodle 2 with Deluxe kit cover & glass bed with heater. and 2nd board SD2 used not 3rd and alum platform not installed yet still wood. also need cooling fan installed to board. use Repetier Host couple vers. Slic3r also have all free ware STL programs

22

Re: Thermistor is not reading correct temperature for heated bed

n2ri wrote:

also check polarity +/-


A thermistor does not have polarity n2ri, maybe you are thinking of a thermocouple?

Printing since 2009 and still love it!
Anycubic 4MAX best $225 ever invested.
Voxelabs Proxima SLA. 6 inch 2k Mono LCD.
Anycubic Predator, massive Delta machine. 450 x 370 print envelope.

23

Re: Thermistor is not reading correct temperature for heated bed

madfalcon81 wrote:

Carl: I have no idea what kind of thermistor it is. The stock one of Press, didnt change anything on this. As for sensor I will take a look, if I will figure out where to look smile

Look in the configuration.h tab of your firmware and near the top after the legalese you will see the following lines or similar.

#define TEMP_SENSOR_0 0
#define TEMP_SENSOR_1 0
#define TEMP_SENSOR_2 0
#define TEMP_SENSOR_BED 0

Those should read:

#define TEMP_SENSOR_0 1
#define TEMP_SENSOR_1 0
#define TEMP_SENSOR_2 0
#define TEMP_SENSOR_BED 1

If they do not then change them and flash the firmware again.

Printing since 2009 and still love it!
Anycubic 4MAX best $225 ever invested.
Voxelabs Proxima SLA. 6 inch 2k Mono LCD.
Anycubic Predator, massive Delta machine. 450 x 370 print envelope.