{"product_id":"lipopizero-low-profile-mobile-power-phat-for-pi-zero-discontinued","title":"LipoPiZero+ Low-Profile Mobile Power pHAT for Pi Zero [discontinued]","description":"\u003cp\u003eThe LipoPiZero+ board is a multifunction mobile power board for your Raspberry Pi Zero, Raspberry Pi 3A+ or Raspberry Pi 2\/3 (without PoE pins). It's a combined \u003cstrong\u003ebattery boost + charger + RTC\u003c\/strong\u003e \u003cstrong\u003ewith lots\u003c\/strong\u003e\u003cstrong\u003e of additional handy features\u003c\/strong\u003e (see the long list below!).\u003c\/p\u003e\n\u003cp\u003eThanks to its very low profile and additional functionality, it's one of the best solutions for your mobile battery-powered Pi Zero project.\u003c\/p\u003e\n\u003cp\u003eThe board will also fit the Raspberry Pi 4 or 3B+ \u003cspan style=\"text-decoration: underline;\"\u003e\u003cstrong\u003eif\u003c\/strong\u003e\u003c\/span\u003e you add a tall push-fit stacking header (otherwise those pesky PoE pins get in the way).\u003c\/p\u003e\n\u003cp\u003eJust check out the great list of features of this board below!\u003c\/p\u003e\n\u003chr\u003e\u003cspan style=\"color: #ff2a00;\"\u003e\u003cstrong\u003eLithium Battery Shipping:\u003c\/strong\u003e\u003c\/span\u003e Due to courier restrictions, this product can only be shipped within England\/Wales. With this item in your cart your shipping options will be limited and may cost more than our usual rates. Why?\u003chr\u003e\n\u003ch2\u003eFeatures\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eDelivers 2A to your Pi\u003c\/strong\u003e from a 3.7V \u003cspan\u003eLi-Po or Li-Ion rechargeable battery using the TPS61090 boost converter chip\u003c\/span\u003e\n\u003c\/li\u003e\n\u003cli\u003e\n\u003cspan\u003e\u003cstrong\u003eBuilt-in battery charger\u003c\/strong\u003e (500mA) using the MCP73831 chip\u003c\/span\u003e\u003cspan\u003e\u003c\/span\u003e\n\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003e\u003cstrong\u003eBuilt-in RTC\u003c\/strong\u003e (CR1025 battery included) using the popular DS3231SN RTC chip\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eChoice of two USB ports for charging\u003c\/strong\u003e the battery and powering the Pi at the same time\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003eThree \u003cstrong\u003ebattery LEDs\u003c\/strong\u003e to monitor charge status (Red, Amber Green)\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eAutomatically\u003c\/strong\u003e \u003cstrong\u003egracefully shuts down the Raspberry Pi\u003c\/strong\u003e when the battery level is below 3.2V\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eReads battery voltage\u003c\/strong\u003e using the MCP3021A ADC chip\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eSwitches between battery and USB external power\u003c\/strong\u003e without any power interruption using the TPS2113A power multiplexer chip\u003c\/li\u003e\n\u003cli\u003e\u003cstrong\u003ePushbutton to switch the Pi on\/off\u003c\/strong\u003e\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eThree-way slide switch connected to GPIO\u003c\/strong\u003e pins that can be used to send 3 separate commands to the Pi (or to have it started in 3 different modes e.g. access point, wifi client etc)\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003eThree additional \u003cstrong\u003euser-definable LEDs\u003c\/strong\u003e attached to GPIO pins\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003e\u003cstrong\u003e3-pin connector to fit an external pushbutton\u003c\/strong\u003e or a capacitive touch switch\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003eCompatible with Raspberry Pi Zero and 3A+\u003c\/li\u003e\n\u003cli\u003eCan be used with the Raspberry Pi 3B+ and 4 \u003cstrong\u003eonly if you use a tall-push-fit stacking header\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003ePackage Contents\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e1x LipoPiZero+ board\u003c\/li\u003e\n\u003cli\u003e1x \u003cspan\u003eCR1025 battery (for RTC)\u003c\/span\u003e\n\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003e2x Spacers\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003e2x Nylon screws\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003e2x Nylon nuts\u003c\/span\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eLiPo battery, Raspberry Pi and optional GPIO push-fit header not included\u003c\/strong\u003e\u003c\/p\u003e\n\u003ch2\u003eHow to use the board\u003c\/h2\u003e\n\u003cp\u003e\u003cstrong\u003ePlug the LipoPiZero+ board into the Raspberry Pi board\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e1) Ensure the spacers are in place on either side of the GPIO pins\u003c\/li\u003e\n\u003cli\u003e2) Ensure the 40-pin through-hole connector is aligned with the 40-pin header on the Pi\u003c\/li\u003e\n\u003cli\u003e3) Push the HAT down onto the pins and spacers (you'll hear a dull 'click')\u003c\/li\u003e\n\u003cli\u003e4) Pass the screws through the holes and spacers and secure them with the nuts (feel free to snip the excess screw thread off with some micro-cutters)\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eConnect battery\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eYou can use either a Lithium Polymer or Lithium-Ion 3.7V \u003cspan style=\"text-decoration: underline;\"\u003e\u003cstrong\u003erechargeable\u003c\/strong\u003e \u003c\/span\u003ebattery. \u003cstrong\u003eOnly use this board with rechargeable batteries!\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eEnable boost converter output and i2c\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eAdd the following lines to the file \"\/boot\/config.txt\":\u003c\/p\u003e\n\u003cpre\u003egpio=14=op,dh\u003cbr\u003edtparam=i2c_arm=on\u003c\/pre\u003e\n\u003cp\u003e\u003cstrong\u003eTurn the Raspberry Pi on\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003ePress the pushbutton on the LipoPiZero+ board for ~1 second.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eTo read battery voltage\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eDownload and run python example script:\u003c\/p\u003e\n\u003cpre\u003ewget https:\/\/uropanet.com\/lipopi\/downloads\/mcp3021.py\u003cbr\u003e\u003cbr\u003echmod 755 mcp3021.py\u003cbr\u003e\u003cbr\u003e.\/mcp3021.py\u003c\/pre\u003e\n\u003cp\u003eReturns battery level as a percentage number (0 to 100%).\u003c\/p\u003e\n\u003cpre\u003e.\/mcp3021.py -v\u003c\/pre\u003e\n\u003cp\u003eReturns battery level as a voltage level (3.2V to 4.2V).\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eGPIO input 3-way slide switch\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eUses GPIO22, GPIO27, GPIO17 header pins which need to be configured as inputs and pulled down to 0. See python example script \"lipopizero.py\" below.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eGPIO output general purpose LED's\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eUses GPIO23, GPIO24, GPIO25 header pins which need to be configured as outputs. See python example script \"lipopizero.py\" below.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eShut down Pi board\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThe on-board pushbutton can be used to gracefully shut down the Pi board. When the pushbutton is pressed, the GPIO18 pin (which needs to be configured as input and initially pulled down to 0) will be pulled up to 1. This can be handled by your script to run the \"shutdown -h now\" command. See python example script \"lipopizero.py\" below.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eLow battery status\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eWhen the battery voltage goes below 3.2V, the GPIO4 pin (which needs to be configured as input and is normally high) will be pulled down to 0. This can be handled by your script to run the \"shutdown -h now\" command. See python example script \"lipopizero.py\" below.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003ePython example script\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eDownload and run the following script:\u003c\/p\u003e\n\u003cpre\u003ewget https:\/\/uropanet.com\/lipopi\/downloads\/lipopizero.py\u003cbr\u003e\u003cbr\u003echmod 755 lipopizero.py\u003cbr\u003e\u003cbr\u003e.\/lipopizero.py\u003c\/pre\u003e\n\u003cp\u003eInstall lipopizero.py as a service:\u003c\/p\u003e\n\u003cpre\u003ewget https:\/\/uropanet.com\/lipopi\/downloads\/lipopizero.service\u003cbr\u003e\u003cbr\u003esudo cp lipopizero.service \/lib\/systemd\/system\/\u003cbr\u003e\u003cbr\u003esudo cp lipopizero.py \/usr\/local\/sbin\/\u003cbr\u003e\u003cbr\u003esudo systemctl enable lipopizero.service\u003cbr\u003e\u003cbr\u003esudo systemctl start lipopizero.service\u003c\/pre\u003e\n\u003cp\u003e\u003cstrong\u003eRecharging the battery\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThe battery can be charged with a +5V power supply with the Raspberry Pi board either switched on or off.\u003c\/p\u003e\n\u003cp\u003eYou can use \u003cstrong\u003eeither\u003c\/strong\u003e microUSB socket (\u003cstrong\u003eNOT BOTH at the same time\u003c\/strong\u003e). If the Pi board is running from the battery when the USB power is plugged in, it will switch automatically to the external power supply and will start recharging the battery at the same time. If the Pi board was off when the USB power is plugged in, the Pi board will boot up as normal. When unplugging the USB power, the Pi board will automatically switch again to battery power and stay on.\u003c\/p\u003e\n\u003cp\u003eWhen the battery is charging, an amber LED will be on. When the battery is fully charged, the amber LED will turn off and a green LED will turn on. Also, during normal operation, when the battery goes below 3.2V, a red LED will turn on. When that happens, it is recommended to shut down the board gracefully using the script above.\u003c\/p\u003e\n\u003cp\u003eIf configured as in input, the value of the GPIO5 pin indicates whether the Pi is using the battery (value=1) or the external power supply (value=0).\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eUsing the RTC clock\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eFirst, insert a CR1025 coin battery into the battery holder.\u003c\/p\u003e\n\u003cp\u003eAdd the following lines to the \"\/etc\/rc.local\" file:\u003c\/p\u003e\n\u003cpre\u003emodprobe rtc_ds1307\u003c\/pre\u003e\n\u003cpre\u003eecho ds1307 0x68 \u0026gt; \/sys\/class\/i2c-adapter\/i2c-1\/new_device\u003c\/pre\u003e\n\u003cp\u003eTo read the current time from the RTC clock:\u003c\/p\u003e\n\u003cpre\u003esudo hwclock -r\u003c\/pre\u003e\n\u003cp\u003eTo write the system time to the RTC clock:\u003c\/p\u003e\n\u003cpre\u003esudo hwclock -w\u003c\/pre\u003e\n\u003cp\u003eTo copy the time from the RTC clock to the system time:\u003c\/p\u003e\n\u003cpre\u003esudo hwclock -s\u003c\/pre\u003e\n\u003cp\u003e\u003cstrong\u003eUsing an external pushbutton to switch on\/off the Pi board\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eAn external pushbutton can be connected to the LipoPiZero+ board to replace the on-board one. To this end, a Molex 53261-0371 connector is present on the board. The duplicate the action of the on-board pushbutton, the external pushbutton needs to be connected to pins 2 and 3 of the Molex connector (see picture below). A Molex 15134-0302 receptacle to receptacle 3-way cable can be used for this purpose.\u003c\/p\u003e\n\u003cp\u003e\u003cimg alt=\"lipopizero image 1\" src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0176\/3274\/files\/lipopizero-v5-molex-conn-150x150.jpg?v=1626863931\u0026amp;width=700\"\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eUsing a TTP223 capacitive touch sensor to switch on\/off the Pi board\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eTo use an external capacitive touch sensor such as the TTP223 breakout board, the two 0 ohm resistors on the bottom of the board (circled in red) need to be removed with a soldering iron. Additionally, the other 3 pairs of pads need to be connected with a small blob of solder. This is shown in green in the image below.\u003c\/p\u003e\n\u003cp\u003e\u003cimg alt=\"lipopizero image 2\" src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0176\/3274\/files\/lipopizero-v5-bottom-r0-150x150.jpg?v=1626863956\u0026amp;width=700\"\u003e\u003c\/p\u003e\n\u003cp\u003eOnce this has been done, make the following connections using for instance the same Molex 15134-0302 receptacle to receptacle 3-way cable between the onboard Molex 53261-0371 connector and the external TTP223 breakout board:\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003ePin 1 GND\u003c\/li\u003e\n\u003cli\u003ePin 2 I\/O\u003c\/li\u003e\n\u003cli\u003ePin 3 +3.3V\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eResources\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eProduct Support\u003c\/li\u003e\n\u003cli\u003eProduct Website\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Uropanet","offers":[{"title":"Default Title","offer_id":46375218446393,"sku":"gnq1787258363295","price":13.91,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0795\/9176\/8121\/files\/lipopizero-low-profile-mobile-power-phat-for-pi-zero-discontinued_1.jpg?v=1787258373","url":"https:\/\/myoutfitstore.shop\/products\/lipopizero-low-profile-mobile-power-phat-for-pi-zero-discontinued","provider":"My Store","version":"1.0","type":"link"}