Question about ATSAMD21G18 (Chip used on Zero boards)

Hi,
A query to see if anyone has tried to use the onboard RTC on these chips, I’ve checked the specs here:

http://www.atmel.com/devices/ATSAMD21G18.aspx?tab=overview

and it has an onboard RTC so I am wondering if an RTC wing is necessary as I am trying to keep my package volume as small as possible.

EDIT: To add to this, Arduino site has an example that states the Arduino Zero or MKRZero or MKR1000 boards have built in RTC.

https://www.arduino.cc/en/Tutorial/SimpleRTC

Is the Adalogger M0 a clone of the MKRZero? Do you know if this code would work?

Thanks
Christian

Hi Christian,
If it states an onboard RTC then you should be able to use that, bear in mind you’ll need a small battery to power the RTC when power is removed.

Here is a link to the Arduino website detailing how you can do it:

https://www.arduino.cc/en/Reference/RTC