UPS (With RTC & Coulometer) For Raspberry Pi SKU: EP-0118

From 52Pi Wiki
Jump to navigation Jump to search

UPS (With RTC & Coulometer) For Raspberry Pi 4B/3B+/3B

EP 0114 UPS 7.jpg

Description

This is a new version of UPS Board.It not only supports Raspberry Pi 4B but also adds type C output. It provides enough power for the Raspberry Pi to make your Raspberry Pi still work while moving, and its design is so smart that you can get rid of troubled of a mass wire. This UPS can provide you with the operation of replacing the battery yourself. This new UPS not only supports an independent RTC module, but also provides a coulomb counter.
You can obtain battery voltage and current information through I2C in the system. Combined with different programming methods, you can inherit the power information into the system. It is also convenient to detect the state of the battery, which can be detected and warned through the program. It can use most of the 18650 standard batteries and fully comply with the battery characteristics in terms of battery life. In addition, the power display provided on the circuit board is also very user-friendly. The illuminated LED light can quickly show the remain power and support the discharging while charging. You can directly connect to the external power supply for charging. At the same time, the Raspberry Pi will not be turned off.
Please install the battery first, then connect the UPS to the Raspberry Pi.
Connecting too many high-power peripherals will lead to insufficient power supply. Please pay attention to the power demand of peripherals.

Caution

Warning.jpg

Warning!
Please do not reverse the battery! Only for 18650 batteries and the discharge rate should be less than 10A !!!

This product belongs to the power supply device. 
Please keep it out of the reach of children. Please strictly refer to the instructions for the UPS  product. If the battery polarity is reversed, it will directly burn the power management chip of the device and even cause fire or personal injury. Do not add any Components by yourself, all accidental damage caused by the cause is at your own risk.
Ep 0014 6 2.jpg


Make sure your power adapter capacity can cover lithium battery charging and raspberry pi use case, typically is 5V 3A or better should be used.

(ex:Battery charge may require up to 2.1A, Raspberry Pi typically requires 0.6-0.8A, but up to 2.4A, at which if the power supply current is less than 4.5A, it may not be able to continue use) 

ChangeLog

update: 2020-4-30

  • Fixed some bugs.
  • Upgrade the module functions, add RTC moudle and coulometer voltameter function.
  • Adding more pogo-pin to support new features.
  • Update the firmware version.
  • Changed new conductor to support the new features.

Features

New Features

  • RTC Independent Clock
  • Current and Voltage Reading
  • Battery Indicator
  • Programmable reading of battery voltage in OS
  • Charging Status LED indicator

Old Features

  • LED remaining battery prompt
  • Replaceable battery solution
  • Support Raspberry Pi 4B/3B+/3B
  • Charging up to 2.1A
  • Rated discharge power is 15W
  • Extended Two USBA port power output
  • Extended type C port power output
  • Output overcurrent protection
  • Tap to boot, long press to shut down
  • Support the charge and discharge power display
  • The battery holder can be quickly replaced
  • Synchronous switch charge and discharge
  • Built-in power path management, support side-loading
  • Support load high current line compensation function
  • Adaptive charge current regulation to match all adapters
  • Support LED power display
  • Button boot: UPS will start when the button is pressed, Long Press to force turn off
  • Low power consumption
  • Multiple protection, high reliability
  • Output overcurrent, overvoltage, short circuit protection
  • Input overvoltage, overcharge, overdischarge, overcurrent discharge protection
  • Machine over temperature protection

Gallery

EP 0114 UPS 9.jpg
EP 0114 UPS 11.jpg
EP 0114 UPS 12.jpg
  • Function area definition
EP 0114 UPS 13.jpg
EP 0114 UPS 14.jpg
EP 0114 UPS 15.jpg

Package includes

  • 1* UPS (With RTC & Coulometer) For Raspberry Pi 4B/3B+/3B
  • 4* M2.5* copper stick
  • 4* M2.5 screws
  • 4* M2.5* long copper stick
  • 4* M2.5 nuts
  • 1* Acrylic shield
  • 1* Instructions
EP 0114 UPS 6.jpg


Mechanical Drawing

UPS 1.png


How to setup

EP 0114 UPS 1.jpg


LED light status definition

  • Discharge Status
Power C(%) LED1 LED2 LED3 LED4
C >= 75% ON ON ON ON
50% <= C <75% ON ON ON OFF
25% <= C <50% ON ON OFF OFF
3% <= C < 25% ON OFF OFF OFF
0% <= C < 3% 1.5Hz Blink OFF OFF OFF
EP 0114 UPS 8.jpg


  • Charging Status
Power C(%) LED1 LED2 LED3 LED4
100% ON ON ON ON
75% <= C ON ON ON 1.5Hz Blink
50% <= C <75% ON ON 1.5Hz Blink OFF
25% <= C < 50% ON 1.5Hz Blink OFF OFF
C < 25% 1.5Hz Shining OFF OFF OFF

How to Read Voltage and Current

  • Flash the latest Raspbian OS to TF card and boot up Raspberry Pi.
  • Make sure Raspberry Pi connect to internet and update the repository's information with command: "sudo apt-get update"
  • Make sure I2C function has been turned on.
  • Install the python liberary:
sudo pip3 install pi-ina219
  • Create a new .py file and paste following demo code.
# IMPORT THE LIBERARY.
from ina219 import INA219
from ina219 import DeviceRangeError
SHUNT_OHMS = 0.05


def read():
    """Define method to read information from coulometer."""
    ina = INA219(SHUNT_OHMS)
    ina.configure()
    print("Bus Voltage: %.3f V" % ina.voltage())
    try:
        print("Bus Current: %.3f mA" % ina.current())
        print("Power: %.3f mW" % ina.power())
        print("Shunt voltage: %.3f mV" % ina.shunt_voltage())
    except DeviceRangeError as e:
        print(e)

if __name__ == "__main__":
    read()
  • Run the demo code:
python demo.py

GitHub

FAQ

  • Q: Dose it support Raspberry Pi 4B with my 7 inch LCD?
 A: It depends on how much current will your 7 inch LCD cost and how many external device that you connect to.
  • Q: It is safe for my home assistant project?
 A: Yes, It's safe.

Keywords

  • battery, 18650, lipo battery, UPS, current, power supply,raspberrypi 4B