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

    Direct Switch - setup example (without Mervis)

    Official EVOK API
    2
    4
    3237
    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.
    • D
      devmicha last edited by

      I have a question related to Direct Switch function for UniPi (neuron) - how to setup it for simple input/output pair - DI 3.11 and RO 3.11 for example ? I need function toogle and I don't want to use Mervis.
      It's important to do that, because this method is very fast and I use it for switching light on/off using wall switch and delay will be very small.
      Operating system: Raspbian Jessie. I installed neuron tcp modbus overlay from"https://github.com/UniPiTechnology/neuron_tcp_modbus_overlay , but it's not clear how to configure it for simple example - eg input DI 3.11, output RO 3.11, function toogle.
      Regards,
      MP

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

        @devmicha If you have the TCP MOdbus working, than just get the Modbus Registers map from https://files.unipi.technology/s/public - Products - Neuron - Maps and and seach for register "Enable Direct Switch function" and "Enable DS toggle function" and set the bit of the DI you wish to enable the fuction to 1 in both registers.

        OR

        Get the latest evok: https://github.com/UniPiTechnology/evok#installation-process-for-the-20-evok-version and enable it via the web UI :)

        1 Reply Last reply Reply Quote 1
        • D
          devmicha last edited by

          Thank you, I tested new version of Evok (with Raspbian Jessie) and it works great. Direct Switch works very good for any input/output.
          I have additional question: is it possible to control 4 lights/4 relays using 1 button/1 Digital Input (or more, eg 4 inputs/4 buttons) with Direct Switch method (function toggle)? I want to control the same 4 lights using 4 different buttons (in different places in the room), so each button will turn on/off all the lights in the room. (**when we press any of 4 buttons than 4 lights will go on or off)

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

            @devmicha Its only possible to control one RO/DO with one DI with the same number using the DirectSwitch function. If you want to do 1Di to more Do/Ro, than you have to make some program which will take care of it. Or also just do it in the cables :)

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