Welcome! Log In Create A New Profile

Advanced

Thermistor looup table creation - python trouble

Posted by Flackster 
Thermistor looup table creation - python trouble
May 22, 2011 01:10AM
Hi,

I'm trying using a thermistor not on the list normally used (here: [reprap.org])

I have the data sheet (http://reprap.org/wiki/Thermistor). ) and know the beta value to be 4267

I'm an absolute python newbie. I downloaded it and got it to run but when I run the thermistor table calculator script the output I get implies I'm not kicking off the command properly. (Script is here: [reprap.svn.sourceforge.net])

I'm typing in:
"createTemperatureLookup.py –-r0=10000 --t0=25 --beta=4267 --r1=0 --r2=4700 --num-temps=20 --max-adc=1023"

and getting:

// Thermistor lookup table for RepRap Temperature Sensor Boards (http://make.rrrf.org/ts)
// Made with createTemperatureLookup.py (http://svn.reprap.org/trunk/reprap/firmware/Arduino/utilities/createTemperatureLookup.py)
// ./createTemperatureLookup.py --r0=10000 --t0=25 --r1=680 --r2=1600 --beta=3947 --max-adc=305
// r0: 10000
// t0: 25
// r1: 680
// r2: 1600
// beta: 3947
// max adc: 305
#define NUMTEMPS 19
short temptable[NUMTEMPS][2] = {
{1, 608},
{17, 262},
{33, 215},
{49, 188},
{65, 170},
{81, 156},
{97, 145},
{113, 135},
{129, 126},
{145, 117},
{161, 109},
{177, 102},
{193, 94},
{209, 86},
{225, 78},
{241, 69},
{257, 59},
{273, 47},
{289, 28}

As you can see, the output bears no relation to the options I have on the command line

I imagine I'm doing something stupid with the command line syntax (should I put 2 "-"s in?, should I put the "=" in?, etc). I looked in beginners python material but think my question/mistake may be just too basic/obvious to be considered worth noting sad smiley

Also, once I do get a new thermistor table - How to I change the arduino files to make it take notice? (e.g. add the table to "Temperature.h" and change something in "Configuration.h"???). I'm using Gen6 electronics.

Apologies if this is a particularly stupid question

Pete
Re: Thermistor looup table creation - python trouble
May 22, 2011 03:44AM
The first of the two minuses before r0=10000 is a strange character (\x96), not a minus, and that seems causes all the remaining options to be ignored.

I think you just replace the existing table in the code and recompile the firmware.


[www.hydraraptor.blogspot.com]
Re: Thermistor looup table creation - python trouble
May 23, 2011 08:06AM
Excellent! Thanks for that
(and obvious now that I see my post)

I'll give it a try later

Cheers

Pete
Sorry, only registered users may post in this forum.

Click here to login