Logitech Wireless Keyboard/Reciver

Hi!

Thanks for letting me know about the #.

I will try to supply the current externaly, but the set up right now is:

The reciver is powered directly through the arduino 5v ., the arduino is connected through the usb cable. The remote keyboard is powered through batteries, but they are new, and I can inisiate the pairing from the keyboard (there are some led´s on the reciver blinking and is lit for a short while but then 2 of the leds,the ones indicating a connection is established, are turned off again.)
To me it seems to be a problem when this code is executed kbd_init method:

void kbd_init()
{
  char ack;

 [b] kbd.write(0xff);  [/b] // send reset code
  ack = kbd.read();  // byte, kbd does self test
  ack = kbd.read();  // another ack when self test is done
}

,but I´m not sure at all.

Thanks!
Any other ideas?
/Mattias