background image

2020/11/09 14:28

1/10

Introduction

ODROID Wiki - http://wiki.odroid.com/

Introduction

The ODROID-UPS3 (Uninterrupted Power Supply) device is designed specifically for the ODROID-
C1,C1+ and ODROID-C2.
It is equipped with a rechargeable Lithium-Polymer Battery, Charger IC and 5Volt Boost DCDC.

When the AC power source is removed, the UPS3 keeps supplying the power to the ODROID boards
with the battery.
There is a digital output pin to send the battery low-level warning to the ODROID to trigger the
shutdown process.
It will significantly reduce the risk of data loss by sudden power loss.
When the AC power source becomes available again, the UPS3 will supply power to the ODROID again
automatically.

Because of LiPo chemical
characteristics, Battery Level can go
little high when the load is quite light.
If your device reboot after shutdown,
you should add a more delay after low
battery alarm.

Summary of Contents for ODROID-UPS3

Page 1: ...ying the power to the ODROID boards with the battery There is a digital output pin to send the battery low level warning to the ODROID to trigger the shutdown process It will significantly reduce the risk of data loss by sudden power loss When the AC power source becomes available again the UPS3 will supply power to the ODROID again automatically Because of LiPo chemical characteristics Battery Lev...

Page 2: ... Protection PCB Overcharge discharge Protection ODROID C2 Estimated Running Time with typical load of 500mA 5V about 3 hours when fully charged Schematic ODROID UPS3 for C series PCB Layout DWG ups3_board_rev0 1_mech zip PCB Pattern PNG ups3 zip When the battery was fully charged VBAT 4 2V we performed the load test with UPS3 Time to power off at the Load Current Time to power off No Load Output vol...

Page 3: ...is not connected Power Status Indicator Control Pins AC_OK output pin pin 11 of J2 is high when the AC source is available BAT_OK output pin pin 13 of J2 is high when the battery voltage is higher than 3 7V POWER_LATCH input pin pin 15 26 of J1 must be high to supply 5V to the load How to configure HW Set up switches SW1 Output on off The slide switch SW1 is to control the 5V supply to the ODROID SW...

Page 4: ...tp wiki odroid com Printed on 2020 11 09 14 28 Ensure that slide switch SW1 is to the left to enable power output Even when SW1 is off the charging function keeps working Assemble guide Assemble as the UPS3 as shown in Figure Pin assignment to configure SW There are three signals to control auto shutdown and wake up based on battery status ...

Page 5: ...e following sections How to configure SW Ubuntu On Ubuntu a common scheduling utility cron daemon can be used with a script to monitor the AC and battery status and control system shutdown by controlling three signals of UPS3 Auto shutdown Script This script checks the status of power and battery Save the following code as ups3 sh in home directory Note that this script can be used with U3 as well ...

Page 6: ...ue LATCH_GPIO 1 elif test MODEL ODROID C2 then AC_OK_GPIO 247 BAT_OK_GPIO 239 LATCH_GPIO 225 gpio_export LATCH_GPIO gpio_setvalue LATCH_GPIO 1 else AC_OK_GPIO 199 BAT_OK_GPIO 200 fi gpio_export AC_OK_GPIO gpio_export BAT_OK_GPIO gpio_getvalue AC_OK_GPIO if retval eq 1 then echo DC Input Okay else echo Power is shutdown or AC Adapter is disconnected gpio_getvalue BAT_OK_GPIO echo retval if retval e...

Page 7: ...d64 CRON 1959 CRON info No MTA installed discarding output Depending on the particular Battery State of Charge SOC this script can issue a reboot a few times based on the specific load This means that the battery voltage can go over the threshold level very quickly when the load is off However it will turn off the board after cycling the power a few times Android Android packages that are released si...

Page 8: ...IO_DIR sys class gpio retval gpio_export e SYSFS_GPIO_DIR gpio 1 return echo 1 SYSFS_GPIO_DIR export echo 1 gpio_getvalue echo in SYSFS_GPIO_DIR gpio 1 direction val cat SYSFS_GPIO_DIR gpio 1 value retval val gpio_setvalue echo out SYSFS_GPIO_DIR gpio 1 direction echo 2 SYSFS_GPIO_DIR gpio 1 value check gpio_export AC_OK_GPIO gpio_export BAT_OK_GPIO gpio_getvalue AC_OK_GPIO if retval eq 1 then ech...

Page 9: ... gt then AC_OK_GPIO 247 BAT_OK_GPIO 239 LATCH_GPIO 225 gpio_export LATCH_GPIO gpio_setvalue LATCH_GPIO 1 elif echo MODEL grep c odroidc gt then AC_OK_GPIO 88 BAT_OK_GPIO 116 LATCH_GPIO 115 gpio_export LATCH_GPIO gpio_setvalue LATCH_GPIO 1 else AC_OK_GPIO 199 BAT_OK_GPIO 200 LATCH_GPIO 204 gpio_export LATCH_GPIO gpio_setvalue LATCH_GPIO 1 fi lowVoltageCount while true do check sleep 2 done Register...

Page 10: ...n init odroid2 board rc or init odroid board rc Tip for servo or motor driving application Reported by Ameridroid Remove the voltage detector IC Reference number is U3 on the UPS3 UPS2 board schematics While developing a walking robot that uses the UPS2 with ODROID C1 we found the UPS2 would shut off while moving servos after only a few minutes We were led to this modification that WILL void your UP...

Reviews: