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

    howto read analog input?

    Official EVOK API
    4
    7
    3022
    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
                  • First post
                    Last post