I'm probably doing something wrong. Any help would be appreciated.
My project reads the date & time from a DS1307 RTC module and transmits that info (and some other data), via an RF24 transmit/receive link, to a 2nd Arduino where the data is displayed on the serial port of that 2nd device. I have the transmitting Arduino connected to both the USB cable and to an external 5V power supply. As long as the USB cable is connected on both ends everything works great. The 2nd Arduino receives the date & time over RF and displays it via it's serial port just fine.
But if I then disconnect the USB cable while everything is working OK, from the transmitting Arduino, leaving it powered by the 5V external power supply, the 2nd Arduino receives and displays bad date & time data. What happens with the DS1307 when I unplug the USB cable? I would have expected it to continue supplying correct date & time data with the USB cable disconnected since that Arduino still has power and all other functions are working OK.
Both Arduinos are Mega2560s and the DS1307 has a new battery.
Thanks.
Tom