1-Wire Thermocouple MAX31850 !!SOLVED!!
Moderator: leecollings
-
- Posts: 13
- Joined: Monday 31 August 2015 14:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
1-Wire Thermocouple MAX31850 !!SOLVED!!
Hello, I recently installed Domoticz on my RPI2, working great.
The next feature I wanted to add was to monitor 2 K-type thermocouples in my wood fired pizza oven.
I aquired some MAX31850, these are 1 wire thermocouple amplifiers. Wired them up togehter with a DSB12b20 for ambient temperature.
all sensor are working fine and I can see the values in the console, for instance here is temperature readout of a MAX31850:
pi@raspberrypi /sys/bus/w1/devices/3b-000000191a18 $ cat w1_slave
fd 7f 81 1b f0 ff ff ff 0c : crc=0c YES
fd 7f 81 1b f0 ff ff ff 0c t=2047812
Unfortunately Domoticz does not recognize the MAX31850 as device. It only finds the DS12B20. even if I add another 1-Wire under hardware it only displays the DS12B20..
Below are devices: 1 DS12B20 and 2 MAX31850
pi@raspberrypi /sys/bus/w1/devices $ ls
28-000006dc7fe7 3b-000000191a18 3b-000000191dab w1_bus_master1
Is there a way I can make the MAX31850 also work?
I think it will become a popular piece of equipment as these exist in almost any thermocouple type. also they are in my opinion much better than the MAX31855 which is SPI cannot be stacked.
The next feature I wanted to add was to monitor 2 K-type thermocouples in my wood fired pizza oven.
I aquired some MAX31850, these are 1 wire thermocouple amplifiers. Wired them up togehter with a DSB12b20 for ambient temperature.
all sensor are working fine and I can see the values in the console, for instance here is temperature readout of a MAX31850:
pi@raspberrypi /sys/bus/w1/devices/3b-000000191a18 $ cat w1_slave
fd 7f 81 1b f0 ff ff ff 0c : crc=0c YES
fd 7f 81 1b f0 ff ff ff 0c t=2047812
Unfortunately Domoticz does not recognize the MAX31850 as device. It only finds the DS12B20. even if I add another 1-Wire under hardware it only displays the DS12B20..
Below are devices: 1 DS12B20 and 2 MAX31850
pi@raspberrypi /sys/bus/w1/devices $ ls
28-000006dc7fe7 3b-000000191a18 3b-000000191dab w1_bus_master1
Is there a way I can make the MAX31850 also work?
I think it will become a popular piece of equipment as these exist in almost any thermocouple type. also they are in my opinion much better than the MAX31855 which is SPI cannot be stacked.
Last edited by Rub87 on Thursday 11 February 2021 10:28, edited 1 time in total.
-
- Posts: 40
- Joined: Monday 12 August 2013 11:15
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.x
- Location: Finland
- Contact:
Re: 1-Wire Thermocouple MAX31850
One workaround could be using FooGadget's wireless multi sensor http://foogadgets.tictail.com/. It should support MAX31850 and many other 1Wires too. If you don't mind to go wireless, that is.
-
- Posts: 13
- Joined: Monday 31 August 2015 14:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: 1-Wire Thermocouple MAX31850
That would be my last resort, but if nothing else works..
I think in the Domoticz code something has to be changed so that it also looks for other than 28-xxxxxxx devices. unfortunately I am not a programmer
I think in the Domoticz code something has to be changed so that it also looks for other than 28-xxxxxxx devices. unfortunately I am not a programmer

