

Rtcbrd
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
3PCF8563TS/5
TSSOP-8-3mm-40℃~+85℃ 0.25uA 1.8V~5.5V 250nA I2C Watchdog timer、Programmable clock output、Alarm function、Countdown timer Yes TSSOP-8-3mm Real Time Clocks ROHSNXP SemiconductorsReal Time ClocksAO3407
SOT-23-55℃~+150℃ 1 P-Channel 1.4W 1V 260pF 30V 37pF 4.1A 75mΩ@4.5V P-Channel ±20V SOT-23 MOSFETs ROHSBORNMOSFETsSI2302
SOT-23-55℃~+150℃ 1 N-channel 120pF 1V 1W 20V 300pF 3A 4nC@4.5V 65mΩ@2.5V 80pF N-Channel SOT-23 MOSFETs ROHSYONGYUTAIMOSFETs
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

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
- Wire.h (usually included)
- elpaso Rtc_Pcf8563 (https://github.com/elpaso/Rtc_Pcf8563)
Manual wake only
#include "upoff.h"
UPOFF upoff;
void setup() {
upoff.on(D1); //ON connected to D1
}
void loop() {
//do something
upoff.off();
}Manual and timed wake
#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| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | 1.2kΩ | Resistors_SMD:R_0402 | R2, R3, R5, R6, R7, R8 |
| 2 | 100nF | Capacitors_SMD:C_0402 | C1, C4 |
| 2 | 120kΩ | Resistors_SMD:R_0402 | R1, R4 |
| 2 | 22pF | Capacitors_SMD:C_0402 | C2, C3 |
| 1 | 02x04 | Housings_DIP:DIP-8_W7.62mm | J1 |
| 1 | 32.768kHz | Crystals:Crystal_C38-LF_d3.0mm_l8.0mm_Horizontal | Y1 |
| 1 | AO3407 | TO_SOT_Packages_SMD:SOT-23 | Q2 |
| 1 | PCF8563TS | Housings_SOIC:HTSOP-8-1EP_3.9x4.9mm_Pitch1.27mm | U1 |
| 1 | SI2302 | TO_SOT_Packages_SMD:SOT-23 | Q1 |
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 mm

- 2 layers39.1 × 39.9 mm

Nebula
Thecactusman0/Nebula-openwatch
Nebula is a ESP32 based smartwatch that features a rotating bezel encoder
85 parts4 - 4 layers227.8 × 132.5 mm

- 4 layers100 × 80 mm

- 2 layers220 × 150 mm

- 2 layers40 × 40 mm

- 2 layers48.3 × 78.7 mm

- 2 layers65 × 56.5 mm

Rpi odroid expansion
simpleiot/hardware
Hardware designs for IoT devices and sensor nodes.
14 parts9Apache-2.0