{"product_id":"witty-pi-l3v7-realtime-clock-and-power-management-for-raspberry-pi","title":"Witty Pi L3V7 - Realtime Clock And Power Management For Raspberry Pi","description":"\u003cp\u003eThe \u003cstrong\u003eWitty Pi 4 L3V7\u003c\/strong\u003e is an add-on board that adds a real-time clock and power management to your \u003c\/p\u003e\u003cp\u003eRaspberry Pi\u003c\/p\u003e. It can define your Raspberry Pi’s ON\/OFF sequence and significantly reduce energy usage. \u003cp\u003eThe \u003cstrong\u003eL3V7 version\u003c\/strong\u003e is the newest member of the fourth generation of Witty Pi, and it is designed to work with \u003c\/p\u003e\u003cp\u003e3.7V Lithium (ion or polymer) battery\u003c\/p\u003e (\u003cem\u003ethat’s what L3V7 stands for\u003c\/em\u003e) and can be used as a UPS. \u003cp\u003eThe board contains the following onboard resources:\u003c\/p\u003e \u003cul\u003e \u003cli\u003eFactory calibrated and temperature compensated \u003cstrong\u003ereal-time clock\u003c\/strong\u003e with ±2ppm accuracy\u003c\/li\u003e \u003cli\u003eDedicated \u003cstrong\u003etemperature sensor\u003c\/strong\u003e with 0.125 °C resolution\u003c\/li\u003e \u003cli\u003eAVR \u003cstrong\u003e8-bit microcontroller\u003c\/strong\u003e (MCU) with 8 KB programmable flash\u003c\/li\u003e \u003cli\u003eDC\/DC \u003cstrong\u003estep-up (boost) converter\u003c\/strong\u003e that outputs up to 5V\/3A\u003c\/li\u003e \u003cli\u003e\n\u003cstrong\u003eCharging manager\u003c\/strong\u003e that can charge a battery with up to 1A current\u003c\/li\u003e \u003c\/ul\u003e \u003cp\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0176\/3274\/files\/WITTY_PI_4_L3V7_features_1.jpg?v=1673891956\" alt=\"\"\u003e\u003c\/p\u003e \u003cp\u003eThe Witty Pi 4 L3V7 has a very similar design to the \u003c\/p\u003e\u003cp\u003eoriginal Witty Pi 4\u003c\/p\u003e, however, its DC\/DC converter is a step-up (boost) converter, while Witty Pi 4 comes with a step-down (buck) converter. The Witty Pi 4 L3V7 also has a charging circuit that can charge the battery. \u003cp\u003e\u003cstrong\u003eNote\u003c\/strong\u003e: Witty Pi’s software is developed and tested under \u003c\/p\u003e\u003cp\u003eRaspberry Pi OS\u003c\/p\u003e (the former Raspbian). If you want to use Witty Pi on other Linux distributions, you may not be able to install the software without error. This is due to the fact that different Linux distributions have different packages installed by default, and their default users may have different privilege settings too. You may need to modify the software installation script or even the software itself, however this will need you to have some knowledge of BASH programming. \u003ch3\u003eBuilt-in Uninterruptible Power Supply (UPS) Functionality\u003c\/h3\u003e \u003cp\u003eThe Witty Pi 4 L3V7 has an integrated battery charging circuit and DC\/DC boost converter on board, so it can be used as an uninterruptible power supply (UPS). It can work with all chargeable Lithium Ion or Lithium Polymer batteries that have a nominal voltage of 3.7V (and a fully-charged voltage of 4.2V).\u003c\/p\u003e \u003cp\u003eWhen a 5V power supply is connected to the USB-C connector on Witty Pi 4 L3V7, it will take priority to power the board with Raspberry Pi together. In the meantime, the battery is disconnected from the power rails and is charged.\u003c\/p\u003e \u003cp\u003eAfter the 5V power supply is disconnected, the voltage of the battery will be monitored. Once the battery voltage drops under a preset threshold, Witty Pi’s software will perform a graceful shutdown and then cut the power of the Raspberry Pi. By adjusting the low voltage threshold, you can decide when the device should shut down before the battery is fully discharged.\u003c\/p\u003e \u003ch3\u003eAccurate Real-time Clock and ON\/OFF Scheduling\u003c\/h3\u003e \u003cp\u003eThe real-time clock (RTC) on Witty Pi 4 L3V7 has been calibrated in the factory and Witty Pi 4 L3V7’s firmware also makes temperature compensation for the crystal. This makes the RTC very accurate and the actual annual error is limited to within ±2ppm.\u003c\/p\u003e \u003cp\u003eWhen your Raspberry Pi boots up, the time stored in the RTC will overwrite the system time. As a result, your Raspberry Pi knows the correct time even without accessing the Internet. You can schedule the startup and\/or shutdown of your Raspberry Pi, and make it a time-controlled device. You can even define a scheduled script to schedule complicated ON\/OFF sequences for your Raspberry Pi.\u003c\/p\u003e \u003cp\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0176\/3274\/files\/WITTY_PI_4_L3V7_scheduling_1.jpg?v=1673891955\" alt=\"\"\u003e\u003c\/p\u003e \u003cp\u003eScheduling the ON\/OFF sequence for the Raspberry Pi is the most popular feature of the Witty Pi, and it is extremely useful for systems powered by batteries. By only turning on the Raspberry Pi when necessary, the battery can be used way much longer with Witty Pi installed.\u003c\/p\u003e \u003ch3\u003eTemperature Controlled Device\u003c\/h3\u003e \u003cp\u003eThe temperature sensor on the Witty Pi 4 Mini has a 0.125 °C resolution. The temperature data is used for compensating the crystal and make the RTC more accurate.\u003c\/p\u003e \u003cp\u003eYou can also specify the action (startup or shutdown) when the temperature goes above or below the preset threshold. This means you can also make your Raspberry Pi a temperature-controlled device.\u003c\/p\u003e \u003cp\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0176\/3274\/files\/WITTY_PI_4_L3V7_temperature_controlled_1.jpg?v=1673891955\" alt=\"\"\u003e\u003c\/p\u003e \u003ch3\u003eE-Latching Power Switch\u003c\/h3\u003e \u003cp\u003eThe Witty Pi 4 L3V7 implements an e-Latching power switch, which behaves very similarly to the power switch on your PC\/laptop computer. You can gracefully turn on\/off your Raspberry Pi with a single tap on the button. The software running in the background will execute the shutdown command before the power gets cut, and it avoids the data corruption caused by a “hard” shutdown.\u003c\/p\u003e \u003ch3\u003eSingle I2C Device\u003c\/h3\u003e \u003cp\u003eThe Witty Pi 4 uses an MCU to emulate a single I2C device with default address 0x08, and also maps all I2C registers in the real-time clock and temperature sensor as virtual I2C registers in the same device. You can access all I2C registers in the real-time clock and temperature sensor via the single I2C device emulated by Witty Pi 4.\u003c\/p\u003e \u003cp\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0176\/3274\/files\/WITTY_PI_4_L3V7_i2c_1.jpg?v=1673891955\" alt=\"\"\u003e\u003c\/p\u003e \u003cp\u003eThe advantage of this new design is that Witty Pi 4 hides other I2C devices (real-time clock, temperature sensor) and becomes the proxy for them to talk to the Raspberry Pi. Because the I2C address used by Witty Pi 4 can be changed to any value, you can always avoid the I2C address conflicting.\u003c\/p\u003e \u003ch3\u003eUWI Support\u003c\/h3\u003e \u003cp\u003eThe Witty Pi 4 L3V7 is fully supported by UWI (UUGear Web Interface), and you can access your Witty Pi 4 L3V7 from any device that has network access.\u003c\/p\u003e \u003cp\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0176\/3274\/files\/WITTY_PI_4_L3V7_UWI_1.jpg?v=1673891955\" alt=\"\"\u003e\u003c\/p\u003e \u003ch2\u003eSpecifications\u003c\/h2\u003e \u003ctable width=\"578\"\u003e \u003ctbody\u003e \u003ctr\u003e \u003ctd width=\"189\"\u003e\u003cstrong\u003eDimension\u003c\/strong\u003e\u003c\/td\u003e \u003ctd width=\"389\"\u003e65mm x 30mm x 7mm\u003c\/td\u003e \u003c\/tr\u003e \u003ctr\u003e \u003ctd\u003e\u003cstrong\u003eWeight\u003c\/strong\u003e\u003c\/td\u003e \u003ctd\u003e10g (net weight without accessories)\u003c\/td\u003e \u003c\/tr\u003e \u003ctr\u003e \u003ctd\u003e\u003cstrong\u003eMicrocontroller\u003c\/strong\u003e\u003c\/td\u003e \u003ctd\u003eATtiny841 (\u003cp\u003edatasheet\u003c\/p\u003e)\u003c\/td\u003e \u003c\/tr\u003e \u003ctr\u003e \u003ctd\u003e\u003cstrong\u003eRealtime Clock\u003c\/strong\u003e\u003c\/td\u003e \u003ctd\u003ePCF85063A (\u003cp\u003edatasheet\u003c\/p\u003e), calibrated in the factory\u003c\/td\u003e \u003c\/tr\u003e \u003ctr\u003e \u003ctd\u003e\u003cstrong\u003eTemperature Sensor\u003c\/strong\u003e\u003c\/td\u003e \u003ctd\u003eLM75B (\u003cp\u003edatasheet\u003c\/p\u003e)\u003c\/td\u003e \u003c\/tr\u003e \u003ctr\u003e \u003ctd\u003e\u003cstrong\u003eDC\/DC Converter\u003c\/strong\u003e\u003c\/td\u003e \u003ctd\u003eMP3423 (\u003cp\u003edatasheet\u003c\/p\u003e)\u003c\/td\u003e \u003c\/tr\u003e \u003ctr\u003e \u003ctd\u003e\u003cstrong\u003eCharging Manager\u003c\/strong\u003e\u003c\/td\u003e \u003ctd\u003eTP4056 (\u003cp\u003edatasheet\u003c\/p\u003e)\u003c\/td\u003e \u003c\/tr\u003e \u003ctr\u003e \u003ctd\u003e\u003cstrong\u003ePower In\u003c\/strong\u003e\u003c\/td\u003e \u003ctd\u003eDC 5V (via USB-C) or 3.7V Li-ion\/LiPo\u003c\/td\u003e \u003c\/tr\u003e \u003ctr\u003e \u003ctd\u003e\u003cstrong\u003eOutput Current\u003c\/strong\u003e\u003c\/td\u003e \u003ctd\u003eUp to 3A for Raspberry Pi and its peripherals\u003c\/td\u003e \u003c\/tr\u003e \u003ctr\u003e \u003ctd\u003e\u003cstrong\u003eStandby Current\u003c\/strong\u003e\u003c\/td\u003e \u003ctd\u003e~0.3mA on 3.7V battery, ~1mA on USB-C 5V\u003c\/td\u003e \u003c\/tr\u003e \u003ctr\u003e \u003ctd rowspan=\"2\"\u003e\u003cstrong\u003eOperating Environment\u003c\/strong\u003e\u003c\/td\u003e \u003ctd\u003eTemperature -30°C~80°C (-22°F~176°F)\u003c\/td\u003e \u003c\/tr\u003e \u003ctr\u003e \u003ctd\u003eHumidity 0~80%RH, no condensing, no corrosive gas\u003c\/td\u003e \u003c\/tr\u003e \u003c\/tbody\u003e \u003c\/table\u003e \u003ch2\u003eResources\u003c\/h2\u003e \u003cul\u003e \u003cli\u003e\u003cp\u003eUser manual\u003c\/p\u003e\u003c\/li\u003e \u003cli\u003e\n\u003cp\u003eWeb app\u003c\/p\u003e (create and debug schedule scripts)\u003c\/li\u003e \u003cli\u003e\u003cp\u003eGitHub\u003c\/p\u003e\u003c\/li\u003e \u003c\/ul\u003e \u003ch3\u003eSoftware installation\u003c\/h3\u003e \u003cp\u003eThe Witty Pi 4 L3V7 uses the same software as Witty Pi 4. You just need to run these two commands in your Raspberry Pi to install Witty Pi 4 L3V7’s software:\u003c\/p\u003e\u003cpre\u003e\u003ccode\u003ewget https:\/\/www.uugear.com\/repo\/WittyPi4\/install.sh\u003c\/code\u003e\u003c\/pre\u003e\u003cpre\u003e\u003ccode\u003esudo sh install.sh\n\u003c\/code\u003e\u003c\/pre\u003e\u003cp\u003eThe software and firmware of Witty Pi 4 L3V7 are open-sourced. You can find the source code on \u003c\/p\u003e\u003cp\u003eGitHub\u003c\/p\u003e. \u003ch2\u003ePackage Contents\u003c\/h2\u003e \u003cul\u003e \u003cli\u003e1x Witty Pi 4 L3V7 board\u003c\/li\u003e \u003cli\u003e4x M2.5 x 10mm plastic screws\u003c\/li\u003e \u003cli\u003e4x 14mm plastic spacer\u003c\/li\u003e \u003cli\u003e4x M2.5 plastic nut\u003c\/li\u003e \u003cli\u003e1x 8cm PH2.0 cable\u003c\/li\u003e \u003c\/ul\u003e","brand":"My Store","offers":[{"title":"Default Title","offer_id":50006776053915,"sku":"DGHLC 7513800474819","price":14.58,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0793\/4951\/4395\/files\/witty-pi-l3v7-realtime-clock-and-power-management-for-raspberry-pi-uugear-105320-40070221922499_29d6fa28-f385-482e-b5ce-7bad8b7f2a2a.jpg?v=1793496463","url":"https:\/\/thepihutshops.com\/products\/witty-pi-l3v7-realtime-clock-and-power-management-for-raspberry-pi","provider":"The Pi Hut","version":"1.0","type":"link"}