Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
rpi:materiel:ups-ep-0118 [2020/11/28 17:17] – créée jpmilcent | rpi:materiel:ups-ep-0118 [2020/12/05 08:52] (Version actuelle) – jpmilcent | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== UPS EP-0118 ====== | ====== UPS EP-0118 ====== | ||
+ | ===== Ressources ===== | ||
+ | * Source : [[https:// | ||
+ | * Sauvegarde Wallabag : [[https:// | ||
- | **Source** : https:// | ||
- | |||
- | ===== UPS (With RTC & Coulometer) For Raspberry Pi 4B/3B+/3B ===== | ||
- | |||
- | {{ : | ||
- | |||
- | ==== 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 UPS OUTPUT 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. | ||
- | The Coulometer can not detect batteries voltage and current due to different batteries has different specifications | ||
- | 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 ==== | ||
- | |||
- | <note 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. | ||
- | </ | ||
- | |||
- | {{: | ||
- | |||
- | <note warning> 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. </ | ||
- | < | ||
- | |||
- | <note warning> | ||
- | ESD Warning | ||
- | When connecting the battery, please do not touch the area where the yellow frame is located. ESD may cause damage to your device, so please avoid it. | ||
- | </ | ||
- | |||
- | {{: | ||
- | |||
- | === Battery specifications === | ||
- | |||
- | <note warning> | ||
- | |||
- | ==== ChangeLog ==== | ||
- | |||
- | === update: 2020-9-8 === | ||
- | Limited battery capacity and discharge rate | ||
- | |||
- | === 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 output voltage in OS(Not Batteries voltage) | ||
- | 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, | ||
- | Input overvoltage, | ||
- | 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 < | ||
- | 25% <= C < | ||
- | 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 < | ||
- | 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' | ||
- | 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(): | ||
- | """ | ||
- | ina = INA219(SHUNT_OHMS) | ||
- | ina.configure() | ||
- | print(" | ||
- | try: | ||
- | print(" | ||
- | print(" | ||
- | print(" | ||
- | except DeviceRangeError as e: | ||
- | print(e) | ||
- | |||
- | if __name__ == " | ||
- | read() | ||
- | Run the demo code: | ||
- | python demo.py | ||
- | How to setup and check the RTC module | ||
- | Using Overlays | ||
- | Overlays are loaded using the " | ||
- | As an example, | ||
- | modprobe i2c-bcm2835 | ||
- | modprobe rtc-ds1307 | ||
- | sudo su | ||
- | echo ds1307 0x68 > / | ||
- | With DT enabled, this becomes a line in config.txt: | ||
- | Edit / | ||
- | And then add this parameter: | ||
- | dtoverlay=i2c-rtc, | ||
- | This causes the file / | ||
- | |||
- | dtoverlay=i2c-rtc, | ||
- | Parameters usually have default values, although certain parameters are mandatory. See the list of overlays below for a description of the parameters and their defaults. | ||
- | |||
- | For Raspberry Pi 4B | ||
- | Here we assume that you have already burned the Raspbian Image into TF card and connect to your PC and logged in. Open a terminal and modify / | ||
- | |||
- | DS1307-4B(1).png | ||
- | |||
- | You can read / | ||
- | |||
- | DS1307-4B(2).png | ||
- | |||
- | please ensure that / | ||
- | |||
- | dtoverlay=i2c-rtc, | ||
- | dtparam=i2c_arm=on | ||
- | After that, please make sure you have disabled the "fake hwclock" | ||
- | sudo apt-get -y remove fake-hwclock | ||
- | sudo update-rc.d -f fake-hwclock remove | ||
- | Now with the fake-hw clock off, you can start the original ' | ||
- | Edit the script file / | ||
- | if [ -e / | ||
- | exit 0 | ||
- | fi | ||
- | Finally result like this: | ||
- | DS1307-4B(6).png | ||
- | |||
- | save and reboot your RPi. | ||
- | |||
- | For Raspberry Pi 3B | ||
- | Here we assume that you have already burned the Raspbian Image into TF card and connect to your PC and logged in. Open a terminal and modify / | ||
- | |||
- | Ds13076.png | ||
- | |||
- | You can read / | ||
- | |||
- | Name: | ||
- | Info: Adds support for a number of I2C Real Time Clock devices | ||
- | Load: | ||
- | Params: ds1307 | ||
- | please ensure that / | ||
- | |||
- | device_tree=bcm2710-rpi-3-b.dtb | ||
- | dtoverlay=i2c-rtc, | ||
- | dtparam=i2c_arm=on | ||
- | After that, please make sure you have disabled the "fake hwclock" | ||
- | sudo apt-get -y remove fake-hwclock | ||
- | sudo update-rc.d -f fake-hwclock remove | ||
- | Now with the fake-hw clock off, you can start the original ' | ||
- | Edit the script file / | ||
- | if [ -e / | ||
- | exit 0 | ||
- | fi | ||
- | Finally result like this: | ||
- | Raspberry pi hwclock-set.png | ||
- | |||
- | save and reboot your RPi. | ||
- | |||
- | How to Check it | ||
- | After reboot and log in, open a terminal and typing this command to check if RTC module is functional. dmesg |grep rtc if you can see this picture means that your RTC module is working properly. | ||
- | |||
- | Ds13077.png | ||
- | |||
- | and then you can adjust your system clock as following command: | ||
- | |||
- | Ds13078.png | ||
- | |||
- | Note: 051014302016.20 | ||
- | Last step, set the Hardware Clock to the current System Time. | ||
- | Ds13079.png | ||
- | |||
- | ok, finished. Have fun. | ||
- | |||
- | GitHub | ||
- | Github:[ https:// | ||
- | Video Tutorial | ||
- | Youtube.jpeg | ||
- | |||
- | Please follow the link: [ UPS With RTC and Coulometer For Raspberry Pi Usage Tutorial | https:// | ||
- | |||
- | 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. | ||
- | Q: Why does my RTC module running a wrong time when i reboot my Pi ? | ||
- | | ||
- | |||
- | sudo apt-get -y remove fake-hwclock | ||
- | sudo update-rc.d -f fake-hwclock remove | ||
- | Keywords | ||
- | battery, 18650, lipo battery, UPS, current, power supply, | ||
- | FAQ | ||
- | Q: what will your UPS do when the power will restored? | ||
- | A: It will do nothing when the power is restored. | ||
- | Q: How can I restart my Raspberry automatically? | ||
- | A: Sorry for that, it has no function like that, you need to press the power-on button to start it. | ||
- | Q: Your UPS will restart the Raspberry automatically? | ||
- | A: No, It will not restart the Raspberry automatically unless you press the power-on button. |