Inputs 13&14



  • Hi,

    How do I access Inputs 13 and 14 through evok?
    The leds for the two inputs light up when active. Not sure if I have to solder anything to connect them up to the header.

    Do I have to add something to the configuration file?

    Any help appreciated.

    Kind regards,

    Matt



  • Hi,

    How do I access Inputs 13 and 14 through evok?
    The leds for the two inputs light up when active. Not sure if I have to solder anything to connect them up to the header.

    Do I have to add something to the configuration file?

    Any help appreciated.

    Kind regards,

    Matt





  • Hi, i have a problmen with the Inputs too.

    i connet the 2 pins on the header 5 with the GPIOs and chance the "/home/pi/evok/etc/evok.conf" but the web ui dont found (not listet) the Input 13 and 14 .

    evok.conf :

    [DI_1]
    gpiobus = 1
    pin=4
    debounce = 0
    #Enable counting on rising/falling edge or disable it
    #By default(or parameter not present) this function is disabled
    #Can be turned on on all on-board digital inputs (not inputs on 1Wire or other extensions)
    #counter_mode = rising
    #counter_mode = falling
    #counter_mode = disabled
    
    [DI_2]
    gpiobus = 1
    pin=17
    debounce = 0
    
    [DI_3]
    gpiobus = 1
    pin=27
    debounce = 0
    
    [DI_4]
    gpiobus = 1
    pin=23
    debounce = 0
    
    [DI_5]
    gpiobus = 1
    pin=22
    debounce = 0
    
    [DI_6]
    gpiobus = 1
    pin=24
    debounce = 0
    
    [DI_7]
    gpiobus = 1
    pin=11
    debounce = 0
    
    [DI_8]
    gpiobus = 1
    pin=7
    debounce = 0
    
    [DI_9]
    gpiobus = 1
    pin=8
    debounce = 0
    
    [DI_10]
    gpiobus = 1
    pin=9
    debounce = 0
    
    [DI_11]
    gpiobus = 1
    pin=25
    debounce = 0
    
    [DI_12]
    gpiobus = 1
    pin=10
    debounce = 0
    
    [DI_13]
    gpiobus = 1
    pin=28
    debounce = 0
    
    [DI_14]
    gpiobus = 1
    pin=29
    debounce = 0
    
    ;
    
    

    Can you help me ?



  • The conf file that you should change is evok/etc/evok.conf not the one in /home/…



  • Hi,
    i mean its the same file.

    command:
    sudo nano evok/etc/evok.conf The values are the same.

    But it dont work.



  • Sorry it should be sudo nano /etc/evok.conf



  • I found the file and I change it, but it dont work



  • And did you restart the service after changing the file? sudo service evok restart?



  • Yes, i have it.

    Now i have reinstall evok (sudo ./install-evok.sh), but i have the same problem. I have check the /etc/evok.conf but it doesnt work.



  • At the end of istallation it chcecks if the config file exists or not and it will do what you choose if to keep the old file or not. Also remember to restart the service…



  • Yes, the config work. I can change the web port. But i cant activate the DI 13 14. The web Ui dont show the DI .

    Is my config correct ?

    #!! don't use # for inline comments
    
    [MAIN]
    webname = unipi
    staticfiles = /var/www/evok
    ;password = test
    ;rpcpassword = test
    secret = ut5kB3hhf6VmZCujXGQ5ZHb1EAfiXHcy
    port = 81
    enable_cors = False
    cors_domains = *
    
    [OWBUS_1]
    owbus = --i2c=/dev/i2c-1:ALL     ; scanned bus (--i2c=/dev/i2c-1:ALL or localhost:2122 or 'u' for USB dongle)
    interval = 3          ; [s] default sensor reading
    scan_interval = 300    ; [s] how often is made searching 
    
    #[SENSOR_1]	     ; onewire thermometer
    #bus = 1		     ; link to OWBUS_X
    #address = 28527B930500001F
    #type = DS18B20
    #interval = 1
    
    [I2CBUS_1]
    busid = 1     		;[integer] id of bus /dev/i2c-X
    
    [EPROM_1]
    i2cbus = 1
    address = 0x50
    size = 256
    
    [MCP_1]
    i2cbus = 1		; link to I2CBUS_X
    address = 0x20		; i2c address
    
    [RELAY_1]
    mcp = 1			; link to MCP_X
    pin = 7
    
    [RELAY_2]
    mcp = 1			; link to MCP_X
    pin = 6
    
    [RELAY_3]
    mcp = 1
    pin = 5
    
    [RELAY_4]
    mcp = 1
    pin = 4
    
    [RELAY_5]
    mcp = 1
    pin = 3
    
    [RELAY_6]
    mcp = 1
    pin = 2
    
    [RELAY_7]
    mcp = 1
    pin = 1
    
    [RELAY_8]
    mcp = 1
    pin = 0
    
    [AICHIP_1]
    i2cbus =1
    address = 0x68
    
    [AI_1]
    chip=1
    channel=0
    bits=18
    gain=1
    ;correction = 5.558737622
    ;correction = 5.564920867
    corr_rom = 1
    corr_addr = 0xf0
    interval=2
    
    [AI_2]
    chip=1
    channel=1
    bits=18
    gain=1
    ;correction = 5.558737622
    ;correction = 5.564920867
    corr_rom = 1
    corr_addr = 0xf4
    interval=1
    
    [GPIOBUS_1]
    
    [AO_1]
    gpiobus = 1
    frequency = 100
    
    [DI_1]
    gpiobus = 1
    pin=4
    debounce = 0
    #Enable counting on rising/falling edge or disable it
    #By default(or parameter not present) this function is disabled
    #Can be turned on on all on-board digital inputs (not inputs on 1Wire or other extensions)
    #counter_mode = rising
    #counter_mode = falling
    #counter_mode = disabled
    
    [DI_2]
    gpiobus = 1
    pin=17
    debounce = 0
    
    [DI_3]
    gpiobus = 1
    pin=27
    debounce = 0
    
    [DI_4]
    gpiobus = 1
    pin=23
    debounce = 0
    
    [DI_5]
    gpiobus = 1
    pin=22
    debounce = 0
    
    [DI_6]
    gpiobus = 1
    pin=24
    debounce = 0
    
    [DI_7]
    gpiobus = 1
    pin=11
    debounce = 0
    
    [DI_8]
    gpiobus = 1
    pin=7
    debounce = 0
    
    [DI_9]
    gpiobus = 1
    pin=8
    debounce = 0
    
    [DI_10]
    gpiobus = 1
    pin=9
    debounce = 0
    
    [DI_11]
    gpiobus = 1
    pin=25
    debounce = 0
    
    [DI_12]
    gpiobus = 1
    pin=10
    debounce = 0
    
    [DI_13]
    gpiobus = 1
    pin=28
    debounce = 0
    
    [DI_14]
    gpiobus = 1
    pin=29
    debounce = 0
    
    ;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
    
    ;
    ;Example of Analog Output extension module EMO-Ao4/12
    ;
    ;[PCA9685_1]
    ;i2cbus = 1
    ;address = 0x40
    ;frequency = 400
    ;
    ;[AO_2]
    ;pca = 1
    ;channel = 0
    ;
    ;[AO_3]
    ;pca = 1
    ;channel = 1
    ;
    ;[AO_4]
    ;pca = 1
    ;channel = 2
    ;
    ;[AO_5]
    ;pca = 1
    ;channel = 3
    
    ;Example of 1W-4R/4DI extension module, 1W-8R is almost the same just replace inputs with relays
    ;
    ; -first of all map a new 1Wire sensor with appropriate address, type, and interval
    ; -can be used both SENSOR or 1WDEVICE syntax
    ; -reading interval is crucial to achieve requested performance, default interval is 15s
    ;
    ;[1WDEVICE_2]
    ;bus = 1
    ;address = 29F39A17000000BC
    ;type = DS2408
    ;interval = 1
    ;
    ;[1WRELAY_10]
    ;sensor = 2
    ;pin = 0
    ;
    ;[1WRELAY_11]
    ;sensor = 2
    ;pin = 1
    ;
    ;[1WRELAY_12]
    ;sensor = 2
    ;pin = 2
    ;
    ;[1WRELAY_13]
    ;sensor = 2
    ;pin = 3
    ;
    ;[1WINPUT_20]
    ;sensor = 2
    ;pin = 4
    ;
    ;[1WINPUT_21]
    ;sensor = 2
    ;pin = 5
    ;
    ;[1WINPUT_22]
    ;sensor = 2
    ;pin = 6
    ;
    ;[1WINPUT_23]
    ;sensor = 2
    ;pin = 7
    
    

    best regards



  • If you wired the DIs to GPIOs 28 and 29 that are not used by any other app then yes.

    Can you provide the log of evok after manual start? See debugging at: https://github.com/UniPiTechnology/evok



  • Hi,

    dis is the output :

    Listening on port: 81
    UniPi version:1.1
    Error in config section DI_13 - 'no permission to update GPIO'
    Error in config section DI_14 - 'no permission to update GPIO'
    Entering measure loop
    Entering 1wire loop
    New sensor DS18B20 - 28E9B77A07000076
    New sensor DS18B20 - 28EF627B070000C7
    New sensor DS18B20 - 28FFE82C021504F3
    New sensor DS18B20 - 28FF3E35011502A3
    New sensor DS18B20 - 28FF51320115025B
    New sensor DS18B20 - 28FFCB36021503E5
    New sensor DS18B20 - 28FF9B3402150377
    

    Why have the GPIOs no permission ? What can i do ?
    I dont use the GPIOs 28 and 29 by any other app.

    Best regards



  • Sorry for the late reply, I did not realize that the GPIO numbers in the config file is wrong. 28 and 29 are not GPIO numbers but PIN numbers (of the connector).

    Try using pin 1 and 5 instead. Also pin 1 is reserved so it might cause troubles too….

    https://pinout.xyz/pinout/pin29_gpio5



  • Hi, no problem

    I use the Wiring Pi numbers (28, 29), not the BCM numbers. Now i use the BCM numbers (20, 21) and it works

    Thank you !