Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. how to write PID control algorithm to control temperature
Forum Updated to NodeBB v4.3 + New Features

how to write PID control algorithm to control temperature

Scheduled Pinned Locked Moved Solved C++ Gurus
9 Posts 4 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.
  • _bhum_ Offline
    _bhum_ Offline
    _bhum
    wrote on last edited by
    #1

    i am working on project which is monitoring and controlling the temperature and humidity inside a chamber using raspberry pi and HTU21D sensor. i am very new on qt please help me coding.

    K 1 Reply Last reply
    0
    • _bhum_ _bhum

      i am working on project which is monitoring and controlling the temperature and humidity inside a chamber using raspberry pi and HTU21D sensor. i am very new on qt please help me coding.

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @_bhum

      Hi and welcome to devnet forum

      You need to cross-compile Qt libraries for raspberry pi https://www.raspberrypi.org/forums/viewtopic.php?t=204778 or to find an already compiled version. However, I would recommend to do the cross-compilation yourself, because you willknow what you have done when running into issues.

      Furthermore, it is a good recommendation to install Qt creator and Qt libs on a desktop.

      When you are stuck with specific Qt issues, there are a lot of people in the forum being to offer advice and assistance.

      Vote the answer(s) that helped you to solve your issue(s)

      _bhum_ 1 Reply Last reply
      0
      • K koahnig

        @_bhum

        Hi and welcome to devnet forum

        You need to cross-compile Qt libraries for raspberry pi https://www.raspberrypi.org/forums/viewtopic.php?t=204778 or to find an already compiled version. However, I would recommend to do the cross-compilation yourself, because you willknow what you have done when running into issues.

        Furthermore, it is a good recommendation to install Qt creator and Qt libs on a desktop.

        When you are stuck with specific Qt issues, there are a lot of people in the forum being to offer advice and assistance.

        _bhum_ Offline
        _bhum_ Offline
        _bhum
        wrote on last edited by
        #3

        @koahnig Thanks. but the problem is that i dont know how to implement a controller algorithm on qt

        JKSHJ Pablo J. RoginaP 2 Replies Last reply
        0
        • _bhum_ _bhum

          @koahnig Thanks. but the problem is that i dont know how to implement a controller algorithm on qt

          JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          @_bhum said in how to write PID control algorithm to control temperature:

          the problem is that i dont know how to implement a controller algorithm on qt

          It's the same way you implement a controller algorithm in C/C++.

          Do you know how to do that?

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          5
          • _bhum_ _bhum

            @koahnig Thanks. but the problem is that i dont know how to implement a controller algorithm on qt

            Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by
            #5

            @_bhum said in how to write PID control algorithm to control temperature:

            i dont know how to implement a controller algorithm on qt

            so questions you may ask yourself:

            1. Why I'm gonna use Qt to implement a PID control algorithm?
            2. Am I able to implement a PID control algorithm with C++?

            If answer to #2 is yes, then it implies #1 yes.

            What I see here is that you'll be using Qt to make a fancy UI to let the user know about the status of the chamber under control, so he/she can set thresholds for temperature and humidity with nice UI controls/displays.

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            _bhum_ 1 Reply Last reply
            1
            • Pablo J. RoginaP Pablo J. Rogina

              @_bhum said in how to write PID control algorithm to control temperature:

              i dont know how to implement a controller algorithm on qt

              so questions you may ask yourself:

              1. Why I'm gonna use Qt to implement a PID control algorithm?
              2. Am I able to implement a PID control algorithm with C++?

              If answer to #2 is yes, then it implies #1 yes.

              What I see here is that you'll be using Qt to make a fancy UI to let the user know about the status of the chamber under control, so he/she can set thresholds for temperature and humidity with nice UI controls/displays.

              _bhum_ Offline
              _bhum_ Offline
              _bhum
              wrote on last edited by
              #6

              @Pablo-J.-Rogina said in how to write PID control algorithm to control temperature:

              @_bhum said in how to write PID control algorithm to control temperature:

              i dont know how to implement a controller algorithm on qt

              so questions you may ask yourself:

              1. Why I'm gonna use Qt to implement a PID control algorithm?
              2. Am I able to implement a PID control algorithm with C++?

              If answer to #2 is yes, then it implies #1 yes.

              What I see here is that you'll be using Qt to make a fancy UI to let the user know about the status of the chamber under control, so he/she can set thresholds for temperature and humidity with nice UI controls/displays.

              Thanks for your reply, by keeping the above questions in mind I've started coding.

              1 Reply Last reply
              0
              • _bhum_ Offline
                _bhum_ Offline
                _bhum
                wrote on last edited by
                #7

                how i execute my program on raspi terminal????

                K Pablo J. RoginaP 2 Replies Last reply
                0
                • _bhum_ _bhum

                  how i execute my program on raspi terminal????

                  K Offline
                  K Offline
                  koahnig
                  wrote on last edited by
                  #8

                  @_bhum

                  You need to use a terminal program such as putty on your desktop. For details on how check out the raspberry pi webpage.

                  Vote the answer(s) that helped you to solve your issue(s)

                  1 Reply Last reply
                  1
                  • _bhum_ _bhum

                    how i execute my program on raspi terminal????

                    Pablo J. RoginaP Offline
                    Pablo J. RoginaP Offline
                    Pablo J. Rogina
                    wrote on last edited by
                    #9

                    @_bhum said in how to write PID control algorithm to control temperature:

                    how i execute my program on raspi terminal????

                    do you know how to run a program in a Linux terminal?

                    Upvote the answer(s) that helped you solve the issue
                    Use "Topic Tools" button to mark your post as Solved
                    Add screenshots via postimage.org
                    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                    1 Reply Last reply
                    1

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved