Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Relay Hat Question - I2C
#14
Hi Andre'

You should be able to use the cli plugin and the commands from the web site of the hat vendor:

Direct control without programming(Raspberry Pi:
  • Turn on channel No.1 relay
Code:
i2cset -y 1 0x10 0x01 0xFF

  • Turn off channel No.1 relay
Code:
i2cset -y 1 0x10 0x01 0x00



  • Turn on channel No.2 relay
Code:
i2cset -y 1 0x10 0x02 0xFF

  • Turn off channel No.2 relay
Code:
i2cset -y 1 0x10 0x02 0x00



  • Turn on channel No.3 relay
Code:
i2cset -y 1 0x10 0x03 0xFF

  • Turn off channel No.3 relay
Code:
i2cset -y 1 0x10 0x03 0x00



  • Turn on channel No.4 relay
Code:
i2cset -y 1 0x10 0x04 0xFF

  • Turn off channel No.4 relay
Code:
i2cset -y 1 0x10 0x04 0x00


On the setup page of the cli plugin enter the commands above for each relay channel in the on and off columns.
<p><br></p>
Reply


Messages In This Thread
Relay Hat Question - I2C - by mg360 - 2016 Sep 08, 11:50 PM
RE: Relay Hat Question - I2C - by dan - 2016 Sep 09, 08:54 PM
RE: Relay Hat Question - I2C - by mg360 - 2016 Sep 09, 09:51 PM
RE: Relay Hat Question - I2C - by schmooot - 2019 Oct 10, 07:37 PM
RE: Relay Hat Question - I2C - by dan - 2019 Oct 11, 01:33 PM
RE: Relay Hat Question - I2C - by schmooot - 2019 Oct 11, 03:29 PM
RE: Relay Hat Question - I2C - by dan - 2019 Oct 11, 07:30 PM
RE: Relay Hat Question - I2C - by schmooot - 2019 Oct 15, 05:19 PM
RE: Relay Hat Question - I2C - by dan - 2019 Oct 15, 08:36 PM
RE: Relay Hat Question - I2C - by schmooot - 2019 Oct 15, 08:51 PM
RE: Relay Hat Question - I2C - by dan - 2019 Oct 16, 02:18 PM
RE: Relay Hat Question - I2C - by dan - 2019 Oct 20, 02:38 PM
RE: Relay Hat Question - I2C - by Andre - 2021 Feb 16, 03:29 AM
RE: Relay Hat Question - I2C - by dan - 2021 Feb 16, 04:27 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)