Change parameters in thermistor
-
Hi
I just want to say that I'm totally new on this so my question might be stupid. However I have looked for a z-wave thermometer for my smoker, barbecue but I haven't found one, then I discovered this "mysensors" and "nodemanager" and start reading about it. I have several meat probes at home, the probes are actually simple thermistors and I thought maybe this could be a solution. I bought some stuff from China and start a little project. As I don't know anything about coding or programming I was glad to find nodemanager. I measured the reference resistance on the probe at 25 degrees (100k) and also measured the resistance at some other temperatures to get the B-coffistence (4169).
I hooked up a simple test project on my board and put in the following code:nodeManager.setSleep(SLEEP,1,MINUTES);
int temp = nodeManager.registerSensor(SENSOR_THERMISTOR,A2);
SensorThermistor* tempSensor = ((SensorThermistor*)nodeManager.getSensor(temp));
tempSensor->setNominalResistor(100000);
tempSensor->setNominalTemperature(25);
tempSensor->setBCoefficient(4169);
tempSensor->setSeriesResistor(100000);The sketch uploads to the ardruino and delivers a temperature but I don't think it considers the changes I try to implement, whatever values I put in I get the same result. Can anyone help me with this?
Thanks in advance!
-
What I understand from the Nodemanager documentation the standard values are:
""// resistance at 25 degrees C (default: 10000)
void setNominalResistor(long value);
// temperature for nominal resistance (default: 25)
void setNominalTemperature(int value);
// The beta coefficient of the thermistor (default: 3950)
void setBCoefficient(int value);
// the value of the resistor in series with the thermistor (default: 10000)
void setSeriesResistor(long value);
// set a temperature offset
void setOffset(float value);""But since i use a different thermistor I want to change them to values I'm using
-
Hi, @Getz99 sorry for the delay. Your understanding about those functions is correct, they are there exactly for customizing those parameters. Your code looks correct as well. If I look at the source code (https://github.com/mysensors/NodeManager/blob/master/NodeManager.cpp#L455) looks like the values set through those functions are actually used and when I did test them, I got coherent results. May you try running some tests by changing one value per time so to understand if the temperature will be always the same? Thanks!
-
Hi, @Getz99 sorry for the delay. Your understanding about those functions is correct, they are there exactly for customizing those parameters. Your code looks correct as well. If I look at the source code (https://github.com/mysensors/NodeManager/blob/master/NodeManager.cpp#L455) looks like the values set through those functions are actually used and when I did test them, I got coherent results. May you try running some tests by changing one value per time so to understand if the temperature will be always the same? Thanks!
Hi @user2684 thanks a lot for your reply! I started to put in different values first for the Beta-c, nothing happened. Then I tried to change the value of the resistance of the probe, noting happened but when changing the reference resistance then I got a change. I started to measure and I found that the 2,5mm female connection (bought from China) for the probe was extremely high resistance so I soldered the probe connections directly to the board and now it works!!! Sorry for taking your time but I must say that nodemanager is amazing! I have no kompetente or skills in electronics or programming and still I got this to work (with a little help from you)! Now I just have to solder everyiting togheter and put in a box and start using it! I will follow the development and for sure do more projects using Node Manager!
Thanks again for for taking your time!
-
Hi @user2684 thanks a lot for your reply! I started to put in different values first for the Beta-c, nothing happened. Then I tried to change the value of the resistance of the probe, noting happened but when changing the reference resistance then I got a change. I started to measure and I found that the 2,5mm female connection (bought from China) for the probe was extremely high resistance so I soldered the probe connections directly to the board and now it works!!! Sorry for taking your time but I must say that nodemanager is amazing! I have no kompetente or skills in electronics or programming and still I got this to work (with a little help from you)! Now I just have to solder everyiting togheter and put in a box and start using it! I will follow the development and for sure do more projects using Node Manager!
Thanks again for for taking your time!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login