Trying to connect 8-Relay Addon EMO-R8

denis
Posts: 6
Joined: Sat Jul 18, 2015 11:25 pm

Trying to connect 8-Relay Addon EMO-R8

Postby denis » Mon Sep 07, 2015 4:23 pm

Hello,

I'm trying to add a 8-Relay Addon EMO-R8 to a unipi.

I connected it to the I2C RJ11 connector with an external power supply.
Both LEDs (I2C and power) are On.
I did not change the I2C adress on the board (0x21).

I changed the evok/evok/evok.conf file by removing the ';' in front of the example included in the file
...
[code];
;Example of 8xRelay extension module addon (EMO-R8) on address 0x21
;
[MCP_1]
i2cbus = 1
address = 0x21

[RELAY_8]
mcp = 1
pin = 7

[RELAY_9]
mcp = 1
pin = 6

[RELAY_10]
mcp = 1
pin = 5

[RELAY_11]
mcp = 1
pin = 4

[RELAY_12]
mcp = 1
pin = 3
...

Since then, the web page (127.0.0.1) is not showing any input or output.
Any idea what I did wrong ?

Thanks,
Denis
iot
Posts: 19
Joined: Sun Aug 02, 2015 12:41 am

Re: Trying to connect 8-Relay Addon EMO-R8

Postby iot » Mon Sep 07, 2015 6:44 pm

Hello Denis,

1. Which evok.conf do you have changed?
a) /etc/evok.conf or
b) /home/pi/evok/etc/evok.conf
=> a) works fine for our EMO AO4/12. Have you saved it correctly (in sudo mode)?

2. Have you set the jumpers on EMO-R8 correctly? As I see on the shop-picture of EMO-R8 the jumpers A0=0, A1=0, A2=0 => Hex-aderss 0x20. It seems to be false indicated with "DEC" on shop-picture. But 0x20 is used by the RTC so for 0x21 you have to set the jumpers A0=1, A1=0, A2=0

3. Check the I2C-bus with "sudo i2cdetect -y 1" an look if "21" is showed.

@UniPi-experts: Please give us documentation for all your extensions here. http://unipi.technology/wiki/Main_Page
At the moment it's only given for UniPi.

iot
denis
Posts: 6
Joined: Sat Jul 18, 2015 11:25 pm

Re: Trying to connect 8-Relay Addon EMO-R8

Postby denis » Tue Sep 08, 2015 1:00 pm

The example seems to be incorrect ;(

Working now with :


[MCP_2] (instead of 1)
i2cbus = 1
address = 0x21

(the RELAY_8] is already used on the base unipi board , so start at RELAY_9)

[RELAY_9]
mcp = 2 (instead of 1)
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


Definitely need documentation on extension, UNIPI !!!
tomas_hora
Site Admin
Posts: 298
Joined: Wed Oct 29, 2014 9:56 am

Re: Trying to connect 8-Relay Addon EMO-R8

Postby tomas_hora » Tue Sep 08, 2015 7:45 pm

Sorry for that. Will be fixed in next update to the repository.

We are currently overwhelmed with finishing the Mervis software. However I will first implement the necessary things in evok and then publish all documentation to our hardware.
Anders Kjellström
Posts: 4
Joined: Mon Nov 02, 2015 11:28 pm

Re: Trying to connect 8-Relay Addon EMO-R8

Postby Anders Kjellström » Mon Nov 16, 2015 6:33 am

We ned more dokumentation to connect relay addon

Return to “UniPi Extension modules (official)”

Who is online

Users browsing this forum: No registered users and 1 guest