RASP-PCF8523-Brancher

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

Brancher la RTC

To keep costs low, the Raspberry Pi does not include a Real Time Clock module. Instead, users are expected to have it always connected to WiFi or Ethernet and keep time by checking the network. Since we want to include an external module, we'll have to wire one up.

We have three different RTC we suggest, PCF8523 is inexpensive, DS1307 is most common, and DS3231 is most precise. Any of them will do!

While the DS1307 is historically the most common, its not the best RTC chipset, we've found!

Placer la pile

Don't forget to also install a CR1220 coin cell. In particular the DS1307 wont work at all without it and none of the RTCs will keep time when the Pi is off and no coin battery is in place.

Raccorder

Raccorder un module RTC brute

Wiring a DS1307 is simple:

  • Connect VCC on the breakout board to the 5.0V pin of the Pi (if using DS1307)
  • Connect VCC on the breakout board to the 3.3V pin of the Pi (if using PCF8523 or DS3231)
  • Connect GND on the breakout board to the GND pin of the Pi
  • Connect SDA on the breakout board to the SDA pin of the Pi
  • Connect SCL on the breakout board to the SCL pin of the Pi

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

Brancher l'horloge PCF8523

L'horloge PCF8523 pour Raspberry-Pi peut se brancher directement sur les premières broches du GPIO.

RASP-PCF8523-Brancher.png


Source: Adding real time clock to Rasberry-Pi

Tutoriel créé par Ada pour AdaFruit Industries. Tutorial created by Lady Ada for AdaFruit Industries

Traduit avec l'autorisation d'AdaFruit Industries - Translated with the permission from Adafruit Industries - www.adafruit.com

Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : «  Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.

L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.