Welcome! Log In Create A New Profile

Advanced

Marlin and MAX6675

Posted by eca 
eca
Marlin and MAX6675
April 05, 2014 12:10PM
Hello.
Marlin firmware is excellent.
But the last several firmware versions stopped working support MAX6675.
Generates a compiler error:

#define MAX6675_HEAT_INTERVAL 250
long max6675_previous_millis = -HEAT_INTERVAL; <--------------!!!!!!!!!!!!
int max6675_temp = 2000;

int read_max6675()
{
if (millis() - max6675_previous_millis < MAX6675_HEAT_INTERVAL)
Re: Marlin and MAX6675
April 07, 2014 08:32AM
I'd suggest reporting the problem to the author/source of your version of the firmware (github ticket for instance).


Most of my technical comments should be correct, but is THIS one ?
Anyway, as a rule of thumb, always double check what people write.
eca
Re: Marlin and MAX6675
April 07, 2014 09:43AM
Hello, DeuxVis.

The firmware from the website: [github.com]

Change the settings:
MOTHERBOARD 33
#define TEMP_SENSOR_0 -2
#define TEMP_SENSOR_1 0
#define TEMP_SENSOR_2 0
#define TEMP_SENSOR_BED 1

After compiling writes:
"HEAT_INTERVAL" was not declared in this scope.

Error in the program (temperature.c):

#ifdef HEATER_0_USES_MAX6675
#define MAX6675_HEAT_INTERVAL 250
long max6675_previous_millis = -HEAT_INTERVAL;
int max6675_temp = 2000;

int read_max6675()
{
if (millis() - max6675_previous_millis < MAX6675_HEAT_INTERVAL)
return max6675_temp;

max6675_previous_millis = millis();
max6675_temp = 0;
......
......
......

It is necessary to replace the "-HEAT_INTERVAL" on "MAX6675_HEAT_INTERVAL"

Edited 2 time(s). Last edit at 04/07/2014 09:45AM by eca.
Sorry, only registered users may post in this forum.

Click here to login