Modifications

Sauter à la navigation Sauter à la recherche
1 299 octets ajoutés ,  20 janvier 2013 à 18:54
Page créée avec « {{ADF-RTC-DS1307-NAV}} == Librairie Arduino == Any 5V microcontroller with I2C built-in can easily use the DS1307. We will demonstrate how to use it with an Arduino since it... »
{{ADF-RTC-DS1307-NAV}}

== Librairie Arduino ==
Any 5V microcontroller with I2C built-in can easily use the DS1307. We will demonstrate how to use it with an Arduino since it is a popular microcontroller platform.

For the RTC library, we'll be using a fork of JeeLab's excellent RTC library [http://github.com/adafruit/RTClib RTClib] - a library for getting and setting time from a DS1307 (originally written by JeeLab, our version is slightly different so please only use ours to make sure its compatible!) - download the .zip by clicking on Download Source (top right) and rename the uncompressed folder RTClib Then install it in your Arduino directory in a folder called RTClib

== Raccorder ==
There are only 5 pins: 5V GND SCL SDA SQW.

* '''5V''' is used to power to the RTC chip when you want to query it for the time. If there is no 5V signal, the chip goes to sleep using the coin cell for backup.
* '''GND''' is common ground and is required
* '''SCL''' is the i2c clock pin - its required to talk to the RTC
* '''SDA''' is the i2c data pin - its required to talk to the RTC
* '''SQW''' is the optional square-wave output you can get from the RTC if you have configured it to do so. Most people don't need or use this pin

[[Fichier:ADF-RTC-DS1307-USE-01.jpg]]

{{ADF-RTC-DS1307-TRAILER}}
29 917

modifications

Menu de navigation