500 deg Thermistor programming on RADDS 1.5 with Arduino DUE with Repetier Firmware

129 views
Skip to first unread message

Willem Reek

unread,
Apr 13, 2016, 7:18:45 AM4/13/16
to B3 Innovations - Pico Support
Hi,

I use Repetier Firmware 0.92 for programming my Arduino DUE with RADDS 1.5 shield.
I connected the 500 deg Celsius thermistor delivered with my PICO hotend and use 24V (heater cartridge delivered is also 24v).
I downloaded the Thermistor table from your support page and implemented it in several ways:
- Temp x8 and Oversamplenr = 4 implemented in Repetier firmware generator;
- Temp x8 and Oversamplenr = 4 directly in configuration.h;
- Temp x1 and Oversamplenr = 4 implemented in Repetier firmware generator;
- Temp x1 and Oversamplenr = 4 directly in configuration.h;

The temperature readout on my RADDS display is always 0,0.
When I measure the thermistor itself it gives about 5000 ohm cold and decreases with increasing temperature (heatgun).
When I connect to the 3.3Volt thermistor connector on my RADDS board it gives 395000 ohm as readout cold and decreasing with increased temperature.
Now what is broken or how should I change the table/settings in configuration.h? Please help because it is taking too much of my business time.
Configuration_ORIG4.txt

Branden Coates

unread,
Apr 13, 2016, 11:20:50 AM4/13/16
to B3 Innovations - Pico Support
Hi Willem,

I am not terribly familiar with Repetier at all, but looking in your config file I see a section defining the heated bed but nothing in there similar defining the hotend.

I do see a line towards the top of the file:

#define EXT0_TEMPSENSOR_TYPE 5

