Welcome! Log In Create A New Profile

Advanced

Strange heatbed thermistor behavior

Posted by Reparator 
Strange heatbed thermistor behavior
November 23, 2013 08:59PM
Hi,
I´m setting up a dual extruder Ordbot Hadron in the moment and most of the mechanical settings are working in the meantime. As firmware I use repetier 0.83 on an Azteeg X3 board from Panucatt. Control software is Repetier Host on Windows (0.90c)

The critical point I´m struggeling at the moment is the setup of the thermistors, especially the one for the heatbed.
Extruder 1 and 2 are working. They heat up after switching them on and the corresponding thermistors show an increasing temperature.
BUT: The heatbed temperature curve rises exactly parallel with the one from extruder 2 (and the heatbed itself stays cold)..
AND:If I switch the heatbed-power to on, the bed heats up, gets warm (as I can feel by hand) but the thermistor shows no reaction (nearly constant value).

OK, I thought, stupid guy! You have wrong PIN assignment!
But I don´t see any mistake in configuration.h and pins.h:

Configuration.h
Quote

#define NUM_EXTRUDER 2
#define MOTHERBOARD 34

Quote

#define EXT0_TEMPSENSOR_TYPE 1
// Analog input pin for reading temperatures or pin enabling SS for MAX6675
#define EXT0_TEMPSENSOR_PIN TEMP_0_PIN                                                              //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// WHich pin enables the heater
#define EXT0_HEATER_PIN HEATER_0_PIN                                                                //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Quote

#define EXT1_TEMPSENSOR_TYPE 1
// Analog input pin for reading temperatures or pin enabling SS for MAX6675
#define EXT1_TEMPSENSOR_PIN TEMP_2_PIN                                                                       //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// WHich pin enables the heater
#define EXT1_HEATER_PIN HEATER_2_PIN                                                                         //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Quote

#define HEATED_BED_SENSOR_TYPE 1
/** Analog pin of analog sensor to read temperature of heated bed.  */
#define HEATED_BED_SENSOR_PIN TEMP_1_PIN                                                                  //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
/** \brief Pin to enable heater for bed. */
#define HEATED_BED_HEATER_PIN HEATER_1_PIN                                                                //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

PINS.h

Quote

#if MOTHERBOARD == 34
    #define MOTHERBOARD 3
    #define RAMPS_V_1_3
    #define AZTEEG_X3
#endif
#if MOTHERBOARD == 3
    #define KNOWN_BOARD 1
    #ifdef RAMPS_V_1_3
.....
        #define HEATER_0_PIN       10
        #define HEATER_1_PIN       8
        #define HEATER_2_PIN       9
     
    #define TEMP_0_PIN         13   // ANALOG NUMBERING
        #define TEMP_1_PIN         14   // ANALOG NUMBERING
        #define TEMP_2_PIN         15                           
        
#define E0_PINS E0_STEP_PIN,E0_DIR_PIN,E0_ENABLE_PIN,
        #define E1_PINS E1_STEP_PIN,E1_DIR_PIN,E1_ENABLE_PIN,

    #endif

Any Ideas???? Are there other variables which can affect this behavior?

In the meanwhile I tried to use a different thermistor input (the AZTEEG X3 has two more analog inputs for thermistors). I have choosen HOTEND3 thermistor input and assigned TEMP_1_PIN to analog pin A12.
Same result: Repetier host shows a parallel temperature rise of Extruder 2 and heatbed regardless which heating source I´m switch on.
Does anybody know what that can mean?

Thanks in advance for reading and thinking about what I have written.
Regards
Re: Strange heatbed thermistor behavior
November 25, 2013 04:36AM
My printer with Azteeg X3 and dual extruder is loaded with Marlin v1.0 fw and has this pin setting that is working:

#define TEMP_0_PIN 13 // extruder 1 temp, ANALOG NUMBERING
#define TEMP_1_PIN 15 // extruder 2 temp, ANALOG NUMBERING
#define TEMP_BED_PIN 14 // bed temp, ANALOG NUMBERING


#define HEATER_0_PIN 10 // EXTRUDER 1 heat
#define HEATER_1_PIN 9 // EXTRUDER 2 heat
#define HEATER_BED_PIN 8 // BED HEAT
Re: Strange heatbed thermistor behavior
November 25, 2013 02:50PM
Thank you justcurious!

This is exactly my pin assignment in repetier too.

If I heat up extruder 2 hotend, both temperature curves (heatbed and extruder2) rising parallel.
If I heat up the bed, the curves do not show any changes while the bed is getting warm.

I´ll check the hardware again, but I think this is firmware related (faulty configuration).

