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

    Direct Switch - setup example (without Mervis)

    Scheduled Pinned Locked Moved Evok API
    4 Posts 2 Posters 4.2k 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.
    • 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

            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