Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. NodeManager
  4. Change parameters in thermistor

Change parameters in thermistor

Scheduled Pinned Locked Moved NodeManager
8 Posts 3 Posters 3.2k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Getz99
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      What changes are you referring to?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Getz99
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #4

          Only @user2684 can answer that 😀

          G 1 Reply Last reply
          0
          • gohanG gohan

            Only @user2684 can answer that 😀

            G Offline
            G Offline
            Getz99
            wrote on last edited by
            #5

            @gohan OK, thanks!

            U 1 Reply Last reply
            0
            • G Getz99

              @gohan OK, thanks!

              U Offline
              U Offline
              user2684
              Contest Winner
              wrote on last edited by
              #6

              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!

              G 1 Reply Last reply
              0
              • U user2684

                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!

                G Offline
                G Offline
                Getz99
                wrote on last edited by
                #7

                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!

                U 1 Reply Last reply
                0
                • G Getz99

                  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!

                  U Offline
                  U Offline
                  user2684
                  Contest Winner
                  wrote on last edited by
                  #8

                  @Getz99 cool, and don't worry, this is good use of the time, ensuring something which is supposed to work actually works is worth of any effort :)

                  1 Reply Last reply
                  0

                  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
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  16

                  Online

                  12.0k

                  Users

                  11.2k

                  Topics

                  113.4k

                  Posts


                  Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • MySensors
                  • OpenHardware.io
                  • Categories
                  • Recent
                  • Tags
                  • Popular