Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
orbitcoms
Normal user
Posts: 28
Joined: 01 Apr 2017, 06:12

Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#1 Post by orbitcoms » 04 Apr 2017, 11:08

I was wondering if there is a plug-in for EasyESP to take readings form MAX31865?

I need a wide range version of temperature node that reads either thermcouple or RTD. The MAX31865 has SPI interface for reading RTD and the MAX31856 has SPI interface for reading Thermocouple.

My project needs temperature to -90 Degrees C.

Alternately, would it be difficult to write a plugin to do this?

Thanks

Regards

Dave

paxi
Normal user
Posts: 121
Joined: 02 Feb 2017, 00:48
Location: Germany

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#2 Post by paxi » 04 Apr 2017, 22:41

Hope you did consider that ESP8266 is only spec'ed down to -40°C. ;)

orbitcoms
Normal user
Posts: 28
Joined: 01 Apr 2017, 06:12

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#3 Post by orbitcoms » 04 Apr 2017, 23:24

I am not putting the ESP into the freezer, only the thermocouple or RTD probe.

I see the playground plugin has a thermocouple plugin but this does not show up in the list available on my device.

What do I need to do to include the thermocouple plugin for my devices?

Thanks

barnie
New user
Posts: 3
Joined: 27 Jul 2017, 10:10

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#4 Post by barnie » 06 Sep 2017, 12:28

Hi,

are there any news?

I've a PT100 and a MAX31865. How could I configure/implement this sensor in espeasy???

Thanks RUDI

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#5 Post by toffel969 » 07 Sep 2017, 21:25

barnie wrote: 06 Sep 2017, 12:28 Hi,

are there any news?

I've a PT100 and a MAX31865. How could I configure/implement this sensor in espeasy???

Thanks RUDI
The pt100 should work as analog
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

orbitcoms
Normal user
Posts: 28
Joined: 01 Apr 2017, 06:12

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#6 Post by orbitcoms » 07 Sep 2017, 23:18

The Analog input cannot be used on its own for PT100 reading. You would also require an excitation current and algorithm for linearisation.

The MAX3185 provides the appropriate interface to the PT100 and allows reading the temperature via SPI. In the end my node needed to do some other stuff so I did not use ESPEasy.

User avatar
Sasch600xt
Normal user
Posts: 164
Joined: 10 Sep 2018, 16:37

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#7 Post by Sasch600xt » 20 Jan 2021, 14:51

4 years later :)

any news ?
Can i use my PT100 on my MAX31865 board with SPI interface in espeasy ?
is there a plugin now ?

Thank you so much and have a great day !
Sascha
"the flat earth society has members all around the globe"

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#8 Post by TD-er » 20 Jan 2021, 14:53

I have a set of them in my drawer of "things to implement in ESPEasy", but sadly that's all I got done so far :(

puls8
New user
Posts: 9
Joined: 29 Feb 2020, 18:22

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#9 Post by puls8 » 08 Feb 2021, 18:21

+1 for the plugin!

Is there another way to measure high temperatures? I want to make a warning system to refill my woodstove. (and may be an auto closeing external air valve)

csigabit
New user
Posts: 1
Joined: 11 Feb 2021, 01:43

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#10 Post by csigabit » 11 Feb 2021, 01:48

https://github.com/csigabit/P039_updated
There's just too many things that You can configure on this IC.
For me it's not worth it to fully write the webconfig for all the fine settings.
Please set the noise filter at least if You live in a 60Hz country!
Hopefully it will be merged to master soon.
Bests!

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#11 Post by Ath » 11 Feb 2021, 09:28

csigabit wrote: 11 Feb 2021, 01:48 https://github.com/csigabit/P039_updated
There's just too many things that You can configure on this IC.
For me it's not worth it to fully write the webconfig for all the fine settings.
Please set the noise filter at least if You live in a 60Hz country!
Hopefully it will be merged to master soon.
Bests!
You seem to have excellent Github skills, you can fork ESPEasy yourself and make a PR for these changes. That's the best way to get it implemented. Feedback will be provided where deemed necessary ;)
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#12 Post by TD-er » 11 Feb 2021, 10:48

I made a quick PR, so I can make a test build.
Sascha is eagerly waiting for one :)

https://github.com/letscontrolit/ESPEasy/pull/3505


chri.kai.in
New user
Posts: 4
Joined: 01 May 2021, 17:58

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#14 Post by chri.kai.in » 01 May 2021, 18:15

Hello,

