BV4627

Type A, Infrared, Binary, USB and I2C interface

Type B, I2C and Binary interface

This device contains 8 single pole double throw (SPDT) relays that can be operated in no less then FOUR ways. The actual attached relays are capable of switching 10A @24VDC and 10A @250VAC. Each relay can be instantly switched on or off or commanded to switch at a set time of up to 1.3 hours (USB, I2C only).
The product comes in two versions, version A with I2C, IR, USB and Binary interface and product B with I2C and binary interface only.

History

  • Current version PCB BV4627_e
  • New version PCB BV4627_f April 2013 Enhanced tracks and better spacing and thicker copper but the layout is essentially the same

Arduino

The latest library and example is [here]. This is for the I2C interface with an address of 0x32 by default. It has been tested with the UNO using 5k6 pull up resistors.

Thanks to Alex for providing an [updated Arduino] library ** This is based on version 0.22 **

Raspberry Pi

Check out this link to http://www.bashpi.org, an excellent web site for using bash script programming with the RP1. Full instructions on how to get this device working using bash.

The relay can work with the PRi through the I2C interface but does need 5V from the 5V supply. Also the PRi cannot supply enough current to activate all of the relays at once and so if this is required then an external power supply (5V) will be needed.

RPI    BV4627 I2C interface
5V     +V
SDA    SDA
GND    G
SCK    SCK

For a quick start (old Rpi)

  1. Install i2c-tools (sudo apt-get install i2c-tools)
  2. Check to see if it is connected okay (i2cdetect -y 0) This should result in a list with the BV4627 shown as '32'
  3. i2cset -y 0 0x32 10 1 0 1 i (turns on first relay)
  4. i2cset -y 0 0x32 10 0 0 1 i (turns off first relay)

For a quick start (newer Rpi)

  1. Install i2c-tools (sudo apt-get install i2c-tools)
  2. Check to see if it is connected okay (i2cdetect -y 1) This should result in a list with the BV4627 shown as '32'
  3. i2cset -y 1 0x32 10 1 0 1 i (turns on first relay)
  4. i2cset -y 1 0x32 10 0 0 1 i (turns off first relay)


As an example notSMB and Python is used, this can be downloaded from here.

python
>>> from notsmb import notSMB
>>> bus = notSMB(0) # or 1 if using a later RPi
>>> bus.i2c(0x32,[10,1,0,1],0) # turn on relay A

A simple program that will turn the relays on and off. To run the program, notSMB must be installed first. The command is python bv4627.py 1 (or 0 for older versions of the RPi).

wget http://www.pin1.org/download/py/bv4627.py

Layout

bv4627_e
Bv4627 e massive.jpg


bv4627_f
Bv4627 f massive.jpg