Skip to the content
PCBKitNew board
2 layers44 × 44 mmBf-027, the printed circuit board in 3D

a PCB of PCF8563 RTC with Grove I2C for M5Stack and M5Atom synchronized with NTP

Size
44 × 44 mm
Copper layers
2
Thickness
1.6 mm
Parts
25
Nets
13
Pads
56
Tracks, vias
98, 34
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
11 May 2021
Updated
9 Sep 2022

Overview

Bf-027 is an open-source printed circuit board by botanicfields, from the botanicfields/PCB-RTC-PCF8563-for-M5 repository on GitHub, published under the CC0-1.0 licence. It is a 2-layer board of 44 × 44 mm with 25 parts on 13 nets, routed with 98 tracks and 34 vias.

It is built around the PCF8563T/5, XC6206P332MR and CR2032. Its parts include 5 capacitors, 4 resistors, 4 diodes, 3 connectors and 2 ICs. It belongs with the radio and wireless boards and the ESP32 boards of this library.

Main components

3

README

README.md

PCB-RTC-PCF8563-for-M5

a PCB of PCF8563-RTC with Grove-I2C for M5Stack and M5Atom synchronized with NTP

M5 用リアルタイムクロック (RTC) 基板

 M5 シリーズ用に作成した RTC 基板です。水晶振動子 により高精度に時刻を刻みます。バッテリ・バックアップにより本体が電源オフの状態でも時刻を維持します。

  • M5 仕様の Grove コネクタ

     M5 製品の Grove コネクタ仕様(電源 5V, 信号レベル 3.3V)に合致します。Grove コネクタが 2 個あり、I2C デバイスの数珠つなぎができます。

  • M5 製品と同仕様の RTC

     M5Core2, M5StickC/C Plus, M5CoreInk, M5Paper, M5Camera/F/X に内蔵されている BM8563 と互換の RTC(PCF8563) を搭載し、M5 用の多くのソフトウェアを利用できます。

  • INT, CLKO 信号出力

     PCF8563(BM8563) の INT 信号、CLKO 信号を、基板上のピンソケットから取り出せます。これらの信号は 3.3V に 10kΩ でプルアップしています。基板上の LED(INT: 赤、CLKO: 緑)で信号オンを確認できます。

  • 時刻の精度を改善

     基板上にトリマコンデンサを搭載し、時刻の精度を改善できます。出荷時には、以下の機器を用いて室温(15 - 25 ℃程度のどこか)にて調整済です。(※固定コンデンサ C4, トリマコンデンサ C5 はどちらか一方を実装します。トリマコンデンサを実装している場合、C4 には部品がありません。)

  1. 周波数カウンタ (1) を GPS 受信機 (2) の 1PPS 信号で校正

(1) 秋月電子通商「8桁周波数カウンターキット」 AE-FCOUNT3

(2) 秋月電子通商「GPS受信機キット~」 AE-GYSFDMAXB

  1. RTC 基板の CLKO から 1Hz 信号を取り出し、1PPS の代わりに入力
  2. 周波数カウンタの表示が所定の値に近づく様、RTC 基板上のトリマを調整

ソフトウェア

 RTC の使用にあたっては、一般に入手可能なライブラリを利用することができます。

 他の I2C デバイスとの共存や、NTP との相互補完を想定したサンプルプログラムを作成し、BF-027 フォルダに置きました。詳細な説明は Qiita(参考を参照)にあります。これらのプログラムは M5Stack 社の RTC ユニットでも使用できます。

  1. BF_Pcf8563.h, BF_Pcf8563.cpp

    RTC PCF8563(BM8563) にアクセスし、時刻、アラーム、タイマー、クロック出力などの機能を使用するためのドライバです。

  2. BF_Pcf8563Test.h, BF_Pcf8563Test.cpp

    上記 BF_Pcf8563.cpp の機能をテストするプログラムです。

  3. BF_RtcxNtp.h, BF_RtcxNtp.cpp

    RTC と NTP を相互補完的に使用するためのプログラムです。

  4. BF-027.ino

    上記プログラムの使用例です。

  • M5Stack または M5Atom で動作します。冒頭の #define で使用する方を残してコメントアウトしてください。
  • M5Atomでは RTC の接続先を GROVE コネクタか、またはピンソケットのどちらかを選べます。setup() の rtcx.Begin(Wire1) または rtcx.Begin(Wire) の使用するほうを残してコメントアウトしてください。