if interested i started support for MAX31865 in an dedicated local plugin on my machine. I simply miss the know how to transfer it to your GIT repository.
It has proven running with a common MAX 31865 shield ( e.g. Adafruit of similar) and a D1 mini clone using an PT100 sensor.

It supports PT100, PT1000 with adjustable reference resistor value, switching 2-/4 wire connection, and an adjustable float offeset value to finetune temperature display.

I am currently starting to implement as well support for TI LM7x and TMP12x devices (experimental, untested).

If you tell me how to achieve a local mirror of GIT and how and where to put the plugin (and with which number and status) i will provide it.

Best Regards
chr.kai.in
Attachments
2021-05-01 18_30_26-ESPRTD.png
2021-05-01 18_30_26-ESPRTD.png (27.11 KiB) Viewed 9623 times
2021-05-01 18_29_13-Clipboard.png
2021-05-01 18_29_13-Clipboard.png (54.52 KiB) Viewed 9623 times

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#15 Post by TD-er » 01 May 2021, 20:54

For starters you can also attach the source of your file to a post here.

Especially if you start exploring Git, it is always best to keep a copy of your current files in a ZIP file somewhere.

We do get the questions on how to start with Git a lot, so I guess it is best to make an extensive tutorial for it, instead of repeating it in detail in a lot of posts which is hard to ever find back.

In short (so you can already have a look yourself):
- Fork the letscontrolit/ESPEasy repository on GitHub to your own GitHub account. (to be done on the Github page)
- Clone your own fork to your local hard drive using Git (I use GitKraken as GUI tool, but some like command line Git, or other UI Git tools)
- Create a branch on your local cloned repository, with a descriptive name of what you try to make. (and checkout the new branch, some Git tools do this automatically, some require explicit checkout)
- Start coding (or extract your code changes from the ZIP you created)
- Make a commit using Git on the branch you created, including a descriptive label.
- Push your commit (from your clone to your own fork on GitHub)
- Move to the letscontrolit/ESPEasy GitHub page and click on the "Pull Requests" tab. => A beige/Yellow bar will occur (after you pushed your commit(s)) suggesting to create a pull request.
- Click the button to create a pull request and inspect your changes (should include only the file(s) you changed)

Every new commit you add and push to this branch will be included in the pull request (PR), until it is merged.
A PR is a request to merge your branch into another repository/branch.

If you like to work on other features/bugfixes etc. while the PR has not yet been merged, you can create a new branch on the 'mega' branch and start working on there.

That's Git-in-a-Nutshell and if you never heard of the terms, it is probably a bit overwhelming.
But if you're already familiar with some kind of version control system, you already have quite some terms you can look for and make it work... until I have found time to make a proper tutorial on Git.

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#16 Post by Ath » 01 May 2021, 21:26

You might want to include in your tutorial to add the remote upstream, so pulling updates from the main (mega) repo is as easy as pie ;)
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#17 Post by TD-er » 01 May 2021, 21:30

Yep, just like "cherry pick", "stash" and "pop", but I tried to include right now only the really needed terms :)

chri.kai.in
New user
Posts: 4
Joined: 01 May 2021, 17:58

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#18 Post by chri.kai.in » 02 May 2021, 22:51

Hello TD-er,

thank you for the detailed guide to start contributing. For the beginning i will start with the *.zip file of plugin P250 to allow you or one of the experienced contributers to incorporate the solution to ESP Easy project.

In parallel i will start to learn working in GitHub (following your quick guide), to be able to contribute with further works on TI LM7x and TMP12x temperature modules.

Looking forward to giving someting back to the community that provided me with such helpful ESP firmware.

Best Regards
chri.kai.in
Attachments
_P250_ResistorTemperatureDetectors.zip
(7 KiB) Downloaded 213 times

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#19 Post by TD-er » 03 May 2021, 00:19

Took a quick look an it looks like it is highly inspired on the P039_thermocouple.ino, but as a quick test I copied it here over that plugin file to see a diff and it is quite a bit more elaborate.

Maybe we can rename it to a plugin number following the first free plugin ID in the 'mega' branch.

@Ath: do you have any pending new plugins? What would be the first free plugin ID?

chri.kai.in
New user
Posts: 4
Joined: 01 May 2021, 17:58

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#20 Post by chri.kai.in » 03 May 2021, 01:17

Hello,

thanks to your quite detailed crash course a pull request for the plugin has been added to the queue.

[EDIT] Yes, renumbering would have been as well one of my first questions - but i was uncertain which number would have been available.

Hope this turn out to be helpful for someone...

Best Regards
chri.kai.in

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#21 Post by TD-er » 03 May 2021, 01:47

