Free Canadian Shipping on Orders Over $150 with discount code FREESHIP! Not combinable with other discounts.

New Products

Witty Pi 2: Realtime Clock (RTC) and Power Management for Raspberry Pi


Notify me when this product is available:

Witty Pi 2 is the new generation of Witty Pi, which adds RTC and power management to your Raspberry Pi, and can define complex ON/OFF sequence with simple script. Witty Pi 2 supports all Raspberry Pi models with 40-pin header, including A+, B+, 2B, Zero, Zero W, 3B, 3B+ and 3A+.

After installing the software on your Raspberry Pi, you can enjoy these amazing new features:

  • Single tap on the button to gracefully turn on/off Raspberry Pi.
  • After shutdown, the power for Raspberry Pi and all its USB peripherals are fully cut.
  • Raspberry Pi knows the correct time, even without accessing the Internet.
  • You can schedule the startup/shutdown of your Raspberry Pi.
  • You can even write a script to define complex ON/OFF sequence.

Comparing to the old Witty Pi, Witty Pi 2 uses much better RTC chip (DS3231SN), which only has <160 seconds error per year. Also this RTC chip has temperature sensor built-in, so you can read the temperature around your Raspberry Pi via the software. The new “dummy load” feature is very useful when you use power bank as power supply, it will draw peak current with certain interval, and keep your power bank alive.

Here is the user manual:


Each Witty Pi 2 package contains:

  • Witty Pi 2 board x 1
  • CR2032 battery x 1
  • M2.5 x 11mm Copper Standoff x 4
  • M2.5 screws x 8


Dimension: 65mm x 56mm x 19mm
Weight: 24g (net weight without battery)
LED Indicator: A white LED
Connector: 40-pin stackable header
Battery: CR2032 or CR2025 (for time keeping)
Power In: DC 5V (via micro USB or XH2.54 connector)
Output Current: Maximum 3A for Raspberry Pi and its peripherals
Static Current:
    ~ 1mA in average with dummy load off (default)
~15mA in average with dummy load on
Operating Temperature: -30℃~80℃ (-22°F~176°F)
Storage Temperature: -40℃~85℃ (-40°F~185°F)
Humidity: 0~80%RH, no condensing


The Software for Witty Pi 2 is written with Bash (Unix shell), and there is also a GUI application available (requires QT 5).


The source code is public on Github:

To install the software, just run these two commands:

After the installation is done, reboot your Raspberry Pi and you are set.


To launch the Witty Pi utility, just run these commands:

More details about software installation and usage could be found on the user manual.



Lucas Langholf has developed a Python wrapper for Witty Pi, and packed it into a package. PyPi:

The source code is also available in GitHub:

Appreciate Lucas’ good work!


You can now use our web app to create and debug the schedule script for Witty Pi.

Witty Pi Schedule Script Generator Witty Pi Schedule Script Generator


Use Witty Pi 2 to Build Solar Powered Time Lapse Camera

Use Witty Pi 2 to Build Solar Powered Time Lapse Camera


Bat Pi 2: realtime batdetector with WLAN

Related Items