Xbee causes discharge issues when using motors

Ive seen a few projects online with this type of setup working with an arduino, and pin change interrupt always seems to be the fix. Not sure entirely on how that would work.