As I already wrote on the PR you made, tomorrow we can give you a plugin ID, so you may test your new Git skills :)

Max Meyer
New user
Posts: 4
Joined: 14 Mar 2021, 16:54

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#22 Post by Max Meyer » 27 May 2021, 14:08

Hi guys,

this plugin is exactly what I was looking for. Is there a chance, that it will be in the next (pre)release or nightly build?
I`m not able to compile it by myself.

Kind regards
Max

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#23 Post by TD-er » 27 May 2021, 17:12

That's for sure as it is implemented and merged.
See: https://github.com/letscontrolit/ESPEasy/pull/3621

Max Meyer
New user
Posts: 4
Joined: 14 Mar 2021, 16:54

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#24 Post by Max Meyer » 28 May 2021, 08:34

Many many thanks!!!

chri.kai.in
New user
Posts: 4
Joined: 01 May 2021, 17:58

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#25 Post by chri.kai.in » 06 Jun 2021, 19:02

Hello Max Meyer,

you are welcome - I am happy to hear others are looking forward to use the updated plugin !

The existing thermocouple plugin already provided a very good foundation for my updates. My big Thank You goes out to TD-er and Ton Huisman for their review support on the realization so far - it helped a lot. The plugin will carry the name "Thermosensors" to reflect the enhanced set of adapter shields supported and provides thermocouple and resistor based thermosensor support.

There are still some maintainability related updates to be done in the code and i plan to finally provide as well the cold junction temperature as a 2nd variable for thermocouple sensors. This would help with unsupported thermocouple devices (external algorithms) and help for TC sensor mounting debugging (-> cold junction temperature out of range).

Still TI devices (LM7x family and TMP12x device family) are planned for the future and basic set of communication is prepared, but i doubt you will get correct values when communicating with those devices - i simply lack hardware for testing at the moment. Anyhow, i found those small, capable devices interesting for future usage.


In my set up, i plan to use the MAX31865 support for decentralized temperature supervision with PT100 sensors, D1 mini pro and 0,66'' or 0,95'' display running on a 2000mAh Li-Ion rechargeable battery or 5V micro USB power supply. Those satellites are forwarding the measured data and their charging status to a mosquitto MQTT server and a node red instance running on a raspberry pi.

Planned to be a mobile temperature measurement setup for multiple channels, with high flexibility of mounting and power supply. The Node Red Instance provides easy to use dashboard capability and web GUI for remote access.

The second cable gland on my housing is planned for micro USB power & programming cable, allowing later charging and re-programming without the need of opening.

Best Regards
Christoph

1622996836620_small.jpg
1622996836620_small.jpg (204.15 KiB) Viewed 8776 times

Co_Cath
New user
Posts: 1
Joined: 14 Jun 2021, 16:16

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#26 Post by Co_Cath » 14 Jun 2021, 16:24

Hello,

After a lot of research on how the MAX31865 and ESP easy cards work, I came across this forum page. (You have done a remarkable job). I saw that there was a version of ESP easy with support for these cards but I don't have the knowledge to build the bin file. Is there a built version?
I couldn't find it on git, even here: https://github.com/letscontrolit/ESPEasy/pull/3621.

I hope I'm not bothering you too much... It's for a university project.

Thank you very much :)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#27 Post by TD-er » 14 Jun 2021, 17:14

What build do you need?

Patou
Normal user
Posts: 106
Joined: 21 May 2018, 10:33

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#28 Post by Patou » 05 Dec 2022, 21:10

Hello friends,
Simple question :
Is this plugin supporting multiple Max 31865 board ?
If yes, how to address them ?
Thanks in advance
Patrick

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#29 Post by Ath » 05 Dec 2022, 21:36

The boards use the SPI bus, that can handle multiple devices in parallel (MISO/MOSI/CLK), they just need a separate CS pin each. And you might need to check the power they need from the 3.3V bus. When powering from the ESP, the LDO might not have enough capacity to power multiple of these boards and also the ESP to deliver a stable enough power for the ESP, causing all kinds of strange behavior. A separate 3.3V power source for the MAX31856 boards should then be used. GND is still shared with the GND on both power supply and ESP side though.
So, depending on the type of ESP: ESP8266 or ESP32, a few or several of these boards can be used simultaneously.
/Ton (PayPal.me)

Patou
Normal user
Posts: 106
Joined: 21 May 2018, 10:33

Re: Plug-in for MAX31865 RTD or MAX31856 Thermocouple IC?

#30 Post by Patou » 05 Dec 2022, 22:21

Hello
Thanks for your super fast reaction.
I will try this soon
Patrick

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 23 guests