• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    howto read analog input?

    Scheduled Pinned Locked Moved Official API - Evok
    7 Posts 4 Posters 4.6k Views
    Loading More Posts
    • 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.
    • J
      jens
      last edited by

      Now my next challenges is to connect a PT500 to analog input of unipi and read the value.

      Tried this function but it does not work

      var status = JSON.parse(msg.payload);
      var newMsg = {};

      if (status.dev == "ai" && circuit == 1 )
      {
      newMsg.payload = status.value;
      return newMsg;
      }

      T 1 Reply Last reply
      Reply Quote 0
      • T
        tomas_hora administrators @jens
        last edited by tomas_hora

        @jens UniPi 1.1 has only 0-10V analog input.. It does not support to read resistance sensors.

        1 Reply Last reply
        Reply Quote 0
        • I
          Iogo
          last edited by

          And is the case with Neuron also? To read for example PT1000 you need a voltage divider?

          1 Reply Last reply
          Reply Quote 0
          • T
            TomasKnot
            last edited by

            Neuron has the ability to read resistance natively.

            1 Reply Last reply
            Reply Quote 0
            • I
              Iogo
              last edited by

              Are there any examples of this, i tried briefly and only got values with pt1000 which made no sense. Connection directly to AI - GND and then make channel and convert resistance to temperature, anything else?

              T 1 Reply Last reply
              Reply Quote 0
              • T
                tomas_hora administrators @Iogo
                last edited by

                @Iogo Check the documentation. You can enable resistance reading on Analog Output of Group 1 (chapter Measuring resistance on AO1 - you do not need to do the calculations, evok will do that for you, you just have to se it to resistance mode) or any analog input of other groups (including xS units).

                1 Reply Last reply
                Reply Quote 0
                • I
                  Iogo
                  last edited by

                  Ok, wrong subforum. Will post on other, concerning mervis.

                  1 Reply Last reply
                  Reply Quote 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
                  • First post
                    Last post