Does the Arduino Yun does it have a RTC?

And if so is it connected to the Atheros AR9331 or the ATmega32u4?

If there there is no RTC, can I connect a DS1307 to the Atheros AR9331?

2 Answers 2


the Yún doesn’t have a real time clock IC on board, so it can’t keep time when is powered off. Instead, it synchronizes with time servers automatically when it powers up and connects to a network using NTP.

(Arduino Blog)

Therefore, the Yun does not have a onboard RTC.

If there there is no RTC, can I connect a DS1307 to the Atheros AR9331?

Probably not. It comes in a LPCC package, which has the solder joints on the bottom. This needs to be soldered by reflow. The Yun does not have any pins connected directly to that chip. You're probably thinking of the ATmega32u4, the actual Arduino chip. The other one is for a router.

To get the time, you have two options:

  • Use the time from the time server

    A few notes:

    The Yún must be connected to a network to get the correct time. If you used the web-based WiFi interface to configure the Yún for the network, make sure you've selected the proper time zone.

  • Connect it to a DS1307 (I find this Adafruit tutorial helpful) You'll need only two pins to use this board. One note: there is a way to connect up to 121 I2C devices using these two pins. However, that gets a little more complicated.
  • I was thinking about putting some high level logic code on the Linux side and the a tight control loop on the ATMega. Therefore it would be logical to have the rtc close to the logic code.
    – Johan
    Mar 25, 2014 at 14:38

What happens with your Arduino YUN is that it has an internal clock which sincronizes with a computer (at least this is what I do). However I have read that it can be automatically but I could not do that; have you got a probable solution?

  • How is this a answer to the question?
    – Johan
    May 22, 2015 at 20:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.