FIO + Xbee + 12V lipo

Hello there!
I have built a sheild with two 12V relays powered with a 11.1V lipo.

When I connect the sheild to the FIO without the Xbee and run the blink program the sheild blinks the relay and works just fine.

My problem starts when I connect the Xbee and want to send a command tha turn on/off the relays.
When I turn on the power the pin/realy turns on directly and stays that way even if the pin is low!

Any one who had similar problems?

and stays that way even if the pin is low!

I am assuming you used a transistor to drive the relay.

Have you checked the pin is low with a voltmeter or just given it a command? Is it possible that software for the shield is holding that pin low? Do you know the pin for the relay isn't being used by the shield.

Is there anything attached to the relay that could be causing the arduino to reset?
Have you connected reverse biased diodes to the relay?
Have you connected the ground of the battery to the ground of the arduino?

Yes I use a transistor, BC338.

Actually I haven't checked the pin with a voltmeter yet, but I assume it's low 'cause the code say so.

The pin that is connected to the sheild isn't used by anything else.

What I know there is nothing that's connected from the relay that could reset the FIO.
I have 6 pins to suport the shield (for stability) connected to the FIO, but there is nothing connected to the pins on the sheild.

I have diod connected over the core on the relay if that's what you mean with reverse biased diod.

Yes the ground to the battery is connected to the ground on the FIO, I suply the FIO via the sheild battery.

Problem solved, never mind :-[