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 and 3B.
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: http://www.uugear.com/doc/WittyPi2_UserManual.pdf
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
~ 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: https://github.com/uugear/Witty-Pi-2
To install the software, just run these two commands:
pi@raspberrypi ~ $ wget http://www.uugear.com/repo/WittyPi2/installWittyPi.sh
pi@raspberrypi ~ $ sudo sh installWittyPi.sh
After the installation is done, reboot your Raspberry Pi and you are set.
To launch the Witty Pi utility, just run these commands:
pi@raspberrypi ~ $ cd wittyPi
pi@raspberrypi ~/wittyPi $ sudo ./wittyPi.sh
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 pypi.org package. PyPi: https://pypi.org/project/wittyPy/
The source code is also available in GitHub: https://github.com/elpunkt/wittyPy
Appreciate Lucas’ good work!
Schedule Script Generator
You can now use our web app to create and debug the schedule script for Witty Pi.