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

    How to control relay extension board via EVOK?

    Scheduled Pinned Locked Moved Official API - Evok
    2 Posts 1 Posters 843 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.
    • M
      mglowinski
      last edited by mglowinski

      Hi,
      I've bought UniPi 1.1 and extension board with relays.

      How i can control this extension board relays via EVOK API?

      1 Reply Last reply
      Reply Quote 0
      • M
        mglowinski
        last edited by mglowinski

        To make extension relay module (EMO-R8) working with EVOK below steps needs to be done:

        1. Open /etc/evok.conf file
        2. Uncomment relays assigned to EMO-R8:

        Each this line begins with a character ;
        This character must be removed for all lines related to the configuration for EMO-R8:

        ;
        ;Example of 8xRelay extension module addon (EMO-R8) on address 0x21
        ;
        
        [MCP_2]
        i2cbus = 1
        address = 0x21
        
        [RELAY_9]
        mcp = 2
        pin = 7
        
        [RELAY_10]
        mcp = 2
        pin = 6
        
        [RELAY_11]
        mcp = 2
        pin = 5
        
        [RELAY_12]
        mcp = 2
        pin = 4
        
        [RELAY_13]
        mcp = 2
        pin = 3
        
        [RELAY_14]
        mcp = 2
        pin = 2
        
        [RELAY_15]
        mcp = 2
        pin = 1
        
        [RELAY_16]
        mcp = 2
        pin = 0
        
        1. Save /etc/evok.conf file
        2. Restart evok
        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