-
- Posts: 13
- Joined: Monday 31 August 2015 14:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: 1-Wire Thermocouple MAX31850
http://owfs.org/index.php?page=ds1825
it seems OWFS has support for this, now I need to find out what it is and how I can use to work with domoticz
edit:
I found out after half a day of reading what OWFS is and how to install it. I made a fresh install with the Domoticz image as described in the wiki. then I installed OWFS. Now it seems that Domoticz is still using the Kernel instead of OWFS. does anyone know how I can tell Domoticz to use OWFS and not Kernel?
it seems OWFS has support for this, now I need to find out what it is and how I can use to work with domoticz
edit:
I found out after half a day of reading what OWFS is and how to install it. I made a fresh install with the Domoticz image as described in the wiki. then I installed OWFS. Now it seems that Domoticz is still using the Kernel instead of OWFS. does anyone know how I can tell Domoticz to use OWFS and not Kernel?
Code: Select all
2015-09-09 23:08:40.192 Domoticz V2.2563 (c)2012-2015 GizMoCuz
2015-09-09 23:08:40.193 System: Raspberry Pi
2015-09-09 23:08:40.193 Startup Path: /home/pi/domoticz/
2015-09-09 23:08:40.639 Sunrise: 07:06:00 SunSet:20:08:00
2015-09-09 23:08:40.769 1-Wire support available (By Kernel)...
2015-09-09 23:08:40.770 1-Wire: Using Kernel...
2015-09-09 23:08:40.770 1Wire: Added Device: 28-000006dc7fe7
2015-09-09 23:08:40.770 Error: 1Wire: Device not yet supported in Kernel mode (Please report!) ID:3b-000000191a18, family: 3B
2015-09-09 23:08:40.770 Error: 1Wire: Device not yet supported in Kernel mode (Please report!) ID:3b-000000191dab, family: 3B
2015-09-09 23:08:40.805 Active notification subsystems: (0/8)
2015-09-09 23:08:40.952 Webserver started on port: 8080
2015-09-09 23:08:42.155 Webserver started on port: 443
2015-09-09 23:08:44.979 OpenZWave: Starting...
2015-09-09 23:08:44.980 OpenZWave: Version: 1.3-293-ga4ea66b-dirty
-
- Posts: 13
- Joined: Monday 31 August 2015 14:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: 1-Wire Thermocouple MAX31850
After some more investigation, OWFS only works with USB --> I2C stick. which I dont have :/
Does someone know if I modify the file 1WireByKernel.cpp as found on https://github.com/domoticz/domoticz/tr ... ware/1Wire , how I could replace it in the pi? I tried to find it with sudo find / -name "*1Wire*" but it seems not to be there somewhere, I dont think it can be too hard to modify, as the output of the MAX31850 is very similarr as the output of a DS12B20..
Does someone know if I modify the file 1WireByKernel.cpp as found on https://github.com/domoticz/domoticz/tr ... ware/1Wire , how I could replace it in the pi? I tried to find it with sudo find / -name "*1Wire*" but it seems not to be there somewhere, I dont think it can be too hard to modify, as the output of the MAX31850 is very similarr as the output of a DS12B20..
-
- Posts: 13
- Joined: Monday 31 August 2015 14:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: 1-Wire Thermocouple MAX31850
No one?
-
- Posts: 3
- Joined: Tuesday 28 July 2015 9:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Lappeenranta, Finland
- Contact:
Re: 1-Wire Thermocouple MAX31850
Still any luck with max31850?
-
- Posts: 13
- Joined: Monday 31 August 2015 14:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: 1-Wire Thermocouple MAX31850
Nope, I dont have the skills nor time to find out myself how to get into the files inside the linux thing where the 1-wire thing is coded. if I could just replace the files with modified like on a windows pc it would be quite easy to copy paste 99% of the ds12b20 code and change only some minor things to make it work.
-
- Posts: 13
- Joined: Monday 31 August 2015 14:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: 1-Wire Thermocouple MAX31850
No one? I can pay someone a few bucks if neccesary to add the MAX31850. I think for someone with minor coding skills it will be really easy as it really the same output as DS12B20..
-
- Posts: 13
- Joined: Monday 31 August 2015 14:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: 1-Wire Thermocouple MAX31850
More then 4 years .. could please someone code that it would also allow family 3B-xxx also and not only 28-xxx
thanks!!
thanks!!
- gizmocuz
- Posts: 2492
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: 1-Wire Thermocouple MAX31850
In 4 years time, you should be able to build up a very good c++ coding skill. *g*
I have send you a email, let's see if we can get this supported
I have send you a email, let's see if we can get this supported
Quality outlives Quantity!
-
- Posts: 13
- Joined: Monday 31 August 2015 14:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: 1-Wire Thermocouple MAX31850
I have built a lot of skills but not c++ coding 
I think it could be as easy to search in the code the "Error: 1Wire: Device not yet supported in Kernel mode (Please report!)" and add the 3B to allowed device families. but yes I dont know in which file to do that, and if it is even possible without the need to recompile it..

I think it could be as easy to search in the code the "Error: 1Wire: Device not yet supported in Kernel mode (Please report!)" and add the 3B to allowed device families. but yes I dont know in which file to do that, and if it is even possible without the need to recompile it..
-
- Posts: 13
- Joined: Monday 31 August 2015 14:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: 1-Wire Thermocouple MAX31850
Working now in build 12922 .. THANKS!!!
Who is online
Users browsing this forum: No registered users and 1 guest