BV4626 with Arduino duemilanove

Hi,

I am now trying to get the BV4626 work with Arduino.
It is multi-IO card from http://www.byvac.com.
I try to use the relays. Problem is that relays seem to want
60mA each. So this means that I cannot power it from arduino
+5V rail. What is the current capability of that pin?

How about the external power supply to Arduino. Will that give
more power to that pin, or not?

Hopefully someone can help me.

Best Regards
Kari

Thanks !

relays didn't click, so I thought about the power problem.
Now it seems to be more likely my ...ahm software. :stuck_out_tongue:

Best Regards
Kari

Hi,

now when I got the address right (0x31) I can turn relays on but not of.
Because the I2C command to turn relay off is 10 0.
Apparantly Wire library takes the zero as terminating character and does not send it further. Is there any way to solve this. If I am correct with the problem, I will report it to the Byvac.

The code is now

void loop()
{
  
  
  command[0]=0xa;
  //command[1]=' ';
  command[1]=1;
  command[2]=NULL;
  Wire.beginTransmission(0x31); // transmit to device #4
  Wire.send(command);        // sends five bytes
  //delay(200);
  Wire.endTransmission();    // stop transmitting
  
  delay(500);
  
  
  
  command[0]=0xa;
  //command[1]=' ';
  command[1]=0;
  command[2]=NULL;
  Wire.beginTransmission(0x31); // transmit to device #4
  Wire.send(command);        // sends five bytes
  //delay(200); 
  Wire.endTransmission();    // stop transmitting
  delay(500);
    
}

Best Regards
Kari

I am discussing myself....

added this in the Wire library

//KL addition
void TwoWire::sendn(char* data,int bytes)
{

      send((uint8_t*)data, bytes);

}

Now it works. But I will send mail to Byvac about it.

Best Regards
Kari