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

    Unipi 1

    UniPi 1 - HW Q&A
    2
    8
    2784
    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.
    • K
      kurt last edited by

      Hello,

      I use a raspberry and module Unipi 1.
      How can i control the relay in a C# project (visual studio)?

      Thanks.
      Regards.

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

        @kurt I recommend using one of the APIs available via https://github.com/UniPiTechnology/evok eg a simple HTTP request, RPC or websocket.

        You can also write your own application to interface the I2C and GPIOs of RPi directly, but you have to find out how to do it yourself from the documentation and sources of evok and other online resources.

        1 Reply Last reply Reply Quote 0
        • K
          kurt last edited by

          Hello,

          Thanks for the solution.
          Do i need to install something on the raspberry?
          I use IOT, but i have now connection with the card.

          Regards.

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

            @kurt Do you mean you have Windows IOT on the RPi? Than you need to code the GPIO and I2C interface because evok is only for linux

            1 Reply Last reply Reply Quote 0
            • K
              kurt last edited by kurt

              Thx .
              Yes i use Windows IOT .
              I try to read I01GPIO04 Digital Input. I think pin7.
              But now result.
              I use Windows.Devices.Gpio with c#.

              It is the first time i use this and the card.

              Regards.

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

                @kurt You should also setup PULL_UP transistor by the SW before

                K 1 Reply Last reply Reply Quote 0
                • K
                  kurt @tomas_hora last edited by

                  @tomas_hora Thanks for the replay. what do you mean exactly with this PULL_UP transistor by the SW before?
                  It is very new form me the module.
                  I need to make 10 projects with the module.

                  Thanks.

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

                    @kurt That you have to enable pull-up resistors for each GPIO that is connected to Digital Input in order to be able to read the status of digital inputs... btw check https://forum.unipi.technology/topic/54/windows-10-iot

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post