Repetier with max6675 on ramps 1.4 December 05, 2013 03:06AM |
Registered: 10 years ago Posts: 7 |
Re: Repetier with max6675 on ramps 1.4 December 05, 2013 07:33AM |
Registered: 11 years ago Posts: 296 |
Quote
leolino
Good Morning,
I'm new to this forum and I hope to make this post in the right place :-) .
I'm building a 3d printer and I like the composition Arduino Mega 2560 + Ramps 1.4 + max6675 because I have an extruder with thermocouple thermistor instead ... and use firmware repetier .
In configuration.h line 502 I 've found :
/ / Uncomment the Following line for MAX6675 support.
/ / # define SUPPORT_MAX6675
I uncommented the line and the compilation of the sketch gives me the following error:
Extruder.cpp : In function ' void initExtruder () ' :
Extruder.cpp : 327 : error : ' struct Extruder ' has no member named ' SENSORTYPE '
refers to that part of Extruder.cpp :
# ifdef SUPPORT_MAX6675
if ( act- > SENSORTYPE == 101 ) {
WRITE ( SCK_PIN , 0);
SET_OUTPUT ( SCK_PIN ) ;
WRITE ( MOSI_PIN , 1);
SET_OUTPUT ( MOSI_PIN ) ;
WRITE ( MISO_PIN , 1);
SET_INPUT ( MISO_PIN ) ;
digitalWrite (act -> tempControl.sensorPin , 1);
pinMode (act -> tempControl.sensorPin , OUTPUT) ;
}
# endif
Can anyone tell me please what 's wrong ?
I'm not a great expert on C. .. something I can resolve this but its not :-( .
Thanks to those who can tell me something.
Bye .
Re: Repetier with max6675 on ramps 1.4 December 05, 2013 07:53AM |
Registered: 10 years ago Posts: 7 |
Re: Repetier with max6675 on ramps 1.4 December 05, 2013 09:07AM |
Registered: 12 years ago Posts: 2,705 |
Re: Repetier with max6675 on ramps 1.4 December 05, 2013 09:14AM |
Registered: 10 years ago Posts: 7 |
Re: Repetier with max6675 on ramps 1.4 December 05, 2013 09:26AM |
Registered: 12 years ago Posts: 2,705 |
Re: Repetier with max6675 on ramps 1.4 December 06, 2013 03:50AM |
Registered: 10 years ago Posts: 7 |
Re: Repetier with max6675 on ramps 1.4 December 06, 2013 03:53AM |
Registered: 12 years ago Posts: 2,705 |
HAL::max6675_temp |= HAL::spiReceive(0);
max6675_temp |= HAL::spiReceive(0);