参考

(1) Qiita 「M5Atom, M5Stack Core 用の I2C リアルタイムクロック基板を作って動かす」

(2) Qiita 「ESP32 において NTP の時刻同期を捕まえて RTC を更新する」

Parts

25
QtyValueFootprintReferences
210kResistor_SMD:R_0603_1608MetricR3, R4
21N4148Diode_SMD:D_SOD-123D1, D2
21uCapacitor_SMD:C_0603_1608MetricC1, C2
22.2kResistor_SMD:R_0603_1608MetricR1, R2
2I2Copl:HW4-2.0-90DJ1, J2
1100nCapacitor_SMD:C_0603_1608MetricC3
115pCapacitor_SMD:C_0603_1608MetricC4
130pbf:BF@TZ03-FC5
132768Hzbf:BF@Crystal_DS26_D2.0mm_L6.0mm_HorizontalY1
1CR2032bf:BF@QJ-BS-6BT1
1GREENLED_SMD:LED_0603_1608MetricD3
1LOGObf:BF@logo5G***
1OUTbf:BF@PinSocket_1x03_P2.54mm_HorizontalJ3
1PCF8563TPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU2
1REDLED_SMD:LED_0603_1608MetricD4
1XC6206P332MRPackage_TO_SOT_SMD:SOT-23U1

The 21 most common of 25 parts.

Questions

How big is the Bf-027 PCB?

It measures 44 × 44 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Bf-027 use?

25 parts, built around the PCF8563T/5, XC6206P332MR and CR2032. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Bf-027 KiCad files?

From the botanicfields/PCB-RTC-PCF8563-for-M5 repository on GitHub, at the commit this page was made from: the board is PCBV02L01/KiCad/bf-027.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Bf-027 design in my own project?

Its repository publishes it under the CC0-1.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

Similar boards

  • 4 layers45.1 × 45.1 mmSuperPower uC KiCad, the printed circuit board in 3D

    SuperPower uC KiCad

    SuperPower/Artemis

    All hardware designs and products you can find in this repository is licensed under CERN Open Hardware Licence Version 2 - Weakly Reciprocal

    99 parts2
  • 4 layers29.5 × 16.8 mmPcf8563-breakout, the printed circuit board in 3D

    Pcf8563-breakout

    picafe/sensors-breakout

    Breakout board for variety of useful sensors in a tiny footprint!

    34 parts
  • 2 layers64.2 × 35.6 mmRTC Board, the printed circuit board in 3D

    RTC Board

    WestianPKl/pcb-docs

    A collection of custom PCB designs created in KiCAD, centered around the Raspberry Pi Pico (RP2040) platform. Each board is a standalone module that connects to the Main Board and extends its functionality via I2C, SPI…

    32 parts
  • 4 layers107.6 × 59.8 mmTimeDisk, the printed circuit board in 3D

    TimeDisk

    garrettsworkshop/TimeDisk

    Apple II memory expansion card with 1 MB battery-backed RAM and NoSlotClock-compatible clock

    70 parts19
  • 4 layers65 × 30 mmATMEGA Power Circuit, the printed circuit board in 3D

    ATMEGA Power Circuit

    evan-loe/atmega-power-hat

    And thats it! Your hat should be ready to use

    40 parts
  • 4 layers95 × 55.5 mmEinkPDA keyboard, the printed circuit board in 3D

    EinkPDA keyboard

    TalismanDesign/PocketMage_PDA

    An E-Ink PDA device using the ESP32 S3.

    137 parts2kApache-2.0
  • 6 layers83.5 × 56 mmEspiff v3 1, the printed circuit board in 3D

    Espiff v3 1

    MDCservice/EsPiFF

    An ESP32 in the Raspberry Pi form factor

    172 parts223GPL-3.0