I'm currently playing around with the Seeed Relay Board for Raspberry Pi. Unfortunately it does not really work and the seeed support seams not to be willing to assist that much.
I've connected the Relay Board to my I2C Bus. It's visible, if I i2cdetect -y 1 with address 0x22.
SDA - GPIO 2 (PIN 3)
SCL - GPIO 3 (PIN 5)
3.3V - 3.3V (PIN 1)
5V - 5V (PIN 2)
GND - GND (PIN 6)
When I run any script, which is trying to communicate with the Relay Board, it does its job quite well, until some amount of time has passed. This time is sometimes about 2 seconds, sometimes about 5 minutes - quite random.
And then, the script fails. This is an example with the official example script from seeed. In this case, the error occoured after only 3 seconds.
Code: Select all
sudo python relais.py Turning all relays ON Turning all relays OFF Turning relay 1 ON Traceback (most recent call last): File "relais.py", line 47, in <module> process_loop() File "relais.py", line 32, in process_loop relay_on(i) File "../modules/relayboard.py", line 36, in relay_on bus.write_byte_data(DEVICE_ADDRESS, DEVICE_REG_MODE1, DEVICE_REG_DATA) IOError: [Errno 121] Remote I/O error
Is there something I'm missing? Something which could explain this behaviour?
Thanks for any hint!