Power Supply

but the xbee isn't happy with a fluctuating power supply.

If you gave the xbee 9v I am surprised it still works. people have killed them by just giving them 5V.