RF communication between two arduoino uno .

i’m trying to make two robots with one way communication using RF 315 MHz transmitter receiver modules. I have attached codes for transmitter and receiver Arduinos. These programs are working perfectly when connected with system. But no response when the arduinos are powered externally using battery. Please suggest a solution ASAP.

transmit.ino (680 Bytes)

recieve.ino (1.22 KB)

ninez_robo: These programs are working perfectly when connected with system. But no response when the arduinos are powered externally using battery

If the codes are working perfectly at any time, it would appear that there is nothing wrong with them. It might be time to blame the battery.