Skip to the content
PCBKitNew board
2 layers11 × 11 mmRtcbrd, the printed circuit board in 3D

Small circuit/library to shut down a µC to save power for battery powered applications

Size
11 × 11 mm
Copper layers
2
Thickness
1.6 mm
Parts
17
Nets
14
Pads
48
Tracks, vias
115, 3
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
9 Feb 2020
Updated
2 May 2024

Overview

Rtcbrd is an open-source printed circuit board by adlerweb, from the adlerweb/uPoff repository on GitHub, published under the BSD-2-Clause licence. It is a 2-layer board of 11 × 11 mm with 17 parts on 14 nets, routed with 115 tracks and 3 vias.

It is built around the PCF8563TS/5, AO3407 and SI2302. Its parts include 8 resistors, 4 capacitors, 2 transistors, 1 IC and 1 connector. It belongs with the power boards of this library.

Main components

3

README

README.md

µPoff - External deep sleep circuit

µPoff is a circuit placed high-side between your power source and your microcontroller. It is designed to cut power to the µC until a external sensor activates it. Additionally a onboard RTC can wake the µC in programmed intervals.

It is mainly aimed at battery powered sensor applications like door sensors, which also should report their battery level and presence regularly.

Pinout

Pinout diagram

Connecting your µC

Remove the positive connection between your power source and µC. Connect the battery to VCC and your µC to OUT. Additionally connect GND to your existing ground. The external sensor should pull ^SW low to activate the circuit. Lastly run a wire between one of your GPIO-Pins and ON. If you want to use the included RTC you'll also need to connect the I²C-Lines SDA and SCL. On AVR and STM32 based microcontrollers you'll have to use the predefined I²C pins, on ESP8266, ESP32 you can use any free GPIO.

Software control

Usually power only stays on as long as ^ON is low, however most tasks take longer to complete. To keep power on it is crucial to drive ON high as soon as your µC is started. When finished you can turn off power by driving ON LOW.

Dependencies

Manual wake only

text
#include "upoff.h"
UPOFF upoff;

void setup() {
  upoff.on(D1); //ON connected to D1
}

void loop() {
  //do something
  upoff.off();
}

Manual and timed wake

text
#include "upoff.h"
UPOFF upoff;

bool reason;

void setup() {
  reason = upoff.on(D1, D2, D3); //D1 = ON; D2 = SDA; D3 = SCL
  //reason = upoff.on(D1, true); //Use predefined I²C-Pins

  /* Set clock */
  while(!upoff.isValid(false)) {
    upoff.setTime(20, 02, 02, 02, 02, 02); //2020-02-02 02:02:02
    yield();
  }
}

void loop() {
  pinMode(LED_BUILTIN, OUTPUT);
  if(reason) {
    /* either first boot or caused by RTC */
    byte loops=5;
    while(loops > 0) {
      digitalWrite(LED_BUILTIN, LOW);
      delay(100);

Power

While sleeping current draw for µPoff is ~10µA. Output should be fine for up to 1A.

Common problems

Boot-time vs. signal time

The external sensor has to keep ^ON low until the µC is running and driving ON. Some µCs take several hundreds of milliseconds to boot. If your sensors pulse is too short you might be able to stretch it using some R+C magic.

Parts

17
QtyValueFootprintReferences
61.2kΩResistors_SMD:R_0402R2, R3, R5, R6, R7, R8
2100nFCapacitors_SMD:C_0402C1, C4
2120kΩResistors_SMD:R_0402R1, R4
222pFCapacitors_SMD:C_0402C2, C3
102x04Housings_DIP:DIP-8_W7.62mmJ1
132.768kHzCrystals:Crystal_C38-LF_d3.0mm_l8.0mm_HorizontalY1
1AO3407TO_SOT_Packages_SMD:SOT-23Q2
1PCF8563TSHousings_SOIC:HTSOP-8-1EP_3.9x4.9mm_Pitch1.27mmU1
1SI2302TO_SOT_Packages_SMD:SOT-23Q1

Questions

How big is the Rtcbrd PCB?

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

What parts does the Rtcbrd use?

17 parts, built around the PCF8563TS/5, AO3407 and SI2302. 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 Rtcbrd KiCad files?

From the adlerweb/uPoff repository on GitHub, at the commit this page was made from: the board is hardware/rtcbrd.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Rtcbrd design in my own project?

Its repository publishes it under the BSD-2-Clause 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

  • 2 layers44.9 × 71.1 mmClick4, the printed circuit board in 3D

    Click4

    prajjwalprajjwal/Click

    Clicker kit

    78 parts19
  • 2 layers39.1 × 39.9 mmNebula, the printed circuit board in 3D

    Nebula

    Thecactusman0/Nebula-openwatch

    Nebula is a ESP32 based smartwatch that features a rotating bezel encoder

    85 parts4
  • 4 layers227.8 × 132.5 mmPanel, the printed circuit board in 3D

    Panel

    YDrip/ydrip-pcb

    YDrip hardware files

    556 parts2CERN-OHL-W-2.0
  • 2 layers220 × 150 mmBoard src, the printed circuit board in 3D

    Board src

    olagd/praca_dyplomowa

    169 parts
  • 2 layers40 × 40 mmE track, the printed circuit board in 3D

    E track

    picli3/e-tracker

    E-paper based GPS tracker PCB design using KiCad.

    40 parts
  • 2 layers48.3 × 78.7 mmF1C100s i80, the printed circuit board in 3D

    F1C100s i80

    todo-assert/project.pcb

    88 partsMIT
  • 2 layers65 × 56.5 mmRpi odroid expansion, the printed circuit board in 3D

    Rpi odroid expansion

    simpleiot/hardware

    Hardware designs for IoT devices and sensor nodes.

    14 parts9Apache-2.0