Welcome! Log In Create A New Profile

Advanced

Marlin Problem with max6675 for T0

Posted by newboerg 
Marlin Problem with max6675 for T0
March 22, 2015 07:39AM
Hello, i am trying to get my Prusa to run an thermocouple with MAX6675
everything works when using a thermistor, but i need the thermocouple to work.

Wiring:
MAX -> RAMPS
gnd -> gnd
VCC->5v
SO ->MISO (D50)
clk -> SCK(D52)
CS -> D66

everything compiles just fine and upload works good.
after botting i get the following error:
Connecting...
start
Printer is now online.
echo: External Reset
Marlin1.0.2
echo: Last Updated: Mar 22 2015 12:04:52 | Author: (none, default config)
Compiled: Mar 22 2015
echo: Free Memory: 3225  PlannerBufferBytes: 1232
echo:Hardcoded Default Settings Loaded
Error:0
[ERROR] Error:0

(mm/s),  Z=maximum Z jerk (mm/s),  E=maximum E jerk (mm/s)
Errortongue sticking out smileyrinter stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)
[ERROR] Errortongue sticking out smileyrinter stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)

echoconfused smileyD init fail

Strange thing is, Pronterface shows a Temperature for T0 which is correct.

So the MAX6675 can be read through SPI.
My guess is that the temp gets read to late in the boot process or something like that. anyone got a max6675 to work?
Attachments:
open | download - Configuration.h (36.9 KB)
Re: Marlin Problem with max6675 for T0
March 23, 2015 07:21AM
UPDATE:

Ive narrowed down the Problem. it seems so be a Problem with the MIN MAX Temps in Marlin:

After uncommentning the following lines in temperature.cpp;
lines 1583 till 1593


#if HEATER_0_RAW_LO_TEMP > HEATER_0_RAW_HI_TEMP
#define MAXTEST <=
#define MINTEST >=
#else
#define MAXTEST >=
#define MINTEST <=
#endif

for (int i=0; iEdited 3 time(s). Last edit at 03/23/2015 07:24AM by newboerg.
Re: Marlin Problem with max6675 for T0
March 23, 2015 07:25AM
hmm forum seems to cut my post... sad smiley

i commented the check for min max out and its fine now, of course without the check and without the security, will keep you informed
Sorry, only registered users may post in this forum.

Click here to login