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

    How to control relay extension board via EVOK?

    Official EVOK API
    1
    2
    86
    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
        • First post
          Last post