Welcome! Log In Create A New Profile

Advanced

Thermocouple and the official firmware

Posted by Greg Frost 
Thermocouple and the official firmware
September 15, 2010 09:12AM
I am trying to build the Extruder sketch from reprap-mendel-20100806.
I have a thermocouple with a MAX6675 chip rather than a thermistor.
In configuration.h it says:


// Temperature measurement
// Uncomment ONE of the next three
#define USE_THERMISTOR
//#define AD595_THERMOCOUPLE
//#define MAX6675_THERMOCOUPLE

If I change this to the following (which I'm guessing I need for my thermocouple):

// Temperature measurement
// Uncomment ONE of the next three
//#define USE_THERMISTOR
//#define AD595_THERMOCOUPLE
#define MAX6675_THERMOCOUPLE

I get an error when compiling:
error: 'NUMTEMPS' was not declared in this scope In member function 'void PIDcontrol::pidCalculation(int)':

Am I doing something wrong?
Re: Thermocouple and the official firmware
September 15, 2010 11:02AM
Are you in the us? If so shoot me a pm with your # and ill try to walk you through it.
Re: Thermocouple and the official firmware
September 16, 2010 04:49AM
Thanks for the generous offer, but I'm in Australia. Is there any chance for you to give some pointers on the forum?
Re: Thermocouple and the official firmware
September 16, 2010 03:10PM
I will try to get something to you tonight... what pin will you use for the thermocouple?
Re: Thermocouple and the official firmware
September 17, 2010 12:13AM
Try this...

thermocouple pin is pin 6 and the bed thermo is 7 if you have one...
I am unable to test as I have the AD595 ver... I am no expert.......but it should work (mine does) smiling smiley

If it does not lmk the problem and I'll play with it....
I used to code years back but now just direct a group of MUCH smarter people....heheh
Attachments:
open | download - Extruder.rar (13.4 KB)
Re: Thermocouple and the official firmware
September 18, 2010 05:51PM
Thanks DanielG with your suggestions and a bit of reverse engineering of the code I had based on the January firmware, I was able to get it working.

Should these sorts of changes be contributed back for inclusion in the main-line? It seems wrong to me that following the "instructions" in configuration.h results in a firmware that doesn't compile.
Re: Thermocouple and the official firmware
September 19, 2010 05:44AM
Quote

Should these sorts of changes be contributed back for inclusion in the main-line?

Yes, please.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Thermocouple and the official firmware
September 19, 2010 08:39AM
how does one go about contributing? do you post diffs somewhere? Upload a tarball somewhere?
Re: Thermocouple and the official firmware
September 19, 2010 12:28PM
Good question.

Probably the best idea is to send a diff to the reprap-dev mailing list, along with the question on how the "official" way goes. There's a Subversion issue tracker on Sourceforge, but that one is pretty much unused AFAIK.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Chris Haas
Re: Thermocouple and the official firmware
September 21, 2010 05:13PM
I´m also having some troubles with the extruder firmware and a Thermocouple.
Greg, can you plz post your changes somewhere.

thx

Chris
Re: Thermocouple and the official firmware
September 23, 2010 06:48AM
I have added my current firmware (based on the 0806 official version) to this page:

[reprap.org]
Sorry, only registered users may post in this forum.

Click here to login