and I do see under the section:

    "extruder": [

that there is a line defining the sensor type as "5", is this what you set the temp table, the old thermistor setting or is this something else?

            "sensorType": 5,

I also see a line in here that looks like a temp table:

    "userTable0": {

The formatting I am unfamilair with, I would have to do some research on how this table is laid out. Can you confirm that this user table is the sensor type 5 configured for the extruder or is it present but not being used?

Willem Reek

unread,
Apr 13, 2016, 12:08:54 PM4/13/16
to B3 Innovations - Pico Support
Hi Branden,

Yes the thermistor table is generated this way when you enter the values in the repetier firmware configurator.
It also set the thermistor type to 5 (hope that is correct?).

I shut off everything else. So no hot bed = on and no other thermistors than nr.1 (Thermistor_0).

I am just sending an email to you.

Thanks for any help! getting desperate searching /trying for 3 days now.

Willem

Willem Reek

unread,
Apr 13, 2016, 12:45:45 PM4/13/16
to B3 Innovations - Pico Support
I could also revert to Marlin, but I never worked with that.
I only need a very accurate control of my hot end. That is the only thing it needs to do.
Are you familiar with RADDS 1.5 and Arduino Due?

It would be great if I knew what readings I should get. So I can check the correct functioning of everything.

Many thanks,

Willem

Branden Coates

unread,
Apr 13, 2016, 12:52:21 PM4/13/16
to B3 Innovations - Pico Support
Hi Willem,

I noticed this email originally only went directly to you, I am posting it in the forum for posterity in case anyone else runs across the same issues. Sorry if you get a duplicate.

The thermistor type would need to be set to use the custom temp table 0 instead of thermistor 5. I found http://www.repetier.com/firmware/v092/index.htmlonline and used it to generate a hotend config using the custom temp table and ported the temp table data in. It looks like the output should be like this for the custom temp table 0: (its long, theres more to read at the bottom including an updated config file)

    "userTable0": {
        "r1": 0,
        "r2": 4700,
        "temps": [
            {
                "t": 500,
                "r": 55.37,
                "adc": 47.680863949598
            },
            {
                "t": 490,
                "r": 63.41,
                "adc": 54.512198194151
            },
            {
                "t": 480,
                "r": 72.56,
                "adc": 62.258662017869
            },
            {
                "t": 470,
                "r": 82.75,
                "adc": 70.850713501647
            },
            {
                "t": 460,
                "r": 94.7,
                "adc": 80.880242768056
            },
            {
                "t": 450,
                "r": 107.82,
                "adc": 91.834324080352
            },
            {
                "t": 440,
                "r": 122,
                "adc": 103.60638739112
            },
            {
                "t": 430,
                "r": 137.82,
                "adc": 116.6585156124
            },
            {
                "t": 420,
                "r": 153.88,
                "adc": 129.8216272343
            },
            {
                "t": 410,
                "r": 177.53,
                "adc": 149.04784798863
            },
            {
                "t": 400,
                "r": 202.18,
                "adc": 168.88957565818
            },
            {
                "t": 390,
                "r": 230.66,
                "adc": 191.56719384423
            },
            {
                "t": 380,
                "r": 262.8,
                "adc": 216.84653824454
            },
            {
                "t": 370,
                "r": 301.77,
                "adc": 247.06216999182
            },
            {
                "t": 360,
                "r": 346.74,
                "adc": 281.35000019815
            },
            {
                "t": 350,
                "r": 398.64,
                "adc": 320.16984921469
            },
            {
                "t": 340,
                "r": 460.68,
                "adc": 365.54961749227
            },
            {
                "t": 330,
                "r": 536.53,
                "adc": 419.56989647725
            },
            {
                "t": 320,
                "r": 626.03,
                "adc": 481.33278445672
            },
            {
                "t": 310,
                "r": 737.28,
                "adc": 555.2705764647
            },
            {
                "t": 300,
                "r": 868.56,
                "adc": 638.72045914922
            },
            {
                "t": 290,
                "r": 1030.21,
                "adc": 736.22257299471
            },
            {
                "t": 280,
                "r": 1231.84,
                "adc": 850.39124453795
            },
            {
                "t": 270,
                "r": 1480.2,
                "adc": 980.78039545646
            },
            {
                "t": 260,
                "r": 1791.34,
                "adc": 1130.0497740066
            },
            {
                "t": 250,
                "r": 2184.65,
                "adc": 1299.4330503366
            },
            {
                "t": 240,
                "r": 2682.01,
                "adc": 1487.7832663462
            },
            {
                "t": 230,
                "r": 3338.88,
                "adc": 1700.8231992516
            },
            {
                "t": 220,
                "r": 4157.24,
                "adc": 1922.0318970695
            },
            {
                "t": 210,
                "r": 5237.97,
                "adc": 2158.3368786583
            },
            {
                "t": 200,
                "r": 6698.08,
                "adc": 2406.426134928
            },
            {
                "t": 190,
                "r": 8674.83,
                "adc": 2655.9910555872
            },
            {
                "t": 180,
                "r": 11216.67,
                "adc": 2885.7960647548
            },
            {
                "t": 170,
                "r": 14789.91,
                "adc": 3107.4890263731
            },
            {
                "t": 150,
                "r": 26556.33,
                "adc": 3479.2367290082
            },
            {
                "t": 130,
                "r": 48743.43,
                "adc": 3734.8715426761
            },
            {
                "t": 110,
                "r": 95528.65,
                "adc": 3902.9740672951
            },
            {
                "t": 90,
                "r": 201785.57,
                "adc": 4001.7900967608
            },
            {
                "t": 70,
                "r": 479754.31,
                "adc": 4055.2717952907
            },
            {
                "t": 50,
                "r": 1356574.38,
                "adc": 4080.8614102471
            },
            {
                "t": 30,
                "r": 6416773.75,
                "adc": 4092.0027908313
            }
        ],
        "numEntries": 41
    },

I compared this to what you had in your config file and I think what happened is that you put the ADC values for the temp table into the temp(t) field, and I really am not sure what you used for resistance. The table above should be correct for what you are using. The sensor type still seems to show 5 even though I had selected to use the "User defined table 0" in the web interface so while I am still unsure about that part, the temp table I included here should be correct.

I went ahead and took your config file text and modified it with this corrected temp table and have attached it to this email. Like I said I am still unsure of the sensor 5 value but since the config I generated had it set the same I cant provide much suggestion on that part. You should be able to just replace the config file you have currently with this one and try uploading that to see what it does.

Let me know how things go.
Branden
Configuration_ORIG4_fixd.txt

Willem Reek

unread,
Apr 14, 2016, 3:19:22 AM4/14/16
to B3 Innovations - Pico Support
Hey Branden,

Still no change. Tried also other Thermistor connector and changed number in configuration file. No change.
All the time it reads 0.0 deg. and when heating up extruder it only does so for 10 seconds (and gets really hot!) because it still gives 0.0 deg and then the heater is automatically decoupled (safety feature).

So what to do now?

Willem

Willem Reek

unread,
Apr 14, 2016, 12:16:48 PM4/14/16
to B3 Innovations - Pico Support
Meanwhile I tested with the 100K thermistor and found out that it should be a EXT0_THERMISTOR_TYPE 2
This means actually that it is read as a 200K thermistor! by Arduino DUE and the Repetier firmware (which of the two?).

If we know this, can we predict the necessary table for the 500 deg thermistor?

Willem Reek

unread,
Apr 18, 2016, 8:52:36 AM4/18/16
to B3 Innovations - Pico Support
Please anyone.....is there someone among you who can get PICO print at over 400 deg with Arduino DUE with or without Repetier?

Branden Coates

unread,
Apr 18, 2016, 11:13:21 AM4/18/16
to B3 Innovations - Pico Support
So from what I can see there is some math that can be done to establish the 3.3v adc values from the 5v based values currently in the table. I am not a super math whiz at this but based on https://learn.sparkfun.com/tutorials/analog-to-digital-conversion/relating-adc-value-to-voltage it looks like you could possibly come up with a formula to split out the raw values from the 5v ADC results and convert them to 3.3v ADC values. From the temp tables it looks like the ADC range is not 1024 but 4096 on the DUE, so you would want to adjust your math for that detail. If you can come up with the right conversion formula I can add that to the spreadsheet to create a DUE compatible temp table too.
Reply all
Reply to author
Forward
0 new messages