Page 1
1/10 Introduction 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.
ODROID-C2 Estimated Running Time with typical load of about 3 hours when fully charged 500mA @ 5V Schematic: ODROID-UPS3 for C series Layout(DWG):ups3_board_rev0.1_mech.zip 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...
Page 3
2023/06/13 00:38 3/10 Introduction How to configure HW Set up switches SW1 - Output on/off The slide switch, SW1 is to control the 5V supply to the ODROID. SW2 - Board select UPS3 supports C1/C1+ and C2. You need to select the model using the slide switch, SW2. Ensure that slide switch SW1 is to the left to enable power output.
Page 4
Last update: accessory:power_supply_battery:odroid-ups3 https://wiki.odroid.com/accessory/power_supply_battery/odroid-ups3?rev=1517215085 2018/01/29 17:08 Pin assignment to configure SW There are three signals to control auto shutdown and wake-up based on battery status. AC_OK : The AC_OK pin is high when the AC source is available. BAT_OK : The BAT_OK pin is high when the battery voltage is higher than 3.7V.
Page 5
2023/06/13 00:38 5/10 Introduction Save the following code as ups3.sh in home directory. Note that this script can be used with U3 as well as C1/C1+/C2 without modification. Let's assume that ups3.sh is located in /home/odroid/ups3.sh. #!/bin/sh MODEL=$(cat /proc/cpuinfo grep ^Hardware "...
Page 6
Last update: accessory:power_supply_battery:odroid-ups3 https://wiki.odroid.com/accessory/power_supply_battery/odroid-ups3?rev=1517215085 2018/01/29 17:08 gpio_getvalue $AC_OK_GPIO $retval then echo "DC Input Okay" else echo "Power is shutdown or AC Adaptor is disconnected" gpio_getvalue $BAT_OK_GPIO echo $retval $retval then echo "battery is lower than 3.7V" /sbin/shutdown else echo "battery is good"...
Page 7
2023/06/13 00:38 7/10 Introduction 04:53:01 odroid64 CRON[1824]: (root) (/home/odroid/ups3.sh) 04:53:01 odroid64 CRON[1823]: (CRON) info (No MTA installed, discarding output) 04:55:01 odroid64 CRON[1960]: (root) (/home/odroid/ups3.sh) 04:55:01 odroid64 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.
Page 10
Last update: accessory:power_supply_battery:odroid-ups3 https://wiki.odroid.com/accessory/power_supply_battery/odroid-ups3?rev=1517215085 2018/01/29 17:08 target shell@odroidc2:/ $ su root@odroidc2:/ # mount -o rw,remount / 298.823337] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) root@odroidc2:/ # vi /init.odroidc2.board.rc service ups /system/bin/ups3.sh class core user root group root disabled oneshot As aforementioned, ups3.sh and init routine are added by default since a specific Android version.