Download Print this page

HARDKERNEL ODROID-UPS3 Manual

Hide thumbs Also See for ODROID-UPS3:

Advertisement

Quick Links

2023/06/13 00:38
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.
Specification
Power Input
Dc Input Voltage
DC Input Current
Charger
Charging Time
Battery Charging Current
Power Ouput
DC Output Current
DC Output Voltage
Battery Pack
Type
Capacity
Nominal Voltage
ODROID Wiki - https://wiki.odroid.com/
1/10
DC 4.8~ 5.4V
2A Min.
1hour 30min ~ 2 hours
2A Max.
2A Max.
5 V
Lithium-Polymer
3000 mAh typical
3.7 V
Introduction

Advertisement

loading

Summary of Contents for HARDKERNEL ODROID-UPS3

  • 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.
  • Page 2: Led Indicators

    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 8 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 #!/bin/sh SYSFS_GPIO_DIR="/sys/class/gpio" retval="" gpio_export() "$SYSFS_GPIO_DIR/gpio$1" ] && return echo > "$SYSFS_GPIO_DIR/export" echo gpio_getvalue() echo > "$SYSFS_GPIO_DIR/gpio$1/direction" val=`cat "$SYSFS_GPIO_DIR/gpio$1/value"` retval=$val gpio_setvalue() echo > "$SYSFS_GPIO_DIR/gpio$1/direction" echo > "$SYSFS_GPIO_DIR/gpio$1/value" check() gpio_export $AC_OK_GPIO gpio_export $BAT_OK_GPIO gpio_getvalue $AC_OK_GPIO $retval...
  • Page 9 2023/06/13 00:38 9/10 Introduction am start android.intent.action.ACTION_REQUEST_SHUTDOWN --ez KEY_CONFIRM true activity-clear-task else echo "battery is good" MODEL=`getprop ro.product.board` echo $MODEL `echo $MODEL grep "odroidc2"` then AC_OK_GPIO=247 BAT_OK_GPIO=239 LATCH_GPIO=225 gpio_export $LATCH_GPIO gpio_setvalue $LATCH_GPIO elif `echo $MODEL grep "odroidc"` then AC_OK_GPIO=88 BAT_OK_GPIO=116 LATCH_GPIO=115 gpio_export $LATCH_GPIO...
  • 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.