# Max31865 thermocouple amplifier (Solved)

**URL:** https://discourse.nodered.org/t/max31865-thermocouple-amplifier-solved/10295
**Category:** General
**Created:** [17 April 2019 17:19 UTC](https://discourse.nodered.org/t/max31865-thermocouple-amplifier-solved/10295 "2019-04-17T17:19:40Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Poodlepapa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/poodlepapa/32/8174_2.png) [@Poodlepapa](https://discourse.nodered.org/u/Poodlepapa)
#### Post date: [17 April 2019 17:19 UTC](https://discourse.nodered.org/t/max31865-thermocouple-amplifier-solved/10295/1 "2019-04-17T17:19:40Z")

</div>

_ **I am still working on this project, as soon as I have a working flow I will post a list of the steps I took to make the Max31865 work. This has been frustrating and poorly documented device. I'd like to help others avoid the hours of reading and trial and error. Stay tuned.....** _

Hello all.  
I'm trying to connect a Max 318 **65** thermocouple Amplifier to Node Red. I have tried many many things. There is no specific node for it (that I can find). I've tried one from adafruit and it crashed Node Red to the point it would not run unless it was in safe mode. There is this [https://github.com/steve71/MAX31865](https://github.com/steve71/MAX31865) but I've put it in a python shell node and it doesn't work.  
I'd like to know these things-  
1- is there a simple node that will just work with this board?  
a- if so can i just install it from the Node -Red dashboard?  
2- Is it possible to use the above link to run the python code in Node Red?  
a- if so how?  
3- If I can use this Python code, where should the library go?  
4- I'm not set on any method to read this temp probe, all I want is to get usable data to control a process for my oven. I would be happy to use Voodoo but I'm much more familiar Node Red and I'm out of live chickens.

I would sure appreciate some help with this. I'm new to this whole thing and analog to digital conversion in not something I can figure out.  
Also... there is a node called Max31855 and 31856. I've tried those and they doesn't seem to work either. thank you again.

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [17 April 2019 17:31 UTC](https://discourse.nodered.org/t/max31865-thermocouple-amplifier-solved/10295/2 "2019-04-17T17:31:29Z")

</div>

I hope you understand that we are not clairvoyant around here.

Does the python script work on the commandline ? If yes what error did you get in node-red ?

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [17 April 2019 20:19 UTC](https://discourse.nodered.org/t/max31865-thermocouple-amplifier-solved/10295/3 "2019-04-17T20:19:29Z")

</div>

It looks to me as that link brings you to a python library that you can use in a python program that you write to access the Max31865.

As for the nodes Max31855 and 31856, you would need to write a wrapper arround them so they would be node-red-contrib-xxxxx and usable in node-red,

---

<div class="post-metadata">

### Author: ![Poodlepapa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/poodlepapa/32/8174_2.png) [@Poodlepapa](https://discourse.nodered.org/u/Poodlepapa)
#### Post date: [18 April 2019 00:50 UTC](https://discourse.nodered.org/t/max31865-thermocouple-amplifier-solved/10295/4 "2019-04-18T00:50:38Z")

</div>

Sorry for being vague. It was not my intention.

I'm running this in a python shell node. Here are the errors. I get 3 each time in inject a time stamp. If this is not sufficient, please let me know what you would like to see and I'm happy to post any necessary data. Thank you again

4/17/2019, 5:46:05 PM[node: f1254f69.96fe68](http://192.168.0.78:1880/#)msg : string[76]

"Traceback (most recent call last):↵ File "", line 282, in ↵"

4/17/2019, 5:46:05 PM[node: f1254f69.96fe68](http://192.168.0.78:1880/#)msg : string[86]

" File "", line 266, in python\_function↵ImportError: No module named max31865↵"

4/17/2019, 5:46:05 PM[node: f1254f69.96fe68](http://192.168.0.78:1880/#)msg : string[42]

"Python Function process exited with code 1"

---

<div class="post-metadata">

### Author: ![Poodlepapa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/poodlepapa/32/8174_2.png) [@Poodlepapa](https://discourse.nodered.org/u/Poodlepapa)
#### Post date: [18 April 2019 03:07 UTC](https://discourse.nodered.org/t/max31865-thermocouple-amplifier-solved/10295/5 "2019-04-18T03:07:04Z")

</div>

believe it or not, you helped me. I figured out how to run the code from the command line, it worked, then I understood how to make the python shell work, give it the path to the python program.

Thank you

---

<div class="post-metadata">

### Author: ![MelvinRook](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/melvinrook/32/18521_2.png) [@MelvinRook](https://discourse.nodered.org/u/MelvinRook)
#### Post date: [18 March 2020 19:48 UTC](https://discourse.nodered.org/t/max31865-thermocouple-amplifier-solved/10295/6 "2020-03-18T19:48:11Z")

</div>

I've created a native Node-RED node for the MAX31865. The node will be published in the official repositories, but here is the development repository: [https://github.com/MelvinRook/node-red-contrib-pi-max31865](https://github.com/MelvinRook/node-red-contrib-pi-max31865)

Perhaps it's still useful for your project. 🙂
