UnifiedEngineering / T-962-improvements

Improvements made to the cheap T-962 reflow oven utilizing the _existing_ controller HW
GNU General Public License v3.0
798 stars 195 forks source link

2X MAX31850K from adafruit #222

Open elmenno opened 2 years ago

elmenno commented 2 years ago

I have 2x the adafruit MAX31850K https://www.adafruit.com/product/1727

i connecting the date to date en v3.3 to v3.3 en GND to GND

its te same situation as used by Werner Johansson https://github.com/UnifiedEngineering/T-962-improvements/wiki/Better-thermocouple-interface IMG_20220107_173230 IMG_20220107_173227

Can somebody help me out please? IMG_20220107_172907

same temp readings See the pictures

xnk commented 2 years ago

You hooked it up to Vin, not 3v3 on the Adafruit board according to the pictures, will that really work directly from a 3v3 line? In your case better hook Vin to the 5V rail on the controller, or bypass the regulator on board the Adafruit board. What does the serial console output, can you see the 1-wire chips being detected?

Also, note that the A0-A3 pins needs to be connected (A3, A2 and A1 grounded on both boards, A0 grounded on one of them and pulled to DQ or 3v3 on the other). This is to allow the firmware identify which TC interface is which and it needs to see two interfaces at either ID 0 and 1 (as described above) or at ID 2 and 3 (where A1 is also pulled high).

On 7 Jan 2022, at 20:48, ELMenno @.***> wrote:

I have 2x the adafruit MAX31850K https://www.adafruit.com/product/1727 https://www.adafruit.com/product/1727 i connecting the date to date en v3.3 to v3.3 en GND to GND

its te same situation as used by Werner Johansson https://github.com/UnifiedEngineering/T-962-improvements/wiki/Better-thermocouple-interface https://github.com/UnifiedEngineering/T-962-improvements/wiki/Better-thermocouple-interface

Can somebody help me out please?

same temp readings See the pictures

— Reply to this email directly, view it on GitHub https://github.com/UnifiedEngineering/T-962-improvements/issues/222, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYSRD75KT7JKFZPTNXLYZLUU47STANCNFSM5LPQM2FQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.

elmenno commented 2 years ago

Realy thanks for the quick replay now i am happy the cold juction temp works the DS18B20

Do you mean this? see pict qwqw ure red marking is for soldering

i go soldering now the correct voltage super thanks Werner

elmenno commented 2 years ago

I hope it wil work now (-:

xnk commented 2 years ago

Ah I didn’t spot the address select dog bones on the bottom side. Leave a1 a2 and a3 at “0” on both boards and cut a0 from “0” and connect it to “1”.

/wj

On 7 Jan 2022, at 21:33, ELMenno @.***> wrote:

 Closed #222.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.

elmenno commented 2 years ago

Werner super thanks for the fast replay

Now it working great for so far now i gong testing the oven see the picture IMG_20220107_225443

Greeting Menno

xnk commented 2 years ago

Awesome!! Glad you got it working!!

On 7 Jan 2022, at 23:00, ELMenno @.***> wrote:

Werner super thanks for the fast replay

Now it working great for so far now i gong testing the oven see the picture https://user-images.githubusercontent.com/17600479/148612974-0643e756-c0e9-4f6c-8054-b24e4532ff89.jpg Greeting Menno

— Reply to this email directly, view it on GitHub https://github.com/UnifiedEngineering/T-962-improvements/issues/222#issuecomment-1007770697, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYSRD4GSSWLJUCMYDKHG7DUU5PBNANCNFSM5LPQM2FQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.

borland1 commented 2 years ago

Menno,

Since the MAX31850 chip incorporates internal Cold-Junction temperature compensation, does the UnifiedEngineering TC-961 firmware take this into account? Did you subsequently remove the DS18B20? Seem unnecessary with the MAX31850's being used.

GitLang commented 2 years ago

The DS18B20 is now used to monitor the electronics enclosure temperature and (I think) control the very small fan for that enclosure.

borland1 commented 2 years ago

GitLang,

The small 12V DC fan is connected directly to the power supply, so normally this small fan runs at one speed. The wiki describes a circuit board mod, using a transistor switch, to add processor control of this fan.

The firmware of this repository adjusts the oven thermocouple temperature by adding, if detected, the DS18B20 reported temperature. With the two MAX31850's, which have there own internal cold junction compensation, I'm not sure about how this UE firmware handles the compensation calculation.

This code snippet from the sensor.c file.

coldjunction = OneWire_GetTempSensorReading();  <--
        if (coldjunction < 127.0f) {
            cjsensorpresent = 1;
        } else {
            coldjunction = 25.0f; // Assume 25C ambient if not found
        }
        temp[0] = ADC_Read(1);
        temp[1] = ADC_Read(2);

        // ADC oversamples to supply 4 additional bits of resolution
        temperature[0] = ((float)temp[0]) / 16.0f;
        temperature[1] = ((float)temp[1]) / 16.0f;

        // Gain adjust
        temperature[0] *= adcgainadj[0];
        temperature[1] *= adcgainadj[1];

        // Offset adjust
-->     temperature[0] += coldjunction + adcoffsetadj[0];
-->     temperature[1] += coldjunction + adcoffsetadj[1];

        tempvalid |= 0x03;

        avgtemp = (temperature[0] + temperature[1]) / 2.0f;
szenieh commented 3 months ago

Ah I didn’t spot the address select dog bones on the bottom side. Leave a1 a2 and a3 at “0” on both boards and cut a0 from “0” and connect it to “1”. /wj

May I ask if your instruction to: "cut a0 from "0" and connect it to "1" " is for both boards or only for one of them? Thank you,

Salah Zenieh

szenieh commented 3 months ago

I also have 2x Max38150K from Adafruit- the same exact model as in this post. I am unable to get them to work. I have configured the address on one them to be 0 and on the other one to 1. The firmware does not recognize them. I have tested them with an Arduino and they work great. So, it must be a configuration issue so that the firmware can recognize them.

Should I configure them as 2 and 3? (making A0 (1, 0) and A1 (1,1)? Please help! Could elmenno describe how his worked?

Also, is how do I monitor the boot process via the programming header? Should I hook it up to a serial program like PuTTY? Will that work?