In Marlin there is a feature called "redundant sensor" which enables sensor 1 as a redundant sensor for sensor 0 ( #define TEMP_SENSOR_1_AS_REDUNDANT). For me it looks exactly like this. But I haven´t found that in repetier until now.

Regards
Re: Strange heatbed thermistor behavior
November 25, 2013 03:06PM
One thing I forgot to write:

If I pull off the corresponding crimp type connector from the header at the Azteeg X3 board nothing happens in the temperature curve!
That means: There must be a wrong pin assigment or a short-circuit in the sensor input stage.

Regards
Re: Strange heatbed thermistor behavior
November 26, 2013 05:36AM
Your assignments you described above are still not the same as those I described :-(
Mine:
#define HEATER_1_PIN 9 // EXTRUDER 2 heat
#define HEATER_BED_PIN 8 // BED HEAT

#define TEMP_1_PIN 15 // extruder 2 temp, ANALOG NUMBERING
#define TEMP_BED_PIN 14 // bed temp, ANALOG NUMBERING

Yours:
#define HEATER_1_PIN 8
#define HEATER_2_PIN 9

#define TEMP_1_PIN 14 // ANALOG NUMBERING
#define TEMP_2_PIN 15
Re: Strange heatbed thermistor behavior
November 26, 2013 10:52AM
Hi!

Thanks again for thinking about my problem!
But I think you are not right:

In my pins.h three heater-pins get assigned:

#define HEATER_0_PIN 10
#define HEATER_1_PIN 8
#define HEATER_2_PIN 9

and three sensor pins:
#define TEMP_0_PIN 13 // ANALOG NUMBERING
#define TEMP_1_PIN 14 // ANALOG NUMBERING
#define TEMP_2_PIN 15

so far, so good.

Then in config.h these definitions get changed again (reassigned):

#define EXT0_HEATER_PIN HEATER_0_PIN (means EXT0_HEATER_PIN is now Pin 10 >>>> Extruder 1 Heater)
#define EXT1_HEATER_PIN HEATER_2_PIN (means EXT1_HEATER_PIN is now Pin 9 >>>> Extruder 2 Heater)
#define HEATED_BED_HEATER_PIN HEATER_1_PIN (means HEATED_BED_HEATER_PIN is now Pin 8 >>>> Heatbed-Heater)

#define EXT0_TEMPSENSOR_PIN TEMP_0_PIN (means EXT0_TEMPSENSOR_PIN is now 13 >>>> Extruder 1 Sensor)
#define EXT1_TEMPSENSOR_PIN TEMP_2_PIN (means EXT1_TEMPSENSOR_PIN is now 15 >>>> Extruder 2 Sensor)
#define HEATED_BED_SENSOR_PIN TEMP_1_PIN (means HEATED_BED_SENSOR_PIN is now 14 >>>> Heatbed Sensor)

And this is what you have in Marlin either!

Regards
Re: Strange heatbed thermistor behavior
November 26, 2013 03:15PM
Update!

I´ve written a small sketch to test the sensor input pins:
Quote

  /* read the input on sensor pins:
   Therm0 - A13  (Hotend Extruder 0)
   Therm1 - A14  (H-Bed)
   Therm2 - A15  (Hotend Extruder 1)
   Therm3 - A5   (Hotend Extruder 2)
   Therm4 - A12  (Hotend Extruder 3)
   */
  int sensorValue[15];

void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
}
void loop() {
  sensorValue[0] = analogRead(A13);
  sensorValue[1] = analogRead(A14);
  sensorValue[2] = analogRead(A15);
  sensorValue[3] = analogRead(A5);
  sensorValue[4] = analogRead(A12);
  // print out the value
  for (int i=0;i<=4;i++){
    Serial.print (i);
    Serial.print(": ");
    Serial.print(sensorValue);
    Serial.print(" ");
  };
  Serial.println();
delay(500);
}


After uploading that sketch on the Azteeg X3 I first shorted the input pins (the measured result should be near 0) and than let them open (measured result should be near 1023). For TEMP_0_PIN (A13), TEMP_2_PIN (A15) and Pin A5 the results were as expected. For the "problem" pin TEMP_1_PIN (A14) and Pin A12, there was now change to see while shorting and opening.
So these pins seem to be defective on my board. They measure nothing at all.

After reassigning the non defective pins A13, A15 and A5 to Extr1, Extr2 and heatbedsensor the heating equipment now seems to work ok.

Thanks again for your comments!

Regards
Re: Strange heatbed thermistor behavior
November 26, 2013 04:39PM
Ok interesting to learn something new and good work :-)
I have a bad output (pin 11) but that is probably a mosfet error.
Re: Strange heatbed thermistor behavior
November 27, 2013 10:16AM
You mean D11?
To find out, if it is related to the mosfet (Q5 is the one), you can measure with a voltmeter the potential against GND on Pin 1 of the mosfet while you switch the D11 pin with the command "M42 P11 S255" and "M42 P11 S0" in your host program. If the potential is changing from +5V to GND and back, your AVR should be ok, means your problem can really be related to the mosfet.

Regards
Re: Strange heatbed thermistor behavior
November 27, 2013 01:05PM
thankyou for your suggestion.
I have a zero impedance to ground even with power off so need another mosfet :-).
Do not know how or when as it has not been used before I began with installation of dual extruders.
Shit happens...grinning smiley
Sorry, only registered users may post in this forum.

Click here to login